Red Hat Bugzilla – Bug 11485
rpm 3.0.4 %define executed inside false %ifarch
Last modified: 2008-05-01 11:37:55 EDT
In construct like
%define foo bar
the %define is expanded (thus %foo defined) even though it shouldn't.
The fix is that if spec->readStack->reading is 0, we skip the definition.
This may be done on low level (in %define, %global, ... definitions) or
at higher level: we simply don't call expandMacros() in copyNextLine()
I like the latter more, see the attached patch.
Created attachment 248 [details]
Fixed in rpm-4.0-0.43 and rpm-3.0.5-0.4. Thanks for another critical fix.