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/rviz/, dev-ros/rviz/files/
Date: Sat, 26 Sep 2015 09:50:29
Message-Id: 1443261014.b3f1ee6b4589cfaad2e2224517aab46926d1da72.aballier@gentoo
1 commit: b3f1ee6b4589cfaad2e2224517aab46926d1da72
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 09:50:01 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 09:50:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3f1ee6b
7
8 dev-ros/rviz: Fix build of python bindings if rviz was not previously installed. Bug #561480 by Eric Timmons.
9
10 Package-Manager: portage-2.2.22
11
12 dev-ros/rviz/files/libdir.patch | 26 ++++++++++++++++++++++++++
13 dev-ros/rviz/rviz-1.11.9.ebuild | 2 ++
14 2 files changed, 28 insertions(+)
15
16 diff --git a/dev-ros/rviz/files/libdir.patch b/dev-ros/rviz/files/libdir.patch
17 new file mode 100644
18 index 0000000..9044ded
19 --- /dev/null
20 +++ b/dev-ros/rviz/files/libdir.patch
21 @@ -0,0 +1,26 @@
22 +https://github.com/ros-visualization/rviz/pull/922
23 +
24 +commit 2f93b132a63e25e3cece330ebaf16de7a8aa9517
25 +Author: Alexis Ballier <aballier@g.o>
26 +Date: Sat Sep 26 11:39:39 2015 +0200
27 +
28 + python_bindings: sip: Use CATKIN_PACKAGE_LIB_DESTINATION instead of hardcoded lib.
29 +
30 + Fixes build with libdir != lib.
31 + https://bugs.gentoo.org/show_bug.cgi?id=561480
32 +
33 +diff --git a/src/python_bindings/sip/CMakeLists.txt b/src/python_bindings/sip/CMakeLists.txt
34 +index 6b0c939..c91a6be 100644
35 +--- a/src/python_bindings/sip/CMakeLists.txt
36 ++++ b/src/python_bindings/sip/CMakeLists.txt
37 +@@ -42,8 +42,8 @@ include(${python_qt_binding_EXTRAS_DIR}/sip_helper.cmake)
38 + # maintain context for different named target
39 + set(rviz_sip_INCLUDE_DIRS ${rviz_INCLUDE_DIRS} "${PROJECT_SOURCE_DIR}/src" ${catkin_INCLUDE_DIRS})
40 + set(rviz_sip_LIBRARIES ${rviz_LIBRARIES} ${PROJECT_NAME})
41 +-set(rviz_sip_LIBRARY_DIRS ${rviz_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/lib)
42 +-set(rviz_sip_LDFLAGS_OTHER ${rviz_LDFLAGS_OTHER} -Wl,-rpath,\\"${CATKIN_DEVEL_PREFIX}/lib\\")
43 ++set(rviz_sip_LIBRARY_DIRS ${rviz_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_LIB_DESTINATION})
44 ++set(rviz_sip_LDFLAGS_OTHER ${rviz_LDFLAGS_OTHER} -Wl,-rpath,\\"${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_LIB_DESTINATION}\\")
45 +
46 + if(sip_helper_FOUND)
47 + list(APPEND rviz_BINDINGS "sip")
48
49 diff --git a/dev-ros/rviz/rviz-1.11.9.ebuild b/dev-ros/rviz/rviz-1.11.9.ebuild
50 index 0bb062d..c801bb9 100644
51 --- a/dev-ros/rviz/rviz-1.11.9.ebuild
52 +++ b/dev-ros/rviz/rviz-1.11.9.ebuild
53 @@ -58,3 +58,5 @@ DEPEND="${RDEPEND}
54 dev-ros/rostest[${PYTHON_USEDEP}]
55 dev-cpp/gtest
56 )"
57 +
58 +PATCHES=( "${FILESDIR}/libdir.patch" )