1 |
commit: 0d681298f8a3ca967597555e3df315160a3303d5 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 23 12:22:18 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=0d681298 |
7 |
|
8 |
dev-ros/image_proc: Backport upstream patch to build with gcc6. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-ros/image_proc/files/gcc6.patch | 32 ++++++++++++++++++++++++++++ |
13 |
dev-ros/image_proc/image_proc-1.12.19.ebuild | 3 ++- |
14 |
2 files changed, 34 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-ros/image_proc/files/gcc6.patch b/dev-ros/image_proc/files/gcc6.patch |
17 |
new file mode 100644 |
18 |
index 00000000..88a8d9b |
19 |
--- /dev/null |
20 |
+++ b/dev-ros/image_proc/files/gcc6.patch |
21 |
@@ -0,0 +1,32 @@ |
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_proc/CMakeLists.txt b/image_proc/CMakeLists.txt |
41 |
+index a13371f..34905f0 100755 |
42 |
+--- a/image_proc/CMakeLists.txt |
43 |
++++ b/image_proc/CMakeLists.txt |
44 |
+@@ -17,8 +17,7 @@ catkin_package( |
45 |
+ LIBRARIES ${PROJECT_NAME} |
46 |
+ ) |
47 |
+ |
48 |
+-include_directories(SYSTEM ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}) |
49 |
+-include_directories(include) |
50 |
++include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}) |
51 |
+ |
52 |
+ # Nodelet library |
53 |
+ add_library(${PROJECT_NAME} src/libimage_proc/processor.cpp |
54 |
|
55 |
diff --git a/dev-ros/image_proc/image_proc-1.12.19.ebuild b/dev-ros/image_proc/image_proc-1.12.19.ebuild |
56 |
index 08dd321..72fc438 100644 |
57 |
--- a/dev-ros/image_proc/image_proc-1.12.19.ebuild |
58 |
+++ b/dev-ros/image_proc/image_proc-1.12.19.ebuild |
59 |
@@ -1,4 +1,4 @@ |
60 |
-# Copyright 1999-2016 Gentoo Foundation |
61 |
+# Copyright 1999-2017 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
# $Id$ |
64 |
|
65 |
@@ -27,3 +27,4 @@ RDEPEND=" |
66 |
dev-libs/boost:=[threads] |
67 |
" |
68 |
DEPEND="${RDEPEND}" |
69 |
+PATCHES=( "${FILESDIR}/gcc6.patch" ) |