[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 06:58:57 UTC 2023
@pmatilai commented on this pull request.
> +/*
+ * Rather than re-implement path searching for shared objects, use
+ * dlmopen(). This will still perform initialization and finalization
+ * functions, which isn't necessarily safe, so do that in a separate
+ * process.
+ */
+static char *getLibtoolVerFromShLink(const char *filename)
+{
+ char dest[PATH_MAX];
+ int pipefd[2];
+ pid_t cpid;
+
+ if (pipe(pipefd) == -1) {
+ return NULL; // Should this be a fatal error instead?
+ }
+ cpid = fork();
Ack, I suspected it would be something like that. If we need a fork then we need a fork, but please add a comment about that.
That said, within rpm, the dependency generators like elfdeps always get called one file at a time, so the problematic case never happens in the actual use-case. But for testing purposes, it is handy to be able to pass multiple files at once.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2372#discussion_r1097002768
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2372/review/1284635967 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230205/e9fc74fb/attachment-0001.html>
More information about the Rpm-maint
mailing list