[Rpm-maint] [rpm-software-management/rpm] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

Andreas Scherer notifications at github.com
Wed Aug 29 14:57:00 UTC 2018


Maybe `%autosetup` should be "internalized" in `parsePrep.c` alongside `%setup`? For the most part – after groking and converting some options – it would call `doSetupMacro()` (plus `%autopatch`).

Moreover, it would be possible to issue a more useful diagnostic if the user requests an unknown SCM – either with script option `-S svn` or with cli option `--define="__scm svn"`. ATTOW, it aborts from the stage script with
```
/var/tmp/rpm-tmp.428exb: 44: /var/tmp/rpm-tmp.428exb: %__scm_setup_svn: not found
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.428exb (%prep)
```
instead of with a more appropriate diagnostic like
```
%autosetup: option '-S svn' currently not supported at line 29.
```
pointing to line 29 of the specfile.

-- 
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/462#issuecomment-416984011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180829/1e77601c/attachment.html>


More information about the Rpm-maint mailing list