ports/163743: FreeBSD Port devel/py-sip OPTIONSFILE Patch
A.J. Kehoe IV (Nanoman)
vOo4vyPj at nanoman.ca
Sat Dec 31 22:20:08 UTC 2011
>Number: 163743
>Category: ports
>Synopsis: FreeBSD Port devel/py-sip OPTIONSFILE Patch
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 31 22:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: A.J. Kehoe IV (Nanoman)
>Release: 8.2
>Organization:
Nanoman's Company
>Environment:
FreeBSD localhost 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:07:27 UTC 2011 root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Some ports management scripts override the default "OPTIONSFILE" for each port by defining it as an environment variable. In the devel/py-sip Makefile, this is overridden, thus causing problems for some ports management scripts.
>How-To-Repeat:
1. Install a ports management script that overrides the default "OPTIONSFILE" for each port.
2. cd /usr/ports/devel/py-sip
3. OPTIONSFILE="/example/options" make config
4. Notice that "/example/options" was not created.
>Fix:
mv /usr/ports/devel/py-sip/Makefile /usr/ports/devel/py-sip/Makefile.old
sed 's/^OPTIONSFILE=/OPTIONSFILE?=/' /usr/ports/devel/py-sip/Makefile.old > /usr/ports/devel/py-sip/Makefile
Patch attached with submission follows:
--- ports/devel/py-sip/Makefile.old 2010-05-11 06:43:07.000000000 -0400
+++ ports/devel/py-sip/Makefile 2011-12-31 17:12:31.000000000 -0500
@@ -21,7 +21,7 @@
DATADIR= ${PREFIX}/share/py-${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
-OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR}\
-e ${PYTHONPREFIX_INCLUDEDIR} -v ${DATADIR}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list