git: 07045070ebc0 - main - perl: mark broken for Perl 5.37+

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Sat, 03 May 2025 13:40:04 UTC
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=07045070ebc052af8b94a2ea4a939a75ba3b7a38

commit 07045070ebc052af8b94a2ea4a939a75ba3b7a38
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2025-05-03 13:08:39 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2025-05-03 13:39:17 +0000

    perl: mark broken for Perl 5.37+
    
    Taken from https://github.com/Perl/perl5/pull/19655:
    
    > hide private functions with __attribute__((visibility("hidden")))
    > This allows us to enforce API boundaries and potentially enables
    > compiler optimisations.
---
 devel/p5-Data-Swap/Makefile           | 8 +++++++-
 devel/p5-Devel-BeginLift/Makefile     | 8 +++++++-
 textproc/p5-Text-ClearSilver/Makefile | 8 +++++++-
 www/p5-Apache-DB/Makefile             | 8 +++++++-
 4 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/devel/p5-Data-Swap/Makefile b/devel/p5-Data-Swap/Makefile
index 3f5a26527b3c..f89445d46827 100644
--- a/devel/p5-Data-Swap/Makefile
+++ b/devel/p5-Data-Swap/Makefile
@@ -12,4 +12,10 @@ WWW=		https://metacpan.org/release/Data-Swap
 USES=		perl5
 USE_PERL5=	configure
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 503700
+BROKEN=         uses hidden Perl functions that are hidden after 5.37.0
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Devel-BeginLift/Makefile b/devel/p5-Devel-BeginLift/Makefile
index 238856dc91ac..3820b0fc4fdb 100644
--- a/devel/p5-Devel-BeginLift/Makefile
+++ b/devel/p5-Devel-BeginLift/Makefile
@@ -17,4 +17,10 @@ RUN_DEPENDS=	\
 USES=		perl5
 USE_PERL5=	configure
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 503700
+BROKEN=         uses hidden Perl functions that are hidden after 5.37.0
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Text-ClearSilver/Makefile b/textproc/p5-Text-ClearSilver/Makefile
index 1758f900f90a..a8ca2c296ad0 100644
--- a/textproc/p5-Text-ClearSilver/Makefile
+++ b/textproc/p5-Text-ClearSilver/Makefile
@@ -19,4 +19,10 @@ TEST_DEPENDS=	\
 USES=		perl5 gmake
 USE_PERL5=	configure
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 503700
+BROKEN=         uses hidden Perl functions that are hidden after 5.37.0
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/p5-Apache-DB/Makefile b/www/p5-Apache-DB/Makefile
index c90f3f7a8169..0e9ab6d34396 100644
--- a/www/p5-Apache-DB/Makefile
+++ b/www/p5-Apache-DB/Makefile
@@ -20,4 +20,10 @@ USE_PERL5=	configure
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Apache/DB/DB.so
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 503700
+BROKEN=         uses hidden Perl functions that are hidden after 5.37.0
+.endif
+
+.include <bsd.port.post.mk>