[PATCH] Allow Samba/WAF to have pkg-config path overriden

Zen illiminable at gmail.com
Wed Jan 11 01:36:00 UTC 2017


I'm cross-compiling for a configuration where the target sysroot is
different from the build system.

In order for several parts of configure that use pkg-config to verify
dependencies to work they need to use the pkg-config from the targets root
not the build system.

I looked into it and the call to pkg-config is just in a string (which will
resolve in the context of the build machine). I looked at the latest
version of WAF [1] and it does something a little different and calls
find_program(). This will also not work correctly for this configuration
because it will still just look on the build systems path.

I attached a patch to check PKG_CONFIG environment variable (which is what
autoconf uses) first then fallback to using find_program() like the more
recent version of WAF does.

Thanks!

[1] -
https://github.com/waf-project/waf/blame/master/waflib/Tools/c_config.py#L236
-------------- next part --------------
A non-text attachment was scrubbed...
Name: override_pkg_config.patch
Type: text/x-patch
Size: 1056 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170110/2b2a1055/override_pkg_config-0001.bin>


More information about the samba-technical mailing list