public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fftw2] epel10.3: Avoid implicit function declaration during configure (#2143573)
@ 2026-10-07 16:21 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-10-07 16:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fftw2
Branch : epel10.3
Commit : 468fdd9d7f854dd9e73e2f511b13469c9320740c
Author : Florian Weimer <fweimer@redhat.com>
Date : 2022-11-17T10:25:27+01:00
Stats : +29/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fftw2/c/468fdd9d7f854dd9e73e2f511b13469c9320740c?branch=epel10.3
Log:
Avoid implicit function declaration during configure (#2143573)
---
diff --git a/fftw2-configure.patch b/fftw2-configure.patch
new file mode 100644
index 0000000..6b51243
--- /dev/null
+++ b/fftw2-configure.patch
@@ -0,0 +1,20 @@
+Avoid implicit declaration of exit in ac_cv_header_stdc
+
+This is fixed in newer autoconf versions, so no need to patch
+configure.in.
+
+diff --git a/configure b/configure
+index f5bab28675937533..5af49397a60b4811 100755
+--- a/configure
++++ b/configure
+@@ -4459,8 +4459,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/fftw2.spec b/fftw2.spec
index 5d1dda6..2ba385f 100644
--- a/fftw2.spec
+++ b/fftw2.spec
@@ -1,12 +1,13 @@
Name: fftw2
Version: 2.1.5
-Release: 43%{?dist}
+Release: 44%{?dist}
Summary: Fast Fourier Transform library (version 2)
%define real_name fftw
License: GPLv2+
URL: http://www.fftw.org/
Source0: ftp://ftp.fftw.org/pub/fftw/fftw-%{version}.tar.gz
+Patch0: fftw2-configure.patch
BuildRequires: make
BuildRequires: gcc-gfortran
@@ -46,6 +47,10 @@ transform library (version 2).
%prep
%setup -q -c %{real_name}-%{version}
+pushd %{real_name}-%{version}
+%patch0 -p1
+popd
+
mv %{real_name}-%{version} single
cp -a single double
@@ -110,6 +115,9 @@ rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
%{_libdir}/*.a
%changelog
+* Thu Nov 17 2022 Florian Weimer <fweimer@redhat.com> - 2.1.5-44
+- Avoid implicit function declaration during configure (#2143573)
+
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 16:21 [rpms/fftw2] epel10.3: Avoid implicit function declaration during configure (#2143573) Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox