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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to