qt55.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-29 14:07:03 -05:00
parent 747517da48
commit 95c5bfc2dc

View File

@ -68,6 +68,10 @@ _qtMultioutModuleDevs() {
fi
}
_qtRmQtOut() {
rm -fr "$qtOut"
}
qmakeConfigurePhase() {
runHook preConfigure
@ -109,6 +113,8 @@ fi
if [ -n "$NIX_QT_SUBMODULE" ]; then
postInstallHooks+=(_qtRmQmake _qtRmModules)
preFixupHooks+=(_qtMultioutModuleDevs)
else
postInstallHooks+=(_qtRmQtOut)
fi
fi