Bug 205239 - Mk/Uses/python.mk: USES=python:2 vs USES=python:-2.7
Summary: Mk/Uses/python.mk: USES=python:2 vs USES=python:-2.7
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tobias Kortkamp
URL:
Keywords: dogfood, easy
Depends on:
Blocks:
 
Reported: 2015-12-11 10:31 UTC by vladimir.chukharev
Modified: 2019-01-18 09:27 UTC (History)
2 users (show)

See Also:


Attachments

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