commit:     7d03cdd7aba23a702de930536f774deeea792088
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 29 13:37:30 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Jul 29 13:39:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d03cdd7

eclass/ros-catkin.eclass: Export ROS_PYTHON_VERSION when building.

Fixes e.g. dev-ros/test_tf2 tests.

Closes: https://bugs.gentoo.org/624756
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 eclass/ros-catkin.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/ros-catkin.eclass b/eclass/ros-catkin.eclass
index cbffa1bf8bb..b47f2160cbb 100644
--- a/eclass/ros-catkin.eclass
+++ b/eclass/ros-catkin.eclass
@@ -160,6 +160,8 @@ ros-catkin_src_prepare() {
 ros-catkin_src_configure() {
        export CATKIN_PREFIX_PATH="${EPREFIX}/usr"
        export ROS_ROOT="${EPREFIX}/usr/share/ros"
+       export ROS_PYTHON_VERSION="${EPYTHON#python}"
+
        if [ -n "${CATKIN_HAS_MESSAGES}" ] ; then
                ROS_LANG_DISABLE=""
                use ros_messages_cxx    || 
ROS_LANG_DISABLE="${ROS_LANG_DISABLE}:gencpp"

Reply via email to