[Buildroot] [PATCH 1/1] Added extra patch to qt5base package for fixing ccache related compile error with new QT 5.5

Jaap Crezee jaap at jcz.nl
Sun Jul 26 10:49:38 UTC 2015


Signed-off-by: Jaap Crezee <jaap at jcz.nl>
Tested-by: Yegor Yefremov <yegorslists at googlemail.com>
---
 package/qt5/qt5base/0008-ccache_buildroot_fix.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/qt5/qt5base/0008-ccache_buildroot_fix.patch

diff --git a/package/qt5/qt5base/0008-ccache_buildroot_fix.patch b/package/qt5/qt5base/0008-ccache_buildroot_fix.patch
new file mode 100644
index 0000000..62aa57b
--- /dev/null
+++ b/package/qt5/qt5base/0008-ccache_buildroot_fix.patch
@@ -0,0 +1,16 @@
+Author: Jaap Crezee <jaap at jcz.nl>
+---
+diff --git a/mkspecs/features/device_config.prf b/mkspecs/features/device_config.prf
+index cd3a0cf..674b3dd 100644
+--- a/mkspecs/features/device_config.prf
++++ b/mkspecs/features/device_config.prf
+@@ -35,6 +35,9 @@ defineTest(deviceSanityCheckCompiler) {
+             return()
+     }
+ 
++    # Last resort, check if we can still execute it (for example in Buildroot/Crosscompile...)
++    system("which $$QMAKE_CXX > /dev/null"):return()
++
+     # QMAKE_CXX does not point to a compiler.
+     error("Compiler $$QMAKE_CXX not found. Check the value of CROSS_COMPILE -device-option")
+ }
-- 
2.4.6




More information about the buildroot mailing list