fix: Apply realpath around _builddir, fixes a double slash that causes our changes to be ignored (#613)

fix: Apply realpath around _builddir, fixes a double slash that causes our change to be ignored
This commit is contained in:
Kyle Gospodnetich 2026-10-20 21:06:08 -07:00 committed by GitHub
parent 6cda5f6fba
commit e2b0f07d8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,7 +99,7 @@ original_build_pre="$(rpm --eval '%{macrobody:__spec_build_pre}')"
printf '%%__spec_build_pre '
printf '%s\n' "$original_build_pre" | sed 's/$/\\/'
cat <<'EOF'
export KCFLAGS="${KCFLAGS:+${KCFLAGS} }-ffile-prefix-map=%{_builddir}=/usr/src/akmods"
export KCFLAGS="${KCFLAGS:+${KCFLAGS} }-ffile-prefix-map=$(realpath -m "%{_builddir}")=/usr/src/akmods"
EOF
} > /etc/rpm/macros.akmods-reproducible