[Fedora-packaging] Arch-specific Requires

Mattias Ellert mattias.ellert at fysast.uu.se
Wed Jul 7 06:53:31 UTC 2010


tis 2010-07-06 klockan 11:40 -0400 skrev Tom "spot" Callaway:

> Lets say you have BuildRequires: foo%{?_isa}. Koji makes the SRPM on a
> ppc builder, so %{_isa} is evaluated as (ppc-32). The SRPM is then
> handed to an x86_64 builder to build for x86_64, but it cannot meet the
> BuildRequires because foo(ppc-32) is not found.
> 
> ~spot

This is not how it works.

rpmbuild re-evaluates the BuildRequires from the specfile inside the
SRPM, it does not use the SRPM's Requires. Having %{?_isa} in
BuildRequires tags is perfectly legal - and advisable to have if you
want your SRPMs to be buildable in a multiarch environment.

	Mattias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2272 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/packaging/attachments/20100707/33c354aa/attachment.bin 


More information about the packaging mailing list