pmatilai left a comment (rpm-software-management/rpm#3661)
I don't think macro expansion eats backslashes, but the spec parser has them
for breakfast, lunch and dinner. Basically: always escape `\` if it's subjected
to the spec parser in any way at all.
Note that "%global macro using %{expand:..}" is an anti-pattern: makes no sense
at all and subjects you to all sorts of weird side-effects. By specification, a
%global is expanded at the time of definition. If you then add %{expand:} to
it, it gets re-expanded on each reuse which *will* eat any %-characters and
behave in various other unexpected ways. I don't know if it's still in the
Fedora guidelines, but "always use %global" was bad advice that spread far and
wide.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3661#issuecomment-2728634266
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3661/[email protected]>_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint