[Rpm-maint] [rpm-software-management/rpm] RFE: make %{load: } work in %prep (#571)

Panu Matilainen notifications at github.com
Thu Oct 18 09:01:02 UTC 2018


Actually rpm does perform further expansions at the time of build too for the various section templates, BUT the script itself from the spec is not re-expanded. PR #480 sort of does this, except that it escapes all percent signs automatically which in turn prevents actual macros from being expanded, which makes it all a bit moot. With a bit of modification to disable the escaping, #480 actually allows you do place %%{load:...} at the beginning of %prep and evaluated during build. Even then it's fairly non-obvious and klunky because the macro will not be evaluated in the context of the shell script it appears in, so eg relative paths wont work. So it becomes
```
%%{load:%{_builddir}/%{buildsubdir}/rpm/macros.fonts}
```

...and I'm not at all conviced that all this makes it somehow better and less hacky than using the shell.

-- 
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/571#issuecomment-430931491
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181018/c574f06b/attachment-0001.html>


More information about the Rpm-maint mailing list