buildroots.xml and packages have to be in same location?

Dan Williams dcbw at redhat.com
Tue Mar 15 15:37:20 UTC 2005


On Tue, 2005-03-15 at 09:27 -0500, seth vidal wrote:
> On Tue, 2005-03-15 at 08:13 -0500, Dan Williams wrote:
> > Seth,
> > 
> > Using your mach SRPM and buildroots file, I had to actually pull down all the 
> > packages locally and place the buildroots.xml file in the same dir as the 
> > packages, then run createrepo on it before it would take (obviously pointing 
> > mach to the local files as the yumsource).
> > 
> > It seems that (unless I'm mistaken) the buildroots.xml file needs to be in any 
> > repo that I'd point mach to?  Is that correct?  Is there no way of keeping the 
> > buildroots.xml file locally, or at some other site, separate from the actual 
> > packages?
> 
> did you look at the 'buildgroups' repo I have in the fedore core
> development mach dist.d file?
> 
> You can simply list them there, in a repository empty of files, and yum
> pulls it in.

I tried doing exactly that:

(from dist.d/aurora-2-sparc)
yumsources['aurora-2-sparc'] = {
    'core':             'rpm ' + aurora + ' / core',
    'buildgroups':      'rpm ' + buildgroups + ' /i386/ groups',
}

(from location)
# Fedora Core; this location should contain versioned directions
aurora      = 'http://download.wpi.edu/pub/linux/distributions/aurora/corona/sparc/os/Fedora/RPMS'

# build groups
buildgroups = 'http://linux.duke.edu/~skvidal/mach/'


but this results in the following error:

Preparing root
Installing group 'minimal' ...!
error: /usr/sbin/mach-helper yum --installroot /build/lib/mach/roots/aurora-2-sparc-core -c /build/lib/mach/states/aurora-2-sparc-core/yum.conf groupinstall build-minimal failed.
 Setting up Group Process
Setting up Repos
core                      100% |=========================|  903 B    00:00
Error: No Groups on which to run command

ERROR: Could not get build-minimal

The yum.repo file that the config file points to looks like this:
[core]
name=core
baseurl=http://download.wpi.edu/pub/linux/distributions/aurora/corona/sparc/os/Fedora/RPMS//
enabled=1
gpgcheck=0

How is yum going to find the group information at Duke if its not anywhere in the yum.repo file?

Dan





More information about the Fedora-buildsys-list mailing list