[Rpm-maint] [rpm-software-management/rpm] [RFE] Provide install time alternative to `%{?_isa}` (#1344)

Panu Matilainen notifications at github.com
Thu Aug 27 12:26:17 UTC 2020


These kind of "indirect" arch dependencies from noarch packages are indeed an old problem. 

This is not an actual solution, but with rich dependencies, there's at least a chance to express something like that:

```
Requires: (libvips.so.42()(64bit) if libc.so.6()(64bit))
Requires: (libvips.so.42() if libc.so.6())
```

That means, require libvips which matches installed glibc bitness - and if you have glibc.i686 and glibc.x86_64 you'll get libvips for both, and you don't need to deal with specific architectures. libc.so.6 is used here as an example because it's an unmoving target, but whether that's the best choice depends on the case.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1344#issuecomment-681916527
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200827/2818f05b/attachment.html>


More information about the Rpm-maint mailing list