Open andrzejc opened 1 year ago
After reading #10275 I did a very simple check with my current msys2 pkg-config 1.8.0:
with ':' as a separator:
> set "PKG_CONFIG_PATH=c:\data2\moonlight-deps\windows-clang15\icu4c-71_1\x64\lib\pkgconfig:c:\data2\moonlight-deps\windows-clang15\openssl-1.1.1s\x64\lib\pkgconfig"
> c:\msys64\usr\bin\pkg-config --modversion libcrypto
1.1.1s
with ';' separator:
> set "PKG_CONFIG_PATH=c:\data2\moonlight-deps\windows-clang15\icu4c-71_1\x64\lib\pkgconfig;c:\data2\moonlight-deps\windows-clang15\openssl-1.1.1s\x64\lib\pkgconfig"
> c:\msys64\usr\bin\pkg-config --modversion libcrypto
Package libcrypto was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcrypto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libcrypto', required by 'virtual:world', not found
somehow it seems that the translation of path list separator isn't happening in this case. Behaves the same when called from cmd.exe and when using msys bash...
Describe the bug Commit 18bec0d3e31884dc493a03741b2ec9fef17047ee introduces a regression in my build setup with the way it sets PKG_CONFIG_LIBDIR. In this particular configuration I use msys2 pkg-config which expects Unix-style path separator (':') in env vars. It seems that aformentioned commit changes the path separator to windows-style (';') which is no longer recongized by pkg-config and dependency discovery fails. I'm not aware if there's any other pkg-config variant usable on Windows which uses ';' as a separator, msys seems lika a natural choice.
meson-log.txt before the commit:
after the commit:
This causes the discovery of libcrypto to fail:
To Reproduce Please include your
meson.build
files, preferably as a minimal toy example showing the issue. You may need to create simple source code files (don't include private/proprietary code).setup command:
windows.conf:
x64.conf:
(minimized) meson.build:
Expected behavior I expect the build setup to succeed just like it did before commit 18bec0d3e31884dc493a03741b2ec9fef17047ee
system parameters