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
envconfig: add pkg_config_libdir property #6461
envconfig: add pkg_config_libdir property #6461
Conversation
b7669c6
to
b159271
Compare
For cross compilation, it's not PKG_CONFIG_PATH you need to set, but PKG_CONFIG_LIBDIR. The difference is the former is in addition to system paths, the latter is instead of system paths. pkg-config doc recommends using this wrapper for cross compilation, I think Meson should set the same env vars using the cross file.
|
b159271
to
a9f7dbb
Compare
a9f7dbb
to
b42009c
Compare
Implementation looks good to me. It's missing doc (grep for pkg_config_path to add at the same place), release notes, and unit test ( similar to run_unittest.py's test_cross_pkg_config_option() probably). |
What the test could do:
Thinking more about it, I think if |
Thx for the recommandation, I'll try to implement something like that. Is there a simple way to run a single unit test from CLI ?
Yes I agree, we should warn some how the user. |
./run_unittests.py TheTestClass.test_function |
8c0af70
to
e9adbd6
Compare
e9adbd6
to
39b771d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a bug in your code if pkg_config_libdir is a string and not a list. I think it would be best if internally we always represented this as a list of strings or None.
@dabrain34 Oops, I just realised that test_native_dep_pkgconfig() does exactly what you want already. You can reuse the same unit test and just add a case where it generate a cross file with pkgconfig='pkg-config' (instead of cross_pkgconfig.py) and set pkg_config_libdir. |
8109e3c
to
9ac521e
Compare
9ac521e
to
e9636cf
Compare
e9636cf
to
9bf75ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, thanks for making changes.
You do need some documentation as @xclaesse said. You'll need a release snippet and to update the general docs.
Can you give me more details if I have something special to perform here. I think I already updated the documentation. |
9bf75ce
to
866063e
Compare
The doc is fine, but it's missing a release notes snippet. Add a file into docs/markdown/snippets/ |
866063e
to
8513855
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there, just small nitpickings. Thanks for your work :D
unit tests are failing, it seems unrelated, but that needs to be checked too :/ |
8513855
to
4d74c86
Compare
Looks all good to me now, when CI is green. |
In order to unify the use of sysroot in the cross-file, the pkg_config_libdir can now be passed directly in the file.
4d74c86
to
640e759
Compare
LGTM when CI is green. For the record, we had to drop the change that uses |
Hi, This feature is not working on the meson 0.53.2, right? Best Regards, |
AFAIK its only in master and planned to be release in 0.54 If you need it, its quite easy to use meson as you checkout the master branch of this repo and make alias to meson.py in this repo.
|
In order to unify the use of sysroot in the cross-file,
the pkg_config_path can now be passed directly in the file.