[Rpm-maint] [rpm-software-management/rpm] Add support for macro-only dependency generators (#1053)

Panu Matilainen notifications at github.com
Thu Feb 6 11:16:20 UTC 2020

pmatilai commented on this pull request.

> @@ -514,6 +514,22 @@ static ARGV_t runCmd(const char *cmd,
     return output;
+static ARGV_t runCall(const char *cmd,
+		     const char *buildRoot, const char *fn)
+    ARGV_t output = NULL;
+    char *fullcmd = rstrscat(NULL, "%{", cmd, " ", "%{?buildroot:buildroot/}", fn, "}", NULL);

Hmm, actually just pushing/popping a macro named "1" gets around that. It's a bit of a cheat of course but it'll probably do for now.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200206/169f5aae/attachment.html>

More information about the Rpm-maint mailing list