domoticz: depends on gcc >= 4.8
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 20 Sep 2018 22:01:18 +0000 (00:01 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 25 Sep 2018 21:19:48 +0000 (23:19 +0200)
sleep_for is not always defined with gcc <= 4.7, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52680

To fix this issue, add a dependency to gcc >= 4.8

Fixes:
 - http://autobuild.buildroot.net/results/0dada8dd727f32a4500670f6620adb05943ed0b7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/domoticz/Config.in

index 530027f273953e00dea2a5ecb367d276220411ff..4c5338df0a9741367d9a1f4483433a2de644c6ea 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_DOMOTICZ
        depends on BR2_USE_MMU # mosquitto
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mosquitto
        depends on !BR2_STATIC_LIBS # mosquitto
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # sleep_for
        # pthread_condattr_setclock
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
        depends on BR2_INSTALL_LIBSTDCPP
@@ -27,10 +28,11 @@ config BR2_PACKAGE_DOMOTICZ
 
          http://domoticz.com
 
-comment "domoticz needs lua >= 5.2 and a toolchain w/ C++, NPTL, wchar, dynamic library"
+comment "domoticz needs lua >= 5.2 and a toolchain w/ C++, gcc >= 4.8, NPTL, wchar, dynamic library"
        depends on BR2_USE_MMU
        depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on !BR2_INSTALL_LIBSTDCPP || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
                !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
                !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
                !(BR2_PACKAGE_LUA_5_2 || BR2_PACKAGE_LUA_5_3)