From owner-freebsd-ports@FreeBSD.ORG Sat Jul 29 21:13:09 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 9299016A4EF for ; Sat, 29 Jul 2006 21:13:09 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id A8A5B43D55 for ; Sat, 29 Jul 2006 21:13:07 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 29 Jul 2006 21:13:05 -0000 Received: from p54A7E4DB.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.228.219] by mail.gmx.net (mp018) with SMTP; 29 Jul 2006 23:13:05 +0200 X-Authenticated: #5465401 Message-ID: <44CBCF5B.6070407@gmx.de> Date: Sat, 29 Jul 2006 23:12:59 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Andrey Chernov , Jeremy Messenger , freebsd-ports@FreeBSD.ORG References: <44C9DB7A.6030101@gmx.de> <20060728233514.GB17551@nagual.pp.ru> <20060729182049.GA36524@nagual.pp.ru> <44CBA87C.8080102@gmx.de> <20060729202002.GA37671@nagual.pp.ru> In-Reply-To: <20060729202002.GA37671@nagual.pp.ru> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: 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: Sat, 29 Jul 2006 21:13:09 -0000 Andrey Chernov wrote: > On Sat, Jul 29, 2006 at 02:59:19PM -0500, Jeremy Messenger wrote: >> On Sat, 29 Jul 2006 13:27:08 -0500, [LoN]Kamikaze >> wrote: >> >>> Andrey Chernov wrote: >>>> On Sat, Jul 29, 2006 at 01:16:47PM -0500, Jeremy Messenger wrote: >>>>> On Fri, 28 Jul 2006 18:35:14 -0500, Andrey Chernov >>>>> wrote: >>>>> >>>>>> On Fri, Jul 28, 2006 at 11:40:10AM +0200, [LoN]Kamikaze wrote: >>>>>>> The port graphics/png does not honour the CC Variable. >>>>>> I can't reproduce that, it honors CC for me. >>>>> I can, CC=gcc will not change the CC when it compiles. >>>> It is hard to imagine how it is ever possible. There is standard BSD >>>> makefile.freebsd which not owervrites CC as you can see in the file. >> No idea, I don't know png's build system so that cc must be come from >> somewhere. >> >>> Is it possible that make.conf is read again? >> I think, add "CC=${CC}" in graphics/png/Makefile's MAKE_ENV at 31 line >> should do. > > It will be hack for reason unknown, I prefer to avoid that. > I normally set CC to anything and it honors. > I never heard from somebody other than you about that problem. > You should inspect your build path step by step to find real reason of > that bag, only after that we can find the real fix. > The problem is there, without doubt. Normally bsd.port.mk only forwards CC to the configure script (look for the do-configure target). Since the configure target is omitted the port will not receive CC. This is why it has to be included into the make environment. I.e. with MAKE_ENV+= CC="${CC}" This is not a hack, but a necessity, due to the lack of a configure step.