Bug 205239

Summary: Mk/Uses/python.mk: USES=python:2 vs USES=python:-2.7
Product: Ports & Packages Reporter: vladimir.chukharev
Component: Ports FrameworkAssignee: Tobias Kortkamp <tobik>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: python, sunpoet
Priority: --- Keywords: dogfood, easy
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205126

Description vladimir.chukharev 2015-12-11 10:31:20 UTC
Mk/Uses/python.mk has the following description:
#                       USES=python:2           # Use the Python 2 meta port

I understand this as 'use this if your port needs latest python of version series 2.*'. A discussion in bug 205126 reveals that it means actually a need for a symlink python2, while for latest v2 python it's better to use USES=python:-2.7

It seems to me that the description is to be clarified.

Probably, suspicious usages of USES=python:2 are to be found and informed to maintainers. I plan to do this change in all my ports as they are updated.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-11 11:29:20 UTC
Thank you for the report Vladimir.

If there's anything else in python.mk that is unclear, let us know, and I'll do my best to improve those as well
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-12-11 11:41:10 UTC
IMHO, "USES=python:2.7" is better than "USES=python:-2.7" since we do not support any other versions lower than 2.7.
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2019-01-18 09:27:08 UTC
Support for USES=python:2 and the comment about it are gone.  Using it
is a DEV_ERROR now, so this is fixed/overcome by events.