the attached patch makes the calls to anaconda include all sparc 32 bit arches 
when building a sparc tree.  

Without change the treearch to sparcv9v  we would get the small handful of 
sparc packages and noarch.  all the sparcv9 and sparcv9v woule be excluded.

this patch is against master.  there is one for F-9 in fedora cvs 

Dennis
From a11b23bfbe4e517f2a9993c59ee067e68130a46e Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <[EMAIL PROTECTED]>
Date: Wed, 15 Oct 2008 20:41:46 -0500
Subject: [PATCH] add handling so sparc arch gets handled correctly, we need to ensure we include all 32 bit arches

---
 src/pypungi/__init__.py |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py
index 480cbf0..025e1ce 100644
--- a/src/pypungi/__init__.py
+++ b/src/pypungi/__init__.py
@@ -746,13 +746,18 @@ class Pungi(pypungi.PungiBase):
     def doPackageorder(self):
         """Run anaconda-runtime's pkgorder on the tree, used for splitting media."""
 
+        if self.config.get('default', 'arch') == "sparc":
+            treearch = "sparcv9v"
+        else:
+            treearch = self.config.get('default', 'arch')
+        self.logger.info("Setting treearch to %s" % treearch)
 
         pkgorderfile = open(os.path.join(self.workdir, 'pkgorder-%s' % self.config.get('default', 'arch')), 'w')
         # setup the command
         pkgorder = ['/usr/bin/pkgorder']
         #pkgorder.append('TMPDIR=%s' % self.workdir)
         pkgorder.append(self.topdir)
-        pkgorder.append(self.config.get('default', 'arch'))
+        pkgorder.append(treearch)
         pkgorder.append(self.config.get('default', 'product_path'))
 
         # run the command
@@ -821,9 +826,14 @@ class Pungi(pypungi.PungiBase):
         """Use anaconda-runtime's splittree to split the tree into appropriate
            sized chunks."""
 
+        if self.config.get('default', 'arch') == "sparc":
+            treearch = "sparcv9v"
+        else:
+            treearch = self.config.get('default', 'arch')
+        self.logger.info("Setting treearch to %s" % treearch)
 
         timber = splittree.Timber()
-        timber.arch = self.config.get('default', 'arch')
+        timber.arch = treearch
         timber.target_size = self.config.getfloat('default', 'cdsize') * 1024 * 1024
         timber.total_discs = self.config.getint('default', 'discs')
         timber.bin_discs = self.config.getint('default', 'discs')
@@ -846,9 +856,14 @@ class Pungi(pypungi.PungiBase):
         """Use anaconda-runtime's splittree to split the srpms into appropriate
            sized chunks."""
 
+        if self.config.get('default', 'arch') == "sparc":
+            treearch = "sparcv9v"
+        else:
+            treearch = self.config.get('default', 'arch')
+        self.logger.info("Setting treearch to %s" % treearch)
 
         timber = splittree.Timber()
-        timber.arch = self.config.get('default', 'arch')
+        timber.arch = treearch
         #timber.total_discs = self.config.getint('default', 'discs')
         #timber.bin_discs = self.config.getint('default', 'discs')
         timber.src_discs = self.config.getint('default', 'discs')
-- 
1.6.0.1

Attachment: signature.asc
Description: This is a digitally signed message part.

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to