| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.141 2005/01/12 00:21:53 eradicator Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.142 2005/01/23 20:47:42 eradicator Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is for general purpose functions that most ebuilds |
7 | # This eclass is for general purpose functions that most ebuilds |
| 8 | # have to implement themselves. |
8 | # have to implement themselves. |
| … | |
… | |
| 1492 | case ${ARCH} in |
1492 | case ${ARCH} in |
| 1493 | x86) export ARCH="i386";; |
1493 | x86) export ARCH="i386";; |
| 1494 | amd64) export ARCH="x86_64";; |
1494 | amd64) export ARCH="x86_64";; |
| 1495 | hppa) export ARCH="parisc";; |
1495 | hppa) export ARCH="parisc";; |
| 1496 | mips) export ARCH="mips";; |
1496 | mips) export ARCH="mips";; |
|
|
1497 | sparc) export ARCH="$(tc-arch-kernel)";; # Yeah this is ugly, but it's even WORSE if you don't do this. linux-info.eclass's set_arch_to_kernel is fixed, but won't get used over this one! |
| 1497 | *) export ARCH="${ARCH}";; |
1498 | *) export ARCH="${ARCH}";; |
| 1498 | esac |
1499 | esac |
| 1499 | } |
1500 | } |
| 1500 | |
1501 | |
| 1501 | # set's ARCH back to what portage expects |
1502 | # set's ARCH back to what portage expects |