[Rpm-maint] [rpm-software-management/rpm] Mangle inter-package dependencies (#627)

Igor Gnatenko notifications at github.com
Tue Feb 5 20:31:58 UTC 2019


Imagine that the package you are building, contains following binary packages:

* util-linux (depends on libsmartcols.so.1)
* libsmartcols (provides libsmartcols.so.1)

I believe in 99.(9)% of cases you really want to have libsmartcols installed as a provider and not something else what happen to provide libsmartcols.so.1.

In Fedora Packaging Guidelines is written: if this happens, you must also add `Requires: libsmartcols%{?_isa} = EVR`.

The idea is that if one of the dependency is provided by any other package generated by this source package, then it would be replaced by reference to a package with exact EVR.

---

This has been implemented in ALT here: http://git.altlinux.org/gears/r/rpm-build.git?p=rpm-build.git;a=blob_plain;f=build/interdep.c;hb=HEAD. That code does different things and hard to read, but that is where we can steal some ideas.

-- 
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/627
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190205/c0207c35/attachment.html>


More information about the Rpm-maint mailing list