From owner-freebsd-ports@FreeBSD.ORG Sun Jul 30 11:55:30 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.ORG Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EA4516A4DE for ; Sun, 30 Jul 2006 11:55:30 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 39D4243D46 for ; Sun, 30 Jul 2006 11:55:28 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 30 Jul 2006 11:55:27 -0000 Received: from p54A7D5EA.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.213.234] by mail.gmx.net (mp028) with SMTP; 30 Jul 2006 13:55:27 +0200 X-Authenticated: #5465401 Message-ID: <44CC9E29.1080608@gmx.de> Date: Sun, 30 Jul 2006 13:55:21 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: =?UTF-8?B?R8OhYm9yIEvDtnZlc2TDoW4=?= References: <44C9DB7A.6030101@gmx.de> <20060728233514.GB17551@nagual.pp.ru> <20060729182049.GA36524@nagual.pp.ru> <44CBA87C.8080102@gmx.de> <20060729202002.GA37671@nagual.pp.ru> <44CBCF5B.6070407@gmx.de> <44CBD172.9030605@FreeBSD.org> In-Reply-To: <44CBD172.9030605@FreeBSD.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: Jeremy Messenger , freebsd-ports@FreeBSD.ORG, portmgr@freebsd.org Subject: Re: graphics/png - CC X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2006 11:55:30 -0000 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.