From b4bdf194d67f1e6e5a939e4471ca34ab2bf8b1be Mon Sep 17 00:00:00 2001 From: Peter Fordham Date: Wed, 30 Nov 2022 06:08:00 +0000 Subject: [PATCH] Fix-configure-issue. --- a52dec-configure-c99.patch | 23 +++++++++++++++++++++++ a52dec.spec | 6 +++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 a52dec-configure-c99.patch diff --git a/a52dec-configure-c99.patch b/a52dec-configure-c99.patch new file mode 100644 index 0000000..0f3d11d --- /dev/null +++ b/a52dec-configure-c99.patch @@ -0,0 +1,23 @@ +Avoid an undeclared exit function call in obscure configure check. +This improves compatibility with strict(er) C99 compilers, which may +not support implicit function declarations because they were removed +from the C language in 1999. + +Not submitted upstream as regeneration of configure with new autoconf +would fix. + +diff --git a/configure b/configure +index b81fdff..49bcfc6 100755 +--- a/configure ++++ b/configure +@@ -3850,8 +3850,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/a52dec.spec b/a52dec.spec index 7a354d1..0aae3c5 100644 --- a/a52dec.spec +++ b/a52dec.spec @@ -1,13 +1,14 @@ Summary: Small test program for liba52 Name: a52dec Version: 0.7.4 -Release: 43%{?dist} +Release: 44%{?dist} License: GPLv2 URL: http://liba52.sourceforge.net Source0: %{url}/files/%{name}-%{version}.tar.gz Patch0: a52dec-configure-optflags.patch Patch1: a52dec-0.7.4-rpath64.patch Patch2: liba52-silence.patch +Patch3: a52dec-configure-c99.patch BuildRequires: gcc BuildRequires: make @@ -90,6 +91,9 @@ done %changelog +* Wed Nov 30 2022 Peter Fordham - 0.7.4-44 +- Port configure script to C99 + * Wed Jul 20 2022 Fedora Release Engineering - 0.7.4-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild