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:
parent
d231cdf51f
commit
747517da48
@ -74,6 +74,10 @@ _qtModuleMultioutDevsPost() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_qtRmQtOut() {
|
||||||
|
rm -fr "$qtOut"
|
||||||
|
}
|
||||||
|
|
||||||
qmakeConfigurePhase() {
|
qmakeConfigurePhase() {
|
||||||
runHook preConfigure
|
runHook preConfigure
|
||||||
|
|
||||||
@ -116,6 +120,8 @@ if [ -n "$NIX_QT_SUBMODULE" ]; then
|
|||||||
postInstallHooks+=(_qtRmQmake _qtRmModules)
|
postInstallHooks+=(_qtRmQmake _qtRmModules)
|
||||||
preFixupHooks+=(_qtModuleMultioutDevsPre)
|
preFixupHooks+=(_qtModuleMultioutDevsPre)
|
||||||
postFixupHooks+=(_qtModuleMultioutDevsPost)
|
postFixupHooks+=(_qtModuleMultioutDevsPost)
|
||||||
|
else
|
||||||
|
postInstallHooks+=(_qtRmQtOut)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user