From 026f39b952968a10642538ac381ea347018d594f Mon Sep 17 00:00:00 2001 From: sno Date: Fri, 9 Apr 2010 08:15:06 +0000 Subject: 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. --- devel/p5-Lexical-SealRequireHints/DESCR | 17 +++++++++++++++++ devel/p5-Lexical-SealRequireHints/Makefile | 21 +++++++++++++++++++++ devel/p5-Lexical-SealRequireHints/distinfo | 5 +++++ 3 files changed, 43 insertions(+) create mode 100644 devel/p5-Lexical-SealRequireHints/DESCR create mode 100644 devel/p5-Lexical-SealRequireHints/Makefile create mode 100644 devel/p5-Lexical-SealRequireHints/distinfo (limited to 'devel/p5-Lexical-SealRequireHints') 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 -- cgit v1.2.3