1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-13 12:58:20 +03:00

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.

(cherry picked from commit 2aee829fc88fdde3983080de5c56fa06eb678280)
(cherry picked from commit 936576d0f5300d3f5b455246acbba729b558659b)
(cherry picked from commit eec41b70162f9337e3aa6256e8db48f3948a5dc9)
(cherry picked from commit c495f85640f7ef3812ba8551c3a6c53885b4ce9c)
This commit is contained in:
Radoslav Kolev 2024-05-14 12:19:22 +03:00 committed by Luca Boccassi
parent 0ea8863b7a
commit 326ad53947

View File

@ -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