ports/163745: FreeBSD Port devel/py-qt4-dbus OPTIONSFILE Patch

A.J. Kehoe IV (Nanoman) Jcb28FDH at nanoman.ca
Sat Dec 31 22:30:12 UTC 2011


>Number:         163745
>Category:       ports
>Synopsis:       FreeBSD Port devel/py-qt4-dbus 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:30:12 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-qt4-dbus 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-qt4-dbus

3. OPTIONSFILE="/example/options" make config

4. Notice that "/example/options" was not created.
>Fix:
mv /usr/ports/devel/py-qt4-dbus/Makefile /usr/ports/devel/py-qt4-dbus/Makefile.old

sed 's/^OPTIONSFILE=/OPTIONSFILE?=/' /usr/ports/devel/py-qt4-dbus/Makefile.old > /usr/ports/devel/py-qt4-dbus/Makefile

Patch attached with submission follows:

--- ports/devel/py-qt4-dbus/Makefile.old	2011-10-16 18:50:45.000000000 -0400
+++ ports/devel/py-qt4-dbus/Makefile	2011-12-31 17:23:35.000000000 -0500
@@ -34,7 +34,7 @@
 		TRACING	"Enable tracing in generated code" off
 
 PATCHDIR=	${PORTSDIR}/devel/py-qt4-core/files
-OPTIONSFILE=	${PORT_DBDIR}/py-qt4-${PORTNAME}/options
+OPTIONSFILE?=	${PORT_DBDIR}/py-qt4-${PORTNAME}/options
 CONFIGURE_ENV+=	PYQT4_COMPONENT="${PORTNAME}"
 ARGS=		-b ${PREFIX}/bin\
 		-d ${PYTHONPREFIX_SITELIBDIR}\


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list