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"