summaryrefslogtreecommitdiff
path: root/security/p5-Crypt-IDEA
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-06-17 11:25:27 +0000
committerwiz <wiz@pkgsrc.org>2013-06-17 11:25:27 +0000
commit94b2ff9a1f6f58d4f096ff7ba17ab955313d2b71 (patch)
tree59e467c99146606b035dba24c53e873545063aec /security/p5-Crypt-IDEA
parenta2bad5478c5ce821c9065d655edde0935ebc1d3f (diff)
downloadpkgsrc-94b2ff9a1f6f58d4f096ff7ba17ab955313d2b71.tar.gz
Fix build with perl-5.18.
Diffstat (limited to 'security/p5-Crypt-IDEA')
-rw-r--r--security/p5-Crypt-IDEA/distinfo3
-rw-r--r--security/p5-Crypt-IDEA/patches/patch-IDEA.xs17
2 files changed, 19 insertions, 1 deletions
diff --git a/security/p5-Crypt-IDEA/distinfo b/security/p5-Crypt-IDEA/distinfo
index 8bb0b7ed43f..d723339fbf9 100644
--- a/security/p5-Crypt-IDEA/distinfo
+++ b/security/p5-Crypt-IDEA/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2007/02/22 12:07:34 wiz Exp $
+$NetBSD: distinfo,v 1.7 2013/06/17 11:25:27 wiz Exp $
SHA1 (Crypt-IDEA-1.08.tar.gz) = c154cb0f9995844573d913c3fc87ae7c0d29b183
RMD160 (Crypt-IDEA-1.08.tar.gz) = 5e2e352d8d03997d9ef4ebd98d47f0ab6d044224
Size (Crypt-IDEA-1.08.tar.gz) = 7045 bytes
+SHA1 (patch-IDEA.xs) = 59dc138b5b1b812e9516d1eee3467a6adc74cc8e
diff --git a/security/p5-Crypt-IDEA/patches/patch-IDEA.xs b/security/p5-Crypt-IDEA/patches/patch-IDEA.xs
new file mode 100644
index 00000000000..6d751869d4b
--- /dev/null
+++ b/security/p5-Crypt-IDEA/patches/patch-IDEA.xs
@@ -0,0 +1,17 @@
+$NetBSD: patch-IDEA.xs,v 1.1 2013/06/17 11:25:27 wiz Exp $
+
+Fix build with perl-5.18, from
+https://rt.cpan.org/Public/Bug/Display.html?id=82010
+
+--- IDEA.xs.orig 2003-01-19 02:48:04.000000000 +0000
++++ IDEA.xs
+@@ -71,8 +71,7 @@ idea_crypt(input, output, ks)
+ output = sv_newmortal();
+ output_len = 8;
+
+- if (!SvUPGRADE(output, SVt_PV))
+- croak("cannot use output argument as lvalue");
++ SvUPGRADE(output, SVt_PV);
+
+ idea_crypt((u_int16_t *)input, (u_int16_t *)SvGROW(output, output_len), (u_int16_t *)ks);
+