Merge pull request #77993 from ericnorris/master

rpm: fix helper script paths
This commit is contained in:
worldofpeace 2020-01-18 20:46:16 -05:00 committed by GitHub
commit 282b79a885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}