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
On Wednesday 17 April 2002 21:57, drobbins wrote:
> Hiya, > > We now have a system in place for handling/detecting the current system > architecture inside ebuilds: the ARCH variable. The ARCH variable is > set in your respective profile/make.defaults file, and has one of the > following settings: > > x86 Standard PC > sparc Sparc (32-bit) > sparc64 Sparc (64-bit) > ppc PowerPC > > You can test and use the ARCH flag in ebuilds as follows: > > if [ "$ARCH" = "ppc" ] > then > foo > else > bar > fi > > These changes are 100% backwards compatible and no new Portage version > is needed to use the new ARCH variable. Appropriate new lines have been > added to all the current profiles in /usr/portage/profiles, so ARCH is > ready for use after a cvs update. Enjoy! > > Best Regards,
-- Pieter Van den Abeele pvdabeel@××××××.be