1 |
commit: 238d4c26092568ac7c3bb25753405909d61d8c8c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 14 15:15:55 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 14 16:11:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=238d4c26 |
7 |
|
8 |
media-sound/din: fix build with GCC 11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/787185 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-sound/din/din-50.2.ebuild | 1 + |
14 |
.../files/din-50.2-gcc11-rename-identifier.patch | 41 ++++++++++++++++++++++ |
15 |
2 files changed, 42 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/din/din-50.2.ebuild b/media-sound/din/din-50.2.ebuild |
18 |
index 4d68ab765af..38869408d19 100644 |
19 |
--- a/media-sound/din/din-50.2.ebuild |
20 |
+++ b/media-sound/din/din-50.2.ebuild |
21 |
@@ -35,6 +35,7 @@ REQUIRED_USE="|| ( alsa jack )" |
22 |
PATCHES=( |
23 |
"${FILESDIR}/${PN}-49.1-makefile.patch" |
24 |
"${FILESDIR}/${PN}-48-fix-random-constants.patch" |
25 |
+ "${FILESDIR}/${PN}-50.2-gcc11-rename-identifier.patch" |
26 |
) |
27 |
|
28 |
src_prepare() { |
29 |
|
30 |
diff --git a/media-sound/din/files/din-50.2-gcc11-rename-identifier.patch b/media-sound/din/files/din-50.2-gcc11-rename-identifier.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..4d65f65b038 |
33 |
--- /dev/null |
34 |
+++ b/media-sound/din/files/din-50.2-gcc11-rename-identifier.patch |
35 |
@@ -0,0 +1,41 @@ |
36 |
+https://bugs.gentoo.org/787185 |
37 |
+ |
38 |
+From 9ea918cfdfcd99fbcac64a820ddbaefb562c11a0 Mon Sep 17 00:00:00 2001 |
39 |
+From: Sam James <sam@g.o> |
40 |
+Date: Mon, 14 Jun 2021 15:06:58 +0000 |
41 |
+Subject: [PATCH] src/help.h: Rename __help identifier |
42 |
+MIME-Version: 1.0 |
43 |
+Content-Type: text/plain; charset=UTF-8 |
44 |
+Content-Transfer-Encoding: 8bit |
45 |
+ |
46 |
+__help is reserved, so we need to rename it to fix a build failure with GCC 11: |
47 |
+ |
48 |
+ "In addition to the names documented in this manual, reserved names include all |
49 |
+ external identifiers (global functions and variables) that begin with an |
50 |
+ underscore (‘_’) and all identifiers regardless of use that begin with either |
51 |
+ two underscores or an underscore followed by a capital letter are reserved names." |
52 |
+ -- glibc manual, 1.3.3 Reserved Names |
53 |
+ |
54 |
+Signed-off-by: Sam James <sam@g.o> |
55 |
+--- |
56 |
+ src/help.h | 4 ++-- |
57 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
58 |
+ |
59 |
+diff --git a/src/help.h b/src/help.h |
60 |
+index ae0954b..af7f178 100644 |
61 |
+--- a/src/help.h |
62 |
++++ b/src/help.h |
63 |
+@@ -5,8 +5,8 @@ |
64 |
+ * For more information, please visit https://dinisnoise.org/ |
65 |
+ */ |
66 |
+ |
67 |
+-#ifndef __help |
68 |
+-#define __help |
69 |
++#ifndef DIN_help |
70 |
++#define DIN_help |
71 |
+ #include <string> |
72 |
+ #include <vector> |
73 |
+ struct help { |
74 |
+-- |
75 |
+2.32.0 |
76 |
+ |