You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is known bug. %setup is not really a macro, but rather something which is parsed by RPM internally. However, %autosetup is a real macro, so it parses only last -a argument.
If you wanted to fix %autosetup for multiple archives you’d need to change it to behave the same way as %forgesetup/%forge_prep:
move things you’re used to pass on the macro CLI to control variables attached to a specific source file, using naming tricks to implement the attachment
make the bettersetup atom process a single archive
loop over archives that need processing, calling one bettersetup atom a time, un-stacking the control variables that correspond to the archive being processed
A single multiplexing call is quite hard to achieve in generic software and completely above the capabilities of the current rpm argument parser.
(the %auto_ framework I posted contains all the basic building blocks to create such looping macros, but you still need to assemble the building blocks in your own bettersetup implementation)
Looks like if it is something like:
only Source0 and Source1 will be unpacked. Probably it will be necessary to copy some parts from %setup so theoretically it should be easy to fix.
The text was updated successfully, but these errors were encountered: