From 647b642246410042d08c75159f90b2bcb1cec68a23eb94d93e08b376c9a55f2b Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 30 May 2017 07:47:55 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=306 --- ncurses-6.0-crashw.patch | 30 ++++++++++++++++++++++++++++++ ncurses.changes | 7 +++++++ ncurses.spec | 4 ++++ 3 files changed, 41 insertions(+) create mode 100644 ncurses-6.0-crashw.patch diff --git a/ncurses-6.0-crashw.patch b/ncurses-6.0-crashw.patch new file mode 100644 index 0000000..030c2e9 --- /dev/null +++ b/ncurses-6.0-crashw.patch @@ -0,0 +1,30 @@ +--- + ncurses/curses.priv.h | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +--- ncurses/curses.priv.h ++++ ncurses/curses.priv.h 2017-05-30 07:21:41.456357778 +0000 +@@ -1137,11 +1137,6 @@ struct screen { + int _pair_count; /* same as COLOR_PAIRS */ + int _pair_limit; /* actual limit of color-pairs */ + #if NCURSES_EXT_FUNCS +-#if USE_NEW_PAIR +- void *_ordered_pairs; /* index used by alloc_pair() */ +- int _pairs_used; /* actual number of color-pairs used */ +- int _recent_pair; /* number for most recent free-pair */ +-#endif + bool _assumed_color; /* use assumed colors */ + bool _default_color; /* use default colors */ + bool _has_sgr_39_49; /* has ECMA default color support */ +@@ -1295,6 +1290,11 @@ struct screen { + /* + * ncurses/ncursesw are the same up to this point. + */ ++#if USE_NEW_PAIR ++ void *_ordered_pairs; /* index used by alloc_pair() */ ++ int _pairs_used; /* actual number of color-pairs used */ ++ int _recent_pair; /* number for most recent free-pair */ ++#endif + #if USE_WIDEC_SUPPORT + /* recent versions of 'screen' have partially-working support for + * UTF-8, but do not permit ACS at the same time (see tty_update.c). diff --git a/ncurses.changes b/ncurses.changes index 62c10f1..8756074 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 30 07:29:14 UTC 2017 - werner@suse.de + +- Add patch ncurses-6.0-crashw.patch as a temporary fix which will + become part of next patch level: solve binary incompatiblity of + libtinfow and libtinfo + ------------------------------------------------------------------- Mon May 29 06:51:13 UTC 2017 - werner@suse.de diff --git a/ncurses.spec b/ncurses.spec index e3a6959..b48baeb 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -66,6 +66,9 @@ Source7: baselibs.conf Patch0: ncurses-6.0.dif Patch1: ncurses-5.9-ibm327x.dif Patch4: ncurses-5.7-tack.dif +# PATCH-FIX-UPSTREAM ... temporary patch which will become part of next +# patch level: fix binary incompatiblity of libtinfow with libtinfo +Patch40: ncurses-6.0-crashw.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _miscdir %{_datadir}/misc %global _incdir %{_includedir} @@ -237,6 +240,7 @@ find -name '*.orig' -delete rm -fr tack tar -xzf %{S:5} mv tack-* tack +%patch40 -p0 -b .crash %patch1 -p0 -b .327x %patch4 -p0 -b .hs %patch0 -p0 -b .p0