1 |
commit: 284fa7b9c84407be55015e601768262d5c2c0f0d |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 30 01:54:50 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 30 01:55:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284fa7b9 |
7 |
|
8 |
x11-libs/gtksourceview: Add patch to build with GCC-11 |
9 |
|
10 |
I mistakenly thought this patch was included in the v4.8.1 release when |
11 |
I added it and closed bug #732784. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/732784 |
14 |
Closes: https://bugs.gentoo.org/786630 |
15 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
16 |
|
17 |
...ble-Werror-for-incompatible-pointer-types.patch | 33 ++++++++++++++++++++++ |
18 |
x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild | 4 +++ |
19 |
2 files changed, 37 insertions(+) |
20 |
|
21 |
diff --git a/x11-libs/gtksourceview/files/4.8.1-build-disable-Werror-for-incompatible-pointer-types.patch b/x11-libs/gtksourceview/files/4.8.1-build-disable-Werror-for-incompatible-pointer-types.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..e13a65c3bc4 |
24 |
--- /dev/null |
25 |
+++ b/x11-libs/gtksourceview/files/4.8.1-build-disable-Werror-for-incompatible-pointer-types.patch |
26 |
@@ -0,0 +1,33 @@ |
27 |
+From d1ed58b2ab82bd5be55881088fc17ff1527511db Mon Sep 17 00:00:00 2001 |
28 |
+From: Christian Hergert <chergert@××××××.com> |
29 |
+Date: Thu, 15 Apr 2021 08:11:22 -0700 |
30 |
+Subject: [PATCH] build: disable -Werror for incompatible-pointer-types |
31 |
+ |
32 |
+This causes an issue with volatile and GLib in some configurations, so |
33 |
+just keep it out for now. We will bring it back at some point going |
34 |
+forward. |
35 |
+ |
36 |
+We are already doing the same in 5.0. |
37 |
+ |
38 |
+Fixes #179 |
39 |
+--- |
40 |
+ meson.build | 3 ++- |
41 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
42 |
+ |
43 |
+diff --git a/meson.build b/meson.build |
44 |
+index 826a3121..6ff5b155 100644 |
45 |
+--- a/meson.build |
46 |
++++ b/meson.build |
47 |
+@@ -181,7 +181,8 @@ else |
48 |
+ '-Werror=empty-body', |
49 |
+ '-Werror=implicit', |
50 |
+ '-Werror=implicit-function-declaration', |
51 |
+- '-Werror=incompatible-pointer-types', |
52 |
++ # Disabled due to volatile changes in GLib |
53 |
++ # '-Werror=incompatible-pointer-types', |
54 |
+ '-Werror=init-self', |
55 |
+ '-Werror=int-conversion', |
56 |
+ '-Werror=int-to-pointer-cast', |
57 |
+-- |
58 |
+2.26.3 |
59 |
+ |
60 |
|
61 |
diff --git a/x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild b/x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild |
62 |
index c8e7a97d1ba..ea3909535ab 100644 |
63 |
--- a/x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild |
64 |
+++ b/x11-libs/gtksourceview/gtksourceview-4.8.1.ebuild |
65 |
@@ -36,6 +36,10 @@ BDEPEND=" |
66 |
vala? ( $(vala_depend) ) |
67 |
" |
68 |
|
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}"/${PV}-build-disable-Werror-for-incompatible-pointer-types.patch |
71 |
+) |
72 |
+ |
73 |
src_prepare() { |
74 |
use vala && vala_src_prepare |
75 |
xdg_src_prepare |