This PR is an alternative to #2372 

When generating provides, elfdeps will be given the arguments 
"--elf-so-version-fallback %{_elf_so_version}". The default for 
_elf_so_version is the package version. Packagers can define the macro to 
override the default, in order to support alternative implementations of shared 
objects. The resulting provided feature will look like, 
"libhello.so.1()(64bit) = 1.0.1"

When generating requirements, elfdeps will query the rpm db for the package 
that owns the dependency, and if it provides a feature versioned in the fashion 
described above, then it will produce a versioned dependency that looks like 
"libhello.so.1()(64bit) >= 1.0.1"

Unlike #2372 , this feature does not need to be rolled out in stages. Once 
enabled, new shared objects will begin producing versioned 
"provides". Dependencies that are generated against older packages, 
which lack versioned feature information, will not have versioned dependencies. 
Once versioned features are available, versioned dependencies will be generated.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/4081

-- Commit Summary --

  * Enhance requires with version information from the build root.
  * Drop dlmopen dependency.
  * Clean up and convert C code.

-- File Changes --

    M docs/manual/more_dependencies.md (8)
    M fileattrs/elf.attr (4)
    M macros.in (12)
    A tests/data/RPMS/libhello-1.0.1-1.x86_64.rpm (0)
    A tests/data/SPECS/libhello.spec (30)
    M tests/rpmbuild.at (76)
    M tools/elfdeps.cc (127)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4081.patch
https://github.com/rpm-software-management/rpm/pull/4081.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4081
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to