unable to use mock
cranium2003
cranium2003 at yahoo.com
Tue Jun 6 09:56:18 UTC 2006
Hi,
I executed yum --installroot
/var/lib/mock/fedora-development-i386-core/root
groupinstall build-minimal build-base build
as root and it takes much time and installed 140
packages. Then i restart system. As mock does takes a
srpm and builds it in a chroot. So i created as root
one SRPM from SPEC file as
rpmbuild -bs foo.spec
then i did
su - build
then i gave
mock -r fedora-5-i386-core.cfg foo.src.rpm
and its output is still
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 build-minimal build-base
ending
done
So i try to execute
yum --installroot
/var/lib/mock/fedora-development-i386-core/root
groupinstall build-minimal build-base build
and its output is
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in
main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 565, in
doCommands
self.doGroupSetup()
File
"/usr/lib/python2.4/site-packages/yum/__init__.py",
line 365, in doGroupSetup
groupfile = repo.getGroups()
File
"/usr/lib/python2.4/site-packages/yum/repos.py", line
813, in getGroups
file = self._retrieveMD('group')
File
"/usr/lib/python2.4/site-packages/yum/repos.py", line
784, in _retrieveMD
cache=self.http_caching == 'all')
File
"/usr/lib/python2.4/site-packages/yum/repos.py", line
617, in get
http_headers=headers,
File
"/usr/lib/python2.4/site-packages/urlgrabber/mirror.py",
line 411, in urlgrab
return self._mirror_try(func, url, kw)
File
"/usr/lib/python2.4/site-packages/urlgrabber/mirror.py",
line 397, in _mirror_try
return func_ref( *(fullurl,), **kwargs )
File
"/usr/lib/python2.4/site-packages/urlgrabber/grabber.py",
line 784, in urlgrab
return self._retry(opts, retryfunc, url, filename)
File
"/usr/lib/python2.4/site-packages/urlgrabber/grabber.py",
line 702, in _retry
r = apply(func, (opts,) + args, {})
File
"/usr/lib/python2.4/site-packages/urlgrabber/grabber.py",
line 772, in retryfunc
fo._do_grab()
File
"/usr/lib/python2.4/site-packages/urlgrabber/grabber.py",
line 1102, in _do_grab
os.utime(self.filename, (modified_stamp,
modified_stamp))
OSError: [Errno 2] No such file or directory:
'/var/lib/mock/fedora-development-i386-core/root/var/cache/yum/core/comps.xml'
why its gave error now?? Then i check
ls
/var/lib/mock/fedora-development-i386-core/root/var/cache/yum/core/
and found that it contains only
headers packages
and not comps.xml
why??
--- Paul Howarth <paul at city-fan.org> wrote:
> cranium2003 wrote:
> > i gave
> > yum --installroot
> > /var/lib/mock/fedora-development-i386-core/root
> > groupinstall build-minimal build-base build
> >
> > and since 20 min its doing nothing neither show
> any
> > error nor any messages.
>
> It will take a long time because it's downloading
> and installing all the
> packages needed for a minimal build environment, and
> setting it up under
> /var/lib/mock/fedora-development-i386/root. It will
> do this again every
> time you run mock, so it's a good idea to have a
> local mirror or a
> decent cache as described on the MockTricks wiki
> page.
>
> > Also nobody here is talking about where to
> change
> > exactly in /etc/mock/fedora-5-i386-core.cfg OR in
> >
>
/var/lib/mock/fedora-development-i386/root/etc/yum.conf
> > as chnage in one is not going to propogate in
> other,
>
> Everything under
> /var/lib/mock/fedora-development-i386/root will be
> blown away and re-creeted every time you run mock
> with that
> configuration, so it's pointless editing anything
> there. The
> /etc/mock/fedora-5-i386-core.cfg file is the one you
> need to tweak.
>
> > ohh while writing this mail i finally got some
> output
> > from that command and its nothing but its chosen
> to
> > update 140 packages of 116M. so whats that command
> > doing exactly? and does that mean when i do
> > su - build
> > and will give
> > mock -r fedora-5-i385-core.cfg foo.src.rpm will
> give
> > me some output and not a error?
>
> It'll do the same download as before, then install
> all the buildreqs and
> their dependencies for foo.src.rpm, then try to
> rebuild that SRPM.
>
> Paul.
>
> --
> fedora-extras-list mailing list
> fedora-extras-list at redhat.com
>
https://www.redhat.com/mailman/listinfo/fedora-extras-list
>
__________________________________________________
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