Date: 3 Apr 2001 15:27:26 -0000 From: davidt@yadt.co.uk To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26318: bsd.python.mk attempts to run python, even if it doesn't exist Message-ID: <20010403152726.23780.qmail@gattaca.yadt.co.uk>
next in thread | raw e-mail | index | archive | help
>Number: 26318 >Category: ports >Synopsis: bsd.python.mk attempts to run python, even if it doesn't exist >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 03 08:30:04 PDT 2001 >Closed-Date: >Last-Modified: >Originator: David Taylor >Release: FreeBSD 4.3-RC i386 >Organization: >Environment: System: FreeBSD gattaca.yadt.co.uk 4.3-RC FreeBSD 4.3-RC #9: Tue Apr 3 01:08:15 BST 2001 davidt@gattaca.yadt.co.uk:/usr/obj/usr/src/sys/GATTACA i386 ports last cvsuped at ~15:00 UTC 2000-04-03 >Description: If you don't have python installed, attempting to run make [anything] in a ports dir with a Makefile that sets USE_PYTHON=true, results in warning messages such as: "/usr/ports/Mk/bsd.python.mk", line 131: warning: "/usr/local/bin/python2.0 -c 'import sys; print sys.platform'" returned non-zero status /usr/local/bin/python2.0: not found "/usr/ports/Mk/bsd.python.mk", line 131: warning: "/usr/local/bin/python2.0 -c 'import sys; print sys.platform'" returned non-zero status /usr/local/bin/python2.0: not found etc. >How-To-Repeat: 1. Ensure python-2.0 is NOT installed. 2. # cd /usr/ports/lang/python 3. # make fetch-list # or whatever 4. View exciting warnings. >Fix: The below patch silences the warnings, although perhaps PYTHON_PLATFORM should be set to some default value, if python can't be found... although, I can't actually see the use of any of those variables if python isn't installed.... --- Mk/bsd.python.mk.old Tue Apr 3 16:21:41 2001 +++ Mk/bsd.python.mk Tue Apr 3 16:23:55 2001 @@ -128,7 +128,9 @@ PYTHON_INCLUDEDIR= ${LOCALBASE}/include/${PYTHON_VERSION} PYTHON_LIBDIR= ${LOCALBASE}/lib/${PYTHON_VERSION} PYTHON_PKGNAMEPREFIX= py${PYTHON_SUFFIX}- +.if exists(${PYTHON_CMD}) PYTHON_PLATFORM!= ${PYTHON_CMD} -c 'import sys; print sys.platform' +.endif PYTHON_SITELIBDIR= ${PYTHON_LIBDIR}/site-packages # dependencies >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010403152726.23780.qmail>