diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2023-11-15 15:35:19 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-11-15 09:51:45 -0800 |
commit | 7fb028ebf0349b3ada78432edfb9a022cd78dd31 (patch) | |
tree | dce7e382ad1a24b456ab31a57c2699873490b905 /meta-multimedia/recipes-multimedia | |
parent | 96831e8b3fd2b8e4deda3064e8ce94fe2fcef808 (diff) | |
download | meta-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.inc | 3 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/juce/projucer/0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch | 23 |
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" | |||
18 | SRCREV = "2f980209cc4091a4490bb1bafc5d530f16834e58" | 18 | SRCREV = "2f980209cc4091a4490bb1bafc5d530f16834e58" |
19 | BRANCH = "master" | 19 | BRANCH = "master" |
20 | SRC_URI = "git://github.com/WeAreROLI/JUCE.git;protocol=https;branch=${BRANCH} \ | 20 | SRC_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 | ||
23 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
24 | PV = "6.1.6" | 25 | PV = "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 @@ | |||
1 | From 85822fcb87dd531d5e8ed1c8230c67bddb56f66d Mon Sep 17 00:00:00 2001 | ||
2 | From: reuk <reuk@users.noreply.github.com> | ||
3 | Date: Wed, 6 Apr 2022 15:43:09 +0100 | ||
4 | Subject: [PATCH] StandardHeader: Include <utility> for GCC 12 compatibility | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/juce-framework/JUCE/commit/ce8aff22c31c4d932a8414bc6f6185381dc970db] | ||
7 | Signed-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 | |||
12 | diff --git a/modules/juce_core/system/juce_StandardHeader.h b/modules/juce_core/system/juce_StandardHeader.h | ||
13 | index 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 | |||