From aec2ea4dc24605b4f334e04aad81f9a2976ea012 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 29 Jan 2020 22:05:27 +0100 Subject: app-editors/teco: Fix compilation with -fno-common. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes:https://bugs.gentoo.org/707300 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Ulrich Müller --- app-editors/teco/files/teco-no-common.patch | 13 +++++++++++++ app-editors/teco/teco-36_p19940820.ebuild | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app-editors/teco/files/teco-no-common.patch diff --git a/app-editors/teco/files/teco-no-common.patch b/app-editors/teco/files/teco-no-common.patch new file mode 100644 index 000000000000..18880579e370 --- /dev/null +++ b/app-editors/teco/files/teco-no-common.patch @@ -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 */ diff --git a/app-editors/teco/teco-36_p19940820.ebuild b/app-editors/teco/teco-36_p19940820.ebuild index 4f297c289581..4dd048a4f2d5 100644 --- a/app-editors/teco/teco-36_p19940820.ebuild +++ b/app-editors/teco/teco-36_p19940820.ebuild @@ -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() { -- cgit v1.2.3-65-gdbad