From 3dcc4f8f4903062f46a6c4298b75f0cf678ed99c Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Fri, 29 Jul 2016 18:31:07 +0200 Subject: [PATCH] build.sh: fix random build failures in the buildserver We have seen lately random build failures in the buildserver due to missing QT5 base libraries that are needed when building some other QT5 packages. Examples: Compiling qtdeclarative: error: cannot open .../tmp/work/cortexa9hf-vfp-neon-mx6qdl-dey-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/lib/libQt5Core.so: No such file or directory error: cannot open .../tmp/work/cortexa9hf-vfp-neon-mx6qdl-dey-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/lib/libQt5Network.so: No such file or directory error: cannot open .../tmp/work/cortexa9hf-vfp-neon-mx6qdl-dey-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/lib/libQt5Widgets.so: No such file or directory The problem here is that 'qtdeclarative' is trying to get the needed libraries from the 'qtbase' temporary work directory. But because in the buildserver we have 'rm_work' enabled to save space, sometimes the rm-work class has removed the 'qtbase' work directory before 'qtdeclarative' has been built, leading to the compilation error. This is probably a bug in 'meta-qt5', because the different packages needing QT5 base libraries should take them at compile time from the sysroot and not from the qtbase work directory. At the moment just workaround this adding an exception to the rm-work class to not remove the 'qtbase' temporary work directory. Signed-off-by: Javier Viguera --- sdk/build-github.sh | 2 +- sdk/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/build-github.sh b/sdk/build-github.sh index 6ec295345..bbe509e71 100755 --- a/sdk/build-github.sh +++ b/sdk/build-github.sh @@ -29,7 +29,7 @@ MANIFEST_URL="https://github.com/digi-embedded/dey-manifest.git" RM_WORK_CFG=" INHERIT += \"rm_work\" # Exclude rm_work for some key packages (for debugging purposes) -RM_WORK_EXCLUDE += \"dey-image-qt linux-dey u-boot-dey\" +RM_WORK_EXCLUDE += \"dey-image-qt linux-dey qtbase u-boot-dey\" " X11_REMOVAL_CFG=" diff --git a/sdk/build.sh b/sdk/build.sh index 2983e4cb8..ba4533982 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -42,7 +42,7 @@ BB_GENERATE_MIRROR_TARBALLS = \"1\" RM_WORK_CFG=" INHERIT += \"rm_work\" # Exclude rm_work for some key packages (for debugging purposes) -RM_WORK_EXCLUDE += \"dey-image-qt linux-dey u-boot-dey\" +RM_WORK_EXCLUDE += \"dey-image-qt linux-dey qtbase u-boot-dey\" " X11_REMOVAL_CFG="