-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%autosetup -T -a 0 -a 1 doesn't extract %{S:0} #462
Comments
@pavlinamv have time to look at this? |
rpm behaves correctly. rpm takes into account only the last option '-a number' in the command. So %autosetup -c -a 0 -a 1 For more details see link: |
@pavlinamv but if you use -a1 -a2 -a3, it unpacks all of those sources, why is the -T -a0 is special? |
Implicitly (without any option) source0 is unpacked. The -T option disables %setup's normal unpacking of the archive file specified on the source0 line. You can "re-enable"unpacking of the source0 using -a 0 or -b 0. |
@pavlinamv but this is exactly what this bug is about ;) -a1 -a2 unpacks both S:1 and S:2, but -T -a0 -a1 unpacks only S:1 (and not S:0). |
Om my VM |
The problem is that unlike %setup, %autosetup is a regular macro and doesn't really support multiple arguments of the same type - they're accepted but with "last one wins"-semantics:
|
In other words, I failed to consider such a case when adding %autosetup. The way arguments are presented in the macro language doesn't scale to such usage, I suppose the best we can do is a workaround by passing anything after "--" as-is to %setup which can handle those multiple repeated arguments by its own logic. Ie this would become
It's not nice or pretty but I dont see a whole lot other options. |
What about anything that calls |
Yeah, and ponies too. |
Has anybody tried to use
? Yep, clumsy but workable. |
@ignatenkobrain what exactly are you trying to set up in the
where each subdirectory has similar stuff ( If this really is your goal, then
However, if you aim for a more compact
which results in
(I haven't looked at the four top-level files, of which only one version survives extraction.) |
BTW does something similar for Define an arbitrary number of sources, call One could probably reuse some of lua suffix handling routines to automate autosetup some more. I didn't code a (The PR is working and stable, it's still receiving tweaks when I find things I could do better while coding its counterpart for Go archives, but that's all) |
That’s a case for #547 |
See rpm-software-management/rpm#462 for details.
See rpm-software-management/rpm#462 for details.
Actually this is just a specific case of #546, and thus duplicate. |
The limitation this imposes on If multiple definitions of a given flag can't be handled, maybe it would be possible to add support for specifying multiple values for some flags? E.g. (Commenting here instead of #546 because while I agree this would be solved by #546, this specific case is the one most RPM packagers will run into when using |
shows
but if you remove
-T
, then everything behaves as expected.The text was updated successfully, but these errors were encountered: