[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Mock build problem



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

cranium2003 wrote:
hi,
--- Paul Howarth <paul 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 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.

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.

Paul.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]