aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-01-22 01:45:35 +0000
committerNIIBE Yutaka <[email protected]>2025-01-22 01:45:35 +0000
commitb6df311368133df90c3bf338fbf5c90bd8d950f8 (patch)
tree44a905c49061dae834d403af0b1fecc150ab8750 /src
parentbuild: Remove defining GPG_ERR_ENABLE_ERRNO_MACROS. (diff)
downloadlibgpg-error-b6df311368133df90c3bf338fbf5c90bd8d950f8.tar.gz
libgpg-error-b6df311368133df90c3bf338fbf5c90bd8d950f8.zip
Skip gpg-error-config-test.sh for specific incompatible pkg-config.
* src/gpg-error-config-test.sh.in: Skip the test with pkgconf 1.8.0. -- Possibly, we need to skip with 1.9.0, 1.9.1, 1.9.2, and 1.9.3, too. pkgconf 1.8.1 (on Debian) works well. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gpg-error-config-test.sh.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpg-error-config-test.sh.in b/src/gpg-error-config-test.sh.in
index cd4a7e3..0eaa7dd 100644
--- a/src/gpg-error-config-test.sh.in
+++ b/src/gpg-error-config-test.sh.in
@@ -15,6 +15,15 @@ if [ "$1" = --old-new ]; then
# Old gpg-error-config never supports PKG_CONFIG_SYSROOT_DIR
unset PKG_CONFIG_SYSROOT_DIR
else
+ if ! pkg_config_version=$(pkg-config --version 2>/dev/null); then
+ # Skip this test when pkg-config is not available
+ exit 77
+ fi
+ case $pkg_config_version in
+ # We know that pkgconf 1.8.0 doesn't work well
+ 1.8.0) exit 77 ;;
+ *) ;;
+ esac
pkg_config_min_version=0.29
PKG_CONFIG_SYSROOT_DIR="/var/example-target"
export PKG_CONFIG_SYSROOT_DIR