Re: pkgconfig usage

2019-03-28 Thread Fabio Valentini
On Thu, Mar 28, 2019 at 12:08 AM Luya Tshimbalanga
 wrote:
>
> On 2019-03-26 10:07 a.m., Georg Sauthoff wrote:
> > Hello,
> >
> > when packaging a C/C++ program, the rpm automatic dependency feature
> > usually works well for shared libraries.
> >
> > That mean when program 'bar' needs libfoo-devel at build time it's
> > sufficient to add
> >
> > BuildRequires: libfoo-devel
> >
> > and I can omit
> >
> > Requires: libfoo
> >
> > because rpm automatically adds something like:
> >
> > libfoo.so.1()(64bit)
> >
> > Of course, I could still add a superfluous
> >
> > Requires: libfoo
> >
> > and then the resulting binary package would contain a redundant
> > dependency like this:
> >
> > libfoo
> > libfoo.so.1()(64bit)
> >
> > Has Fedora a policy against such redundant dependencies?
> >
> > Best regards
> > Georg
> > ___
> > devel mailing list -- devel@lists.fedoraproject.org
> > To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: 
> > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
> Sightly related to the topic, is there an effective way to use
> pkgconfig(foo) for packages rather foo-devel?  It seems very few
> packages use that method.

I use the 'pkgconfig(foo)' style dependencies for BuildRequires in all
of my packages, where possible. I found that it's more robust,
especially when there are compat versions of libraries involved.

Since most of the projects that I maintain use either CMake (with
PkgConfig module) or meson, it's really easy to look up the names of
the required pkgconfig modules for the dependencies by just looking at
the upstream project's build system.

Fabio

> Luya
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: pkgconfig usage

2019-03-27 Thread Richard Shaw
On Wed, Mar 27, 2019 at 6:08 PM Luya Tshimbalanga 
wrote:

> Sightly related to the topic, is there an effective way to use
> pkgconfig(foo) for packages rather foo-devel?  It seems very few
> packages use that method.
>

I admit I'm usually too lazy to do this when -devel works. Most of my
packages are CMake based but even then many packages are found through the
pkg-config module.

Thanks,
Richard
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


pkgconfig usage

2019-03-27 Thread Luya Tshimbalanga
On 2019-03-26 10:07 a.m., Georg Sauthoff wrote:
> Hello,
>
> when packaging a C/C++ program, the rpm automatic dependency feature
> usually works well for shared libraries.
>
> That mean when program 'bar' needs libfoo-devel at build time it's
> sufficient to add
>
> BuildRequires: libfoo-devel
>
> and I can omit
>
> Requires: libfoo
>
> because rpm automatically adds something like:
>
> libfoo.so.1()(64bit)
>
> Of course, I could still add a superfluous
>
> Requires: libfoo
>
> and then the resulting binary package would contain a redundant
> dependency like this:
>
> libfoo
> libfoo.so.1()(64bit)
>
> Has Fedora a policy against such redundant dependencies?
>
> Best regards
> Georg
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Sightly related to the topic, is there an effective way to use
pkgconfig(foo) for packages rather foo-devel?  It seems very few
packages use that method.


Luya
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org