lang/python25 does not install /usr/local/bin/python. If a user only has python25 installed then it should install /usr/local/bin/python.
I'm not sure of a clean solution.
How-To-Repeat: install lang/python25, observe /usr/local/bin/python is not created
Over to maintainer
I will take it.
Pass this over to python@ so it can recieve more public scrutiny
This is no longer an issue per sae since the change of
PYTHON_DEFAULT_VERSION to 2.5 means that lang/python25 does now
install the symlink to python.
The root problem still remains, it's just been moved. now
lang/python24 won't install a symlink to python if it's the only
version of python installed.
This is probably more of a documentation or perhaps POLA violation
though. In order to install multiple versions simultaniously only
PYTHON_DEFAULT_VERSION gets the symlink. One might reasonably expect
(without intimate knowledge of the ports system) lang/python24 to
install a symlink to /usr/local/bin/python if no such symlink
exists...but then how do you handle when another port pulls in
lang/python25, especially when that *is* the expected and default
version? Replacing the symlink will definitely change the expected
behavior of the system from the user's standpoint...and not replacing
the symlink causes a situation that the ports tree can't really allow
We could set up the python ports to be self-documenting, perhaps by
making it explicit through output when you type make install in
lang/python2[3|4|5] that these are utility ports and will not install
a symlink at all, and that lang/python together with
PYTHON_DEFAULT_VERSION in /etc/make.conf (which defaults to 2.5) is
the way to install python and get the symlink?
I spoke with Josh about this on IRC and would a patch like the attached
to python2 be okay? The first python installed will install the
bin/python link now.
lwhsu 2009-07-14 09:29:03 UTC
FreeBSD ports repository
- Ask the first Python installed to install the bin/python link,
and be the default Python version
Submitted by: David Yeske <dyeske AT yahoo.com>
Obtained from: tmclaugh
Revision Changes Path
1.157 +3 -2 ports/lang/python23/Makefile
1.169 +3 -3 ports/lang/python24/Makefile
1.157 +3 -3 ports/lang/python25/Makefile
1.160 +3 -2 ports/lang/python26/Makefile
1.158 +3 -3 ports/lang/python30/Makefile
1.162 +3 -3 ports/lang/python31/Makefile
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"