From fec4463147997a6b8c6c1354304efcca3e270141 Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn Date: Wed, 21 Sep 2016 12:01:42 +0200 Subject: [PATCH] tf: use upstream patch to compile with gcc6 (#392) --- ...such-file-or-directory-errors-in-GCC.patch | 35 +++++++++++++++++++ recipes-ros/geometry/tf_1.11.8.bb | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 recipes-ros/geometry/tf/0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch diff --git a/recipes-ros/geometry/tf/0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch b/recipes-ros/geometry/tf/0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch new file mode 100644 index 0000000..fcb253e --- /dev/null +++ b/recipes-ros/geometry/tf/0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch @@ -0,0 +1,35 @@ +From b0d31cc1e9a43b45d216ee7f804e901a5c0f8936 Mon Sep 17 00:00:00 2001 +From: Hodorgasm +Date: Mon, 19 Sep 2016 17:58:22 -0400 +Subject: [PATCH] Fix "stdlib.h: No such file or directory" errors in GCC-6 + +Including '-isystem /usr/include' breaks building with GCC-6. +See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129 + +Upstream-Status: Accepted [https://github.com/ros/geometry/commit/b0d31cc1e9a43b45d216ee7f804e901a5c0f8936] + +This patch has been generated with: + `git format-patch -1 b0d31cc1e9a43b45d216ee7f804e901a5c0f8936` +in the geometry repository. + +Signed-off-by: Lukas Bulwahn +--- + tf/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tf/CMakeLists.txt b/tf/CMakeLists.txt +index 8077561..cf72127 100644 +--- a/tf/CMakeLists.txt ++++ b/tf/CMakeLists.txt +@@ -8,7 +8,7 @@ find_package(catkin COMPONENTS angles geometry_msgs message_filters message_gene + + catkin_python_setup() + +-include_directories(SYSTEM ${Boost_INCLUDE_DIR} ++include_directories(${Boost_INCLUDE_DIR} + ${catkin_INCLUDE_DIRS} + ) + include_directories(include) +-- +2.5.5 + diff --git a/recipes-ros/geometry/tf_1.11.8.bb b/recipes-ros/geometry/tf_1.11.8.bb index c68d8fb..a0f91db 100644 --- a/recipes-ros/geometry/tf_1.11.8.bb +++ b/recipes-ros/geometry/tf_1.11.8.bb @@ -7,4 +7,6 @@ DEPENDS = "angles geometry-msgs message-filters sensor-msgs tf2-ros" require geometry.inc +SRC_URI += "file://0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch;striplevel=2" + RDEPENDS_${PN} = "python-numpy"