Re: Packaging guidelines: gettext vs. gettext-devel

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

 



On Sat, 2022-03-05 at 16:08 -0500, Elliott Sales de Andrade wrote:
> On Fri, Mar 4, 2022 at 3:26 PM Ken Gaillot <kgaillot@xxxxxxxxxx>
> wrote:
> > Hi all,
> > 
> > I have a question about the guidelines for "Handling Locale Files":
> > 
> > https://docs.fedoraproject.org/en-US/packaging-guidelines/#_handling_locale_files
> > 
> > The guidelines state, "If the package uses gettext for
> > translations,
> > add BuildRequires: gettext".
> > 
> > gettext-devel seems the more logical dependency, since it has the
> > autoconf macros. And of course the guidelines for "Devel Packages"
> > state "-devel packages must be used to contain files which are
> > intended
> > solely for development or needed only at build-time."
> > 
> 
> gettext is a tool that happens to be used in development, but that is
> not the same as being a "Devel Package". It is much the same as gcc
> or
> clang, which we don't have people install gcc-devel and clang-devel
> for.
> gettext-devel is for development _against_ gettext, which is not the
> same as using it.
> 
> For a properly released autotools-based project, the gettext autoconf
> macros are not necessary as the tarball should have been generated
> with configure.ac expanded into configure.

Aha, I think the "properly released" part is the essence :)

The spec in question calls autoreconf, which leads to the gettext-devel 
dependency. After more digging, I found that calling autoreconf is an
unsettled area of the guidelines.

I think the simplest way forward is to use gettext-devel as the
dependency as long as the spec calls autoreconf. Longer term, I can
think about whether autoreconf can be avoided.

> 
> > Both gettext and gettext-devel depend on gettext-libs, which might
> > make
> > the issue unnoticeable for packages don't use autotools.
> > 
> > Would "gettext" or "gettext-devel" be more correct for
> > BuildRequires?
> 
> In short, gettext is, unless you have special requirements.

Thanks for the explanation, it makes sense now.
-- 
Ken Gaillot <kgaillot@xxxxxxxxxx>
_______________________________________________
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 on the list, report it: https://pagure.io/fedora-infrastructure




[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