ports/77344: bsd.port.mk misses checks for USE_PYTHON_(BUILD|RUN)
Michael Nottebrock
michaelnottebrock at gmx.net
Thu Feb 10 12:10:26 UTC 2005
>Number: 77344
>Category: ports
>Synopsis: bsd.port.mk misses checks for USE_PYTHON_(BUILD|RUN)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 10 12:10:25 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Michael Nottebrock
>Release: FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD kiste 5.3-STABLE FreeBSD 5.3-STABLE #1: Wed Feb 9 18:43:46 CET 2005 root at kiste:/usr/obj/usr/src/sys/KISTE-UP i386
>Description:
bsd.python.mk implements the USE_PYTHON, USE_PYTHON_BUILD and USE_PYTHON_RUN
switches. The two latter only trigger runtime/buildtime dependencies, while
USE_PYTHON entails both.
bsd.port.mk however only checks for USE_PYTHON and does not include bsd.python.mk
if USE_PYTHON_BUILD or USE_PYTHON_RUN are set, thus making those switches effec-
tively unavailable to potential users.
>How-To-Repeat:
>Fix:
--- bpm.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.509
diff -u -r1.509 bsd.port.mk
--- bsd.port.mk 9 Feb 2005 09:07:37 -0000 1.509
+++ bsd.port.mk 10 Feb 2005 11:41:58 -0000
@@ -1300,7 +1300,7 @@
.include "${PORTSDIR}/Mk/bsd.php.mk"
.endif
-.if defined(USE_PYTHON)
+.if defined(USE_PYTHON) || defined(USE_PYTHON_BUILD) || defined(USE_PYTHON_RUN)
.include "${PORTSDIR}/Mk/bsd.python.mk"
.endif
--- bpm.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list