Summary: | Uses/python.mk: specifying USES=python3.3+ and USE_PYTHON=concurrent doesn't produce any ports with USE_DEFAULT_LINKS | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | David Naylor <dbn> | ||||
Component: | Ports Framework | Assignee: | Port Management Team <portmgr> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | ports-bugs | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
David Naylor
2017-01-26 05:58:39 UTC
Fixed with flavors. This is still broken: # cd /usr/ports/ports-mgmt/py-skog # make -V USES python:3.3+ # make -V PYTHON_VERSION python3.6 # make -V UNIQUE_DEFAULT_LINKS no ^^ problem here Created attachment 188721 [details]
Proof of concept fix
I suggest that the default version, as determined by the first item in the _VALID_PYTHON_VERSIONS, should be used to detect when UNIQUE_DEFAULT_LINKS should be yes.
The attached is such a proof of concept, however it will not work unless flavors are enables in python.mk - but that is an easy fix.
If you are happy I can finish the patch and commit it.
But, I was in the area so I finished the patch. Please see https://reviews.freebsd.org/D13449. And, apologies for the spam on this bug. (In reply to David Naylor from comment #2) Is your ports tree up to date? I can't reproduce the problem. (In reply to Antoine Brodin from comment #5) Ah, I see commit rX today introduced the fix. I can confirm it fixes comment #2. I'm not sure how realistic this situation is, but I do get: # cd /usr/ports/ports-mgmt/py-skog # make -V UNIQUE_DEFAULT_LINKS USE_PYTHON="autoplist concurrent distutils noflavors" no The proof of concept attached, I believe, will work in this situation as well. Added a DEV_WARNING to prevent foot shooting. |