Many thanks for the PSA. +1 to the RFE.

On Tue, 4 Nov 2025 at 13:34, 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 ;))
>
> [1]
> https://src.fedoraproject.org/rpms/systemd/c/8e2833a5b64f7e2ce62ea0a2d0ec9e393e718dfa
> --
> _______________________________________________
> 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
>


-- 
Iñaki Úcar
-- 
_______________________________________________
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

Reply via email to