From owner-freebsd-ports@FreeBSD.ORG Sat Jul 29 21:38:00 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 D6E3716A4DE for ; Sat, 29 Jul 2006 21:38:00 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 440BC43D4C for ; Sat, 29 Jul 2006 21:38:00 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 82BB999B53B; Sat, 29 Jul 2006 23:37:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vVGCr-foMDLF; Sat, 29 Jul 2006 23:37:56 +0200 (CEST) Received: from [192.168.2.186] (catv-50635cb6.catv.broadband.hu [80.99.92.182]) by server.t-hosting.hu (Postfix) with ESMTP id 1E9A799B531; Sat, 29 Jul 2006 23:37:56 +0200 (CEST) Message-ID: <44CBD532.1070607@FreeBSD.org> Date: Sat, 29 Jul 2006 23:37:54 +0200 From: =?UTF-8?B?R8OhYm9yIEvDtnZlc2TDoW4=?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: "[LoN]Kamikaze" 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> <44CBD47C.6060209@gmx.de> In-Reply-To: <44CBD47C.6060209@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Jeremy Messenger , freebsd-ports@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: Sat, 29 Jul 2006 21:38:01 -0000 [LoN]Kamikaze wrote: > Gábor Kövesdán wrote: > >> [LoN]Kamikaze wrote: >> >>> 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. >>> >>> >>> >> Then tell me why it works for me and for Andrey. >> >> > > Because your make.conf settings are not location sensitive. Remove the setting from your make.conf and or environment. Then try: > > # make CC=/usr/local/bin/gcc42 > > You will see, it will not have an effect. > It does have. [root@server /home/tux/wrk/ports/graphics/png]# make CC=/usr/local/bin/gcc42 ===> Extracting for png-1.2.8_3 => MD5 Checksum OK for libpng-1.2.8.tar.bz2. => SHA256 Checksum OK for libpng-1.2.8.tar.bz2. ===> Patching for png-1.2.8_3 ===> Applying FreeBSD patches for png-1.2.8_3 ===> Configuring for png-1.2.8_3 ===> Building for png-1.2.8_3 /usr/local/bin/gcc42 -O -pipe -I. -DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE -c png.c /usr/local/bin/gcc42 -O -pipe -I. -DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE -c pngset.c /usr/local/bin/gcc42 -O -pipe -I. -DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE -c pngget.c The CC line in make.conf is commented out this time. -- Cheers, Gabor