Re: the meaning of pkgconfig's Libs fields

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

 



On Mon, Jan 31, 2022 at 08:57:45PM +0100, Kevin Kofler via devel wrote:
> Zbigniew Jędrzejewski-Szmek wrote:
> > Well, that is the reverse of how we do things in general. If I want to
> > look for libraries using pkg-config, I install pkg-config. If I want
> > to look for libraries using 'gcc test.c -lfoo', then I install gcc.
> >
> > What we have now is like saying that .h files should depend on gcc
> > because you use gcc to consume them.
> 
> Several KDE -devel packages do require cmake and even g++ though. The idea 
> is that you will normally need CMake and g++ to build anything against that 
> -devel package.

I think Suggests would be OK. Even Recommends seems like too much. You may
be using clang++ to compile the code, or just accessing headers from doxygen,
or maybe testing an alternate version of g++ from copr, i.e. with a different
package name…

I also think that it doesn't make sense to pull in the compiler from a -devel
package because you need so many other things: a linker, make or ninja,
maybe meson/autotoolz/cmake/ant/whatever, so pulling in cmake+g++ is
not enough in some cases and too much in other.

> That said, for CMake, this is not currently part of the AutoRequires, that 
> only drags in cmake-filesystem for directory ownership (and in fact, I guess 
> directory ownership is a reason for the pkg-config AutoRequires too), any 
> Requires: cmake is manually added.

Zbyszek
_______________________________________________
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