3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Bjørn Forsman 2019-09-10 08:08:01 +02:00
parent f595f28d55
commit c6d516dfc4

View file

@ -82,7 +82,7 @@ wrapQtAppsHook() {
find "$targetDir" -executable -print0 | while IFS= read -r -d '' file
do
isELFExec "$file" || continue
patchelf --print-interpreter "$file" >/dev/null 2>&1 || continue
if [ -f "$file" ]
then