]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
package/qt5/qt5base: fix build with ccache
authorBenoît Thébaudeau <benoit@wsystem.com>
Fri, 28 Aug 2015 09:46:51 +0000 (11:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 28 Aug 2015 13:38:59 +0000 (15:38 +0200)
commit0f6efa31c13959f332fd5ee1dd31a1c6f6623c1a
tree8b4afa37f8f84853369851688958015c4c000e99
parent4c19d83ed5a8c2f1163e9ad84a74f3a75d3a5ba9
package/qt5/qt5base: fix build with ccache

Building with ccache failed with:

    Running configuration tests...
    Failed to process makespec for platform 'devices/linux-buildroot-g++'
    Project ERROR: Compiler <path_to_output_dir>/host/usr/bin/ccache <path_to_output_dir>/host/usr/bin/<cross_compile>-g++ not found. Check the value of CROSS_COMPILE -device-option
    Could not read qmake configuration file <path_to_output_dir>/build/qt5base-5.5.0/mkspecs/devices/linux-buildroot-g++/qmake.conf.
    Error processing project file: /dev/null

This was caused by Buildroot setting this in
qt5base-5.5.0/mkspecs/devices/linux-buildroot-g++/qmake.conf:

    QMAKE_CXX               = $${BR_CCACHE} $${CROSS_COMPILE}g++

But qt5base-5.5.0/mkspecs/features/device_config.prf expects QMAKE_CXX
to be a single valid (absolute or QMAKE_PATH_ENV-relative) path to an
existing file, which is not possible if using ccache as above.

Add a patch fixing this by testing only the first value in QMAKE_CXX.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5base/0009-fix-build-with-ccache.patch [new file with mode: 0644]