1 |
commit: 66a47798fa3de7c06628ad07399093ae97dd924e |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 30 10:24:46 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 30 10:24:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66a47798 |
7 |
|
8 |
x11-libs/agg: Fix build with gcc8 (#664078) |
9 |
|
10 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
x11-libs/agg/agg-2.5-r3.ebuild | 9 +++++---- |
14 |
x11-libs/agg/files/agg-2.5-gcc8.patch | 24 ++++++++++++++++++++++++ |
15 |
2 files changed, 29 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/x11-libs/agg/agg-2.5-r3.ebuild b/x11-libs/agg/agg-2.5-r3.ebuild |
18 |
index 0925c837a90..b2def3f9fd8 100644 |
19 |
--- a/x11-libs/agg/agg-2.5-r3.ebuild |
20 |
+++ b/x11-libs/agg/agg-2.5-r3.ebuild |
21 |
@@ -1,8 +1,8 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Copyright 1999-2018 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI=6 |
27 |
-inherit autotools ltprune |
28 |
+EAPI=7 |
29 |
+inherit autotools |
30 |
|
31 |
DESCRIPTION="High quality rendering engine library for C++" |
32 |
HOMEPAGE="http://antigrain.com/" |
33 |
@@ -32,6 +32,7 @@ PATCHES=( |
34 |
"${FILESDIR}"/${P}-autotools.patch |
35 |
"${FILESDIR}"/${P}-sdl-m4.patch |
36 |
"${FILESDIR}"/${P}-sdl-automagic.patch |
37 |
+ "${FILESDIR}"/${P}-gcc8.patch |
38 |
"${FILESDIR}"/${PVR} |
39 |
) |
40 |
|
41 |
@@ -56,5 +57,5 @@ src_configure() { |
42 |
|
43 |
src_install() { |
44 |
default |
45 |
- prune_libtool_files |
46 |
+ find "${D}" -name '*.la' -delete || die |
47 |
} |
48 |
|
49 |
diff --git a/x11-libs/agg/files/agg-2.5-gcc8.patch b/x11-libs/agg/files/agg-2.5-gcc8.patch |
50 |
new file mode 100644 |
51 |
index 00000000000..6214bd62e3a |
52 |
--- /dev/null |
53 |
+++ b/x11-libs/agg/files/agg-2.5-gcc8.patch |
54 |
@@ -0,0 +1,24 @@ |
55 |
+From ca818d4dcd428c5560fc3c341fbaf427a7485e32 Mon Sep 17 00:00:00 2001 |
56 |
+From: Tom Hughes <tom@×××××××.nu> |
57 |
+Date: Sat, 22 Jun 2013 12:34:37 +0100 |
58 |
+Subject: [PATCH 15/15] Ensure first value in the gamma table is always zero |
59 |
+ |
60 |
+--- |
61 |
+ include/agg_gamma_functions.h | 1 + |
62 |
+ 1 file changed, 1 insertion(+) |
63 |
+ |
64 |
+diff --git a/include/agg_gamma_functions.h b/include/agg_gamma_functions.h |
65 |
+index beb0c04..b8eda52 100644 |
66 |
+--- a/include/agg_gamma_functions.h |
67 |
++++ b/include/agg_gamma_functions.h |
68 |
+@@ -49,6 +49,7 @@ namespace agg |
69 |
+ |
70 |
+ double operator() (double x) const |
71 |
+ { |
72 |
++ if (x == 0.0) return 0.0; |
73 |
+ return pow(x, m_gamma); |
74 |
+ } |
75 |
+ |
76 |
+-- |
77 |
+1.8.1.4 |
78 |
+ |