[CentOS-devel] mock using yum .repo file?
Jeff Johnson
n3npq at mac.com
Sun Jul 24 18:21:52 UTC 2011
On Jul 24, 2011, at 2:16 PM, Manuel Wolfshant wrote:
> On 07/24/2011 08:52 PM, Jeff Johnson wrote:
>>
>> 1) Yes, mock uses yum which will use repo files. You likely need
>> to configure up /etc/mock/* somehow … checking … yes stanzas
>> like this are merely yum repositories written differently:
>> [fedora]
>> name=fedora
>> mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-15&arch=i386
>> failovermethod=priority
>> See if someone hasn't configured up mock for cents somehow: that was the point
>> of my aside: its often quite mysterious how to find the right URI. I have difficulties
>> all the time.
> mock from epel comes preconfigured to use centos repos when building for
> RHEL 4 and RHEL 5. As last versions of mock (both for epel-5 and epel-6)
> were released before centos 6 was out, the config files for RHEL6 are
> preconfigured to use RH beta ( 5.90). However it's quite trivial to
> adjust the 2 lines to point to centos repos instead.
>
> Why on Earth did mock's maintainer decide to point the config files for
> PPC to centos ( give that there is no centos for ppc) is however an
> enigma for me.
>
Brain fart likely … the real flaw in /etc/mock/* is too many notes and
not enough music.
What I mean by that is this: its all cookie-cutter cut-n-paste
of .ini files with way too many details and complexity for not
much purpose.
A better approach (if anyone is listening and uses mock) would be to write
a script that generates the necessary information as needed for mock,
not distributing all possible (and conceivable) configuration, typos and all.
>
> 73 de wolfy
>
;-)
73 de Jeff
More information about the CentOS-devel
mailing list