ptest: don't package debug files from tests

Debug files from tests were packaged along with everything else causing
toolchain to have over 3Gb of debug files of little use. Since the
packaging of the debug files is done dynamically, we'll need to remove them
using an additional function that run during the packaging.

Pick-to: 6.2
Task-number: QTBUG-96583
Change-Id: I3695cdd21ba9b9443770c671e50bbf230a58cfd6
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2021-09-17 12:22:03 +03:00
parent 223788235b
commit 626697c8bd

View File

@ -51,3 +51,10 @@ fakeroot do_install_ptest() {
}
INSANE_SKIP:${PN}-ptest += "file-rdeps"
PACKAGESPLITFUNCS =+ "remove_ptest_debug"
remove_ptest_debug() {
for i in $(find ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest/tests/auto -name .debug); do
rm -rf $i
done
}