[Rpm-maint] [rpm-software-management/rpm] RFE: set builsubdir to the *first* extracted archive not the last one (#551)

Jeff Johnson notifications at github.com
Tue Sep 25 01:45:54 UTC 2018


FWIW, here is an implementation that would permit first rather than last definition of %_buildsubdir to be used under user control.

RPM5 permits read only macros which -- when set -- prevent a macro value from being changed.

The syntax prefixes a macro name with a '.' in order to set (actually toggle, but let's not go there) a read only flag.

The '.' is not part of the name, is stripped off to set a read only flag. Any attempt to redefine the macro value is ignored (and warned iirc).

The entire implementation is a couple dozen lines of code.

Adding another configurable macro to define whether _buildsubdir or its read only variant with a '.' prefix is to be used can be configured in rpm in multiple ways.

The read only variant will of course be the first, rather than the last, value defined by %setup, entirely satisfying the RFE stated herein.



-- 
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/551#issuecomment-424180043
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180924/4f2c3323/attachment.html>


More information about the Rpm-maint mailing list