package/openal: needs gcc >= 4.9
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 18 Aug 2020 21:54:12 +0000 (23:54 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 28 Aug 2020 20:56:49 +0000 (22:56 +0200)
openal uses std::max_align_t since version 1.20.0 and
https://github.com/kcat/openal-soft/commit/585b0cf3bed7d1c5720633eb7e5358a9fca865f6

As a result, it is affected by
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019
and the build with gcc <= 4.8 will fail on:

/home/buildroot/autobuild/instance-2/output-1/build/openal-1.20.1/common/almalloc.cpp: In function 'void* al_malloc(size_t, size_t)':
/home/buildroot/autobuild/instance-2/output-1/build/openal-1.20.1/common/almalloc.cpp:20:45: error: 'max_align_t' is not a member of 'std'
     alignment = std::max(alignment, alignof(std::max_align_t));
                                             ^

Fixes:
 - http://autobuild.buildroot.org/results/589c7853ce334c7502f7cd4cdbcaaf3c6840f43b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gstreamer1/gst1-plugins-bad/Config.in
package/lugaru/Config.in
package/openal/Config.in
package/solarus/Config.in
package/supertuxkart/Config.in

index c6e4a547f1c85eb04846211a5e9eb676a50678b2..5a066cb1791139c5f4db32dcacbdcc3eba7de2bc 100644 (file)
@@ -491,16 +491,16 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_NEON
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENAL
        bool "openal"
        depends on BR2_INSTALL_LIBSTDCPP
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
        depends on BR2_PAKCAGE_OPENAL_ARCH_SUPPORTS
        select BR2_PACKAGE_OPENAL
 
-comment "openal plugin needs a toolchain w/ NPTL, C++, gcc >= 4.7"
+comment "openal plugin needs a toolchain w/ NPTL, C++, gcc >= 4.9"
        depends on BR2_PAKCAGE_OPENAL_ARCH_SUPPORTS
        depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
                || !BR2_INSTALL_LIBSTDCPP \
-               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENH264
        bool "openh264"
index 521c89aeb099d35f33ca857b567d6e522883d7e8..4454ebcd069ccd66b49522e4d7d3e97690c7b13d 100644 (file)
@@ -4,7 +4,7 @@ config BR2_PACKAGE_LUGARU
        depends on BR2_PACKAGE_HAS_LIBGL # libglu
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
        depends on BR2_PACKAGE_XORG7 # SDL2 OpenGL (GLX)
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # openal
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
        depends on BR2_USE_MMU # SDL2 OpenGL (GLX)
        depends on !BR2_STATIC_LIBS # SDL2
@@ -29,10 +29,10 @@ config BR2_PACKAGE_LUGARU
 
          https://osslugaru.gitlab.io/
 
-comment "lugaru needs X11 and a toolchain w/ C++, OpenGL backend, gcc >= 4.7, NPTL, dynamic library"
+comment "lugaru needs X11 and a toolchain w/ C++, OpenGL backend, gcc >= 4.9, NPTL, dynamic library"
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
        depends on BR2_PACKAGE_XORG7
        depends on BR2_USE_MMU
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_HAS_LIBGL || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
                BR2_STATIC_LIBS
index 7025c131e81f8e36b9d9499c65756d62e9b4e017..6b0e9973db0269be96b9533ec3a467b0b550d2f1 100644 (file)
@@ -16,7 +16,7 @@ config BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
 config BR2_PACKAGE_OPENAL
        bool "openal"
        depends on BR2_INSTALL_LIBSTDCPP
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
        help
@@ -27,8 +27,8 @@ config BR2_PACKAGE_OPENAL
 
          http://kcat.strangesoft.net/openal.html
 
-comment "openal needs a toolchain w/ NPTL, C++, gcc >= 4.7"
+comment "openal needs a toolchain w/ NPTL, C++, gcc >= 4.9"
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
        depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
                || !BR2_INSTALL_LIBSTDCPP \
-               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
index cdff62687f89c473e5361aac72651df017ab968c..b0f4121f6de2f8d77eae48ddb18e23169bd2c8bc 100644 (file)
@@ -3,7 +3,7 @@ config BR2_PACKAGE_SOLARUS
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # openal
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
        depends on !BR2_STATIC_LIBS # SDL2
        depends on BR2_PACKAGE_HAS_LIBGL
@@ -25,9 +25,9 @@ config BR2_PACKAGE_SOLARUS
          http://www.solarus-games.org
          https://github.com/solarus-games/solarus
 
-comment "solarus needs OpenGL and a toolchain w/ C++, gcc >= 4.8, NPTL, dynamic library, and luajit or lua 5.1"
+comment "solarus needs OpenGL and a toolchain w/ C++, gcc >= 4.9, NPTL, dynamic library, and luajit or lua 5.1"
        depends on !BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
-       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
                || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
                || !BR2_PACKAGE_HAS_LIBGL
index b8ac3ae2618c33987d229e601bc879405269e37c..99f2310d827063b4bb75bb15abd4a34eabd70dcd 100644 (file)
@@ -4,7 +4,7 @@ config BR2_PACKAGE_SUPERTUXKART
        depends on BR2_i386 || BR2_x86_64
        depends on BR2_USE_MMU # fork()
        depends on BR2_INSTALL_LIBSTDCPP # openal
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # openal
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # openal
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal
        depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS # openal
        depends on BR2_PACKAGE_HAS_LIBGL
@@ -33,7 +33,7 @@ config BR2_PACKAGE_SUPERTUXKART
 
          http://supertuxkart.sourceforge.net/Main_Page
 
-comment "supertuxkart needs an OpenGL backend, a uClibc or glibc toolchain w/ NPTL, C++, gcc >= 4.7"
+comment "supertuxkart needs an OpenGL backend, a uClibc or glibc toolchain w/ NPTL, C++, gcc >= 4.9"
        depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        depends on BR2_i386 || BR2_x86_64
        depends on BR2_USE_MMU
@@ -41,6 +41,6 @@ comment "supertuxkart needs an OpenGL backend, a uClibc or glibc toolchain w/ NP
        depends on BR2_PACKAGE_XORG7
        depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
                || !BR2_INSTALL_LIBSTDCPP \
-               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
+               || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
                || !BR2_PACKAGE_HAS_LIBGL \
                || BR2_TOOLCHAIN_USES_MUSL