[Rpm-maint] [rpm-software-management/rpm] Is there a way to dynamically evaluate macro? (#1687)

Jan Palus notifications at github.com
Wed May 19 18:09:10 UTC 2021


What I'd like to achieve is to access `%buildsubdir` in `%prep` after `%setup` was called. It appears that RPM first parses and evaluates all macros in `%prep` and only then executes `%setup` which pushes `%buildsubdir`. So my question is there any way to defer macro expansion or is there some dynamic macro evaluation which would enable accessing `%buildsubdir` in `%prep`?

I'm aware `$PWD` is `%buildsubdir` after `%setup` however the goal is to create global macro which works in every spec irrespective of current working directory.

-- 
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/1687
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210519/3fd5d202/attachment.html>


More information about the Rpm-maint mailing list