forked from mirrors/nixpkgs
Merge pull request #77993 from ericnorris/master
rpm: fix helper script paths
This commit is contained in:
commit
282b79a885
|
@ -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