ports/163231: [patch] audio/py-mad: respect CC & LOCALBASE
Jan Beich
jbeich at tormail.net
Tue Dec 13 06:10:15 UTC 2011
>Number: 163231
>Category: ports
>Synopsis: [patch] audio/py-mad: respect CC & LOCALBASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 13 06:10:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
config_unix.py script wants to find mad headers under --prefix,
which are installed under LOCALBASE. OTOH, do-install uses setup.py
and installs under PYTHONPREFIX_SITELIBDIR.
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/py27-mad-0.6_1.log
$ make install PREFIX=/foo
>Fix:
--- cc.diff begins here ---
Index: audio/py-mad/Makefile
===================================================================
RCS file: /a/.csup/ports/audio/py-mad/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- audio/py-mad/Makefile 23 May 2010 21:16:05 -0000 1.17
+++ audio/py-mad/Makefile 13 Dec 2011 04:41:09 -0000
@@ -28,6 +28,6 @@ post-patch:
${WRKSRC}/setup.py
do-configure:
- @cd ${WRKSRC} && ${PYTHON_CMD} config_unix.py --prefix ${PREFIX}
+ @cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} config_unix.py --prefix ${LOCALBASE}
.include <bsd.port.mk>
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list