[Rpm-maint] [rpm-software-management/rpm] Enhance requires with version information from the build root. (PR #2372)
Panu Matilainen
notifications at github.com
Wed Feb 8 07:08:22 UTC 2023
@pmatilai commented on this pull request.
> + destsize = readlink(filename, dest, PATH_MAX);
+ if (destsize > 0) {
+ dest[destsize] = 0;
+ filename = dest;
+ }
+ /*
+ * Start from the end of the string. Verify that it ends with
+ * numbers and dots, preceded by ".so.".
+ */
+ so = filename + strlen(filename);
+ while (so > filename+2) {
+ if (*so == '.') {
+ found_dot++;
+ so--;
+ continue;
+ } else if (strchr("0123456789", *so)) {
Breaking dependencies due unexpected junk in the soname is at least something the package maintainer *will* notice, which is far far better than doing something unwanted silently. So limiting to numeric versions is indeed probably the safer bet, and not a show-stopper at all. Just something to think about.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2372#discussion_r1099736502
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2372/review/1288586571 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230207/43a597bf/attachment.html>
More information about the Rpm-maint
mailing list