Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608330 - dev-ros/camera_calibration_parsers required more precise python3 version specification in CMakeLists.txt
Summary: dev-ros/camera_calibration_parsers required more precise python3 version spec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robot Operating System team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-05 14:09 UTC by m.manico
Modified: 2017-02-10 17:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.56 KB, text/plain)
2017-02-07 08:33 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,46.28 KB, text/plain)
2017-02-07 08:33 UTC, Toralf Förster
Details
dev-ros:camera_calibration_parsers-1.11.12:20170207-000809.log (dev-ros:camera_calibration_parsers-1.11.12:20170207-000809.log,6.02 KB, text/plain)
2017-02-07 08:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,292.92 KB, text/plain)
2017-02-07 08:34 UTC, Toralf Förster
Details
environment (environment,120.61 KB, text/plain)
2017-02-07 08:34 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.45 KB, application/x-bzip)
2017-02-07 08:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m.manico 2017-02-05 14:09:08 UTC
Emerging dev-ros/camera_calibration_parsers will fail because

"  Could not find the following Boost libraries:

          boost_python3
"

The issue here is, that cmake can not match 'boost_python3' to '/usr/lib64/libboost_python-3.4.so'

The offending line in the packages source code is here:
https://github.com/ros-perception/image_common/blob/hydro-devel/camera_calibration_parsers/CMakeLists.txt#L10
(hydro-devel is probably not the correct version in this case, but the issue is the same regardless)

Workaround:
Correcting the above mentioned line to look for "python-3.4" (or whatever python 3 version you're using on your gentoo install) will allow successful emerging of the package. For a temporary fix use the following commands (as root):

ebuild /usr/portage/dev-ros/camera_calibration_parsers/camera_calibration_parsers-1.11.12.ebuild unpack

cd /var/tmp/portage/dev-ros/camera_calibration_parsers-1.11.12/work/image_common-1.11.12/camera_calibration_parsers

modify CMakeLists.txt at line 10 to use "python-3.4" instead of "python3"

ebuild /usr/portage/dev-ros/camera_calibration_parsers/camera_calibration_parsers-1.11.12.ebuild merge

I did not test if further modifications are required to successfully run the package.

Links that helped me to understand the problem and work around it:
https://forums.gentoo.org/viewtopic-t-1048838-start-0.html
http://www.gentooforum.de/artikel/16303/wie-man-einen-patch-einspielt.html
Comment 1 Jan-Matthias Braun 2017-02-05 14:32:31 UTC
I can confirm the issue and the usefulness of the proposed patch.

Thanks & cheers,

Jan
Comment 2 Toralf Förster gentoo-dev 2017-02-07 08:33:50 UTC
same at a tinderbox image
Comment 3 Toralf Förster gentoo-dev 2017-02-07 08:33:53 UTC
Created attachment 462750 [details]
emerge-info.txt
Comment 4 Toralf Förster gentoo-dev 2017-02-07 08:33:56 UTC
Created attachment 462752 [details]
CMakeOutput.log
Comment 5 Toralf Förster gentoo-dev 2017-02-07 08:33:59 UTC
Created attachment 462754 [details]
dev-ros:camera_calibration_parsers-1.11.12:20170207-000809.log
Comment 6 Toralf Förster gentoo-dev 2017-02-07 08:34:02 UTC
Created attachment 462756 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2017-02-07 08:34:06 UTC
Created attachment 462758 [details]
environment
Comment 8 Toralf Förster gentoo-dev 2017-02-07 08:34:09 UTC
Created attachment 462760 [details]
etc.portage.tbz2
Comment 9 Alexis Ballier gentoo-dev 2017-02-10 17:21:26 UTC
commit 869ad6e1ce4f2ccdc6ae39f8a54fa682d586ec0e
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Fri Feb 10 18:20:35 2017 +0100

    dev-ros/camera_calibration_parsers: Fix build with python 3 and enable python 3.4/3.5.
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

commit 056a26501aeb0240c2994d92719dcead51fce106
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Fri Feb 10 18:14:50 2017 +0100

    dev-ros/camera_calibration_parsers: Set proper python dependencies, bug #608330
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1



thanks!