Running pkgorder on i386 for x86_64 distro

Orion Poplawski orion at cora.nwra.com
Tue May 25 17:14:48 UTC 2004


Is it possible to run pkgorder on an i386 FC1 machine for an x86_64 
distro?  I'm trying to build our custom x86_64 distribution but getting 
the following:

# /usr/lib/anaconda-runtime/pkgorder 
/export/matchbox1/fedora/2/x86_64/cora/ x86_64 Fedora
kernel-smp
<type 'str'>
Traceback (most recent call last):
   File "/usr/lib/anaconda-runtime/pkgorder", line 184, in ?
     pkgOrder.append(hdlist[package].nevra())
   File "/usr/lib/anaconda/hdrlist.py", line 390, in __getitem__
     raise KeyError, "No such package %s" %(item,)
KeyError: No such package kernel-smp

It seems that in /usr/lib/anaconda/hdrlist.py it is getting information 
about the system from some other source (rhpl.arch) than the command 
line option. e.g.:


     def getBestNevra(self, item, prefArch = None):
         bestscore = 0
         bestpkg = None

         if not self.pkgnames.has_key(item):
             return None

         # the best nevra is going to be defined by being 1) the best match
         # for the primary arch (eg, x86_64 on AMD64, ppc on pSeries) and
         # if that fails, fall back to the canonical (which could be the 
same)
         # This will allow us to get the best package by name for both
         # system packages and kernel while not getting the secondary arch
         # glibc.
         if prefArch is not None:
             arches = (prefArch, )
         elif rhpl.arch.getBaseArch() != rhpl.arch.canonArch:
             arches = (rhpl.arch.getBaseArch(), rhpl.arch.canonArch)
         else:
             arches = (rhpl.arch.canonArch, )
         for basearch in arches:
             for (nevra, arch) in self.pkgnames[item]:
                 score = rhpl.arch.archDifference(basearch, arch)
                 if not score:
                     continue
                 if (bestscore == 0) or (score < bestscore):
                     bestpkg = nevra
                     bestscore = score
             if bestpkg is not None:
                 return bestpkg
         return bestpkg


-- 
Orion Poplawski
System Administrator                   303-415-9701 x222
Colorado Research Associates/NWRA      FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com





More information about the users mailing list