unable to use mock

David Timms dtimms at bigpond.net.au
Mon Jun 5 14:01:04 UTC 2006


cranium2003 wrote:
> hi,
> 
> --- Paul Howarth <paul at city-fan.org> wrote:
> 
>> cranium2003 wrote:
>>> hi,
>>> --- Paul Howarth <paul at city-fan.org> wrote:
>>>
>>>> cranium2003 wrote:
>>>>> Hi,
>>>>> --- Paul Howarth <paul at city-fan.org> wrote:
>>>>>
>>>>>> cranium2003 wrote:
>>>>>>> Hi,
>>>>>>> --- seth vidal <skvidal at linux.duke.edu> wrote:
>>>>>>>
>>>>>>>> On Mon, 2006-06-05 at 04:45 -0700,
>> cranium2003
>>>>>>>> wrote:
>>>>>>>>> Hi,
>>>>>>>>> --- seth vidal <skvidal at linux.duke.edu>
>> wrote:
>>>>>>>>>> On Mon, 2006-06-05 at 04:16 -0700,
>>>> cranium2003
>>>>>>>>>> wrote:
>>>>>>>>>>> hi,
>>>>>>>>>>>   I am new to mock tool i followed whats
>>>> given
>>>>>>>> on
>>>>>>>>>> wiki
>>>>>>>>>>> of fedoraproject.org. According to that i
>>>> set
>>>>>>>>>> mock.
>>>>>>>>>>> installed it. then i did su - build
>>>>>>>>>>> then in build user i gave mock -r
>>>>>>>>>>> fedora-5-i386-core.cfg foo-0.1.1.src.rpm
>>>>>>>>>>> and i got output as
>>>>>>>>>>> =============================
>>>>>>>>>>> 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
>>>>>>>>>>> =============================
>>>>>>>>>>> whats wrong happened??
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> what happens when you run this, as root:
>>>>>>>>>>
>>>>>>>>>> yum --installroot
>>>>>>>>>>
>>>> /var/lib/mock/fedora-development-i386-core/root
>>>>>>>> \ 
>>>>>>>>>>     groupinstall build-minimal build-base
>>>> build
>>>>>>>>>  when i gave 
>>>>>>>>>  yum --installroot
>>>>>>>>>
>>>> /var/lib/mock/fedora-development-i386-core/root 
>>>>>>>>> groupinstall build-minimal build-base build
>>>>>>>>>
>>>> Output->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> http://newmirror.linux.duke.edu/pub/fedora/linux/core/development/i386/repodata/repomd.xml:
>>>>>>>>> [Errno 14] HTTP Error 404: Content-Length:
>> 345
>>>>>>>>> Date: Mon, 05 Jun 2006 11:43:37 GMT
>>>>>>>>> Accept-Ranges: bytes
>>>>>>>>> Content-Type: text/html
>>>>>>>>> Server: lighttpd/1.3.16
>>>>>>>>> Trying other mirror.
>>>>>>>>> Cannot open/read repomd.xml file for
>>>> repository:
>>>>>>>> core
>>>>>>>>> failure: repodata/repomd.xml from core:
>> [Errno
>>>>>>>> 256] No
>>>>>>>>> more mirrors to try.
>>>>>>>>> Error: failure: repodata/repomd.xml from
>> core:
>>>>>>>> [Errno
>>>>>>>>> 256] No more mirrors to try.
>>>>>>>> rawhide's repository was broken this weekend
>>>> and
>>>>>> the
>>>>>>>> fix hasn't
>>>>>>>> propagated out to all of the mirrors.
>>>>>>>  No but its happening to me since last Monday
>>>> and
>>>>>> i
>>>>>>> was assuming that it was down so daily i tried
>> 5
>>>>>> times
>>>>>>> and then gave up. So in that situation do u
>>>>>> suggest me
>>>>>>> to check any other settings in my system. I
>>>>>> followed
>>>>>>> all wiki pages as it is excluding squid setup
>> to
>>>>>> set
>>>>>>> up Mock tool.
>>>>>> The other problem you have is that the
>> repository
>>>>>> layout has changed.
>>>>>>
>>>>>> You need to change the baseurl:
>>>>>>
> baseurl=http://newmirror.linux.duke.edu/pub/fedora/linux/core/development/i386
>>>>>> to:
>>>>>>
> baseurl=http://newmirror.linux.duke.edu/pub/fedora/linux/core/development/i386/os
>>>>>   I dont know what happened. I am attaching my
>>>> current
>>>>> fedora-5-i386-core.cfg under /etc/mock
>>>> This does not appear to be the config you were
>> using
>>>> that caused the 
>>>> error you posted about earlier. That one was for
>>>> rawhide, this one's for 
>>>> FC5.
>>>>
>>>> You do appear to have a missing newline though,
>>>> before "enabled=1" for 
>>>> the [extras-i386] repo.
>>>>
>>>   Oops i remove mock package and again install it
>>> thru' yum and now my errors are
>>> yum --installroot
>>> /var/lib/mock/fedora-development-i386-core/root 
>>> groupinstall build-minimal build-base build
>>>
> http://extras64.linux.duke.edu/plague-results/development/repodata/repomd.xml:
>>> [Errno 14] HTTP Error 404: Date: Mon, 05 Jun 2006
>>> 12:32:12 GMT
>>> Server: Apache/2.0.52
>>> Content-Length: 324
>>> Connection: close
>>> Content-Type: text/html; charset=iso-8859-1
>>> Trying other mirror.
>>> Cannot open/read repomd.xml file for repository:
>> local
>>> failure: repodata/repomd.xml from local: [Errno
>> 256]
>>> No more mirrors to try.
>>> Error: failure: repodata/repomd.xml from local:
>> [Errno
>>> 256] No more mirrors to try.
>>>  
>>>      Attaching my
>>>
> /var/lib/mock/fedora-development-i386-core/root/etc/yum.conf
>>> file.
>> The configuration for the "local" repository is also
>> broken (as 
>> indicated in the error message). Try changing the
>> baseurl for that repo
>>
>> from:
>>
> baseurl=http://extras64.linux.duke.edu/plague-results/development/
>> to:
>>
> baseurl=http://extras64.linux.duke.edu/plague-results/fedora-development-extras/
> 
>  did that and then 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.
>    Also nobody here is talking about where to change
> exactly in /etc/mock/fedora-5-i386-core.cfg OR in
I think mock with no parameters will use /etc/mock/default.conf, or you 
can choose to use a particular one by specifying it on the command line.

> /var/lib/mock/fedora-development-i386/root/etc/yum.conf
Mock erases and rebuilds the /var/lib/mock build root every time you do 
a mock rebuild. This is how it can be sure that the rebuild process 
isn't sneakily pulling in files/libraries that can not be assumed to be 
present.

> ohh while writing this mail i finally got some output
# yum install gkrellm
# gkrellm
Use it to monitor you CPU/disk/network usage, realtime; it gives a 
better idea that something is indeed happening.

> from that command and its nothing but its chosen to
> update 140 packages of 116M. so whats that command
> doing exactly? 
Installs the minimal build system packages in a mock chroot jail. Then 
it installs the buildrequires specified in the .srpm that you are 
getting mock to test build.

> 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?
Look in /var/lib/mock/fed.../result/ files to see what it did.

You need a caching mechanism to speed up the process of mock 
reconstructing the build root each time you run it. (Either squid proxy, 
or rsync/mirroring of the site).

DaveT.




More information about the fedora-extras-list mailing list