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 1RGErr-0005YM-4y for garchives@archives.gentoo.org; Tue, 18 Oct 2011 18:58:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42D9621C1BD; Tue, 18 Oct 2011 18:58:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1697521C1BD for ; Tue, 18 Oct 2011 18:58:17 +0000 (UTC) Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mattst88) by smtp.gentoo.org (Postfix) with ESMTPSA id 6F1B61B400B for ; Tue, 18 Oct 2011 18:58:16 +0000 (UTC) Received: by vcbfk14 with SMTP id fk14so1259764vcb.40 for ; Tue, 18 Oct 2011 11:58:14 -0700 (PDT) Received: by 10.52.72.196 with SMTP id f4mr3919376vdv.68.1318964294089; Tue, 18 Oct 2011 11:58:14 -0700 (PDT) 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 Received: by 10.52.187.38 with HTTP; Tue, 18 Oct 2011 11:57:54 -0700 (PDT) In-Reply-To: References: From: Matt Turner Date: Tue, 18 Oct 2011 14:57:54 -0400 Message-ID: Subject: Re: [gentoo-catalyst] Setting cflags for a single package in spec file To: gentoo-catalyst@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: X-Archives-Hash: 607d7f28e0d9784aec6370eb28da7f98 On Tue, Oct 18, 2011 at 2:15 PM, Garrity, Christopher wrote: > > Is there a way to set cflags for just a single package inside the spec file? > I don't need/want to override cflags for all packages, just one. > net-ftp/tftp-hpa-5.1 is causing my netboot2 target to fail because of a bug > related to -O2 and gcc-4.5.3 :( Not in the spec file directly. What I would do is set portage_confdir in the spec file, ie portage_confdir: /directory/containing/etc/portage And inside your confdir, set CFLAG exceptions as described here: http://www.gentoo-wiki.info/CflagsExceptions Let us know if that works for you. Matt