From a2b261e57e203bce18bbb6df565cbb0f1e959926 Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn Date: Tue, 5 Mar 2013 07:55:33 +0100 Subject: [PATCH] Revert "simplified groovy installation on target" In the current state, the catkin recipe does not work on the target system. We want to keep the native compilation of ros groovy working, even if our current development is focusing on the cross-compilation. To make the native compilation of ros groovy more stable, we go back to the previous state where even catkin was compiled on the target system. Hence, this commit reverts commit 2c8274b74f263119f03953046c30155c74adac47 to obtain that previous state. The conflicts in the files of this commit were manually resolved. --- install-groovy.sh | 25 +++++++++++++++++++- recipes-core/images/core-image-ros-groovy.bb | 5 ++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/install-groovy.sh b/install-groovy.sh index c215af2..5e142d5 100644 --- a/install-groovy.sh +++ b/install-groovy.sh @@ -16,8 +16,31 @@ mkdir ros_catkin_ws cd ros_catkin_ws # extract tar -xzf ../src.tar.gz +# patch catkin +patch -p1 << EOF +*** A/src/catkin/cmake/python.cmake 2013-01-04 14:22:33.223884756 +0100 +--- B/src/catkin/cmake/python.cmake 2013-01-04 14:28:01.971898385 +0100 +*************** +*** 6,12 **** + set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "Python version") + + #This should be resolved automatically one day... +! option(SETUPTOOLS_DEB_LAYOUT "ON for debian style python packages layout" ON) + + if(APPLE OR MSVC) + set(SETUPTOOLS_DEB_LAYOUT OFF) +--- 6,12 ---- + set(PYTHON_VERSION_XDOTY ${PYTHON_VERSION_XDOTY} CACHE STRING "Python version") + + #This should be resolved automatically one day... +! option(SETUPTOOLS_DEB_LAYOUT "ON for debian style python packages layout" OFF) + + if(APPLE OR MSVC) + set(SETUPTOOLS_DEB_LAYOUT OFF) +EOF # compile, make and install -catkin_make_isolated --install +./src/catkin/bin/catkin_make_isolated --install # start roscore . install_isolated/setup.sh roscore + diff --git a/recipes-core/images/core-image-ros-groovy.bb b/recipes-core/images/core-image-ros-groovy.bb index 319b042..addbb36 100644 --- a/recipes-core/images/core-image-ros-groovy.bb +++ b/recipes-core/images/core-image-ros-groovy.bb @@ -29,6 +29,5 @@ IMAGE_INSTALL += "packagegroup-core-ssh-openssh cmake \ boost boost-dev python-dev libtinyxml libtinyxml-dev \ log4cxx log4cxx-dev libbz2-dev \ python-argparse python-rosdep python-wstool \ - catkin \ - roscpp-core \ - " +" +