Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 722822

Summary: sci-libs/nlopt-2.4.2-r2[-python] builds python integration against currently active python version
Product: Gentoo Linux Reporter: Hendrik v. Raven <hendrik>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, mjo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hendrik v. Raven 2020-05-13 08:29:45 UTC
The latest nlopt always builds the python extension, even when the python use flag is disabled. Also it builds it against the currently active python interpreter, not against the one set in PYTHON_TARGETS. I have successful builds against python3.6 and python3.8 (did not test the functionality, but build succeeds).

Reproducible: Always

Steps to Reproduce:
1. USE=-python emerge -1 sci-libs/nlopt
2. qlist nlopt
Actual Results:  
[snip]
/usr/lib/python3.8/site-packages/nlopt.py
/usr/lib/python3.8/site-packages/__pycache__/nlopt.cpython-38.pyc
/usr/lib/python3.8/site-packages/__pycache__/nlopt.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/__pycache__/nlopt.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/_nlopt.la
/usr/lib/python3.8/site-packages/_nlopt.so.0.8.2
/usr/lib/python3.8/site-packages/_nlopt.so
/usr/lib/python3.8/site-packages/_nlopt.so.0

Expected Results:  
No python extension should be built.
Comment 1 Michael Orlitzky gentoo-dev 2022-05-18 00:11:12 UTC
I think both issues are fixed in the current nlopt-2.6.2-r1.ebuild. Please let us know if you run into them again.