perl: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Sun, 9 Jun 2024 00:00:32 +0000 (17:00 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 9 Jun 2024 00:47:24 +0000 (17:47 -0700)
Need the header for fegetround.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lang/perl/Makefile
lang/perl/patches/020-gcc14.patch [new file with mode: 0644]

index dbc982d6bc9b9f24e24850ce7acd711899ee6a1f..6ca116161c9b165fce9e5903d58de53e6fe0bf7f 100644 (file)
@@ -11,7 +11,7 @@ include perlver.mk
 
 PKG_NAME:=perl
 PKG_VERSION:=$(PERL_VERSION)
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_URL:=https://www.cpan.org/src/5.0
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
diff --git a/lang/perl/patches/020-gcc14.patch b/lang/perl/patches/020-gcc14.patch
new file mode 100644 (file)
index 0000000..76603a0
--- /dev/null
@@ -0,0 +1,23 @@
+--- a/ext/POSIX/POSIX.xs
++++ b/ext/POSIX/POSIX.xs
+@@ -28,11 +28,7 @@ static int not_here(const char *s);
+ #include <sys/errno2.h>
+ #endif
+ #include <float.h>
+-#ifdef I_FENV
+-#if !(defined(__vax__) && defined(__NetBSD__))
+ #include <fenv.h>
+-#endif
+-#endif
+ #include <limits.h>
+ #include <locale.h>
+ #include <math.h>
+@@ -182,7 +178,7 @@ static int not_here(const char *s);
+ #endif
+ /* We will have an emulation. */
+-#ifndef FE_TONEAREST
++#ifndef FE_TOWARDZERO
+ #  define FE_TOWARDZERO       0
+ #  define FE_TONEAREST        1
+ #  define FE_UPWARD   2