linux32 fix
authorDaniel Robbins <drobbins@gentoo.org>
Thu, 6 Nov 2003 02:53:28 +0000 (02:53 +0000)
committerDaniel Robbins <drobbins@gentoo.org>
Thu, 6 Nov 2003 02:53:28 +0000 (02:53 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@55 d1e1f19c-881f-0410-ab34-b69fee027534

arch/x86.py

index f85919c0fd9e01567c076447752774f9bc8a82ad..0a8fe82343c676093e4254266668a213ede8f4e9 100644 (file)
@@ -1,4 +1,4 @@
-import builder
+import builder,os
 
 # This module defines the various "builder" classes for the various x86
 # sub-arches. For example, we have a class to handle building of Pentium 4
@@ -14,6 +14,8 @@ class generic_x86(builder.generic):
                builder.generic.__init__(self,myspec)
                self.settings["mainarch"]="x86"
                if self.settings["hostarch"]=="amd64":
+                       if not os.path.exists("/usr/bin/linux32"):
+                               raise CatalystError,"required /usr/bin/linux32 executable not found (\"emerge linux32\" to fix.)"
                        self.settings["CHROOT"]="linux32 chroot"
                else:
                        self.settings["CHROOT"]="chroot"