Handling architecture limitations

T.C. Hollingsworth tchollingsworth at gmail.com
Fri Jun 14 00:25:57 UTC 2013


On Thu, Jun 13, 2013 at 2:41 PM, Tom Hughes <tom at compton.nu> wrote:
> Doesn't seem to work for me on rawhide:
>
>   http://koji.fedoraproject.org/koji/taskinfo?taskID=5501008
>
> That is with "ExclusiveArch: %{nodejs_arches}".
>
> Going back to listing the architectures manually works.

Try:
%{?nodejs_arches: ExclusiveArch: %{nodejs_arches}}%{!nodejs_arches:
ExclusiveArch: %{ix86} x86_64 %{arm}}

I believe the other %{*_arches} macros use a similar construction in
their spec.  Mock probably uses the RHEL 6 rpm at some stage in the
build process that gets tripped up without this.

Also, I don't believe Panu backported this to F18 (and this probably
can't get into RHEL6), so that'll allow you to use the same spec in
all branches.

-T.C.


More information about the nodejs mailing list