From owner-freebsd-python@FreeBSD.ORG Sun Oct 21 18:20:03 2007 Return-Path: Delivered-To: python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66B7D16A418 for ; Sun, 21 Oct 2007 18:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6861213C49D for ; Sun, 21 Oct 2007 18:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9LIK2Nc025300 for ; Sun, 21 Oct 2007 18:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9LIK2J6025299; Sun, 21 Oct 2007 18:20:02 GMT (envelope-from gnats) Date: Sun, 21 Oct 2007 18:20:02 GMT Message-Id: <200710211820.l9LIK2J6025299@freefall.freebsd.org> To: python@FreeBSD.org From: Josh Paetzel Cc: Subject: Re: ports/109550 lang/python25 does not install /usr/local/bin/python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Josh Paetzel List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 18:20:03 -0000 The following reply was made to PR ports/109550; it has been noted by GNATS. From: Josh Paetzel To: bug-followup@freebsd.org Cc: Subject: Re: ports/109550 lang/python25 does not install /usr/local/bin/python Date: Sun, 21 Oct 2007 12:54:27 -0500 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 for. 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? Thoughts? --=20 Thanks, Josh Paetzel --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHG5JSJvkB8SevrssRAoOhAJ46YTGS5RMiv1qEfECW+DgzKp6KTQCdGLUJ 2QYOiprqP9XZaTGhUH2W/u0= =p/GT -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--