mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-ros/cv_bridge: fix boost python detection
Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
@@ -21,3 +21,4 @@ RDEPEND="
|
||||
dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP},${CATKIN_MESSAGES_PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
PATCHES=( "${FILESDIR}/boostpython.patch" )
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
@@ -21,3 +21,4 @@ RDEPEND="
|
||||
dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP},${CATKIN_MESSAGES_PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
PATCHES=( "${FILESDIR}/boostpython.patch" )
|
||||
|
||||
17
dev-ros/cv_bridge/files/boostpython.patch
Normal file
17
dev-ros/cv_bridge/files/boostpython.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
Index: cv_bridge/CMakeLists.txt
|
||||
===================================================================
|
||||
--- cv_bridge.orig/CMakeLists.txt
|
||||
+++ cv_bridge/CMakeLists.txt
|
||||
@@ -5,11 +5,7 @@ find_package(catkin REQUIRED COMPONENTS
|
||||
|
||||
if(NOT ANDROID)
|
||||
find_package(PythonLibs)
|
||||
- if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
|
||||
- find_package(Boost REQUIRED python)
|
||||
- else()
|
||||
- find_package(Boost REQUIRED python3)
|
||||
- endif()
|
||||
+ find_package(Boost REQUIRED python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
|
||||
else()
|
||||
find_package(Boost REQUIRED)
|
||||
endif()
|
||||
Reference in New Issue
Block a user