From c6b42997d6d19d2e7f38e0f5cb42a5e824af67b0 Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn Date: Thu, 6 Apr 2017 11:01:46 +0200 Subject: [PATCH] robot-state-publisher: remove rostest dependency --- ...endency-conditional-depending-on-CAT.patch | 63 +++++++++++++++++++ .../robot-state-publisher_1.11.2.bb | 4 +- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 recipes-ros/robot-state-publisher/robot-state-publisher/0001-Make-rostest-dependency-conditional-depending-on-CAT.patch diff --git a/recipes-ros/robot-state-publisher/robot-state-publisher/0001-Make-rostest-dependency-conditional-depending-on-CAT.patch b/recipes-ros/robot-state-publisher/robot-state-publisher/0001-Make-rostest-dependency-conditional-depending-on-CAT.patch new file mode 100644 index 0000000..ff4059e --- /dev/null +++ b/recipes-ros/robot-state-publisher/robot-state-publisher/0001-Make-rostest-dependency-conditional-depending-on-CAT.patch @@ -0,0 +1,63 @@ +From f3f1c4d55c6f707685f727c80d3e04bbb37be8ed Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Javier=20V=2E=20G=C3=B3mez?= +Date: Wed, 16 Nov 2016 19:54:30 +0100 +Subject: [PATCH 1/3] Make rostest dependency conditional, depending on + CATKIN_ENABLE_TESTING (#66) + +* Make rostest dependency conditional, depending on CATKIN_ENABLE_TESTING + +* Make rostest dependency REQUIRED + +Upstream-Status: Backport [https://github.com/ros/robot_state_publisher/commit/f3f1c4d55c6f707685f727c80d3e04bbb37be8ed] + +Signed-off-by: Lukas Bulwahn +--- + CMakeLists.txt | 4 +++- + package.xml | 3 +-- + 2 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 11ea778..0510171 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ project(robot_state_publisher) + + find_package(orocos_kdl REQUIRED) + find_package(catkin REQUIRED +- COMPONENTS roscpp rosconsole rostime tf tf2_ros tf2_kdl kdl_parser cmake_modules rostest ++ COMPONENTS roscpp rosconsole rostime tf tf2_ros tf2_kdl kdl_parser cmake_modules + ) + find_package(Eigen REQUIRED) + +@@ -33,6 +33,8 @@ target_link_libraries(state_publisher ${PROJECT_NAME}_solver ${orocos_kdl_LIBRAR + + if (CATKIN_ENABLE_TESTING) + ++ find_package(rostest REQUIRED) ++ + add_rostest_gtest(test_one_link ${CMAKE_CURRENT_SOURCE_DIR}/test/test_one_link.launch test/test_one_link.cpp) + target_link_libraries(test_one_link ${catkin_LIBRARIES} ${PROJECT_NAME}_solver) + +diff --git a/package.xml b/package.xml +index 793a235..1eea965 100644 +--- a/package.xml ++++ b/package.xml +@@ -26,7 +26,6 @@ + orocos_kdl + rosconsole + roscpp +- rostest + rostime + sensor_msgs + tf +@@ -47,6 +46,6 @@ + tf2_kdl + tf_conversions + +- rostest ++ rostest + + +-- +2.5.5 + diff --git a/recipes-ros/robot-state-publisher/robot-state-publisher_1.11.2.bb b/recipes-ros/robot-state-publisher/robot-state-publisher_1.11.2.bb index ef9731b..d6f769a 100644 --- a/recipes-ros/robot-state-publisher/robot-state-publisher_1.11.2.bb +++ b/recipes-ros/robot-state-publisher/robot-state-publisher_1.11.2.bb @@ -3,12 +3,14 @@ SECTION = "devel" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://package.xml;beginline=18;endline=18;md5=d566ef916e9dedc494f5f793a6690ba5" -DEPENDS = "cmake-modules libeigen kdl-parser orocos-kdl rosconsole roscpp rostime sensor-msgs tf tf2-ros tf2-kdl rostest" +DEPENDS = "cmake-modules libeigen kdl-parser orocos-kdl rosconsole roscpp rostime sensor-msgs tf tf2-ros tf2-kdl" SRC_URI = "https://github.com/ros/${ROS_SPN}/archive/${PV}.tar.gz;downloadfilename=${ROS_SP}.tar.gz" SRC_URI[md5sum] = "f10d326400fd97f349a19a330c65aa3a" SRC_URI[sha256sum] = "33b7606f0ea913e22887fe30521c94c1167f56197c03ce2985fc778876ea2141" +SRC_URI += "file://0001-Make-rostest-dependency-conditional-depending-on-CAT.patch" + S = "${WORKDIR}/${ROS_SP}" inherit catkin