git.iko.soy/typeable/nixpkgs
on master help sign in
autoPatchelf: add comment why ignore failing ldd/sed
commit2efcf6dc260dea45238c9378653b5066d2dfad04 authorDavHau <hsngrmpf+github@gmail.com> dateSun 20 Dec 2020, 15:24 (6 years ago) parent2fde1e6
1 file changed+2
pkgs/build-support/setup-hooks/auto-patchelf.sh+2
pkgs/build-support/setup-hooks/auto-patchelf.sh+2
@@ -135,6 +135,8 @@ autoPatchelfFile() {
135135 # clear the RPATH first.
136136 runPatchelf --remove-rpath "$toPatch"
137137
138+ # If the file is not a dynamic executable, ldd/sed will fail,
139+ # in which case we return, since there is nothing left to do.
138140 local missing
139141 missing="$(
140142 ldd "$toPatch" 2> /dev/null | \