* [gentoo-catalyst] Setting cflags for a single package in spec file
@ 2011-10-18 18:15 Garrity, Christopher
2011-10-18 18:57 ` Matt Turner
0 siblings, 1 reply; 5+ messages in thread
From: Garrity, Christopher @ 2011-10-18 18:15 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
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 :(
[-- Attachment #2: Type: text/html, Size: 675 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-catalyst] Setting cflags for a single package in spec file
2011-10-18 18:15 [gentoo-catalyst] Setting cflags for a single package in spec file Garrity, Christopher
@ 2011-10-18 18:57 ` Matt Turner
2011-10-18 20:04 ` Garrity, Christopher
0 siblings, 1 reply; 5+ messages in thread
From: Matt Turner @ 2011-10-18 18:57 UTC (permalink / raw
To: gentoo-catalyst
On Tue, Oct 18, 2011 at 2:15 PM, Garrity, Christopher
<Christopher.Garrity@networksolutions.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [gentoo-catalyst] Setting cflags for a single package in spec file
2011-10-18 18:57 ` Matt Turner
@ 2011-10-18 20:04 ` Garrity, Christopher
2011-10-18 20:33 ` Matt Turner
0 siblings, 1 reply; 5+ messages in thread
From: Garrity, Christopher @ 2011-10-18 20:04 UTC (permalink / raw
To: gentoo-catalyst
Thanks, that did it!
# grep confdir catalyst-netboot2.spec
portage_confdir: /etc/portage
# find /etc/portage/env -type f -exec cat {} \; -print
CFLAGS="-mtune=core2 -march=core2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
/etc/portage/env/net-ftp/tftp-hpa
My tftp client no longer segs :)
-----Original Message-----
From: Matt Turner [mailto:mattst88@gentoo.org]
Sent: Tuesday, October 18, 2011 2:58 PM
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] Setting cflags for a single package in
spec file
On Tue, Oct 18, 2011 at 2:15 PM, Garrity, Christopher
<Christopher.Garrity@networksolutions.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-catalyst] Setting cflags for a single package in spec file
2011-10-18 20:04 ` Garrity, Christopher
@ 2011-10-18 20:33 ` Matt Turner
2011-10-18 23:58 ` Garrity, Christopher
0 siblings, 1 reply; 5+ messages in thread
From: Matt Turner @ 2011-10-18 20:33 UTC (permalink / raw
To: gentoo-catalyst
On Tue, Oct 18, 2011 at 4:04 PM, Garrity, Christopher
<Christopher.Garrity@networksolutions.com> wrote:
>
> Thanks, that did it!
>
> # grep confdir catalyst-netboot2.spec
> portage_confdir: /etc/portage
>
> # find /etc/portage/env -type f -exec cat {} \; -print
> CFLAGS="-mtune=core2 -march=core2 -pipe -fomit-frame-pointer"
> CHOST="x86_64-pc-linux-gnu"
> CXXFLAGS="${CFLAGS}"
> /etc/portage/env/net-ftp/tftp-hpa
>
> My tftp client no longer segs :)
Great to hear!
Speaking of which, I don't see any bugs reported in the Gentoo bug
tracker. How can I reproduce the seg fault you're seeing? I just
compiled tftp-hpa-5.1 with gcc-4.5.3-r1.
Thanks,
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [gentoo-catalyst] Setting cflags for a single package in spec file
2011-10-18 20:33 ` Matt Turner
@ 2011-10-18 23:58 ` Garrity, Christopher
0 siblings, 0 replies; 5+ messages in thread
From: Garrity, Christopher @ 2011-10-18 23:58 UTC (permalink / raw
To: gentoo-catalyst
https://bugs.gentoo.org/show_bug.cgi?id=357083
does not manifest during compile. tftp <host|ip> -c get foo ... segs on
"get"
-----Original Message-----
From: Matt Turner [mailto:mattst88@gentoo.org]
Sent: Tuesday, October 18, 2011 4:34 PM
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] Setting cflags for a single package in
spec file
On Tue, Oct 18, 2011 at 4:04 PM, Garrity, Christopher
<Christopher.Garrity@networksolutions.com> wrote:
>
> Thanks, that did it!
>
> # grep confdir catalyst-netboot2.spec
> portage_confdir: /etc/portage
>
> # find /etc/portage/env -type f -exec cat {} \; -print
> CFLAGS="-mtune=core2 -march=core2 -pipe -fomit-frame-pointer"
> CHOST="x86_64-pc-linux-gnu"
> CXXFLAGS="${CFLAGS}"
> /etc/portage/env/net-ftp/tftp-hpa
>
> My tftp client no longer segs :)
Great to hear!
Speaking of which, I don't see any bugs reported in the Gentoo bug
tracker. How can I reproduce the seg fault you're seeing? I just
compiled tftp-hpa-5.1 with gcc-4.5.3-r1.
Thanks,
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-18 23:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 18:15 [gentoo-catalyst] Setting cflags for a single package in spec file Garrity, Christopher
2011-10-18 18:57 ` Matt Turner
2011-10-18 20:04 ` Garrity, Christopher
2011-10-18 20:33 ` Matt Turner
2011-10-18 23:58 ` Garrity, Christopher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox