From f86e3a0a9f8aca19fe0704e377aeb25ebed89776 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 1 Jul 2020 15:37:40 -0700 Subject: [PATCH] tcsh: fix compilation with GCC10 Signed-off-by: Rosen Penev --- utils/tcsh/Makefile | 2 +- utils/tcsh/patches/030-gcc10.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 utils/tcsh/patches/030-gcc10.patch diff --git a/utils/tcsh/Makefile b/utils/tcsh/Makefile index 5200aabbb7..9960f3cdbb 100644 --- a/utils/tcsh/Makefile +++ b/utils/tcsh/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tcsh PKG_VERSION:=6.22.02 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ diff --git a/utils/tcsh/patches/030-gcc10.patch b/utils/tcsh/patches/030-gcc10.patch new file mode 100644 index 0000000000..b5a0cf0600 --- /dev/null +++ b/utils/tcsh/patches/030-gcc10.patch @@ -0,0 +1,22 @@ +From 6974bc35a5cda6eab748e364bd76a860ca66968b Mon Sep 17 00:00:00 2001 +From: zoulasc +Date: Sat, 11 Jan 2020 11:16:51 -0500 +Subject: [PATCH] Remove extra variable definition that cause -fno-common build + to fail (Werner Fink) + +--- + tc.sig.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/tc.sig.c b/tc.sig.c +index 77659ca..576605a 100644 +--- a/tc.sig.c ++++ b/tc.sig.c +@@ -56,7 +56,6 @@ int alrmcatch_disabled; /* = 0; */ + int phup_disabled; /* = 0; */ + int pchild_disabled; /* = 0; */ + int pintr_disabled; /* = 0; */ +-int handle_interrupt; /* = 0; */ + + int + handle_pending_signals(void)