summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2023-11-15 15:35:19 +0100
committerKhem Raj <raj.khem@gmail.com>2023-11-15 09:51:45 -0800
commit7fb028ebf0349b3ada78432edfb9a022cd78dd31 (patch)
treedce7e382ad1a24b456ab31a57c2699873490b905 /meta-multimedia/recipes-multimedia
parent96831e8b3fd2b8e4deda3064e8ce94fe2fcef808 (diff)
downloadmeta-openembedded-7fb028ebf0349b3ada78432edfb9a022cd78dd31.tar.gz
juce/projucer: Backport a fix for the compilation under recent GCC
This backport fixes this error: note: 'std::exchange' is defined in header '<utility>'; did you forget to '#include <utility>'? Note: The fix is on version >= 7.0.0 Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/juce/projucer.inc3
-rw-r--r--meta-multimedia/recipes-multimedia/juce/projucer/0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch23
2 files changed, 25 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/juce/projucer.inc b/meta-multimedia/recipes-multimedia/juce/projucer.inc
index feb356463..b60cba1dd 100644
--- a/meta-multimedia/recipes-multimedia/juce/projucer.inc
+++ b/meta-multimedia/recipes-multimedia/juce/projucer.inc
@@ -18,7 +18,8 @@ DEPENDS:append:libc-musl = " libexecinfo"
18SRCREV = "2f980209cc4091a4490bb1bafc5d530f16834e58" 18SRCREV = "2f980209cc4091a4490bb1bafc5d530f16834e58"
19BRANCH = "master" 19BRANCH = "master"
20SRC_URI = "git://github.com/WeAreROLI/JUCE.git;protocol=https;branch=${BRANCH} \ 20SRC_URI = "git://github.com/WeAreROLI/JUCE.git;protocol=https;branch=${BRANCH} \
21" 21 file://0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch \
22 "
22 23
23S = "${WORKDIR}/git" 24S = "${WORKDIR}/git"
24PV = "6.1.6" 25PV = "6.1.6"
diff --git a/meta-multimedia/recipes-multimedia/juce/projucer/0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch b/meta-multimedia/recipes-multimedia/juce/projucer/0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch
new file mode 100644
index 000000000..ae77aeef1
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/juce/projucer/0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch
@@ -0,0 +1,23 @@
1From 85822fcb87dd531d5e8ed1c8230c67bddb56f66d Mon Sep 17 00:00:00 2001
2From: reuk <reuk@users.noreply.github.com>
3Date: Wed, 6 Apr 2022 15:43:09 +0100
4Subject: [PATCH] StandardHeader: Include <utility> for GCC 12 compatibility
5
6Upstream-Status: Backport [https://github.com/juce-framework/JUCE/commit/ce8aff22c31c4d932a8414bc6f6185381dc970db]
7Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
8---
9 modules/juce_core/system/juce_StandardHeader.h | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/modules/juce_core/system/juce_StandardHeader.h b/modules/juce_core/system/juce_StandardHeader.h
13index fe164cdd3..cda6bbe86 100644
14--- a/modules/juce_core/system/juce_StandardHeader.h
15+++ b/modules/juce_core/system/juce_StandardHeader.h
16@@ -64,6 +64,7 @@
17 #include <typeindex>
18 #include <unordered_map>
19 #include <unordered_set>
20+#include <utility>
21 #include <vector>
22 #include <set>
23