SHA256
3
0
forked from pool/ncurses

Reintroduce patch ncurses-6.1-fallback.dif to fix boo#1130091

OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=417
This commit is contained in:
Dr. Werner Fink 2019-03-22 09:01:09 +00:00 committed by Git OBS Bridge
parent 458a7f236b
commit 641b01344c
3 changed files with 26 additions and 0 deletions

19
ncurses-6.1-fallback.dif Normal file
View File

@ -0,0 +1,19 @@
---
ncurses/tinfo/lib_setup.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- ncurses/tinfo/lib_setup.c
+++ ncurses/tinfo/lib_setup.c 2019-03-22 08:46:01.634603415 +0000
@@ -761,7 +761,11 @@ TINFO_SETUP_TERM(TERMINAL **tp,
if (fallback) {
T(("found fallback entry"));
- TerminalType(termp) = *fallback;
+#if NCURSES_EXT_NUMBERS
+ _nc_copy_termtype2(&(TerminalType(termp)),fallback);
+#else
+ _nc_copy_termtype(&(TerminalType(termp)),fallback);
+#endif
status = TGETENT_YES;
}
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 22 08:59:22 UTC 2019 - Dr. Werner Fink <werner@suse.de>
- Reintroduce patch ncurses-6.1-fallback.dif to fix boo#1130091
-------------------------------------------------------------------
Tue Mar 19 09:16:38 UTC 2019 - Dr. Werner Fink <werner@suse.de>

View File

@ -74,6 +74,7 @@ Source6: edit.sed
Source7: baselibs.conf
Patch0: ncurses-6.1.dif
Patch1: ncurses-5.9-ibm327x.dif
Patch2: ncurses-6.1-fallback.dif
Patch4: ncurses-5.7-tack.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _miscdir %{_datadir}/misc
@ -310,6 +311,7 @@ rm -fr tack
tar -xzf %{S:5}
mv tack-* tack
%patch1 -p0 -b .327x
%patch2 -p0 -b .fb
%patch4 -p0 -b .hs
%patch0 -p0 -b .p0