Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

all around: disable print_system_libs in calls to pkg-config #80

Merged
merged 1 commit into from
Feb 24, 2018

Conversation

MathieuDuponchelle
Copy link
Contributor

By default, pkg-config-rs sets the PKG_CONFIG_ALLOW_SYSTEM_LIBS
environment variable
(rust-lang/pkg-config-rs#35), which leads
to eg /usr/lib being present in the middle of the final command,
in turn leading to issues when working in an uninstalled environment,
where libraries that are also present system-wide do not get linked
against.

@EPashkin
Copy link
Member

Confirming that it still worked on windows/msys2 64

@MathieuDuponchelle
Copy link
Contributor Author

@EPashkin thanks for checking, as far as I understand, this sort of "default" system paths are better left to the compiler

@MathieuDuponchelle
Copy link
Contributor Author

Should this go in then? :)

@@ -47,6 +47,7 @@ fn find() -> Result<(), Error> {

let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this change need be done in gir before and this PR need change as regen with Gir submodule update

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah didn't know this was generated, proposed gtk-rs/gir#553, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done :)

@@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed)
// This file was generated by gir (https://github.com/gtk-rs/gir @ a418513)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gir sub-module updated to 6114d1c7e2, but here commit before merge.
I usually touch gir's Cargo.toml to regen after my gir commit merged to get right version.

@EPashkin
Copy link
Member

@MathieuDuponchelle Thanks
@GuillaumeGomez LGFM and works for me (windows).
cc @sdroege just in case

@GuillaumeGomez
Copy link
Member

Thanks!

@sdroege
Copy link
Member

sdroege commented Feb 24, 2018

That change is already in gstreamer-sys :) go ahead

@GuillaumeGomez GuillaumeGomez merged commit 3b99cf7 into gtk-rs:master Feb 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants