Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2011 12:47:20 +0800
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/163231: [patch] audio/py-mad: respect CC & LOCALBASE
Message-ID:  <1RaLUM-000H7d-OP@internal.tormail.net>
Resent-Message-ID: <201112130610.pBD6ADV4090314@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RaLUM-000H7d-OP>