On Tue, 30 Apr 2019 at 14:59, Neal Gompa <ngompa13(a)gmail.com> wrote:
[,,]
> Bollocks .. just sed/perl oneliner which will add
BuildRequires:
pkgconfig if in package is used any "BuildRequires: pkgconfig(<foo>) and
remove from rpmdependencies autogenerator add "Requires: pkgconfig" if
package has any on the list any pkgconfig file -> rebuild all affected
packages.
> It should take ~1h for someone with proven packager priviledges.
Note that removing /usr/bin/pkg-config from the build environment also
stops pkgconfig() Provides/Requires from being generated.
And while I am a provenpackager and capable of making these kinds of
changes, I won't if I think they're not a good idea (like this one).
So that is your problem that you don't see that serving any .pc file should
not automatically cause "Requires: pkgconfig(<foo>)", and that such
generator should not relay on availability of pkgconfig command in build
env isn't correct solution as well.
If you still have some king of doubts that this is correct solution just
please try to describe scenario when this may not work or will produce
misleading results. Can you do this .. please?
Just in case if anyone woulds be asking did I tested this.
I'm using above solution since I've first time opened issue ticket against
rpm to drop adding pkgconfig (~two years ago). So far ItWorks(tm).
Please find in attachment patch patch which I'm using.
If you will have look closer you can find that this patch effectively
removes only one line and everything else makes that generator shorter and
depends only on POSIX sh (because it does not uses any bash specific
extensions).
And on the bottom line
If that problem would be solved we can start discussing dropping adding
Requires.Private as automatic devel dependencies. And filter off
Libs.Priovarte as only handful pf Fedora packages provides static libraries.
This issue is as well related to meson messy behaviour. Coincidence but
today I'v opened issue ticket against meson related to propagating
Requires.Provate when meson is used to build only shared ABI.
https://github.com/mesonbuild/meson/issues/5334
PS. No offence but when it comes to engineering usually when someone cannot
prove/disprove something in technical context and to refuse something they
are using only what they like/dislike usually I'm stoop listening.
If you do not understand simple fact that you can only use your taste when
you have two Correct(tm) solutions .. just change job.
kloczek
--
Tomasz Kłoczko | LinkedIn:
http://lnkd.in/FXPWxH