From: IOhannes m zmölnig (Debian/GNU) Date: Wed, 22 Dec 2021 10:43:47 +0000 (+0100) Subject: Fix FTBFS on armel X-Git-Tag: archive/raspbian/6.1.5_ds0-1+rpi1^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5b059b728a002c3cad53db6124c0e8221ebf9595;p=juce.git Fix FTBFS on armel --- diff --git a/debian/patches/armel_lockfree.patch b/debian/patches/armel_lockfree.patch new file mode 100644 index 00000000..1d5a3442 --- /dev/null +++ b/debian/patches/armel_lockfree.patch @@ -0,0 +1,23 @@ +Description: allow compilation on armel + we patch out the is_always_lockfree assertion for armel, to allow + compilation. + any armel is probably too weak to actually *run* a JUCE project. +Author: IOhannes m zmölnig +Origin: Debian +Forwarded: not-needed +Last-Update: 2021-12-22 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- juce.orig/modules/juce_core/memory/juce_Atomic.h ++++ juce/modules/juce_core/memory/juce_Atomic.h +@@ -55,8 +55,10 @@ + ~Atomic() noexcept + { + #if __cpp_lib_atomic_is_always_lock_free ++#ifndef __ARMEL__ + static_assert (std::atomic::is_always_lock_free, + "This class can only be used for lock-free types"); ++#endif /* armel */ + #endif + } + diff --git a/debian/patches/series b/debian/patches/series index 15858140..931b61c0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -10,3 +10,4 @@ cross.patch debian_buildcmake.patch overridable_pkg-config.patch debian_cmake.patch +armel_lockfree.patch