[Rpm-maint] Macro change while expanding the macro itself
mls at suse.de
Tue May 17 13:27:43 UTC 2011
And another patch to be discussed. We've got an esotheric macro
usage that deletes its own definition while it is expanded.
Here's a demo:
$ cat ~/.rpmmacros
%undefine _suse_insert_debug_package \
$ rpm --eval %package
For some reason this worked in rpm-4.8 (probably because of a
memory leak). I guess it was also broken if the macro is changed
instead of the %undefine.
Anyway, this should either work or procuce an error. Currently
it accesses already freed memory, which is bad.
A small patch to make it work is attached.
Michael Schroeder mls at suse.de
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 623 bytes
Desc: not available
More information about the Rpm-maint