The patch in the referenced ticket convinces this to build with perl
5.22.2.

Unsure if it actually works, but `make test` didn't fail as it claimed
to in the ticket.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/p5-Devel-FindRef/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile    20 Mar 2016 19:56:20 -0000      1.5
+++ Makefile    24 Apr 2016 19:06:06 -0000
@@ -6,7 +6,7 @@ MODULES =       cpan
 DISTNAME =     Devel-FindRef-1.422
 CATEGORIES =   devel
 MAINTAINER =   Marc Espie <es...@openbsd.org>
-REVISION =     1
+REVISION =     2
 
 RUN_DEPENDS =  devel/p5-common-sense
 
Index: patches/patch-FindRef_xs
===================================================================
RCS file: patches/patch-FindRef_xs
diff -N patches/patch-FindRef_xs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-FindRef_xs    24 Apr 2016 19:06:06 -0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+
+Patch from SREZIC [...] cpan.org
+https://rt.cpan.org/Public/Bug/Display.html?id=101077
+
+--- FindRef.xs.orig    Sun Aug 30 07:33:01 2009
++++ FindRef.xs Sun Apr 24 11:30:12 2016
+@@ -6,13 +6,13 @@
+   (PERL_REVISION > (a)                                          \
+    || (PERL_REVISION == (a)                                     \
+        && (PERL_VERSION > (b)                                   \
+-           || (PERL_VERSION == (b) && PERLSUBVERSION >= (c)))))
++           || (PERL_VERSION == (b) && PERL_SUBVERSION >= (c)))))
+ 
+ #if !PERL_VERSION_ATLEAST (5,8,9)
+ # define SVt_LAST 16
+ #endif
+ 
+-#if !PERL_VERSION_ATLEAST (5,10,0)
++#if !PERL_VERSION_ATLEAST (5,10,0) || PERL_VERSION_ATLEAST (5,21,7)
+ # define SvPAD_OUR(dummy) 0
+ #endif
+ 

Reply via email to