Bug 2143573 - fftw2: Avoid implicit function declaration during build
Summary: fftw2: Avoid implicit function declaration during build
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fftw2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2022-11-17 09:24 UTC by Florian Weimer
Modified: 2022-11-17 09:28 UTC (History)
3 users (show)

Fixed In Version: fftw2-2.1.5-44.fc38
Clone Of:
Environment:
Last Closed: 2022-11-17 09:28:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2022-11-17 09:24:30 UTC
fftw2 is unsupported upstream: last release 1999, maintenance has switch to version fftw 3. Therefore, we need to apply a custom patch to avoid C89isms.

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

This check seems to have been built into earlier autoconf versions, so the patch will likely be required elsewhere, too.


Note You need to log in before you can comment on or make changes to this bug.