systemd: remove unneeded rpath fixup

This commit is contained in:
Jan Tojnar 2018-02-25 01:46:25 +01:00
parent 45d0d90792
commit 1c6f15083b
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

@ -201,18 +201,6 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true;
# The rpath to the shared systemd library is not added by meson. The
# functionality was removed by a nixpkgs patch because it would overwrite
# the existing rpath.
postFixup = ''
sharedLib=libsystemd-shared-${version}.so
for prog in `find $out -type f -executable`; do
(patchelf --print-needed $prog | grep $sharedLib > /dev/null) && (
patchelf --set-rpath `patchelf --print-rpath $prog`:"$out/lib/systemd" $prog
) || true
done
'';
# The interface version prevents NixOS from switching to an
# incompatible systemd at runtime. (Switching across reboots is
# fine, of course.) It should be increased whenever systemd changes