On Tue, Nov 04, 2025 at 01:48:36PM +0100, Mikolaj Izdebski wrote: > On Tue, Nov 4, 2025 at 1:34 PM Zbigniew Jędrzejewski-Szmek > <[email protected]> wrote: > > > > The %setup/%autosetup macros require the top-level directory of the tarball > > to be manually specific (if it is not the default of %name-%release). This > > requires twiddling with the spec when switching between release and > > snapshot builds, or reusing the spec for CI, etc. Over the years, this has > > caused counteless builds to fail and soaked up immesurable maintainer time. > > > > After being bitten by this again (CI failing), we figured out a relatively > > simple way to handle this [1]: > > > > %autosetup -n %(tar -tf %{SOURCE0} | head -n1) -p1 > > > > (this is the PSA part). > > > > It'd really be great if the macros could do this automatically. > > (this is the RFE part ;)) > > rpm can already do that. > %autosetup -C
Oh, very nice. So RFEv2: add this to https://rpm-software-management.github.io/rpm/manual/autosetup.html and other places… Zbyszek -- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
