Re: Silent changes in Packaging Guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu Nov 3, 2022 at 06:50 +0100, Kevin Kofler via devel wrote:
> When will this silliness ever stop? It just does not make sense to
> explicitly list every single file in the RPM. Wildcards are often the only
> reasonable way.

Nobody is saying that you have to list every single file in the package
or that e.g. adding `%{_datadir}/%{name}/` to %files is prohibited. It
is simply not allowed to glob absolutely everything under a shared
directory. For instance, ansible-core installs 11 different binaries
into %{_bindir} that all start with `ansible` that would be tedious to
list out manually. Instead of globing all of %{_bindir} with
`%{_bindir}/*, I could add `%{_bindir}/ansible*` which complies with
this guideline and is just as simple.

I think this is a sensible rule as it prevents conflicts and other
issues from popping up on updates when a package's build scripts start
installing new files. When reviewing Go packages, I've caught multiple
issues with `%{_bindir}/*` globs that hide conflicting files and/or
test/utility binaries that shouldn't be shipped to begin with.
Unfortunately, go2rpm generates specfiles with these globs by default.

FWIW, this is a SHOULD guideline not a MUST guideline, but I don't see a
case where such broad globs are justifiable.

As for the other complaint, I subscribe to the FPC issue tracker[1] to
to keep up with guidelines changes. There's also the packaging list, but
not a lot of active discussion happens there. I agree that it would be
beneficial to make changes more visible.

[1]: https://pagure.io/packaging-committee


--
Maxwell G (@gotmax23)
Pronouns: He/Him/His

Attachment: signature.asc
Description: PGP signature

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux