[Rpm-maint] [rpm-software-management/rpm] Enhance requires with version information from the build root. (PR #2372)
Panu Matilainen
notifications at github.com
Mon Feb 6 14:03:26 UTC 2023
@pmatilai commented on this pull request.
> @@ -222,8 +333,17 @@ static void processDynamic(Elf_Scn *scn, GElf_Shdr *shdr, elfInfo *ei)
case DT_NEEDED:
if (genRequires(ei)) {
s = elf_strptr(ei->elf, shdr->sh_link, dyn->d_un.d_val);
- if (s)
- addDep(&ei->requires, s, NULL, ei->marker);
+ if (s) {
+ char *libtool_ver = NULL;
+ // If soname matches an item already in the deps, then
+ // it had versioned symbols and doesn't require fallback.
+ if (libtool_version_fallback &&
+ !findSonameInDeps(ei->requires, s)) {
+ libtool_ver = getLibtoolVerFromShLink(s);
The code-block indents to the same level as the line-continued condition, which makes it unnecessarily hard to read. Pushing the condition further to right is one option, moving the opening brace to a line of its own is another.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2372#pullrequestreview-1285248923
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2372/review/1285248923 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230206/07f89972/attachment.html>
More information about the Rpm-maint
mailing list