[Rpm-maint] [rpm-software-management/rpm] Does it possible to override macro defined in spec file? (Discussion #3862)

Michal Domonkos notifications at github.com
Tue Jul 15 09:53:14 UTC 2025


This is not possible without modifying `other.spec`. Later macro re-definitions override any former definitions. The `%include` macro is similar to the C preprocessor `#include` - it's just a text substitution, i.e. the included file becomes part of the original file when parsed.

That said, ff you want the `toolchain` macro to contain `clang` *after* the inclusion, in the *original* spec, just move the definition below the `%include` line.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3862#discussioncomment-13762974
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/3862/comments/13762974 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250715/3e8c932d/attachment-0001.htm>


More information about the Rpm-maint mailing list