Gentoo Archives: gentoo-ppc-dev

From: Pieter Van den Abeele <pvdabeel@××××××.be>
To: gentoo-alt@g.o
Cc: gentooppc-dev@g.o, gentooppc-dev@×××××××.dk
Subject: [gentooppc-dev] Fwd: [gentoo-alt] The Gentoo Linux mini-alternate-architecture howto
Date: Wed, 17 Apr 2002 15:08:20
Message-Id: 200204172008.g3HK8Cr04278@riker.skynet.be
1 On Wednesday 17 April 2002 21:57, drobbins wrote:
2 > Hiya,
3 >
4 > We now have a system in place for handling/detecting the current system
5 > architecture inside ebuilds: the ARCH variable. The ARCH variable is
6 > set in your respective profile/make.defaults file, and has one of the
7 > following settings:
8 >
9 > x86 Standard PC
10 > sparc Sparc (32-bit)
11 > sparc64 Sparc (64-bit)
12 > ppc PowerPC
13 >
14 > You can test and use the ARCH flag in ebuilds as follows:
15 >
16 > if [ "$ARCH" = "ppc" ]
17 > then
18 > foo
19 > else
20 > bar
21 > fi
22 >
23 > These changes are 100% backwards compatible and no new Portage version
24 > is needed to use the new ARCH variable. Appropriate new lines have been
25 > added to all the current profiles in /usr/portage/profiles, so ARCH is
26 > ready for use after a cvs update. Enjoy!
27 >
28 > Best Regards,
29
30 --
31 Pieter Van den Abeele
32 pvdabeel@××××××.be