Remove builder.py and all references
authorAndrew Gaffney <agaffney@gentoo.org>
Sun, 11 Jan 2009 02:44:20 +0000 (20:44 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sun, 11 Jan 2009 02:44:20 +0000 (20:44 -0600)
14 files changed:
ChangeLog
modules/builder.py [deleted file]
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

index 0333cffb4ac7047b5d38a6ee2f11b939a5d57924..39ad31b572408c7071402139d3c2a45a6653f54d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,15 @@
 # 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,
diff --git a/modules/builder.py b/modules/builder.py
deleted file mode 100644 (file)
index a1cf73c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-
-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
index 173dddb03502427cb18af682b43353dbf6e0813d..f421e60bc296366ad85641b27ba1f051b219de3b 100644 (file)
@@ -28,3 +28,8 @@ class arches:
                                        "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
index 884b9d2e6843604cccc4d0fb2d0373a430289e90..9bcf229fd7837d17305fbac908aef5f3be195db3 100644 (file)
@@ -1,11 +1,11 @@
 
-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"
 
index 450e56a69c2c0cddfd6d378df68ff13697d72dfc..3743ef7667c8071989f1d5d31c87cc0aee7e4319 100644 (file)
@@ -1,10 +1,10 @@
 
-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):
index e90625df24608f8e07ec5c54f925fb00375f619c..470868a8c6a65c707f9ccb88945118bd09c33f37 100644 (file)
@@ -1,19 +1,19 @@
 
-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"
index 66049994732705dc74127dfaf294b901861074b3..be382cbc3d40b7b8fe1f5ed6f28d87e676a71197 100644 (file)
@@ -1,11 +1,11 @@
 
-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"
index 791c646c14c612a79972b87c21bf1c26c69f8ee6..cf74a8a611b4557829674b9784b5dba77e063c7e 100644 (file)
@@ -1,11 +1,11 @@
 
-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"
index 649cf74b65c3fd8574263810d8e2ae4efd25feb2..ff770d53875d904d025da6b9acc3305000db54f8 100644 (file)
@@ -1,18 +1,18 @@
 
-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"
 
index bbbcb81c2e648dd27188e4d495c57d4e1e29ca09..50c848dc0f0273367d7840e8b5f99a897183bc3d 100644 (file)
@@ -1,11 +1,11 @@
 
-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"):
@@ -15,10 +15,10 @@ class generic_ppc(builder.generic):
                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):
index 4ccff2240f127af96ec2bc6ad0def78ab884c5da..6c652c4ca2950fa249762272410d33438f61328b 100644 (file)
@@ -1,17 +1,17 @@
 
-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):
index 05b2b1fe7e4b9c7dad4ec8b088c85b7fc4173e22..0c7690badce737d3c0d32aee3324a5124df18ade 100644 (file)
@@ -1,17 +1,17 @@
 
-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):
index 9cb93a03bfcee80ad0554dd6a1d3a442b6ca49f7..9404caf31ceead8a1bea008cdc871204a08cf6d9 100644 (file)
@@ -1,11 +1,11 @@
 
-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.)"
@@ -14,10 +14,10 @@ class generic_sparc(builder.generic):
                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):
index a260074a79dbdc9a5fee567ce03435d943140200..dac91f8ede3a7495868e30cb74f706f1db2b872e 100644 (file)
@@ -1,11 +1,11 @@
 
-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.)"