From 2aee829fc88fdde3983080de5c56fa06eb678280 Mon Sep 17 00:00:00 2001 From: Radoslav Kolev Date: Tue, 14 May 2024 12:19:22 +0300 Subject: [PATCH] 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. --- test/test-rpm-macros.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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