1 |
commit: 493d89f028d0cd8bcda2998eef2aca6b5bae7c1f |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 23 18:51:59 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 23 18:52:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=493d89f0 |
7 |
|
8 |
x11-libs/gtkglext: Fix build issues (#649718), update ebuild. |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
.../gtkglext/files/gtkglext-1.2.0-gcc8-fixes.patch | 34 ++++++++++++++++++++++ |
13 |
x11-libs/gtkglext/gtkglext-1.2.0-r4.ebuild | 30 +++++++++---------- |
14 |
2 files changed, 47 insertions(+), 17 deletions(-) |
15 |
|
16 |
diff --git a/x11-libs/gtkglext/files/gtkglext-1.2.0-gcc8-fixes.patch b/x11-libs/gtkglext/files/gtkglext-1.2.0-gcc8-fixes.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..266f5fefc1e |
19 |
--- /dev/null |
20 |
+++ b/x11-libs/gtkglext/files/gtkglext-1.2.0-gcc8-fixes.patch |
21 |
@@ -0,0 +1,34 @@ |
22 |
+From 1fe275cd7dfa9f3a6db771b0cb945d96787e72cf Mon Sep 17 00:00:00 2001 |
23 |
+From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu@×××××××××××××.org> |
24 |
+Date: Thu, 15 Mar 2018 15:56:20 +0100 |
25 |
+Subject: [PATCH 2/2] GCC-8 fixes. |
26 |
+ |
27 |
+--- |
28 |
+ gdk/gdkglshapes.c | 4 ++-- |
29 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
30 |
+ |
31 |
+diff --git a/gdk/gdkglshapes.c b/gdk/gdkglshapes.c |
32 |
+index f72abba..9d1197f 100644 |
33 |
+--- a/gdk/gdkglshapes.c |
34 |
++++ b/gdk/gdkglshapes.c |
35 |
+@@ -544,7 +544,7 @@ static GLfloat idata[12][3] = |
36 |
+ {-Z, -X, 0} |
37 |
+ }; |
38 |
+ |
39 |
+-static int index[20][3] = |
40 |
++static int iindex[20][3] = |
41 |
+ { |
42 |
+ {0, 4, 1}, |
43 |
+ {0, 9, 4}, |
44 |
+@@ -574,7 +574,7 @@ icosahedron(GLenum shadeType) |
45 |
+ int i; |
46 |
+ |
47 |
+ for (i = 19; i >= 0; i--) { |
48 |
+- drawtriangle(i, idata, index, shadeType); |
49 |
++ drawtriangle(i, idata, iindex, shadeType); |
50 |
+ } |
51 |
+ } |
52 |
+ |
53 |
+-- |
54 |
+2.14.3 |
55 |
+ |
56 |
|
57 |
diff --git a/x11-libs/gtkglext/gtkglext-1.2.0-r4.ebuild b/x11-libs/gtkglext/gtkglext-1.2.0-r4.ebuild |
58 |
index 518b12f06eb..948cc280bb4 100644 |
59 |
--- a/x11-libs/gtkglext/gtkglext-1.2.0-r4.ebuild |
60 |
+++ b/x11-libs/gtkglext/gtkglext-1.2.0-r4.ebuild |
61 |
@@ -1,9 +1,7 @@ |
62 |
-# Copyright 1999-2017 Gentoo Foundation |
63 |
+# Copyright 1999-2018 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
|
66 |
-EAPI="5" |
67 |
- |
68 |
-GNOME2_LA_PUNT="yes" |
69 |
+EAPI=6 |
70 |
inherit autotools gnome2 multilib-minimal |
71 |
|
72 |
DESCRIPTION="GL extensions for Gtk+ 2.0" |
73 |
@@ -15,35 +13,33 @@ SLOT="0" |
74 |
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
75 |
IUSE="" |
76 |
|
77 |
-RDEPEND=">=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
78 |
+RDEPEND=" |
79 |
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
80 |
>=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}] |
81 |
>=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}] |
82 |
>=x11-libs/pangox-compat-0.0.2[${MULTILIB_USEDEP}] |
83 |
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
84 |
>=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}] |
85 |
>=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] |
86 |
- >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]" |
87 |
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] |
88 |
+" |
89 |
DEPEND="${RDEPEND} |
90 |
>=sys-devel/autoconf-archive-2014.02.28 |
91 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" |
92 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
93 |
+" |
94 |
|
95 |
src_prepare() { |
96 |
+ # Fix build issues with gcc patch from Fedora, bug #649718 |
97 |
+ eapply "${FILESDIR}"/${P}-gcc8-fixes.patch |
98 |
+ |
99 |
# Ancient configure.in with broken multilib gl detection (bug #543050) |
100 |
# Backport some configure updates from upstream git master to fix |
101 |
- epatch "${FILESDIR}/${P}-gl-configure.patch" |
102 |
+ eapply "${FILESDIR}/${P}-gl-configure.patch" |
103 |
+ |
104 |
mv configure.{in,ac} || die "mv failed" |
105 |
eautoreconf |
106 |
|
107 |
gnome2_src_prepare |
108 |
- |
109 |
- # Remove development knobs, bug #308973 |
110 |
- sed -i 's:-D\(G.*DISABLE_DEPRECATED\):-D__\1__:g' \ |
111 |
- examples/Makefile.am examples/Makefile.in \ |
112 |
- gdk/Makefile.am gdk/Makefile.in \ |
113 |
- gdk/win32/Makefile.am gdk/win32/Makefile.in \ |
114 |
- gdk/x11/Makefile.am gdk/x11/Makefile.in \ |
115 |
- gtk/Makefile.am gtk/Makefile.in \ |
116 |
- || die "sed failed" |
117 |
} |
118 |
|
119 |
multilib_src_configure() { |