Gentoo Archives: gentoo-catalyst

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

Replies

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