Gentoo Archives: gentoo-catalyst

From: Tom Stellard <tstellar@×××××.com>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] Re: How to enable/disable FEATURES in spec files?
Date: Tue, 13 Jul 2010 15:02:47
Message-Id: 20100713145402.GA16977@thinkpadr51e.hsd1.or.comcast.net
In Reply to: [gentoo-catalyst] Re: How to enable/disable FEATURES in spec files? by Matt Turner
1 On Tue, Jul 13, 2010 at 09:30:43AM -0400, Matt Turner wrote:
2 > On Fri, Jul 9, 2010 at 8:54 PM, Matt Turner <mattst88@×××××.com> wrote:
3 > > I'm trying to build some new MIPS stages, and need to disable sandbox
4 > > from FEATURES due to bug 45814.
5 > >
6 > > I've searched google and the catalyst source but don't see any way to
7 > > disable an arbitrary FEATURE flag. I just hacked in a -sandbox and it
8 > > works, but I'd like to think there's a better way.
9 > >
10 > > Also, since there are no recent MIPS-N32 stages, I just tar.bz2'd my
11 > > installation and put it in the builds/ directory for use as the seed
12 > > stage. It uses -march=sb1 in the make.conf, and the packages built by
13 > > `catalyst -f file.spec` seem to be using this CFLAG (as shown by the
14 > > file command, which reports that the binaries produced are MIPS64,
15 > > instead of MIPS IV, as I've requested), even though I've specified
16 > > CFLAGS in the spec file, and given it a proper subarch. Spec file is
17 > > as follows
18 > >
19 > > ---
20 > > subarch: mips4_n32
21 > > version_stamp: 20100709
22 > > target: stage3
23 > > rel_type: default
24 > > profile: default/linux/mips/10.0/n32
25 > > snapshot: 20100907
26 > > source_subpath: stage4-mips4_n32-sb1-20100907
27 > > cflags: -O2 -march=mips4 -mabi=n32 -mplt -pipe
28 > > cxxflags: -O2 -march=mips4 -mabi=n32 -mplt -pipe
29 > > ldflags: -Wl,--as-needed
30 > >
31 > > makeopts: -j2
32 > > ---
33 > >
34 > > What gives? I'm looking at mips.py, and it looks like it should be
35 > > assigning CFLAGS given subarch = mips4_n32.
36 > >
37 > > Thanks,
38 > > Matt
39 >
40 > Ping?
41 >
42
43 I think you can do this in your catalystrc file. Try something like:
44 export FEATURES="-sandbox"
45
46 -Tom

Replies

Subject Author
Re: [gentoo-catalyst] Re: How to enable/disable FEATURES in spec files? Matt Turner <mattst88@×××××.com>