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
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
03-23-2010, 06:43 PM
Dennis Gilmore
mock config per tag
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
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys