From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QayJt-0007zg-HQ for garchives@archives.gentoo.org; Sun, 26 Jun 2011 23:00:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 383071C00F; Sun, 26 Jun 2011 23:00:28 +0000 (UTC) Received: from foo.stuge.se (foo.stuge.se [212.181.44.140]) by pigeon.gentoo.org (Postfix) with SMTP id 9DBD21C00F for ; Sun, 26 Jun 2011 23:00:27 +0000 (UTC) Received: (qmail 3460 invoked by uid 501); 26 Jun 2011 23:00:24 -0000 Message-ID: <20110626230024.3459.qmail@stuge.se> Date: Mon, 27 Jun 2011 01:00:24 +0200 From: Peter Stuge To: gentoo-catalyst@lists.gentoo.org Subject: Re: [gentoo-catalyst] [rfc] Compile flag derivation logic (catalyst 2.x) Mail-Followup-To: gentoo-catalyst@lists.gentoo.org References: <4E0693B6.1010304@gentoo.org> <4E069CD1.3040208@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E069CD1.3040208@gentoo.org> X-Archives-Salt: X-Archives-Hash: 737bf2750bb088caabd939444e75b955 Sebastian Pipping wrote: > >> Targets "stage3", "stage4", "generic_stage" > >> 1) key "CFLAGS" subarch defaults > >> 2) key "CFLAGS" earlier /etc/make.conf > > > > Are you saying that cflags specified in the spec file are totally > > ignored for stage3 and stage4? That seems totally broken. > > That's my impression, yes. Remember that the "proper" way to use catalyst is to build not only the stage that you want but also those preceding it. So if you want a stage4 then you should also build 1-2-3 first. Considering that, it's not actually that bad an idea to only have CFLAGS set while building stage 2, and later re-use that setting. That said, this is kinda limited. I'm lazy so when I build my stage4 I start from a ready-made stage3 like I would on a manual install, and sometimes I run into trouble because of it (perl 5.8->5.12 and needing to hack perl-cleaner into the stage4 script), and I was indeed expecting that my spec cflags would apply at least for what got built in my stage4. //Peter