diff --git a/openjade-configure-c99.patch b/openjade-configure-c99.patch new file mode 100644 index 0000000..7afd768 --- /dev/null +++ b/openjade-configure-c99.patch @@ -0,0 +1,15 @@ +diff --git a/configure b/configure +index 89206c1..98bc43a 100755 +--- a/configure ++++ b/configure +@@ -3417,8 +3417,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/openjade.spec b/openjade.spec index ddb4dae..b9986b4 100644 --- a/openjade.spec +++ b/openjade.spec @@ -1,7 +1,7 @@ Summary: A DSSSL implementation Name: openjade Version: 1.3.2 -Release: 70%{?dist} +Release: 71%{?dist} Requires: sgml-common URL: http://openjade.sourceforge.net/ Source: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz @@ -23,6 +23,7 @@ Patch3: openjade-nola.patch Patch4: openjade-1.3.2-gcc46.patch #use Getopt:Std to prevent build failure Patch5: openjade-getoptperl.patch +Patch6: openjade-configure-c99.patch License: DMIT #Last jade version is from Red Hat 6.2 @@ -53,6 +54,7 @@ XML, RTF, TeX, MIF (FrameMaker), SGML, or XML. %patch3 -p1 -b .nola %patch4 -p1 -b .gcc46 %patch5 -p1 -b .getopt +%patch6 -p1 -b .configure-c99 %build @@ -111,6 +113,9 @@ export QA_RPATHS=0x0001 %{_datadir}/sgml/%{name}-%{version} %changelog +* Sat Jan 14 2023 Peter Fordham - 1.3.2-71 +- Port configure script to C99. + * Fri Jul 22 2022 Fedora Release Engineering - 1.3.2-70 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild