[Rpm-maint] [rpm-software-management/rpm] RFE: Allow automating %setup arguments (#368)
Jeff Johnson
notifications at github.com
Sat Dec 9 22:04:02 UTC 2017
The literal request to append %setup_args (or %patch_args, same deal) to %setup/%patch is utterly trivial configuration: overload the existing %setup or %patch macros-in-C with any macro definition you wish.
Meanwhile, that isn't going to do anything very useful since neither %setup nor %patch is a single command: both are used to generate multiple lines of shell script, and simply overriding arguments does not provide sufficient scoping hints to tell how/where the overrides are to be inserted.
The tricky problem isn't %setup_args either, but rather the side-effect of setting the buildsubdir. You can already write other multi line macros that expand to whatever you wish, the problem being that you will also need an additional "cd %buildsubdir" at the beginning of %build/%install/%check scriptlets since not using %setup will not set set %buildsubdir.
Any rational attempt to change %setup will have to change the generated shell script template. Devising a new template requires explicit design and examples, not just an RFE for (entirely unspecified) additional arguments with a loose claim of "showing its age".
--
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/368#issuecomment-350508813
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20171209/aaf68d89/attachment.html>
More information about the Rpm-maint
mailing list