From 0b49907c76bc20a9912fe4f70bb9789019fc31ba Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Tue, 8 Mar 2016 11:31:36 +0100 Subject: dev-ros/image_view: fix build when installing for the first time Package-Manager: portage-2.2.27 Signed-off-by: Alexis Ballier --- dev-ros/image_view/files/dynrec.patch | 15 +++++++++++++++ dev-ros/image_view/image_view-1.12.15.ebuild | 1 + dev-ros/image_view/image_view-9999.ebuild | 1 + 3 files changed, 17 insertions(+) create mode 100644 dev-ros/image_view/files/dynrec.patch (limited to 'dev-ros/image_view') diff --git a/dev-ros/image_view/files/dynrec.patch b/dev-ros/image_view/files/dynrec.patch new file mode 100644 index 000000000000..499888f65a30 --- /dev/null +++ b/dev-ros/image_view/files/dynrec.patch @@ -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) diff --git a/dev-ros/image_view/image_view-1.12.15.ebuild b/dev-ros/image_view/image_view-1.12.15.ebuild index 1f5b4dd7a9df..09ccaac9731b 100644 --- a/dev-ros/image_view/image_view-1.12.15.ebuild +++ b/dev-ros/image_view/image_view-1.12.15.ebuild @@ -30,3 +30,4 @@ RDEPEND=" dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] " DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}/dynrec.patch" ) diff --git a/dev-ros/image_view/image_view-9999.ebuild b/dev-ros/image_view/image_view-9999.ebuild index 1f5b4dd7a9df..09ccaac9731b 100644 --- a/dev-ros/image_view/image_view-9999.ebuild +++ b/dev-ros/image_view/image_view-9999.ebuild @@ -30,3 +30,4 @@ RDEPEND=" dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] " DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}/dynrec.patch" ) -- cgit v1.2.3-65-gdbad