diff --git a/tkimg-implicit-int.patch b/tkimg-implicit-int.patch new file mode 100644 index 0000000..6d76c79 --- /dev/null +++ b/tkimg-implicit-int.patch @@ -0,0 +1,17 @@ +Do not rely on implicit int declarations, a feature removed in C99. + +This was fixed upstream by rewriting the code by eliminating old-style +function declarations: + +diff --git a/sgi/sgi.c b/sgi/sgi.c +index 059f65403be19b15..2bd0ea000e6a2ac4 100644 +--- a/sgi/sgi.c ++++ b/sgi/sgi.c +@@ -237,6 +237,7 @@ static int putrow(IMAGE *image, unsigned short *buffer, + */ + static void i_errhdlr(fmt, a1, a2, a3, a4) /* most args currently used is 2 */ + char *fmt; ++int a1, a2, a3, a4; + { + /* fprintf(stderr, fmt); */ + return; diff --git a/tkimg.spec b/tkimg.spec index 6030cb5..fb2d50b 100644 --- a/tkimg.spec +++ b/tkimg.spec @@ -3,7 +3,7 @@ Name: tkimg Version: 1.4 -Release: 37%{?dist} +Release: 38%{?dist} Summary: Image support library for Tk License: BSD URL: http://sourceforge.net/projects/tkimg @@ -24,6 +24,7 @@ Patch7: tkimg-libpng16.patch Patch8: tkimg-libpng-deprecated.patch # gcc10 has -fno-common by default Patch9: tkimg-gcc10.patch +Patch10: tkimg-implicit-int.patch # A request to allow building with system libraries has been submitted # https://sourceforge.net/tracker/index.php?func=detail&aid=2292032&group_id=52039&atid=465495 @@ -71,6 +72,7 @@ rm -rf compat/libtiff %patch7 -p1 -b .png16 %patch8 -p1 -b .deprecated %patch9 -p1 -b .gcc10 +%patch10 -p1 %build %configure --with-tcl=%{tcl_sitearch} --with-tk=%{_libdir} --libdir=%{tcl_sitearch} --disable-threads --enable-64bit @@ -109,6 +111,9 @@ done %{tcl_sitearch}/Img1.4/*.a %changelog +* Fri Nov 18 2022 Florian Weimer - 1.4-38 +- Eliminate implicit int declarations + * Sat Jul 23 2022 Fedora Release Engineering - 1.4-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild