FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 03-23-2010, 04:54 PM
Michael Cronenworth
 
Default mock config per tag

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
 
Old 03-23-2010, 06:43 PM
Dennis Gilmore
 
Default 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
 

Thread Tools




All times are GMT. The time now is 04:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org