<p><b>@pmatilai</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/rpm-software-management/rpm/pull/1053#discussion_r375776400">build/rpmfc.c</a>:</p>
<pre style='color:#555'>> @@ -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);
</pre>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1053?email_source=notifications&email_token=ADLPZU6A7QXXSJUDUJDPWRDRBPWQJA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPU5XA#discussion_r375776400">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4HFM7F5T3XHBX4UGTRBPWQJANCNFSM4KQY4CVQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZUZOASY3IUOBKNPBNK3RBPWQJA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPU5XA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1053?email_source=notifications\u0026email_token=ADLPZU6A7QXXSJUDUJDPWRDRBPWQJA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPU5XA#discussion_r375776400",
"url": "https://github.com/rpm-software-management/rpm/pull/1053?email_source=notifications\u0026email_token=ADLPZU6A7QXXSJUDUJDPWRDRBPWQJA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPU5XA#discussion_r375776400",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>