Fix-configure-issue.
This commit is contained in:
parent
324ee5a3a4
commit
b4bdf194d6
23
a52dec-configure-c99.patch
Normal file
23
a52dec-configure-c99.patch
Normal file
@ -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
|
@ -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 <peter.fordham@gmail.com> - 0.7.4-44
|
||||
- Port configure script to C99
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-43
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user