1 |
commit: 377d3d80573bdb60ce7e5aa01809f012ee9e233d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 10 12:52:31 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 10 12:52:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=377d3d80 |
7 |
|
8 |
x11-libs/libGLw: Fix for -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706600 |
11 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
.../libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch | 20 ++++++++++++++++++++ |
15 |
.../{libGLw-8.0.0.ebuild => libGLw-8.0.0-r1.ebuild} | 4 +++- |
16 |
2 files changed, 23 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/x11-libs/libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch b/x11-libs/libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..ad025327093 |
21 |
--- /dev/null |
22 |
+++ b/x11-libs/libGLw/files/libGLw-8.0.0-gcc10-fno-common.patch |
23 |
@@ -0,0 +1,20 @@ |
24 |
+--- a/GLwDrawA.h |
25 |
++++ b/GLwDrawA.h |
26 |
+@@ -136,7 +136,7 @@ |
27 |
+ typedef struct _GLwMDrawingAreaClassRec *GLwMDrawingAreaWidgetClass; |
28 |
+ typedef struct _GLwMDrawingAreaRec *GLwMDrawingAreaWidget; |
29 |
+ |
30 |
+-GLAPI WidgetClass glwMDrawingAreaWidgetClass; |
31 |
++extern GLAPI WidgetClass glwMDrawingAreaWidgetClass; |
32 |
+ |
33 |
+ |
34 |
+ #else |
35 |
+@@ -144,7 +144,7 @@ |
36 |
+ typedef struct _GLwDrawingAreaClassRec *GLwDrawingAreaWidgetClass; |
37 |
+ typedef struct _GLwDrawingAreaRec *GLwDrawingAreaWidget; |
38 |
+ |
39 |
+-GLAPI WidgetClass glwDrawingAreaWidgetClass; |
40 |
++extern GLAPI WidgetClass glwDrawingAreaWidgetClass; |
41 |
+ |
42 |
+ |
43 |
+ #endif |
44 |
|
45 |
diff --git a/x11-libs/libGLw/libGLw-8.0.0.ebuild b/x11-libs/libGLw/libGLw-8.0.0-r1.ebuild |
46 |
similarity index 87% |
47 |
rename from x11-libs/libGLw/libGLw-8.0.0.ebuild |
48 |
rename to x11-libs/libGLw/libGLw-8.0.0-r1.ebuild |
49 |
index 94fc2c6d16f..202de4da975 100644 |
50 |
--- a/x11-libs/libGLw/libGLw-8.0.0.ebuild |
51 |
+++ b/x11-libs/libGLw/libGLw-8.0.0-r1.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2019 Gentoo Authors |
54 |
+# Copyright 1999-2020 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI=7 |
58 |
@@ -25,6 +25,8 @@ BDEPEND="virtual/pkgconfig" |
59 |
|
60 |
S="${WORKDIR}/${MY_P}" |
61 |
|
62 |
+PATCHES=( "${FILESDIR}"/${P}-gcc10-fno-common.patch ) |
63 |
+ |
64 |
src_configure() { |
65 |
econf \ |
66 |
--disable-static \ |