From ef221eda2e36d619e62fc8b7b16303891c97aba6 Mon Sep 17 00:00:00 2001 From: Peter Fordham Date: Dec 22 2022 09:44:44 +0000 Subject: Port configure script to C99. https://fedoraproject.org/wiki/Toolchain/PortingToModernC Rebuilding configure with new autotools would also solve the problem. --- diff --git a/xdialog-2.3.1-configure-c99.patch b/xdialog-2.3.1-configure-c99.patch new file mode 100644 index 0000000..cacb16f --- /dev/null +++ b/xdialog-2.3.1-configure-c99.patch @@ -0,0 +1,15 @@ +diff --git a/configure b/configure +index e3d753a..6e1864d 100755 +--- a/configure ++++ b/configure +@@ -5146,8 +5146,8 @@ main () + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) +- exit(2); +- exit (0); ++ return 2; ++ return 0; + } + _ACEOF + rm -f conftest$ac_exeext diff --git a/xdialog.spec b/xdialog.spec index 50b073d..fec33a6 100644 --- a/xdialog.spec +++ b/xdialog.spec @@ -3,7 +3,7 @@ Name: xdialog Summary: X11 drop in replacement for cdialog Version: 2.3.1 -Release: 32%{?dist} +Release: 33%{?dist} License: GPL+ URL: http://xdialog.free.fr @@ -11,6 +11,7 @@ Source0: http://xdialog.free.fr/%{real_name}-%{version}.tar.bz2 Patch0: xdialog-2.3.1-nostrip.patch # RHBZ #1037393: Fixes a format string vulnerability (via argv[0]) Patch1: xdialog-2.3.1-secure-fprintf.diff +Patch2: xdialog-2.3.1-configure-c99.patch BuildRequires: make BuildRequires: gcc @@ -36,6 +37,7 @@ touch -c -r ChangeLog ChangeLog.utf8 mv ChangeLog.utf8 ChangeLog %patch0 -p1 -b .nostrip %patch1 -p0 -b .fprintf +%patch2 -p1 -b .configure touch -c -r configure.nostrip configure touch -c -r configure.in.nostrip configure.in @@ -68,6 +70,9 @@ ln -s ../samples __dist_html/html/samples %exclude %{_docdir}/%{real_name}-%{version} %changelog +* Thu Dec 22 2022 Peter Fordham - 2.3.1-33 +- Port configure script to C99. + * Sat Jul 23 2022 Fedora Release Engineering - 2.3.1-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild