summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/p5-Crypt-Blowfish/distinfo3
-rw-r--r--security/p5-Crypt-Blowfish/patches/patch-Blowfish.xs17
2 files changed, 19 insertions, 1 deletions
diff --git a/security/p5-Crypt-Blowfish/distinfo b/security/p5-Crypt-Blowfish/distinfo
index 037d52305d8..6adf1ddfbe5 100644
--- a/security/p5-Crypt-Blowfish/distinfo
+++ b/security/p5-Crypt-Blowfish/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2010/03/08 15:15:57 sno Exp $
+$NetBSD: distinfo,v 1.7 2013/06/01 11:49:07 obache Exp $
SHA1 (Crypt-Blowfish-2.12.tar.gz) = d4712fc05559f8b6aef9d901e115bba2cd368a5f
RMD160 (Crypt-Blowfish-2.12.tar.gz) = 6ebc9fd880b6f18c9f9ea5e20e4da10a04a53a6e
Size (Crypt-Blowfish-2.12.tar.gz) = 17895 bytes
+SHA1 (patch-Blowfish.xs) = 65b930bdbf8e9cb9c43746f1ae8742024145a2be
diff --git a/security/p5-Crypt-Blowfish/patches/patch-Blowfish.xs b/security/p5-Crypt-Blowfish/patches/patch-Blowfish.xs
new file mode 100644
index 00000000000..eb6904422e7
--- /dev/null
+++ b/security/p5-Crypt-Blowfish/patches/patch-Blowfish.xs
@@ -0,0 +1,17 @@
+$NetBSD: patch-Blowfish.xs,v 1.1 2013/06/01 11:49:07 obache Exp $
+
+* SvUPGRADE usage change for perl>=5.18
+ https://rt.cpan.org/Public/Bug/Display.html?id=83924
+
+--- Blowfish.xs.orig 2000-11-30 06:25:21.000000000 +0000
++++ Blowfish.xs
+@@ -63,8 +63,7 @@ blowfish_crypt(input, output, ks, dir)
+ output = sv_newmortal();
+ output_len = 8;
+
+- if (!SvUPGRADE(output, SVt_PV))
+- croak("cannot use output argument as lvalue");
++ (void) SvUPGRADE(output, SVt_PV);
+
+ /* blowfish_crypt_8bytes(input, SvGROW(output, 8), ks, dir); */
+ /* HP-UX (HP cc) fix below, thanks Addi! */