Page MenuHomeFreeBSD

Use the proper python version value within a single port build
AbandonedPublic

Authored by mva on Oct 17 2014, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 9:36 PM
Unknown Object (File)
Feb 6 2024, 5:43 PM
Unknown Object (File)
Feb 6 2024, 5:20 PM
Unknown Object (File)
Jan 27 2024, 12:00 AM
Unknown Object (File)
Jan 1 2024, 12:28 PM
Unknown Object (File)
Dec 19 2023, 9:54 PM
Unknown Object (File)
Dec 10 2023, 12:24 PM
Unknown Object (File)
Sep 23 2023, 1:28 PM
Subscribers
None

Details

Reviewers
mva
Group Reviewers
portmgr
Python
Summary

If a port requests a different python version from the one being the
default or provided at the command line, certain directories as well as
plist entries, will use the wrong python version value (the one being
the defaullt or provided at the command line), instead of whatever it
requests.

Test Plan
# cd /usr/ports/net-p2p/deluge
# make PYTHON_VERSION=python3.4 -V_PYTHON_VERSION -VPYTHON_VERSION -Vpython_ARGS
2.7
python3.4
2
#
# make PYTHON_VERSION=python3.4 -VRUN_DEPENDS
...
/usr/local/lib/python3.4/site-packages/twisted/__init__.py:/usr/ports/devel/py-twistedCore
...

That entry is critical. py-twistedCore is only compatible with Python
2 (as stated in the port), but its PYTHON_SITELIBDIR entry gets polluted
with the user-provided PYTHON_VERSION value, although it should refer to
the (optimal) match from python.Mk.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

mva retitled this revision from to Use the proper python version value within a single port build.
mva updated this object.
mva edited the test plan for this revision. (Show Details)
mva added a reviewer: Python.
mva edited edge metadata.
xmj removed a reviewer: xmj.
xmj added a subscriber: xmj.
xmj removed a subscriber: xmj.
mva added a reviewer: mva.