From ea8e6fbf33728ecc0546764b115bd2701d87e4aa Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 8 Jun 2024 17:00:32 -0700 Subject: [PATCH] perl: fix compilation with GCC14 Need the header for fegetround. Signed-off-by: Rosen Penev --- lang/perl/Makefile | 2 +- lang/perl/patches/020-gcc14.patch | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 lang/perl/patches/020-gcc14.patch diff --git a/lang/perl/Makefile b/lang/perl/Makefile index dbc982d6bc..6ca116161c 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -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 index 0000000000..76603a0217 --- /dev/null +++ b/lang/perl/patches/020-gcc14.patch @@ -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 + #endif + #include +-#ifdef I_FENV +-#if !(defined(__vax__) && defined(__NetBSD__)) + #include +-#endif +-#endif + #include + #include + #include +@@ -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 -- 2.30.2