wrapQtAppsHook: use `patchelf --print-interpreter` instead of `isELFExec`
Some executables are built as PIEs (e.g. keepassxc) and are technically
isELFDyn, not isELFExec. Without this change those executables will not
be wrapped.
commitc6d516dfc49c1d84ef03605e0d2b8aa3ea8ae431
authorBjørn Forsman <bjorn.forsman@gmail.com>
dateTue 10 Sep 2019, 08:08 (7 years ago)
parentf595f28
pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh+1−1
@@ -82,7 +82,7 @@ wrapQtAppsHook() {
8282
8383 find "$targetDir" -executable -print0 | while IFS= read -r -d '' file
8484 do
85− isELFExec "$file" || continue
85+ patchelf --print-interpreter "$file" >/dev/null 2>&1 || continue
8686
8787 if [ -f "$file" ]
8888 then