From 22620fd79d1f90d417927b305798a58c9fe9c20b36e31ae4b36ce1be47717dbd Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 12 Sep 2016 08:20:44 +0000 Subject: [PATCH] Accepting request 425239 from home:rhcoe:branches:Base:System fix for bnc#995148 with comments fixed OBS-URL: https://build.opensuse.org/request/show/425239 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=257 --- ncurses-6.0-signal.dif | 35 +++++++++++++++++++++++++++++++++++ ncurses.changes | 7 +++++++ ncurses.spec | 2 ++ 3 files changed, 44 insertions(+) create mode 100644 ncurses-6.0-signal.dif diff --git a/ncurses-6.0-signal.dif b/ncurses-6.0-signal.dif new file mode 100644 index 0000000..ef15a51 --- /dev/null +++ b/ncurses-6.0-signal.dif @@ -0,0 +1,35 @@ +# bnc#995148 cscope hangs indefinitely after control-z +# recurisve macro definition of sigprocmask + +--- ncurses/tinfo/lib_data.c 2016-09-03 11:37:20.223406956 -0500 ++++ ncurses/tinfo/lib_data.c 2016-09-03 11:39:07.885069978 -0500 +@@ -371,7 +371,7 @@ _nc_sigprocmask(int how, const sigset_t + if ((pthread_sigmask)) + return pthread_sigmask(how, newmask, oldmask); + else +- return sigprocmask(how, newmask, oldmask); ++ return (sigprocmask)(how, newmask, oldmask); + } + #endif + #endif /* USE_PTHREADS */ + +--- ncurses/curses.priv.h.orig 2016-09-04 18:52:55.639691452 -0500 ++++ ncurses/curses.priv.h 2016-09-04 18:53:34.248200946 -0500 +@@ -561,7 +561,7 @@ weak_symbol(pthread_mutexattr_settype); + weak_symbol(pthread_mutexattr_init); + extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *); + # undef sigprocmask +-# define sigprocmask _nc_sigprocmask ++# define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c) + # endif + #endif + +@@ -581,7 +581,7 @@ weak_symbol(pthread_self); + weak_symbol(pthread_equal); + extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *); + # undef sigprocmask +-# define sigprocmask _nc_sigprocmask ++# define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c) + # endif + #endif /* USE_PTHREADS_EINTR */ + diff --git a/ncurses.changes b/ncurses.changes index 6f176ba..8eba0d9 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 5 00:14:00 UTC 2016 - rcoe@wi.rr.com + +- Add patch ncurses-6.0-signal for bnc#995148 + + redfine sigprocmask macro + + wrap sigprocmask to call system sigprocmask instead of self + ------------------------------------------------------------------- Mon Aug 15 11:55:32 UTC 2016 - werner@suse.de diff --git a/ncurses.spec b/ncurses.spec index 583da87..e8db2cf 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -67,6 +67,7 @@ Patch0: ncurses-6.0.dif Patch1: ncurses-5.9-ibm327x.dif Patch4: ncurses-5.7-tack.dif Patch5: ncurses-5.9-environment.dif +Patch6: ncurses-6.0-signal.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _miscdir %{_datadir}/misc %global _incdir %{_includedir} @@ -281,6 +282,7 @@ mv tack-* tack %patch4 -p0 -b .hs %patch5 -p0 -b .lc %patch0 -p0 -b .p0 +%patch6 -p0 -b .p6 rm -vf include/ncurses_dll.h rm -vf mkdirs.sh rm -vf tar-copy.sh