Wed Jun 7 14:33:24 2017 UTC ()
Fix build with Perl 5.26.0


(ryoon)
diff -r1.7 -r1.8 pkgsrc/converters/p5-Sereal-Decoder/distinfo
diff -r0 -r1.1 pkgsrc/converters/p5-Sereal-Decoder/patches/patch-Decoder.xs
diff -r1.7 -r1.8 pkgsrc/converters/p5-Sereal-Encoder/distinfo
diff -r0 -r1.1 pkgsrc/converters/p5-Sereal-Encoder/patches/patch-Encoder.xs
diff -r1.16 -r1.17 pkgsrc/converters/p5-Unicode-Collate/distinfo
diff -r0 -r1.1 pkgsrc/converters/p5-Unicode-Collate/patches/patch-Makefile.PL
diff -r1.7 -r1.8 pkgsrc/converters/p5-Unicode-Normalize/distinfo
diff -r0 -r1.1 pkgsrc/converters/p5-Unicode-Normalize/patches/patch-Makefile.PL

cvs diff -r1.7 -r1.8 pkgsrc/converters/p5-Sereal-Decoder/distinfo (expand / switch to unified diff)

--- pkgsrc/converters/p5-Sereal-Decoder/distinfo 2016/12/11 20:30:35 1.7
+++ pkgsrc/converters/p5-Sereal-Decoder/distinfo 2017/06/07 14:33:23 1.8
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.7 2016/12/11 20:30:35 wiedi Exp $ 1$NetBSD: distinfo,v 1.8 2017/06/07 14:33:23 ryoon Exp $
2 2
3SHA1 (Sereal-Decoder-3.014.tar.gz) = 79962f925b2f7dc3920c913d0b033da860a84012 3SHA1 (Sereal-Decoder-3.014.tar.gz) = 79962f925b2f7dc3920c913d0b033da860a84012
4RMD160 (Sereal-Decoder-3.014.tar.gz) = bc15b504e216305349fd5192f337202d93e21480 4RMD160 (Sereal-Decoder-3.014.tar.gz) = bc15b504e216305349fd5192f337202d93e21480
5SHA512 (Sereal-Decoder-3.014.tar.gz) = 00ac49d18033fa177fa12d36b0527f327eaed54c96a065783da6c209db24764b4487464312a933ac24d51d94ef79293c0cb1aa938f6e4704a3b0a11b30151e22 5SHA512 (Sereal-Decoder-3.014.tar.gz) = 00ac49d18033fa177fa12d36b0527f327eaed54c96a065783da6c209db24764b4487464312a933ac24d51d94ef79293c0cb1aa938f6e4704a3b0a11b30151e22
6Size (Sereal-Decoder-3.014.tar.gz) = 369546 bytes 6Size (Sereal-Decoder-3.014.tar.gz) = 369546 bytes
 7SHA1 (patch-Decoder.xs) = eee3fdd7b81dfdc8494cc0aaac33ca0a26b44e96
7SHA1 (patch-snappy_csnappy__internal__userspace.h) = 604f36231909881d4c424c06cd0b6065b4912006 8SHA1 (patch-snappy_csnappy__internal__userspace.h) = 604f36231909881d4c424c06cd0b6065b4912006

File Added: pkgsrc/converters/p5-Sereal-Decoder/patches/Attic/patch-Decoder.xs
$NetBSD: patch-Decoder.xs,v 1.1 2017/06/07 14:33:23 ryoon Exp $

* Fix build with Perl 5.26.0
  Like devel/p5-Params-Classify/patches/patch-lib_Params_Classify.xs

--- Decoder.xs.orig	2015-11-27 00:15:01.000000000 +0000
+++ Decoder.xs
@@ -19,6 +19,26 @@
 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
 
+#ifndef OpHAS_SIBLING
+#  define OpHAS_SIBLING(o)		(cBOOL((o)->op_sibling))
+#endif
+
+#ifndef OpSIBLING
+#  define OpSIBLING(o)			(0 + (o)->op_sibling)
+#endif
+
+#ifndef OpMORESIB_set
+#  define OpMORESIB_set(o, sib)		((o)->op_sibling = (sib))
+#endif
+
+#ifndef OpLASTSIB_set
+#  define OpLASTSIB_set(o, parent)	((o)->op_sibling = NULL)
+#endif
+
+#ifndef OpMAYBESIB_set
+#  define OpMAYBESIB_set(o, sib, parent)	((o)->op_sibling = (sib))
+#endif
+
 /* prototype to pass -Wmissing-prototypes */
 STATIC void
 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
@@ -193,17 +213,17 @@ THX_ck_entersub_args_sereal_decoder(pTHX
 
     entersubop = ck_entersub_args_proto(entersubop, namegv, (SV*)cv);
     pushop = cUNOPx(entersubop)->op_first;
-    if ( ! pushop->op_sibling )
+    if ( ! OpHAS_SIBLING(pushop) )
         pushop = cUNOPx(pushop)->op_first;
-    firstargop = pushop->op_sibling;
+    firstargop = OpSIBLING(pushop);
 
-    for (cvop = firstargop; cvop->op_sibling; cvop = cvop->op_sibling) ;
+    for (cvop = firstargop; OpHAS_SIBLING(cvop); cvop = OpSIBLING(cvop)) ;
 
     lastargop = pushop;
     for (
         arity = 0, lastargop = pushop, argop = firstargop;
         argop != cvop;
-        lastargop = argop, argop = argop->op_sibling
+        lastargop = argop, argop = OpSIBLING(argop)
     ){
         arity++;
     }
@@ -222,8 +242,8 @@ THX_ck_entersub_args_sereal_decoder(pTHX
     if (arity > min_arity)
         opopt |= OPOPT_OUTARG_HEADER;
 
-    pushop->op_sibling = cvop;
-    lastargop->op_sibling = NULL;
+    OpLASTSIB_set(pushop, cvop);
+    OpLASTSIB_set(lastargop, NULL);
     op_free(entersubop);
     newop = newUNOP(OP_NULL, 0, firstargop);
     newop->op_type    = OP_CUSTOM;

cvs diff -r1.7 -r1.8 pkgsrc/converters/p5-Sereal-Encoder/distinfo (expand / switch to unified diff)

--- pkgsrc/converters/p5-Sereal-Encoder/distinfo 2016/12/15 01:53:34 1.7
+++ pkgsrc/converters/p5-Sereal-Encoder/distinfo 2017/06/07 14:33:24 1.8
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.7 2016/12/15 01:53:34 wiedi Exp $ 1$NetBSD: distinfo,v 1.8 2017/06/07 14:33:24 ryoon Exp $
2 2
3SHA1 (Sereal-Encoder-3.014.tar.gz) = 8cda51758cd1d22aa307efe8c85423511a12884a 3SHA1 (Sereal-Encoder-3.014.tar.gz) = 8cda51758cd1d22aa307efe8c85423511a12884a
4RMD160 (Sereal-Encoder-3.014.tar.gz) = bef412b1dd0fa8510decd5a048d8bbaf922999cf 4RMD160 (Sereal-Encoder-3.014.tar.gz) = bef412b1dd0fa8510decd5a048d8bbaf922999cf
5SHA512 (Sereal-Encoder-3.014.tar.gz) = 4891cb9189abe77012d14ba778156806f9d1708bce73015ce4d1d06ce4aa62abd0f9af4f98a64c547e55fa2298770f45aa2b0b99cc00e8e0f6a022df84bb41b8 5SHA512 (Sereal-Encoder-3.014.tar.gz) = 4891cb9189abe77012d14ba778156806f9d1708bce73015ce4d1d06ce4aa62abd0f9af4f98a64c547e55fa2298770f45aa2b0b99cc00e8e0f6a022df84bb41b8
6Size (Sereal-Encoder-3.014.tar.gz) = 377995 bytes 6Size (Sereal-Encoder-3.014.tar.gz) = 377995 bytes
 7SHA1 (patch-Encoder.xs) = 4a0265facb06f768cf73db8f78782b117d37b00c
7SHA1 (patch-snappy_csnappy__internal__userspace.h) = 604f36231909881d4c424c06cd0b6065b4912006 8SHA1 (patch-snappy_csnappy__internal__userspace.h) = 604f36231909881d4c424c06cd0b6065b4912006

File Added: pkgsrc/converters/p5-Sereal-Encoder/patches/Attic/patch-Encoder.xs
$NetBSD: patch-Encoder.xs,v 1.1 2017/06/07 14:33:24 ryoon Exp $

* Fix build with Perl 5.26.0
  Like devel/p5-Params-Classify/patches/patch-lib_Params_Classify.xs

--- Encoder.xs.orig	2015-11-27 01:30:50.000000000 +0000
+++ Encoder.xs
@@ -20,6 +20,27 @@
 # define GvCV_set(gv, cv) (GvCV(gv) = (cv))
 #endif
 
+#ifndef OpHAS_SIBLING
+#  define OpHAS_SIBLING(o)		(cBOOL((o)->op_sibling))
+#endif
+
+#ifndef OpSIBLING
+#  define OpSIBLING(o)			(0 + (o)->op_sibling)
+#endif
+
+#ifndef OpMORESIB_set
+#  define OpMORESIB_set(o, sib)		((o)->op_sibling = (sib))
+#endif
+
+#ifndef OpLASTSIB_set
+#  define OpLASTSIB_set(o, parent)	((o)->op_sibling = NULL)
+#endif
+
+#ifndef OpMAYBESIB_set
+#  define OpMAYBESIB_set(o, sib, parent)	((o)->op_sibling = (sib))
+#endif
+
+
 #if defined(cv_set_call_checker) && defined(XopENTRY_set)
 # define USE_CUSTOM_OPS 1
 #else
@@ -88,14 +109,14 @@ THX_ck_entersub_args_sereal_encode_with_
 
   entersubop = ck_entersub_args_proto(entersubop, namegv, ckobj);
   pushop = cUNOPx(entersubop)->op_first;
-  if (!pushop->op_sibling)
+  if (!OpHAS_SIBLING(pushop))
     pushop = cUNOPx(pushop)->op_first;
-  firstargop = pushop->op_sibling;
+  firstargop = OpSIBLING(pushop);
 
-  for (cvop = firstargop; cvop->op_sibling; cvop = cvop->op_sibling) ;
+  for (cvop = firstargop; OpHAS_SIBLING(cvop); cvop = OpSIBLING(cvop)) ;
 
   for (arity = 0, lastargop = pushop, argop = firstargop; argop != cvop;
-       lastargop = argop, argop = argop->op_sibling)
+       lastargop = argop, argop = OpSIBLING(argop))
   {
     arity++;
   }
@@ -106,8 +127,8 @@ THX_ck_entersub_args_sereal_encode_with_
   /* If we get here, we can replace the entersub with a suitable
    * sereal_encode_with_object custom OP. */
 
-  pushop->op_sibling = cvop;
-  lastargop->op_sibling = NULL;
+  OpLASTSIB_set(pushop, cvop);
+  OpLASTSIB_set(lastargop, NULL);
   op_free(entersubop);
   newop = newUNOP(OP_NULL, 0, firstargop);
   newop->op_type    = OP_CUSTOM;

cvs diff -r1.16 -r1.17 pkgsrc/converters/p5-Unicode-Collate/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/converters/p5-Unicode-Collate/Attic/distinfo 2016/12/11 00:39:39 1.16
+++ pkgsrc/converters/p5-Unicode-Collate/Attic/distinfo 2017/06/07 14:33:24 1.17
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.16 2016/12/11 00:39:39 wen Exp $ 1$NetBSD: distinfo,v 1.17 2017/06/07 14:33:24 ryoon Exp $
2 2
3SHA1 (Unicode-Collate-1.19.tar.gz) = ab9680d5e1bd23b87e03c70593c40cfdc09a30f2 3SHA1 (Unicode-Collate-1.19.tar.gz) = ab9680d5e1bd23b87e03c70593c40cfdc09a30f2
4RMD160 (Unicode-Collate-1.19.tar.gz) = 94c9580d75d19b5f1abaf470a5d7472873352387 4RMD160 (Unicode-Collate-1.19.tar.gz) = 94c9580d75d19b5f1abaf470a5d7472873352387
5SHA512 (Unicode-Collate-1.19.tar.gz) = 580bca6e96dd474b223ec9f971d6b8a4fc96d1bbffdc278dfa679d511455940e088f19069647715c2ae7c8e52972a59107cbc6d1bf3537de1c314feab2f4c21b 5SHA512 (Unicode-Collate-1.19.tar.gz) = 580bca6e96dd474b223ec9f971d6b8a4fc96d1bbffdc278dfa679d511455940e088f19069647715c2ae7c8e52972a59107cbc6d1bf3537de1c314feab2f4c21b
6Size (Unicode-Collate-1.19.tar.gz) = 886811 bytes 6Size (Unicode-Collate-1.19.tar.gz) = 886811 bytes
 7SHA1 (patch-Makefile.PL) = b87caafb75d18bdb9c6c5462b2f6842c4bcc7aa8

File Added: pkgsrc/converters/p5-Unicode-Collate/patches/Attic/patch-Makefile.PL
$NetBSD: patch-Makefile.PL,v 1.1 2017/06/07 14:33:24 ryoon Exp $

* FIx build with Perl 5.26.0

--- Makefile.PL.orig	2016-12-03 00:33:01.000000000 +0000
+++ Makefile.PL
@@ -6,7 +6,7 @@ my $clean = {};
 if (-f "Collate.xs") {
     print "Making header files for XS...\n";
 
-    do 'mkheader' or die $@ || "mkheader: $!";
+    do './mkheader' or die $@ || "mkheader: $!";
 
     $clean = { FILES => 'ucatbl.h' };
 }

cvs diff -r1.7 -r1.8 pkgsrc/converters/p5-Unicode-Normalize/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/converters/p5-Unicode-Normalize/Attic/distinfo 2016/04/13 21:10:11 1.7
+++ pkgsrc/converters/p5-Unicode-Normalize/Attic/distinfo 2017/06/07 14:33:24 1.8
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.7 2016/04/13 21:10:11 markd Exp $ 1$NetBSD: distinfo,v 1.8 2017/06/07 14:33:24 ryoon Exp $
2 2
3SHA1 (Unicode-Normalize-1.25.tar.gz) = 607ada7ef05bc1644f7f08d8899fc60988ea4f7e 3SHA1 (Unicode-Normalize-1.25.tar.gz) = 607ada7ef05bc1644f7f08d8899fc60988ea4f7e
4RMD160 (Unicode-Normalize-1.25.tar.gz) = 0a05087451efde87f497c97f33e65891336b4b91 4RMD160 (Unicode-Normalize-1.25.tar.gz) = 0a05087451efde87f497c97f33e65891336b4b91
5SHA512 (Unicode-Normalize-1.25.tar.gz) = f28c19e0293cf75cc0aab669ae0a0543f6a1a39e1e50ff32ab37abd8e85efc73e8b9075e581212b6da576ecbf8c0e9ddb7b9b352674aa3a04c77f9aaf4717866 5SHA512 (Unicode-Normalize-1.25.tar.gz) = f28c19e0293cf75cc0aab669ae0a0543f6a1a39e1e50ff32ab37abd8e85efc73e8b9075e581212b6da576ecbf8c0e9ddb7b9b352674aa3a04c77f9aaf4717866
6Size (Unicode-Normalize-1.25.tar.gz) = 40530 bytes 6Size (Unicode-Normalize-1.25.tar.gz) = 40530 bytes
 7SHA1 (patch-Makefile.PL) = 8124fac4b9786ae579d8013a560ae067648965a7

File Added: pkgsrc/converters/p5-Unicode-Normalize/patches/Attic/patch-Makefile.PL
$NetBSD: patch-Makefile.PL,v 1.1 2017/06/07 14:33:24 ryoon Exp $

* Fix build with Perl 5.26.0

--- Makefile.PL.orig	2015-12-16 02:02:23.000000000 +0000
+++ Makefile.PL
@@ -8,7 +8,7 @@ my $mm_ver = ExtUtils::MakeMaker->VERSIO
 if (-f "Normalize.xs") {
     print STDERR "Making header files for XS...\n";
 
-    do 'mkheader' or die $@ || "mkheader: $!";
+    do './mkheader' or die $@ || "mkheader: $!";
 
     $clean = { FILES => 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h' };
 }