hi, --- Paul Howarth <paul@xxxxxxxxxxxx> wrote: > cranium2003 wrote: > > hi, > > --- Paul Howarth <paul@xxxxxxxxxxxx> wrote: > > > >> cranium2003 wrote: > >>> hi, > >>> --- Paul Howarth <paul@xxxxxxxxxxxx> wrote: > >>> > >>>> On Wed, 2006-06-14 at 21:10 -0700, cranium2003 > >>>> wrote: > >>>>> Hi, > >>>>> I used fedora-mirror.py and downloaded > all > >>>>> repository of FC5 core. Then i created > >> repository > >>>> on > >>>>> downloaded rpms by > >>>>> createrepo Fedora > >>>>> Then i modified fedora-5-i386-core.cfg to have > >> my > >>>>> localpath of repository to be used to build > >>>> package in > >>>>> mock. But still facing issue > >>>>> > >>>>> e.g. when i did su- build and tried to rebuild > >>>>> kdenetwork application i got > >>>>> > >> > ==================================================== > >>>>> [build@localhost SRPMS]$ mock -r > >>>>> fedora-5-i386-core.cfg > >> kdenetwork-3.5.3-2.src.rpm > >>>>> init > >>>>> clean > >>>>> prep > >>>>> This may take a while > >>>>> Error peforming yum command: > >> /usr/sbin/mock-helper > >>>> yum > >>>>> --installroot > >>>>> > /var/lib/mock/fedora-development-i386-core/root > >>>>> groupinstall build-minimal build-base build > >>>>> ending > >>>>> done > >>>>> > > > ======================================================== > >>>>> I am attaching my mock, log files here. > >>>>> wht now i need to use mock command on > local > >>>> system > >>>>> to build package > >>>> ... > >>>> > >>>>> Executing /usr/sbin/mock-helper yum > >>>> --installroot > >>>> /var/lib/mock/fedora-development-i386-core/root > >>>> groupinstall build-minimal build-base build > >>>>> Cannot find a valid baseurl for repo: extras > >>>>> Error: Cannot find a valid baseurl for repo: > >>>> extras > >>>> > >>>> yum has failed to access the Extras repo. If > you > >>>> want to run mock > >>>> without downloading things from the Internet, > >> you'll > >>>> will need local > >>>> mirrors of *all* the repos specified in your > mock > >>>> configuration file. > >>>> > >>> Do i need extras repo also to use mock?? I did > >> what > >>> u said from fedora-mirror.py. That script > >> downloaded > >>> all core repo successfully but said no repo > found > >> for > >>> extras so unable to download as i gave to > download > >>> only core in mirror script. > >> fedora-mirror needs an appropriate repo file for > >> each repo you intend to > >> mirror. So you need to create one for Extras just > >> like you did for Core. > >> > >> e.g. > >> # cat mirror-extras-development.repo > >> [mirror-extras-development] > >> name=Fedora Extras - Development Tree > >> > > > #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/ > > > mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-devel > >> enabled=0 > >> > > > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras > >> gpgcheck=1 > >> > >> [mirror-extras-development-debuginfo] > >> name=Fedora Extras - Development - Debug > >> > > > baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/debug/ > >> enabled=0 > >> > > > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras > >> gpgcheck=1 > >> > >> [mirror-extras-development-source] > >> name=Fedora Extras - Development - Source > >> > > > baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/SRPMS/ > >> enabled=0 > >> > > > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras > >> gpgcheck=1 > >> > >> (that's for development, you'd need a different > one > >> for FC5) > > sorry i didnt get this?? > > Ok so i need to download usinf above repo conf > file > > extras RPMs. > > once i have core as well as extras repo i can do > > mock build locally on my system right?? > > You can use mock build already if you have a working > Internet connection. yes i have how can i use it now?? what extras url i need to specify?? > > If you don't, you need a local mirror of *all* repos > you are using. The > default fedora-5-i386-core mock config has the > following repos: > > [core] > [groups] > [extras] > [local] > > So you'll need a local groups repo too. It's small, > and easy to make one > yourself - see > http://www.redhat.com/archives/fedora-devel-list/2006-May/msg00904.html > > You can probably get by without the [local] repo - > just comment it out > of the config file, or add "enabled=0" to it. ok i installed buildsys package and then copy minimal.xml from above mailing thread and created repo from that that file. Then i added path under groups section and my current mock file is attahced here. is that require any chnages ?? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Attachment:
fedora-5-i386-core.cfg
Description: 3045534007-fedora-5-i386-core.cfg
-- fedora-extras-list mailing list fedora-extras-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-extras-list