rpm: fix helper script paths
This commit is contained in:
parent
9e9095c8e3
commit
e5d007e86a
1 changed files with 5 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue