Date: Sun, 30 Jul 2006 13:55:21 +0200 From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> To: =?UTF-8?B?R8OhYm9yIEvDtnZlc2TDoW4=?= <gabor@FreeBSD.org> Cc: Jeremy Messenger <mezz7@cox.net>, freebsd-ports@FreeBSD.ORG, portmgr@freebsd.org Subject: Re: graphics/png - CC Message-ID: <44CC9E29.1080608@gmx.de> In-Reply-To: <44CBD172.9030605@FreeBSD.org> References: <44C9DB7A.6030101@gmx.de> <20060728233514.GB17551@nagual.pp.ru> <op.tdgqd9nq9aq2h7@mezz.mezzweb.com> <20060729182049.GA36524@nagual.pp.ru> <44CBA87C.8080102@gmx.de> <op.tdgu45wz9aq2h7@mezz.mezzweb.com> <20060729202002.GA37671@nagual.pp.ru> <44CBCF5B.6070407@gmx.de> <44CBD172.9030605@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I have finally found the reason for all this. In my make.conf I have set WRKDIRPREFIX=/usr/obj because /usr/ports is a read only nfs mount. Also it makes cleaning everything up a lot faster (than running 'make clean' in /usr/ports). Now I have in my make.conf something like this: if ${.CURDIR:M/usr/ports/*} CC= distcc cc .endif It's actually more complex, but that's what it comes down to. If I now do that: # cd /usr/ports/graphics/png; make -V CC distcc cc I can see that the ports makefile has the right CC setting. However, the file /usr/obj/usr/ports/graphics/png/work/libpng-1.2.12/scripts/makefile.freebsd will read make.conf again and this time CC will not be set. Thus make will fall back to the default. As I said before this is because CC is only forwarded to the configure script by bsd.port.mk . The do-build target doesn't forward CC to the makefile. However it forwards command line parameters, so that the problem doesn't appear when running 'make CC="distcc cc"'. Weather that should be fixed in the port or in bsd.port.mk, should, I think be said by portmgr (CC). Probably several ports are affected, thus I'd prefer a solution in bsd.port.mk.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44CC9E29.1080608>