app-editors/teco: Fix compilation with -fno-common.
authorUlrich Müller <ulm@gentoo.org>
Wed, 29 Jan 2020 21:05:27 +0000 (22:05 +0100)
committerUlrich Müller <ulm@gentoo.org>
Wed, 29 Jan 2020 21:05:50 +0000 (22:05 +0100)
Closes:https://bugs.gentoo.org/707300

Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
app-editors/teco/files/teco-no-common.patch [new file with mode: 0644]
app-editors/teco/teco-36_p19940820.ebuild

diff --git a/app-editors/teco/files/teco-no-common.patch b/app-editors/teco/files/teco-no-common.patch
new file mode 100644 (file)
index 0000000..1888057
--- /dev/null
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/707300
+
+--- teco-orig/te_subs.c
++++ teco/te_subs.c
+@@ -249,8 +249,6 @@
+ /* leaves bb pointing to end of that text */
+ /* insert2() copies rest of buffer */
+-struct buffcell *insert_p;
+-
+ insert1()
+     {
+     int nchars;             /* number of chars in cell */
index 4f297c289581f56165f2a143f395c1a7af4e3f43..4dd048a4f2d51c932034292d166cf10e584aa0ab 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -25,6 +25,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-double-free.patch
        "${FILESDIR}"/${PN}-gcc4.patch
        "${FILESDIR}"/${PN}-warnings.patch
+       "${FILESDIR}"/${PN}-no-common.patch
 )
 
 src_prepare() {