Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722822 - sci-libs/nlopt-2.4.2-r2[-python] builds python integration against currently active python version
Summary: sci-libs/nlopt-2.4.2-r2[-python] builds python integration against currently ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-13 08:29 UTC by Hendrik v. Raven
Modified: 2022-05-18 00:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.