mock config per tag

Dennis Gilmore dennis at ausil.us
Tue Mar 23 19:43:05 UTC 2010


On Tuesday 23 March 2010 12:54:47 pm Michael Cronenworth wrote:
> Is it possible to attach a mock config to a particular tag?
> 
> Scenario: Fedora host and build system. I am attempting to build a SPEC
> that checks if it's building under Fedora or not (can be if %rhel
> exists, or /etc/fedora-release exists, etc) but it currently fails for
> my RHEL 5 build tag (i386, x86_64) as it thinks its on Fedora. The SPEC
> is setting ExclusiveArch for i686 for Fedora and i386 for RHEL. This
> works fine if I build natively on a RHEL box and Fedora box, but I'd
> rather build it under Koji.
> 
> Would setting a mock config even help? Is there a more appropriate way
> of handling this scenario? Google searching and wiki searching hasn't
> turned up much.
> 
> Thanks,
> Michael

you should use 
ExclusiveArch: %{ix86}

its a macro that expands to cover all the 32 bit x86 variants

Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100323/ba494665/attachment.bin 


More information about the buildsys mailing list