From 747517da480c986e5f7146ede0ccfbc2b15b6924 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sat, 28 May 2016 16:06:03 -0500 Subject: [PATCH] qt56.qmakeHook: remove temporary directory in postInstall Fixes #15556. If the temporary directory is not removed, it will be retained in RPATH, which is a serious security concern. --- pkgs/development/libraries/qt-5/5.6/qmake-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/qt-5/5.6/qmake-hook.sh b/pkgs/development/libraries/qt-5/5.6/qmake-hook.sh index cf3803a1b9c..9fd4735209c 100644 --- a/pkgs/development/libraries/qt-5/5.6/qmake-hook.sh +++ b/pkgs/development/libraries/qt-5/5.6/qmake-hook.sh @@ -74,6 +74,10 @@ _qtModuleMultioutDevsPost() { fi } +_qtRmQtOut() { + rm -fr "$qtOut" +} + qmakeConfigurePhase() { runHook preConfigure @@ -116,6 +120,8 @@ if [ -n "$NIX_QT_SUBMODULE" ]; then postInstallHooks+=(_qtRmQmake _qtRmModules) preFixupHooks+=(_qtModuleMultioutDevsPre) postFixupHooks+=(_qtModuleMultioutDevsPost) +else + postInstallHooks+=(_qtRmQtOut) fi fi