Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/image_rotate/, dev-ros/image_rotate/files/
Date: Mon, 23 Jan 2017 12:28:43
Message-Id: 1485174492.eaf433a7edd21e6127acff710680c34c4692ef30.aballier@gentoo
1 commit: eaf433a7edd21e6127acff710680c34c4692ef30
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 23 12:26:10 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 23 12:28:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaf433a7
7
8 dev-ros/image_rotate: Backport upstream patch to build with gcc6.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ros/image_rotate/files/gcc6.patch | 34 ++++++++++++++++++++++++
13 dev-ros/image_rotate/image_rotate-1.12.19.ebuild | 3 ++-
14 2 files changed, 36 insertions(+), 1 deletion(-)
15
16 diff --git a/dev-ros/image_rotate/files/gcc6.patch b/dev-ros/image_rotate/files/gcc6.patch
17 new file mode 100644
18 index 00000000..e0737b4
19 --- /dev/null
20 +++ b/dev-ros/image_rotate/files/gcc6.patch
21 @@ -0,0 +1,34 @@
22 +commit 6c2d65452bd5fe62723988a1a570789921900d59
23 +Author: Lukas Bulwahn <lukas.bulwahn@×××××××××××××.de>
24 +Date: Fri Sep 30 15:39:47 2016 +0200
25 +
26 + address gcc6 build error
27 +
28 + With gcc6, compiling fails with `stdlib.h: No such file or directory`,
29 + as including '-isystem /usr/include' breaks with gcc6, cf.,
30 + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129.
31 +
32 + This commit addresses this issue for this package in the same way
33 + it was addressed in various other ROS packages. A list of related
34 + commits and pull requests is at:
35 +
36 + https://github.com/ros/rosdistro/issues/12783
37 +
38 + Signed-off-by: Lukas Bulwahn <lukas.bulwahn@×××××××××××××.de>
39 +
40 +diff --git a/image_rotate/CMakeLists.txt b/image_rotate/CMakeLists.txt
41 +index 04ba03b..75d8e77 100644
42 +--- a/image_rotate/CMakeLists.txt
43 ++++ b/image_rotate/CMakeLists.txt
44 +@@ -12,10 +12,7 @@ find_package(OpenCV REQUIRED core imgproc)
45 + find_package(Eigen REQUIRED)
46 +
47 + # add the executable
48 +-include_directories(SYSTEM ${catkin_INCLUDE_DIRS}
49 +- ${EIGEN_INCLUDE_DIRS}
50 +- ${OpenCV_INCLUDE_DIRS}
51 +-)
52 ++include_directories(${catkin_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
53 +
54 + add_library(${PROJECT_NAME} SHARED src/nodelet/image_rotate_nodelet.cpp)
55 + target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
56
57 diff --git a/dev-ros/image_rotate/image_rotate-1.12.19.ebuild b/dev-ros/image_rotate/image_rotate-1.12.19.ebuild
58 index 67b5cf5..0a83d54 100644
59 --- a/dev-ros/image_rotate/image_rotate-1.12.19.ebuild
60 +++ b/dev-ros/image_rotate/image_rotate-1.12.19.ebuild
61 @@ -1,4 +1,4 @@
62 -# Copyright 1999-2016 Gentoo Foundation
63 +# Copyright 1999-2017 Gentoo Foundation
64 # Distributed under the terms of the GNU General Public License v2
65 # $Id$
66
67 @@ -26,3 +26,4 @@ RDEPEND="
68 dev-ros/tf2_geometry_msgs
69 "
70 DEPEND="${RDEPEND}"
71 +PATCHES=( "${FILESDIR}/gcc6.patch" )