From: Radoslav Kolev Date: Tue, 14 May 2024 09:19:22 +0000 (+0300) Subject: test/test-rpm-macros.sh: add build directory to pkg-config search path X-Git-Tag: v256-rc3~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aee829fc88fdde3983080de5c56fa06eb678280;p=thirdparty%2Fsystemd.git test/test-rpm-macros.sh: add build directory to pkg-config search path If tests are run during build time, without an already installed systemd they fail to resolve the sysusersdir and tpmfilesdir pkg-config variables. --- diff --git a/test/test-rpm-macros.sh b/test/test-rpm-macros.sh index c7107dec3ea..c9a45dc7836 100755 --- a/test/test-rpm-macros.sh +++ b/test/test-rpm-macros.sh @@ -137,7 +137,7 @@ for i in sysusers tmpfiles; do PKG_DATA_FILE="$(mktemp "$WORK_DIR/pkg-data-XXX")" EXP_OUT="$(mktemp "$WORK_DIR/exp-out-XXX.log")" - CONF_DIR="$(pkg-config --variable="${i}dir" systemd)" + CONF_DIR="$(PKG_CONFIG_PATH="${BUILD_DIR}/src/core" pkg-config --variable="${i}dir" systemd)" EXTRA_ARGS=() if [[ "$i" == tmpfiles ]]; then