From 870cabe3c2f43707d1ea87f87dba0d2c1f6ba8d6 Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 24 Dec 2024 16:13:47 +0000 Subject: [PATCH] CPAN author MLEHMANN ignores Perl versions newer than 5.22, so disable Perl feature signatures in patch. Take maintainer. --- converters/p5-CBOR-XS/Makefile | 1 + converters/p5-CBOR-XS/patches/patch-XS_pm | 13 +++++++ converters/p5-JSON-XS/Makefile | 15 ++++--- converters/p5-JSON-XS/patches/patch-XS_pm | 13 +++++++ converters/p5-Types-Serialiser/Makefile | 13 +++++-- .../patches/patch-Serialiser_pm | 13 +++++++ devel/p5-IO-AIO/Makefile | 4 ++ devel/p5-IO-AIO/patches/patch-AIO_pm | 39 ++++++++++--------- 8 files changed, 83 insertions(+), 28 deletions(-) create mode 100644 converters/p5-CBOR-XS/patches/patch-XS_pm create mode 100644 converters/p5-JSON-XS/patches/patch-XS_pm create mode 100644 converters/p5-Types-Serialiser/patches/patch-Serialiser_pm diff --git a/converters/p5-CBOR-XS/Makefile b/converters/p5-CBOR-XS/Makefile index 82e9da0270f..a5e679265d9 100644 --- a/converters/p5-CBOR-XS/Makefile +++ b/converters/p5-CBOR-XS/Makefile @@ -1,6 +1,7 @@ COMMENT = concise binary object representation DISTNAME = CBOR-XS-1.87 +REVISION = 0 CPAN_AUTHOR = MLEHMANN CATEGORIES = converters diff --git a/converters/p5-CBOR-XS/patches/patch-XS_pm b/converters/p5-CBOR-XS/patches/patch-XS_pm new file mode 100644 index 00000000000..d69e100c11c --- /dev/null +++ b/converters/p5-CBOR-XS/patches/patch-XS_pm @@ -0,0 +1,13 @@ +MLEHMANN ignores Perl newer than 5.22, disable feature signatures + +Index: XS.pm +--- XS.pm.orig ++++ XS.pm +@@ -64,6 +64,7 @@ vice versa. + + package CBOR::XS; + ++no feature 'signatures'; + use common::sense; + + our $VERSION = 1.87; diff --git a/converters/p5-JSON-XS/Makefile b/converters/p5-JSON-XS/Makefile index 75a53e2913a..d48fe9f45f0 100644 --- a/converters/p5-JSON-XS/Makefile +++ b/converters/p5-JSON-XS/Makefile @@ -2,17 +2,22 @@ COMMENT = JSON serialising/deserialising, done correctly and fast DISTNAME = JSON-XS-4.03 EPOCH = 1 +REVISION = 0 +CPAN_AUTHOR = MLEHMANN + CATEGORIES = converters +MAINTAINER = Alexander Bluhm + # Perl PERMIT_PACKAGE = Yes -WANTLIB += c perl +WANTLIB = c perl -MODULES = cpan +MODULES = cpan -BUILD_DEPENDS = devel/p5-Canary-Stability -RUN_DEPENDS = converters/p5-Types-Serialiser \ - devel/p5-common-sense +BUILD_DEPENDS = devel/p5-Canary-Stability +RUN_DEPENDS = converters/p5-Types-Serialiser \ + devel/p5-common-sense .include diff --git a/converters/p5-JSON-XS/patches/patch-XS_pm b/converters/p5-JSON-XS/patches/patch-XS_pm new file mode 100644 index 00000000000..6bacc00a317 --- /dev/null +++ b/converters/p5-JSON-XS/patches/patch-XS_pm @@ -0,0 +1,13 @@ +MLEHMANN ignores Perl newer than 5.22, disable feature signatures + +Index: XS.pm +--- XS.pm.orig ++++ XS.pm +@@ -87,6 +87,7 @@ stuff). Or you can combine those features in whatever + + package JSON::XS; + ++no feature 'signatures'; + use common::sense; + + our $VERSION = '4.03'; diff --git a/converters/p5-Types-Serialiser/Makefile b/converters/p5-Types-Serialiser/Makefile index 8402634a73b..f8f30d95856 100644 --- a/converters/p5-Types-Serialiser/Makefile +++ b/converters/p5-Types-Serialiser/Makefile @@ -1,15 +1,20 @@ COMMENT = simple data types for common serialisation formats -MODULES = cpan -PKG_ARCH = * DISTNAME = Types-Serialiser-1.01 +REVISION = 0 +CPAN_AUTHOR = MLEHMANN + CATEGORIES = converters -CPAN_AUTHOR = MLEHMANN +MAINTAINER = Alexander Bluhm # Perl PERMIT_PACKAGE = Yes -RUN_DEPENDS = devel/p5-common-sense +MODULES = cpan + +RUN_DEPENDS = devel/p5-common-sense + +PKG_ARCH = * .include diff --git a/converters/p5-Types-Serialiser/patches/patch-Serialiser_pm b/converters/p5-Types-Serialiser/patches/patch-Serialiser_pm new file mode 100644 index 00000000000..c5a7224a0ae --- /dev/null +++ b/converters/p5-Types-Serialiser/patches/patch-Serialiser_pm @@ -0,0 +1,13 @@ +MLEHMANN ignores Perl newer than 5.22, disable feature signatures + +Index: Serialiser.pm +--- Serialiser.pm.orig ++++ Serialiser.pm +@@ -17,6 +17,7 @@ different implementations so they become interoperable + + package Types::Serialiser; + ++no feature 'signatures'; + use common::sense; # required to suppress annoying warnings + + our $VERSION = '1.01'; diff --git a/devel/p5-IO-AIO/Makefile b/devel/p5-IO-AIO/Makefile index 8812a12c8ab..19d48f51389 100644 --- a/devel/p5-IO-AIO/Makefile +++ b/devel/p5-IO-AIO/Makefile @@ -1,9 +1,13 @@ COMMENT = asynchronous Input/Output DISTNAME = IO-AIO-4.81 +REVISION = 0 +CPAN_AUTHOR = MLEHMANN CATEGORIES = devel +MAINTAINER = Alexander Bluhm + # Perl PERMIT_PACKAGE = Yes diff --git a/devel/p5-IO-AIO/patches/patch-AIO_pm b/devel/p5-IO-AIO/patches/patch-AIO_pm index 9c12146991b..5105d0d01cb 100644 --- a/devel/p5-IO-AIO/patches/patch-AIO_pm +++ b/devel/p5-IO-AIO/patches/patch-AIO_pm @@ -1,3 +1,5 @@ +MLEHMANN ignores Perl newer than 5.22, disable feature signatures + indirect method invocation is deprecated Index: AIO.pm @@ -12,16 +14,15 @@ Index: AIO.pm =head1 DESCRIPTION -@@ -166,6 +166,8 @@ result in a runtime error). +@@ -168,6 +168,7 @@ package IO::AIO; - package IO::AIO; - -+no feature 'signatures'; -+ use Carp (); ++no feature 'signatures'; use common::sense; -@@ -931,15 +933,15 @@ sub aio_load($$;$) { + + use base 'Exporter'; +@@ -931,15 +932,15 @@ sub aio_load($$;$) { my $grp = aio_group $cb; aioreq_pri $pri; @@ -41,7 +42,7 @@ Index: AIO.pm $grp } -@@ -970,62 +972,62 @@ sub aio_copy($$;$) { +@@ -970,62 +971,62 @@ sub aio_copy($$;$) { my $grp = aio_group $cb; aioreq_pri $pri; @@ -120,7 +121,7 @@ Index: AIO.pm $grp } -@@ -1049,21 +1051,21 @@ sub aio_move($$;$) { +@@ -1049,21 +1050,21 @@ sub aio_move($$;$) { my $grp = aio_group $cb; aioreq_pri $pri; @@ -147,7 +148,7 @@ Index: AIO.pm $grp } -@@ -1137,7 +1139,7 @@ sub aio_scandir($$;$) { +@@ -1137,7 +1138,7 @@ sub aio_scandir($$;$) { # get a wd object aioreq_pri $pri; @@ -156,7 +157,7 @@ Index: AIO.pm $_[0] or return $grp->result (); -@@ -1145,7 +1147,7 @@ sub aio_scandir($$;$) { +@@ -1145,7 +1146,7 @@ sub aio_scandir($$;$) { # stat once aioreq_pri $pri; @@ -165,7 +166,7 @@ Index: AIO.pm return $grp->result () if $_[0]; my $now = time; my $hash1 = join ":", (stat _)[0,1,3,7,9]; -@@ -1160,7 +1162,7 @@ sub aio_scandir($$;$) { +@@ -1160,7 +1161,7 @@ sub aio_scandir($$;$) { # read the directory entries aioreq_pri $pri; @@ -174,7 +175,7 @@ Index: AIO.pm my ($entries, $flags) = @_ or return $grp->result (); -@@ -1214,7 +1216,7 @@ sub aio_scandir($$;$) { +@@ -1214,7 +1215,7 @@ sub aio_scandir($$;$) { # stat the dir another time aioreq_pri $pri; @@ -183,7 +184,7 @@ Index: AIO.pm my $hash2 = join ":", (stat _)[0,1,3,7,9]; my $ndirs; -@@ -1231,43 +1233,43 @@ sub aio_scandir($$;$) { +@@ -1231,43 +1232,43 @@ sub aio_scandir($$;$) { my (@dirs, @nondirs); @@ -241,7 +242,7 @@ Index: AIO.pm $grp } -@@ -1289,20 +1291,20 @@ sub aio_rmtree($;$) { +@@ -1289,20 +1290,20 @@ sub aio_rmtree($;$) { my $grp = aio_group $cb; aioreq_pri $pri; @@ -269,7 +270,7 @@ Index: AIO.pm $grp } -@@ -1419,20 +1421,20 @@ sub aio_pathsync($;$) { +@@ -1419,20 +1420,20 @@ sub aio_pathsync($;$) { my $grp = aio_group $cb; aioreq_pri $pri; @@ -295,7 +296,7 @@ Index: AIO.pm $grp } -@@ -1568,7 +1570,7 @@ Example: +@@ -1568,7 +1569,7 @@ Example: print "all stats done\n"; }; @@ -304,7 +305,7 @@ Index: AIO.pm (aio_stat ...), (aio_stat ...), ...; -@@ -1766,14 +1768,14 @@ C objects: +@@ -1766,14 +1767,14 @@ C objects: $grp->add (aio_unlink "..."); @@ -323,7 +324,7 @@ Index: AIO.pm This makes it very easy to create composite requests (see the source of C for an application) that work and feel like simple requests. -@@ -1808,6 +1810,8 @@ finished will the the group itself finish. +@@ -1808,6 +1809,8 @@ finished will the the group itself finish. =item add $grp ... @@ -332,7 +333,7 @@ Index: AIO.pm =item $grp->add (...) Add one or more requests to the group. Any type of L can -@@ -1877,7 +1881,7 @@ Example: +@@ -1877,7 +1880,7 @@ Example: my $file = pop @files or return;