rpm: fix helper script paths
This commit is contained in:
parent
9e9095c8e3
commit
e5d007e86a
@ -50,6 +50,11 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i $out/lib/rpm/macros -e "s/^%__$tool.*/%__$tool $tool/"
|
sed -i $out/lib/rpm/macros -e "s/^%__$tool.*/%__$tool $tool/"
|
||||||
done
|
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
|
# symlinks produced by build are incorrect
|
||||||
ln -sf $out/bin/{rpm,rpmquery}
|
ln -sf $out/bin/{rpm,rpmquery}
|
||||||
ln -sf $out/bin/{rpm,rpmverify}
|
ln -sf $out/bin/{rpm,rpmverify}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user