From 32de57fa7c65dde6d6300145f16b7a63042fdf36 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Tue, 19 Jul 2016 16:42:18 +0100 Subject: [PATCH] Add patch from Debian to fix tight loop caused by ncurses 6 honouring "notimeout" setting, rhbz#1357902 --- nonotimeout-ncurses6.patch | 24 ++++++++++++++++++++++++ sc.spec | 9 ++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 nonotimeout-ncurses6.patch diff --git a/nonotimeout-ncurses6.patch b/nonotimeout-ncurses6.patch new file mode 100644 index 0000000..5d5dda5 --- /dev/null +++ b/nonotimeout-ncurses6.patch @@ -0,0 +1,24 @@ +--- sc/lex.c.orig 2016-07-19 16:34:21.047629536 +0100 ++++ sc/lex.c 2016-07-19 16:36:20.889308966 +0100 +@@ -650,21 +650,18 @@ + initkbd() + { + keypad(stdscr, TRUE); +- notimeout(stdscr,TRUE); + } + + void + kbd_again() + { + keypad(stdscr, TRUE); +- notimeout(stdscr,TRUE); + } + + void + resetkbd() + { + keypad(stdscr, FALSE); +- notimeout(stdscr, FALSE); + } + + int diff --git a/sc.spec b/sc.spec index 32d9f34..2f101e4 100644 --- a/sc.spec +++ b/sc.spec @@ -1,6 +1,6 @@ Name: sc Version: 7.16 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Spreadsheet Calculator License: Public Domain @@ -16,6 +16,9 @@ Patch2: call_function_not_take_its_address.patch # Patch for http://fedoraproject.org/wiki/Changes/FormatSecurity Patch3: format_security_fixes.patch +# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1400274.html +Patch4: nonotimeout-ncurses6.patch + BuildRequires: bison BuildRequires: ncurses-devel @@ -53,6 +56,10 @@ install -m 0644 tutorial.sc %{buildroot}%{_datadir}/sc %{_datadir}/sc %changelog +* Tue Jul 19 2016 Mat Booth - 7.16-4 +- Add patch from Debian to fix tight loop caused by ncurses 6 honouring + "notimeout" setting, rhbz#1357902 + * Thu Feb 04 2016 Fedora Release Engineering - 7.16-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild