Mock build problem

Paul Howarth paul at city-fan.org
Thu Jun 15 10:38:28 UTC 2006


cranium2003 wrote:
> hi,
> --- Paul Howarth <paul at city-fan.org> 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 at 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)

Paul.




More information about the fedora-extras-list mailing list