New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.50.1: Requires.private is propagated when no static libraries are used #5334
Comments
Downstream issue as their meson.build hardcodes
The .pc files are not propagated with anything. libwnck contains a .pc.in that contains "Requires.private", and meson is not responsible for adding these at all.
This is correct and proper. When using these .pc files, if you use Most .pc files that are generated by autotools, or finely crafted in a text editor, also have Requires.private as needed.
This is incorrect and it does not check "Requires.private" on my system. However, |
You are right about template .pc.in file in libwnck. Yes, it has Requires.private line. |
I've added in libwnck package workaround in rpm package %install section by execute
Theoretically --libs as it is only for shared libraries linking should return just
I'm almost sure that 1.5.x have been generating shorter/proper list. |
No.
Requires is strictly defined. Its entire purpose is in order to cause DSO with many libraries. Any pc file which contains Requires, is stating that it needs to link to all these dependencies even when it is a shared library. This happens when a project, like gtk3, exports all of its dependencies as part of its public ABI. ... This is all coming from pkg-config, so it has nothing to do with meson. Maybe report further questions to the pkg-config project at https://www.freedesktop.org/wiki/Software/pkg-config/ |
Yes I think that we can close this ticket. |
I'm not 100% sure where is the problem however it is related to propagating Requires.private in .pc files but looks like it maybe more than one bug/issue.
Case:
latest libwnck in meson.build has:
It causes that it is generated .pc file:
Issues:
{'name': XRES_PACKAGE, 'required': false},
For that I have already opened https://gitlab.gnome.org/GNOME/libwnck/issues/138
.pc files are with propagated libwnck Requires.private despite fact that during building libwnck I'm not generating static libraries which could be used later.
I see on my system that a lot of other projects which are using meson based .pc files generators have Requires.private and none of them have been build to build static libraries
Issue seems is as well with pkgconfig as on using PKG_CHECK_MODULES() aclocal macro it checks Requires and Requires.private dependencies.
The text was updated successfully, but these errors were encountered: