package/network-manager: needs gcc >= 4.9
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 5 Aug 2021 08:33:25 +0000 (10:33 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 5 Aug 2021 18:57:24 +0000 (20:57 +0200)
network-manager needs gcc >= 4.9 since bump to version 1.32.2 in commit
360d1aad84449c6a1993d8c7e469dc0cd35339a2 to avoid the following build
failure:

src/libnm-core-impl/nm-setting-bond.c: At top level:
src/libnm-core-impl/nm-setting-bond.c:149:5: error: array initialized from non-constant array expression
     NM_MAKE_STRV("stable", "bandwidth", "count");
     ^

Fixes:
 - http://autobuild.buildroot.org/results/dc270ead82707f89d47616a0c18629715c6ea1a5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/network-manager/Config.in

index 7d447684608288552e8d6862a20ac7406c6cc857..38ab43740fe0042ae779ed42a0de4a67d3bb5a8e 100644 (file)
@@ -4,6 +4,7 @@ config BR2_PACKAGE_NETWORK_MANAGER
        depends on !BR2_STATIC_LIBS # gnutls
        depends on BR2_USE_MMU # dbus
        depends on BR2_PACKAGE_HAS_UDEV
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
        # Tested with 3.2, but may even work with earlier versions
        depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
        depends on BR2_TOOLCHAIN_USES_GLIBC # CLOCK_BOOTTIME, IPTOS_CLASS_*
@@ -61,9 +62,10 @@ config BR2_PACKAGE_NETWORK_MANAGER_OVS
 
 endif
 
-comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.2, dynamic library, wchar, threads"
+comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.2, dynamic library, wchar, threads, gcc >= 4.9"
        depends on BR2_USE_MMU
        depends on !BR2_PACKAGE_HAS_UDEV || \
                !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2 || \
                !BR2_TOOLCHAIN_USES_GLIBC || BR2_STATIC_LIBS || \
-               !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+               !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9