app-i18n/jfbterm: add patch from Fedora fixing build with gcc-5
authorMichael Palimaka <kensington@gentoo.org>
Sun, 12 Feb 2017 11:35:48 +0000 (22:35 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 12 Feb 2017 11:36:04 +0000 (22:36 +1100)
Gentoo-bug: 571066

Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-i18n/jfbterm/files/jfbterm-0.4.7-wrong-inline-gcc5.patch [new file with mode: 0644]
app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild

diff --git a/app-i18n/jfbterm/files/jfbterm-0.4.7-wrong-inline-gcc5.patch b/app-i18n/jfbterm/files/jfbterm-0.4.7-wrong-inline-gcc5.patch
new file mode 100644 (file)
index 0000000..974ccbc
--- /dev/null
@@ -0,0 +1,24 @@
+Source: http://pkgs.fedoraproject.org/cgit/rpms/jfbterm.git/plain/jfbterm-0.4.7-wrong-inline-gcc5.patch
+
+--- jfbterm-0.4.7/pen.c.inline_gcc5    2003-08-30 03:48:16.000000000 +0900
++++ jfbterm-0.4.7/pen.c        2015-02-09 10:36:47.182751545 +0900
+@@ -62,7 +62,7 @@
+       p->attr = q->attr;
+ }
+-inline void tpen_off_all_attribute(TPen* p)
++void tpen_off_all_attribute(TPen* p)
+ {
+       p->bcol = 0;
+       p->fcol = 7;
+--- jfbterm-0.4.7/pen.h.inline_gcc5    2002-07-17 01:21:23.000000000 +0900
++++ jfbterm-0.4.7/pen.h        2015-02-09 10:36:52.058705503 +0900
+@@ -58,7 +58,7 @@
+ void tpen_init(TPen* p);
+ void tpen_final(TPen* p);
+ void tpen_copy(TPen* p, TPen* q);
+-inline void tpen_off_all_attribute(TPen* p);
++void tpen_off_all_attribute(TPen* p);
+ void tpen_higlight(TPen* p);
+ void tpen_dehiglight(TPen* p);
+ void tpen_underline(TPen* p);
index a1266429d3f41b0bc2ded89f00d05fe95ae9b2ff..b79f0ff20b5729bc0916cec4c7c6a94b62bcfea9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -24,6 +24,7 @@ src_unpack() {
        epatch "${FILESDIR}/${P}-sigchld-debian.patch"
        epatch "${FILESDIR}/${P}-no-kernel-headers.patch"
        epatch "${FILESDIR}/${P}-gentoo.patch"
+       epatch "${FILESDIR}/${P}-wrong-inline-gcc5.patch"
 
        eautoreconf
 }