dev-ros/image_view: fix build when installing for the first time
authorAlexis Ballier <aballier@gentoo.org>
Tue, 8 Mar 2016 10:31:36 +0000 (11:31 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 8 Mar 2016 10:31:44 +0000 (11:31 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ros/image_view/files/dynrec.patch [new file with mode: 0644]
dev-ros/image_view/image_view-1.12.15.ebuild
dev-ros/image_view/image_view-9999.ebuild

diff --git a/dev-ros/image_view/files/dynrec.patch b/dev-ros/image_view/files/dynrec.patch
new file mode 100644 (file)
index 0000000..499888f
--- /dev/null
@@ -0,0 +1,15 @@
+When installing for the first time, imp.find_module will fail.
+
+Index: image_pipeline-1.12.15/image_view/cfg/ImageView.cfg
+===================================================================
+--- image_pipeline-1.12.15.orig/image_view/cfg/ImageView.cfg
++++ image_pipeline-1.12.15/image_view/cfg/ImageView.cfg
+@@ -2,8 +2,6 @@
+ 
+ PACKAGE='image_view'
+ try:
+-    import imp
+-    imp.find_module(PACKAGE)
+     from dynamic_reconfigure.parameter_generator_catkin import *
+ except:
+     import roslib; roslib.load_manifest(PACKAGE)
index 1f5b4dd7a9dff618ab676be19556d695386eb5a5..09ccaac9731b19fb46c76b7b52c0bdbca777fd24 100644 (file)
@@ -30,3 +30,4 @@ RDEPEND="
        dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
 "
 DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/dynrec.patch" )
index 1f5b4dd7a9dff618ab676be19556d695386eb5a5..09ccaac9731b19fb46c76b7b52c0bdbca777fd24 100644 (file)
@@ -30,3 +30,4 @@ RDEPEND="
        dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
 "
 DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/dynrec.patch" )