From af18c868b826e77fb258e1eec4fd9d650bf806b1d332a8831140364fe0973c71 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 18 Dec 2019 11:06:04 +0000 Subject: [PATCH] Work around missing defintion of GSS_NORETURN OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=460 --- ncurses.changes | 6 ++++++ ncurses.spec | 2 ++ workaround-20191214.patch | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 workaround-20191214.patch diff --git a/ncurses.changes b/ncurses.changes index feea317..bfb1e98 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 18 09:25:48 UTC 2019 - Dr. Werner Fink + +- Add temporary patch workaround-20191214.patch to add missed + declaration of GCC_NORETURN in term.h + ------------------------------------------------------------------- Tue Dec 17 09:03:41 UTC 2019 - Dr. Werner Fink diff --git a/ncurses.spec b/ncurses.spec index 9d7b516..309090e 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -75,6 +75,7 @@ Source7: baselibs.conf Patch0: ncurses-6.1.dif Patch1: ncurses-5.9-ibm327x.dif Patch2: ncurses-5.7-tack.dif +Patch3: workaround-20191214.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _miscdir %{_datadir}/misc %global _incdir %{_includedir} @@ -311,6 +312,7 @@ tar -xzf %{S:5} mv tack-* tack %patch1 -p0 -b .327x %patch2 -p0 -b .hs +%patch3 -p0 -b .workaround %patch0 -p0 -b .p0 %build diff --git a/workaround-20191214.patch b/workaround-20191214.patch new file mode 100644 index 0000000..c3dffbf --- /dev/null +++ b/workaround-20191214.patch @@ -0,0 +1,16 @@ +--- + include/MKterm.h.awk.in | 3 +++ + 1 file changed, 3 insertions(+) + +--- include/MKterm.h.awk.in ++++ include/MKterm.h.awk.in 2019-12-18 09:23:20.480600045 +0000 +@@ -376,6 +376,9 @@ END { + print "/*" + print " * Debugging features." + print " */" ++ print "#ifndef GCC_NORETURN" ++ print "#define GCC_NORETURN /* nothing */" ++ print "#endif" + print "extern NCURSES_EXPORT(void) exit_terminfo(int) GCC_NORETURN;" + print "" + print "#ifdef __cplusplus"