[SRU] Backport boost_python3 fix for cmake

Bug #1831869 reported by Oleg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Currenlty using boost_python3 is impossible: https://github.com/boostorg/python/issues/204

It was fixed in cmake 3.11 but bionic uses 3.10. Could you backport fix?

Patch: https://gitlab.kitware.com/cmake/cmake/merge_requests/201/diffs

Revision history for this message
Oleg (o01eg) wrote :

I've manually applied this patch to FindBoost.cmake but it doesn't solve issue because cmake doesn't found libraries for python3 component.

The only working component is python-py36:

//Boost python-py36 library (debug)
Boost_PYTHON-PY36_LIBRARY_DEBUG:FILEPATH=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so

//Boost python-py36 library (release)
Boost_PYTHON-PY36_LIBRARY_RELEASE:FILEPATH=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so

So I suppose patch should add next line:

set(_Boost_PYTHON_PY36_HEADERS "${_Boost_PYTHON_HEADERS}")

Revision history for this message
Oleg (o01eg) wrote :

Also looks like upstream fully change boost python handling in 3.11 https://gitlab.kitware.com/cmake/cmake/blob/v3.11.4/Modules/FindBoost.cmake

summary: - Backport boost_python3 fix for cmake
+ [SRU] Backport boost_python3 fix for cmake
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Oleg, can you please provide a simple test case to verify a fix?
also, see the bug template
https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template

Changed in cmake (Ubuntu):
status: New → Incomplete
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Once you have updated it please set the status back to new
I uploaded to cmake test builds:
Version: 3.10.2-1ubuntu2.18.04.2 on
https://launchpad.net/%7Ecostamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/
this has only the line added

Version: 3.10.2-1ubuntu2.18.04.3 on
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/locutusofborg-ppa
That one has also the FindBoost.cmake updated.

Revision history for this message
Steve Langasek (vorlon) wrote : Proposed package upload rejected

An upload of cmake to bionic-proposed has been rejected from the upload queue for the following reason: "request of Gianfranco; no testcase in bug".

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cmake (Ubuntu) because there has been no activity for 60 days.]

Changed in cmake (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.