Fix FTBFS on armel
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 22 Dec 2021 10:43:47 +0000 (11:43 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 22 Dec 2021 10:43:47 +0000 (11:43 +0100)
debian/patches/armel_lockfree.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/armel_lockfree.patch b/debian/patches/armel_lockfree.patch
new file mode 100644 (file)
index 0000000..1d5a344
--- /dev/null
@@ -0,0 +1,23 @@
+Description: allow compilation on armel
+ we patch out the is_always_lockfree<int> 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\r
+     {\r
+        #if __cpp_lib_atomic_is_always_lock_free\r
++#ifndef __ARMEL__\r
+         static_assert (std::atomic<Type>::is_always_lock_free,\r
+                        "This class can only be used for lock-free types");\r
++#endif /* armel */\r
+        #endif\r
+     }\r
\r
index 15858140b18817488f8204cfbaed38368cdd0731..931b61c0f9a163c35904a78b6d9c5d0775350d86 100644 (file)
@@ -10,3 +10,4 @@ cross.patch
 debian_buildcmake.patch
 overridable_pkg-config.patch
 debian_cmake.patch
+armel_lockfree.patch