Possible to combine ExclusiveArch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For some virt packages we need to combine 2 or 3 of:

  ExclusiveArch: %{kernel_arches}
  ExclusiveArch: %{qemu_sysemu_host_arches}       # [1]
  ExclusiveArch: %{ocaml_native_compiler}

to mean only compile on the intersection of these arches.  If you have
multiple ExclusiveArch lines then RPM seems to do the union of arches
which is the opposite of what anyone would want.

Dan Berrange came up with a clever way to do it though ...

  %ifnarch %{kernel_arches}
  ExcludeArch: %{_arch}
  %endif
  %ifnarch %{qemu_sysemu_host_arches}
  ExcludeArch: %{_arch}
  %endif

But this makes my head hurt.  Is there a better way or could RPM
provide explicit union and intersection operators?

Rich.

[1] https://src.fedoraproject.org/rpms/qemu/pull-request/43

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux