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.
This commit is contained in:
Thomas Tuegel 2016-05-28 16:06:03 -05:00
parent d231cdf51f
commit 747517da48
1 changed files with 6 additions and 0 deletions

View File

@ -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