[Rpm-maint] [rpm-software-management/rpm] RFE: export preamble tags as macros (#1753)
mikhailnov
notifications at github.com
Wed Aug 11 11:47:36 UTC 2021
And I cannot add exporting macros easily like:
```diff
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index ac3d9159e..1e3c55a1b 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -1048,6 +1048,7 @@ static int findPreambleTag(rpmSpec spec,rpmTagVal * tag,
rpmlog(RPMLOG_WARNING, _("line %d: %s is deprecated: %s\n"),
spec->lineNum, p->token, spec->line);
}
+ rpmPushMacro(NULL, p->token, NULL, spec->line, RMIL_GLOBAL);
break;
}
if (p == NULL || p->token == NULL)
```
because:
1. BuildRequires can be formed from multiple preamble lines
2. `spec->line` will be not the value of the tag here
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1753#issuecomment-896758491
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210811/7465ec97/attachment.html>
More information about the Rpm-maint
mailing list