From owner-freebsd-python@FreeBSD.ORG Mon Oct 22 17:50:04 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 18D4B16A468 for ; Mon, 22 Oct 2007 17:50:04 +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 EFDBF13C4A3 for ; Mon, 22 Oct 2007 17:50: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 l9MHo3if005381 for ; Mon, 22 Oct 2007 17:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9MHo3Cc005380; Mon, 22 Oct 2007 17:50:03 GMT (envelope-from gnats) Date: Mon, 22 Oct 2007 17:50:03 GMT Message-Id: <200710221750.l9MHo3Cc005380@freefall.freebsd.org> To: python@FreeBSD.org From: Tom McLaughlin 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: Tom McLaughlin List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 17:50:04 -0000 The following reply was made to PR ports/109550; it has been noted by GNATS. From: Tom McLaughlin To: bug-followup@FreeBSD.org, dyeske@yahoo.com Cc: Subject: Re: ports/109550: lang/python25 does not install /usr/local/bin/python Date: Mon, 22 Oct 2007 13:23:40 -0400 --=-Jt7VhQNbnsJsnm64gexa Content-Type: text/plain Content-Transfer-Encoding: 7bit I spoke with Josh about this on IRC and would a patch like the attached to python2[345] be okay? The first python installed will install the bin/python link now. tom --=-Jt7VhQNbnsJsnm64gexa Content-Disposition: attachment; filename=python24-symlink.diff Content-Type: text/x-patch; name=python24-symlink.diff; charset=utf-8 Content-Transfer-Encoding: 7bit ? python24-symlink.diff Index: Makefile =================================================================== RCS file: /ncvs/ports/lang/python24/Makefile,v retrieving revision 1.158 diff -u -r1.158 Makefile --- Makefile 3 Oct 2007 23:22:03 -0000 1.158 +++ Makefile 22 Oct 2007 17:06:04 -0000 @@ -49,7 +49,7 @@ .include -.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} +.if (${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}) || !exists(${LOCALBASE}/bin/python) MLINKS= ${PYTHON_VERSION}.1 python.1 PLIST_SUB+= IF_DEFAULT="" .else @@ -198,7 +198,7 @@ ${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.4 ${WRKDIR}/idle2.4 \ ${WRKDIR}/smtpd2.4.py ${PREFIX}/bin -.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} +.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} || !exists(${LOCALBASE}/bin/python) for f in ${BIN_SCRIPTS}; do \ TARGET=`${ECHO_CMD} $$f | ${SED} -E ${BINLINKS_SUB}`; \ cd ${PREFIX}/bin && ${LN} -f $$TARGET $$f; \ --=-Jt7VhQNbnsJsnm64gexa--