p5-*: fix PM_FILTER semantic changes

PR:	288020
This commit is contained in:
Mathieu Arnold 2025-07-13 11:14:11 +02:00
parent 071398509e
commit 071398600d
No known key found for this signature in database
GPG Key ID: 7F620E0A9E9D41BE
6 changed files with 67 additions and 3 deletions

View File

@ -24,4 +24,10 @@ CONFIGURE_ARGS= </dev/null
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|($$maj, $$min, $$sub)|&; &|' ${WRKSRC}/Makefile.PL @${REINPLACE_CMD} -e 's|($$maj, $$min, $$sub)|&; &|' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk> .include <bsd.port.pre.mk>
.if ${PERL_LEVEL} >= 504200
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Makefile.PL
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,14 @@
fix sh: Syntax error: Unterminated quoted string
Filter command '"sed" "-e" "s\"' failed
--- Makefile.PL.orig 2025-07-13 08:56:55 UTC
+++ Makefile.PL
@@ -21,7 +21,7 @@ WriteMakefile(
'PREREQ_PM' => {
'POE' => '0.22',
},
- PM_FILTER => "sed -e s\\#__DEFAULT_RRDTOOL__\\#${DEFAULT_RRDTOOL}\\#g -e s\\#__RRDTOOL_VERSION__\\#${RRDTOOL_VERSION}\\#g",
+ PM_FILTER => "sed -e s=__DEFAULT_RRDTOOL__=${DEFAULT_RRDTOOL}=g -e s=__RRDTOOL_VERSION__=${RRDTOOL_VERSION}=g",
(($] ge '5.005') ?
( 'AUTHOR' => 'Todd Caine <todd@pobox.com>',
'ABSTRACT' => 'POE interface to Tobias Oetiker\'s RRDTool',

View File

@ -16,4 +16,10 @@ RUN_DEPENDS= pdflib-perl>=0:print/pdflib-perl \
USES= perl5 USES= perl5
USE_PERL5= configure USE_PERL5= configure
.include <bsd.port.mk> .include <bsd.port.pre.mk>
.if ${PERL_LEVEL} >= 504200
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Makefile.PL
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,15 @@
fix sh: Syntax error: Unterminated quoted string
--- Makefile.PL.orig 2025-07-13 09:16:55 UTC
+++ Makefile.PL
@@ -28,8 +28,8 @@ my $pm_filter = $use_unicode
}
my $pm_filter = $use_unicode
- ? q{perl -pi -e "s!UNI_YES ! !g;s!UNI_NO !\\#!g"}
- : q{perl -pi -e "s!UNI_NO ! !g;s!UNI_YES !\\#!g"};
+ ? q{sed -e "s/UNI_YES//g;s/UNI_NO.*//g"}
+ : q{sed -e "s/UNI_NO//g;s/UNI_YES.*//g"};
WriteMakefile(
NAME => 'PDF::Template',

View File

@ -20,4 +20,10 @@ GH_ACCOUNT= glebius
pre-install: pre-install:
${STRIP_CMD} ${WRKSRC}/blib/arch/auto/BSD/Sysctl/Sysctl.so ${STRIP_CMD} ${WRKSRC}/blib/arch/auto/BSD/Sysctl/Sysctl.so
.include <bsd.port.mk> .include <bsd.port.pre.mk>
.if ${PERL_LEVEL} >= 504200
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Makefile.PL
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,17 @@
--- Makefile.PL.orig 2025-07-26 06:21:52 UTC
+++ Makefile.PL
@@ -51,13 +51,7 @@ WriteMakefile(
PREREQ_PM => {
'XSLoader' => 0
},
- PM_FILTER => 'perl -pe "if (/^\#include (.+)$$/) { \
- open FILE, \\$$1 or \
- die \"open \\$$1\"; \
- while (<FILE>) { print; }; \
- close FILE; \
- next; \
- };"',
+ PM_FILTER => q{perl -pe 'if (/^#include (.+)$$/) { open FILE, \\$$1 or die; while (<FILE>) { print; }; close FILE; next; };'},
clean => {
FILES => 'bsd-sysctl.h bsd-sysctl.ph',
},