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

nim-nim notifications at github.com
Thu Sep 27 17:02:18 UTC 2018


> @nim-nim, but isn't that just about exactly what %setup by default does? 

Not really, since the chainbuilding interferes `%setup` reuse with the next archive

People just want to align
```specfile
%somesetup -z 1
%somesetup -z 2
%somesetup -z 3
```
Like they align path or source declarations

And they want to have some simple way to set the primary root where `%build` will chdir and various other macros like autodeps will look for generated files.

They do *not* want to use one macro for `Source0` and switch to something else for other sources.
They do *not* want this simple stupid natural pattern to have weird side effects because the expansion macro was really designed for a chainbuilding that almost not one actually uses or need.  

> Calling it once with no fancy arguments will unpack the first source and define %_buildsubdir,
No it won't, the variable is not really set before %build and rpm will overwrite any attempt to set it manually.




-- 
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-425168207
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180927/8080d4cc/attachment.html>


More information about the Rpm-maint mailing list