summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2010-04-09 08:15:06 +0000
committersno <sno@pkgsrc.org>2010-04-09 08:15:06 +0000
commit026f39b952968a10642538ac381ea347018d594f (patch)
tree95fc4daba751b0bbc983536ed712fa6dc9571960
parent145a3e75b400128f60fbc4bcddbb8f486468cee8 (diff)
downloadpkgsrc-026f39b952968a10642538ac381ea347018d594f.tar.gz
Importing p5-Lexical-SealRequireHints version 0.002
There is a bug in Perl's handling of the %^H (lexical hints) variable that causes lexical state in one file to leak into another that is required/used from it. This bug will probably be fixed in Perl 5.10.2, and is definitely fixed in Perl 5.11.0, but in any earlier version it is necessary to work around it. On versions of Perl that require a fix, this module globally changes the behaviour of require and use so that they no longer exhibit the bug. This is the most convenient kind of workaround, and is meant to be invoked by modules that make use of lexical state. The workaround supplied by this module takes effect the first time its import method is called. Typically this will be done by means of a use statement. This should be done before putting anything into %^H that would have a problem with leakage; usually it suffices to do this when loading the module that supplies the mechanism to set up the vulnerable lexical state. Invoking this module multiple times, from multiple lexical-related modules, is not a problem: the workaround is only applied once, and applies to everything.
-rw-r--r--devel/p5-Lexical-SealRequireHints/DESCR17
-rw-r--r--devel/p5-Lexical-SealRequireHints/Makefile21
-rw-r--r--devel/p5-Lexical-SealRequireHints/distinfo5
3 files changed, 43 insertions, 0 deletions
diff --git a/devel/p5-Lexical-SealRequireHints/DESCR b/devel/p5-Lexical-SealRequireHints/DESCR
new file mode 100644
index 00000000000..a7f0ee89fb2
--- /dev/null
+++ b/devel/p5-Lexical-SealRequireHints/DESCR
@@ -0,0 +1,17 @@
+There is a bug in Perl's handling of the %^H (lexical hints) variable that
+causes lexical state in one file to leak into another that is required/used
+from it. This bug will probably be fixed in Perl 5.10.2, and is definitely
+fixed in Perl 5.11.0, but in any earlier version it is necessary to work
+around it. On versions of Perl that require a fix, this module globally
+changes the behaviour of require and use so that they no longer exhibit the
+bug. This is the most convenient kind of workaround, and is meant to be
+invoked by modules that make use of lexical state.
+
+The workaround supplied by this module takes effect the first time its
+import method is called. Typically this will be done by means of a use
+statement. This should be done before putting anything into %^H that would
+have a problem with leakage; usually it suffices to do this when loading
+the module that supplies the mechanism to set up the vulnerable lexical
+state. Invoking this module multiple times, from multiple lexical-related
+modules, is not a problem: the workaround is only applied once, and applies
+to everything.
diff --git a/devel/p5-Lexical-SealRequireHints/Makefile b/devel/p5-Lexical-SealRequireHints/Makefile
new file mode 100644
index 00000000000..7c737534782
--- /dev/null
+++ b/devel/p5-Lexical-SealRequireHints/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/04/09 08:15:06 sno Exp $
+#
+
+DISTNAME= Lexical-SealRequireHints-0.002
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Lexical/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Lexical-SealRequireHints/
+COMMENT= Perl5 module to prevent leakage of lexical hints
+LICENSE= ${PERL5_LICENSE}
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c
+PERL5_PACKLIST= auto/Lexical/SealRequireHints/.packlist
+PERL5_MODULE_TYPE= Module::Build
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Lexical-SealRequireHints/distinfo b/devel/p5-Lexical-SealRequireHints/distinfo
new file mode 100644
index 00000000000..e811f06968a
--- /dev/null
+++ b/devel/p5-Lexical-SealRequireHints/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/04/09 08:15:06 sno Exp $
+
+SHA1 (Lexical-SealRequireHints-0.002.tar.gz) = 824b24e8f02d70a26704779baf378077eeac90c4
+RMD160 (Lexical-SealRequireHints-0.002.tar.gz) = 9f609dff73740d087649b977e9e3ec2eadffd7ab
+Size (Lexical-SealRequireHints-0.002.tar.gz) = 7424 bytes