From: Alexis Ballier Date: Sat, 11 Mar 2017 09:13:57 +0000 (+0100) Subject: dev-ros/roslib: Patch env hooks to work better on Gentoo. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1781d604ee0c6a5094e09fe607dc7dedffa1e2a0;p=gentoo.git dev-ros/roslib: Patch env hooks to work better on Gentoo. Use env python instead of hardcoder python version at build time. Honour CATKIN_PREFIX_PATH. Package-Manager: Portage-2.3.4, Repoman-2.3.2 --- diff --git a/dev-ros/roslib/files/envhook.patch b/dev-ros/roslib/files/envhook.patch new file mode 100644 index 000000000000..d4e24e937351 --- /dev/null +++ b/dev-ros/roslib/files/envhook.patch @@ -0,0 +1,34 @@ +Use env python for running python so that it uses the proper version on Gentoo. +Honour CATKIN_PREFIX_PATH gentoo addition. + +Index: roslib/env-hooks/10.ros.sh.em +=================================================================== +--- roslib.orig/env-hooks/10.ros.sh.em ++++ roslib/env-hooks/10.ros.sh.em +@@ -1,8 +1,5 @@ + # generated from ros/env-hooks/10.ros.sh.em + +-# scrub old ROS bin dirs, to avoid accidentally finding the wrong executables +-export PATH="`@(PYTHON_EXECUTABLE) -c \"import os; print(os.pathsep.join([x for x in \\\"$PATH\\\".split(os.pathsep) if not any([d for d in ['cturtle', 'diamondback', 'electric', 'fuerte'] if d in x])]))\"`" +- + @{ + # This is a build-time environment variable which allows a build engineer to override the expected + # ROS_DISTRO value for a workspace, for example to deliberately use a newer version of roslib with +@@ -19,7 +16,7 @@ export ROS_DISTRO=@(ROS_DISTRO) + PYTHON_CODE_BUILD_ROS_PACKAGE_PATH=$(cat <