Mock build problem

cranium2003 cranium2003 at yahoo.com
Fri Jun 16 10:10:15 UTC 2006


hi,
--- Paul Howarth <paul at city-fan.org> wrote:

> 
> Right. The bad news then is that your mirror of
> fedora-development is 
> useless to you.
> 
> You will need local mirrors/repos for FC5 i386
> [core], FC5 i386 
> [updates-released], FC5 i386 [extras], and FC5 i386
> [groups].
> 
> You can use your FC5 ISO image(s) as a local [core]
> repo:
> http://www.city-fan.org/tips/YumRepoFromImages
> 
> To make the FC5 updates and extras mirrors, you'll
> need in your 
> fedora-mirror script:
> 
> flavourlist=["extras", "updates"]
> versionlist=["5"]
> archlist=["i386"]
> subflavourlist=["binary"]
> 
> You will need to create mirror repo files too.
> Copy fedora-updates.repo to
> mirror-fedora-updates.repo and copy 
> fedora-extras.repo to mirror-fedora-extras.repo. In
> the mirror-*.repo 
> files, edit the repo IDs (the names in square
> brackets) by putting 
> "mirror-" in front of them (like you did with the 
> mirror-fedora-development repo file), so for
> instance
> [updates] gets changed to [mirror-updates].
> 
> You should then be able to run fedora-mirror to
> create and keep up to 
> date your local FC5 mirrors.
> 
> As for the local [groups] mirror, create it as
> follows:
> 
> # cd /home/source/fedora
> # mkdir -p 5/core/i386/groups
> # mv development/core/i386/*/minimal.xml
> 5/core/i386/groups
> # cd 5/core/i386/groups
> # wget 
>
http://fedoraproject.org/buildgroups/5/i386/buildsys-macros-5-2.fc5.noarch.rpm
> # wget 
>
http://fedoraproject.org/buildgroups/5/i386/buildsys-macros-5-2.fc5.src.rpm
> # createrepo -g minimal.xml .
> 
> 
> The mock config file (fedora-5-i386-core.cfg) should
> look like:
> 
> #!/usr/bin/python -tt
> 
> import os
> config_opts['root'] = 'fedora-development-i386-core'
> config_opts['basedir'] = '/var/lib/mock/'
> config_opts['chroot'] = '/usr/sbin/mock-helper
> chroot'
> config_opts['mount'] = '/usr/sbin/mock-helper mount'
> config_opts['umount'] = '/usr/sbin/mock-helper
> umount'
> config_opts['rm'] = '/usr/sbin/mock-helper rm'
> config_opts['mknod'] = '/usr/sbin/mock-helper mknod'
> config_opts['yum'] = '/usr/sbin/mock-helper yum'
> config_opts['runuser'] = '/sbin/runuser'
> config_opts['buildgroup'] = 'build'
> config_opts['chrootuser'] = 'mockbuild'
> config_opts['chrootgroup'] = 'mockbuild'
> config_opts['chrootuid'] = os.geteuid()
> config_opts['chrootgid'] = os.getegid()
> config_opts['chroothome'] = '/builddir'
> config_opts['clean'] = True
> config_opts['target_arch'] = 'i386'
> 
> 
> config_opts['yum.conf'] = """
> [main]
> cachedir=/var/cache/yum
> debuglevel=1
> reposdir=/dev/null
> logfile=/var/log/yum.log
> retries=20
> obsoletes=1
> gpgcheck=0
> assumeyes=1
> 
> # repos
> 
> [core]
> name=core
>
#baseurl=http://newmirror.linux.duke.edu/pub/fedora/linux/core/development/i386
>
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-5
>
baseurl=file:///home/source/fedora/5/core/i386/mirror-core
> 
> [updates-released]
> name=updates
>
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc5
>
baseurl=file:///home/source/fedora/5/updates/i386/mirror-updates
> 
> [groups]
> name=groups
>
#baseurl=http://buildsys.fedoraproject.org/buildgroups/5/i386/
>
baseurl=file:///home/source/fedora/5/core/i386/groups
> 
> [extras]
> name=extras
>
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-5
>
baseurl=file:///home/source/fedora/5/extras/i386/mirror-extras
> 
> [local]
> name=local
>
baseurl=http://extras64.linux.duke.edu/plague-results/fedora-5-extras
> enabled=0
> 
> """
> 
> 
> That assumes that you created your local FC5 core
> repo at 
> /home/source/fedora/5/core/i386/mirror-core.

     Can you also tell me what will be final
fedora-development-i386-core.cfg file, if i decide to
use development version instead of FC5?? Can it be ok
to replace 5 with development and install development
repositories at those locations like
core
extras
group
but what will be url for updates and local for
development repository?
      

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the fedora-extras-list mailing list