Re: the meaning of pkgconfig's Libs fields

2022-02-01 Thread Kevin Kofler via devel
Zbigniew Jędrzejewski-Szmek wrote: > 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… Suggests i

Re: the meaning of pkgconfig's Libs fields

2022-02-01 Thread Zbigniew Jędrzejewski-Szmek
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.

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Florian Weimer
* Robbie Harwood: > Zbigniew Jędrzejewski-Szmek writes: > >> 1. pc(5) talks about "package", as if one would want to link to a >>whole "package" instead one of the specific library files provided >>by a package. Thankfully most .pc files only list one "-l" in Libs. >>(Counterexamples:

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Kevin Kofler via devel
Robbie Harwood wrote: > k5crypto and com_err are internal libraries used across the different > interfaces krb5 provides - they're not intended for external > consumption, and upstream doesn't support their direct use by other > applications. Then they belong in Libs.private, not Libs. > So you'r

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Kevin Kofler via devel
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

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jan 31, 2022 at 03:39:20PM +0100, Vít Ondruch wrote: > > Dne 31. 01. 22 v 14:09 Zbigniew Jędrzejewski-Szmek napsal(a): > >Hi, > > > >various .pc files that we ship contain a lot of stuff in the Libs and > >Libs.private field don't make much sense to me. I started looking at > >the document

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jan 31, 2022 at 05:20:39PM +0100, Kevin Kofler via devel wrote: > Zbigniew Jędrzejewski-Szmek wrote: > > 3. We autogenerate a dependency on /usr/bin/pkg-config for -devel. > > Logic is reversed here: the -devel package **provides** something > > that it consumed by pkg-config. Dependencies

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Robbie Harwood
Zbigniew Jędrzejewski-Szmek writes: > 1. pc(5) talks about "package", as if one would want to link to a >whole "package" instead one of the specific library files provided >by a package. Thankfully most .pc files only list one "-l" in Libs. >(Counterexamples: tbbmalloc_proxy.pc says '

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Kevin Kofler via devel
Zbigniew Jędrzejewski-Szmek wrote: > 3. We autogenerate a dependency on /usr/bin/pkg-config for -devel. > Logic is reversed here: the -devel package **provides** something > that it consumed by pkg-config. Dependencies are from a consumer to > the providing entity. The idea there is that packages

Re: the meaning of pkgconfig's Libs fields

2022-01-31 Thread Vít Ondruch
Dne 31. 01. 22 v 14:09 Zbigniew Jędrzejewski-Szmek napsal(a): Hi, various .pc files that we ship contain a lot of stuff in the Libs and Libs.private field don't make much sense to me. I started looking at the documentation, and the documentation is very scarce, and what is there doesn't seem to