# Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2
+ 11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> -modules/builder.py,
+ modules/catalyst/arch/__init__.py, modules/catalyst/arch/alpha.py,
+ modules/catalyst/arch/amd64.py, modules/catalyst/arch/arm.py,
+ modules/catalyst/arch/hppa.py, modules/catalyst/arch/ia64.py,
+ modules/catalyst/arch/mips.py, modules/catalyst/arch/powerpc.py,
+ modules/catalyst/arch/s390.py, modules/catalyst/arch/sh.py,
+ modules/catalyst/arch/sparc.py, modules/catalyst/arch/x86.py:
+ Remove builder.py and all references
+
11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org>
modules/catalyst/arch/__init__.py, modules/catalyst/arch/alpha.py,
modules/catalyst/arch/arm.py, modules/catalyst/arch/hppa.py,
+++ /dev/null
-
-class generic:
- def __init__(self,myspec):
- self.settings=myspec
- def mount_safety_check(self):
- """
- Make sure that no bind mounts exist in chrootdir (to use before
- cleaning the directory, to make sure we don't wipe the contents of
- a bind mount
- """
- pass
- def mount_all(self):
- """do all bind mounts"""
- pass
- def umount_all(self):
- """unmount all bind mounts"""
- pass
"happens due to a syntax error, which should be reported as " \
"a bug.")
return self._arch_modules
+
+class generic_arch:
+
+ def __init__(self, myspec):
+ self.settings = myspec
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_alpha(builder.generic):
+class generic_alpha(catalyst.arch.generic_arch):
"abstract base class for all alpha builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CFLAGS"]="-mieee -pipe"
-import builder
+import catalyst.arch
-class generic_amd64(builder.generic):
+class generic_amd64(catalyst.arch.generic_arch):
"abstract base class for all amd64 builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
class arch_amd64(generic_amd64):
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_arm(builder.generic):
+class generic_arm(catalyst.arch.generic_arch):
"Abstract base class for all arm (little endian) builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CXXFLAGS"]="-O1 -pipe"
-class generic_armeb(builder.generic):
+class generic_armeb(catalyst.arch.generic_arch):
"Abstract base class for all arm (big endian) builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CXXFLAGS"]="-O1 -pipe"
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_hppa(builder.generic):
+class generic_hppa(catalyst.arch.generic_arch):
"Abstract base class for all hppa builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CXXFLAGS"]="-O2 -pipe"
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class arch_ia64(builder.generic):
+class arch_ia64(catalyst.arch.generic_arch):
"builder class for ia64"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CFLAGS"]="-O2 -pipe"
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_mips(builder.generic):
+class generic_mips(catalyst.arch.generic_arch):
"Abstract base class for all mips builders [Big-endian]"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CHOST"]="mips-unknown-linux-gnu"
-class generic_mipsel(builder.generic):
+class generic_mipsel(catalyst.arch.generic_arch):
"Abstract base class for all mipsel builders [Little-endian]"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
self.settings["CHOST"]="mipsel-unknown-linux-gnu"
-import os,builder
+import os,catalyst.arch
from catalyst.support import *
-class generic_ppc(builder.generic):
+class generic_ppc(catalyst.arch.generic_arch):
"abstract base class for all 32-bit powerpc builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHOST"]="powerpc-unknown-linux-gnu"
if self.settings["buildarch"]=="ppc64":
if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
else:
self.settings["CHROOT"]="chroot"
-class generic_ppc64(builder.generic):
+class generic_ppc64(catalyst.arch.generic_arch):
"abstract base class for all 64-bit powerpc builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
class arch_ppc(generic_ppc):
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_s390(builder.generic):
+class generic_s390(catalyst.arch.generic_arch):
"abstract base class for all s390 builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
-class generic_s390x(builder.generic):
+class generic_s390x(catalyst.arch.generic_arch):
"abstract base class for all s390x builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
class arch_s390(generic_s390):
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_sh(builder.generic):
+class generic_sh(catalyst.arch.generic_arch):
"Abstract base class for all sh builders [Little-endian]"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
-class generic_sheb(builder.generic):
+class generic_sheb(catalyst.arch.generic_arch):
"Abstract base class for all sheb builders [Big-endian]"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
class arch_sh(generic_sh):
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_sparc(builder.generic):
+class generic_sparc(catalyst.arch.generic_arch):
"abstract base class for all sparc builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
if self.settings["buildarch"]=="sparc64":
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.)"
else:
self.settings["CHROOT"]="chroot"
-class generic_sparc64(builder.generic):
+class generic_sparc64(catalyst.arch.generic_arch):
"abstract base class for all sparc64 builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
self.settings["CHROOT"]="chroot"
class arch_sparc(generic_sparc):
-import builder,os
+import catalyst.arch,os
from catalyst.support import *
-class generic_x86(builder.generic):
+class generic_x86(catalyst.arch.generic_arch):
"abstract base class for all x86 builders"
def __init__(self,myspec):
- builder.generic.__init__(self,myspec)
+ catalyst.arch.generic_arch.__init__(self,myspec)
if self.settings["buildarch"]=="amd64":
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.)"