systemd-cryptsetup-generator: fixup linkage
It got broken by 74a64a8a6 #53483. But IMO it's *this* expression that was written in a too fragile way.
This commit is contained in:
parent
92a44bd100
commit
2c226107cb
@ -14,12 +14,13 @@ systemd.overrideAttrs (p: {
|
|||||||
# As ninja install is not used here, the rpath needs to be manually fixed.
|
# As ninja install is not used here, the rpath needs to be manually fixed.
|
||||||
# Otherwise the resulting binary doesn't properly link against systemd-shared.so
|
# Otherwise the resulting binary doesn't properly link against systemd-shared.so
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
sharedLib=libsystemd-shared-${p.version}.so
|
|
||||||
for prog in `find $out -type f -executable`; do
|
for prog in `find $out -type f -executable`; do
|
||||||
(patchelf --print-needed $prog | grep $sharedLib > /dev/null) && (
|
(patchelf --print-needed $prog | grep 'libsystemd-shared-.*\.so' > /dev/null) && (
|
||||||
patchelf --set-rpath `patchelf --print-rpath $prog`:"$out/lib/systemd" $prog
|
patchelf --set-rpath `patchelf --print-rpath $prog`:"$out/lib/systemd" $prog
|
||||||
) || true
|
) || true
|
||||||
done
|
done
|
||||||
|
# test it's OK
|
||||||
|
"$out"/lib/systemd/systemd-cryptsetup
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user