Emulator Issues #2670
closedScons does not honour PKG_CONFIG_PATH
0%
Description
What steps will reproduce the problem?
- Move system .pc files to a nonstandard dir such as ~/temppcs/
- In dolphin source tree:
export PKG_CONFIG_PATH=~/temppcs/
pkg-config --libs x11 # should still work
scons # fails
Scons fails to find any system libraries via pkg-config.
PKG_CONFIG_PATH is an important environment variable when using pkg-config,
and scons only honours environment variables that are manually exported.
The attached patch does so.
Updated by nakeee almost 15 years ago
scons doesn't need to honor it, it just needs to pass it over to the call that runs
pkg-config from inside scons. But I remember that the import of the env suppose to do
that.
Updated by baffo32 almost 15 years ago
By 'honor' I mean pass it over to any process it runs. I tried scons 1.3.0 and 1.2.0
and in both only HOME and PATH were passed from my shell environment to pkg-config.
My environment is obviously not being entirely imported -- are you saying it should be?
Updated by baffo32 almost 15 years ago
Sorry, I understand -- the environment is imported elsewhere in the SConstruct. Here
is a proper patch.
Updated by nakeee almost 15 years ago
- Status changed from New to Accepted
Much better but you need to check if the variable exists
your patch will make scons die if PKG_CONFIG_PATH is not set
Updated by nakeee almost 15 years ago
- Status changed from Accepted to Fixed
assumed fixed reopen if not