From 2efcf6dc260dea45238c9378653b5066d2dfad04 Mon Sep 17 00:00:00 2001 From: DavHau Date: Sun, 20 Dec 2020 15:24:10 +0700 Subject: [PATCH] autoPatchelf: add comment why ignore failing ldd/sed --- pkgs/build-support/setup-hooks/auto-patchelf.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.sh b/pkgs/build-support/setup-hooks/auto-patchelf.sh index 3c0997a0dcd5..511371931de8 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.sh +++ b/pkgs/build-support/setup-hooks/auto-patchelf.sh @@ -135,6 +135,8 @@ autoPatchelfFile() { # clear the RPATH first. runPatchelf --remove-rpath "$toPatch" + # If the file is not a dynamic executable, ldd/sed will fail, + # in which case we return, since there is nothing left to do. local missing missing="$( ldd "$toPatch" 2> /dev/null | \