Gentoo Archives: gentoo-catalyst

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