# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 17 Oct 2007; Andrew Gaffney <agaffney@gentoo.org> arch/ppc.py,
+ arch/sparc.py, arch/x86.py:
+ look for linux32 in /bin and /usr/bin
+
12 Oct 2007; Andrew Gaffney <agaffney@gentoo.org>
modules/generic_stage_target.py:
make error message more specific when removing immutable flag
builder.generic.__init__(self,myspec)
self.settings["CHOST"]="powerpc-unknown-linux-gnu"
if self.settings["buildarch"]=="ppc64":
- if not os.path.exists("/bin/linux32"):
- raise CatalystError,"required /bin/linux32 executable not found (\"emerge setarch\" to fix."
+ if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
+ raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
self.settings["CHROOT"]="linux32 chroot"
self.settings["crosscompile"] = False;
else:
def __init__(self,myspec):
builder.generic.__init__(self,myspec)
if self.settings["buildarch"]=="sparc64":
- if not os.path.exists("/bin/linux32"):
- raise CatalystError,"required /bin/linux32 executable not found (\"emerge setarch\" to fix.)"
+ if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
+ raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
self.settings["CHROOT"]="linux32 chroot"
self.settings["crosscompile"] = False;
else:
def __init__(self,myspec):
builder.generic.__init__(self,myspec)
if self.settings["buildarch"]=="amd64":
- if not os.path.exists("/bin/linux32"):
- raise CatalystError,"required /bin/linux32 executable not found (\"emerge setarch\" to fix.)"
+ if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
+ raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
self.settings["CHROOT"]="linux32 chroot"
self.settings["crosscompile"] = False;
else: