rpm: fix helper script paths

This commit is contained in:
Eric Norris 2020-01-18 15:59:30 -05:00
parent 9e9095c8e3
commit e5d007e86a
No known key found for this signature in database
GPG key ID: 8E3B98372AAB9000

View file

@ -50,6 +50,11 @@ stdenv.mkDerivation rec {
sed -i $out/lib/rpm/macros -e "s/^%__$tool.*/%__$tool $tool/"
done
# Avoid helper scripts pointing to absolute paths
for tool in find-provides find-requires; do
sed -i $out/lib/rpm/$tool -e "s#/usr/lib/rpm/#$out/lib/rpm/#"
done
# symlinks produced by build are incorrect
ln -sf $out/bin/{rpm,rpmquery}
ln -sf $out/bin/{rpm,rpmverify}