ports/161855: [patch] emulators/qemu-devel: respect CC (sgabios)
Nali Toja
nalitoja at gmail.com
Fri Oct 21 05:40:10 UTC 2011
>Number: 161855
>Category: ports
>Synopsis: [patch] emulators/qemu-devel: respect CC (sgabios)
>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: Fri Oct 21 05:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Nali Toja
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++; do ln -s /usr/bin/false ~/.bin/${cc}; done
# everything is `off'
$ make showconfig | fgrep \=on
>Description:
Also, make gmake(1) print directory before desceding into it
gmake: Entering directory `WRKDIR/sgabios-read-only'
As .depend target failed just after `cd' it required a bit of guesswork
to deduce where the error occured.
>How-To-Repeat:
$ printf 'CC=clang\nCXX=clang++\nCPP=clang -E\n' >>/etc/make.conf
$ make V=1
[...]
rm -f .depend
cc -E -M -Wall -Os -m32 -nostdlib sgabios.S >.tmpdepend && mv .tmpdepend .depend
gmake: *** [.depend] Error 1
*** Error code 2
>Fix:
--- cc.diff begins here ---
Index: emulators/qemu-devel/Makefile
===================================================================
RCS file: /a/.csup/ports/emulators/qemu-devel/Makefile,v
retrieving revision 1.128
diff -u -p -r1.128 Makefile
--- emulators/qemu-devel/Makefile 13 Oct 2011 19:08:30 -0000 1.128
+++ emulators/qemu-devel/Makefile 20 Oct 2011 01:30:58 -0000
@@ -193,7 +197,7 @@ post-configure:
.endif
post-build:
- @(cd ${WRKDIR}/sgabios-read-only && ${GMAKE})
+ @${MAKE_ENV} ${GMAKE} -C${WRKDIR}/sgabios-read-only
post-install:
.if !defined(NOPORTDOCS)
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list