devel/p5-Lexical-SealRequireHints 0.012 MidnightBSD
Perl module to prevent leakage of lexical hints
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- artistic, gpl+
- Categories
- devel, perl5
Description
Perl module to prevent leakage of lexical hints
Lexical::SealRequireHints works around two historical bugs in Perl's handling of the %^H (lexical hints) variable. One bug causes lexical state in one file to leak into another that is required/used from it. This bug, [perl #68590], was present from Perl 5.6 up to Perl 5.10, fixed in Perl 5.11.0. The second bug causes lexical state (normally a blank %^H once the first bug is fixed) to leak outwards from utf8.pm, if it is automatically loaded during Unicode regular expression matching, into whatever source is compiling at the time of the regexp match. This bug, [perl #73174], was present from Perl 5.8.7 up to Perl 5.11.5, fixed in Perl 5.12.0.
Both of these bugs seriously damage the usability of any module relying on %^H for lexical scoping, on the affected Perl versions. It is in practice essential to work around these bugs when using such modules. On versions of Perl that require such a workaround, this module globally changes the behaviour of require, including use and the implicit require performed in Unicode regular expression matching, so that it no longer exhibits these bugs.
In the other systems
The newest version among them is 0.012, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-Lexical-SealRequireHints | 0.012 newest | no data | - | [email protected] | - |
| FreeBSD | devel/p5-Lexical-SealRequireHints | 0.012 newest | none known | - | [email protected] | - |
| NetBSD | devel/p5-Lexical-SealRequireHints | 0.012nb3 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-Lexical-SealRequireHints | 0.012 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Lexical-SealRequireHints | 0.012 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Lexical-SealRequireHints | 0.012 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install p5-Lexical-SealRequireHints
From mports:
cd /usr/mports/devel/p5-Lexical-SealRequireHints && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Lexical-SealRequireHints>0:devel/p5-Lexical-SealRequireHints
Dependencies
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
Manual pages 1
- Lexical::SealRequireHints(3)
pkg-plist 12
- %%SITE_PERL%%/auto/Lexical/SealRequireHints/SealRequireHints.so
- %%SITE_PERL%%/Lexical/SealRequireHints.pm
- %%SITE_PERL%%/man/man3/Lexical::SealRequireHints.3.gz
- @dir %%SITE_PERL%%/auto/Lexical/SealRequireHints
- @dir %%SITE_PERL%%/auto/Lexical
- @dir %%SITE_PERL%%/auto
- @dir %%SITE_PERL%%/Lexical
- @dir %%SITE_PERL%%/man/man3
- @dir %%SITE_PERL%%/man
- @dir
- @dir lib/perl5/site_perl
- @dir lib/perl5
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Lexical-SealRequireHints-0.012.tar.gz | 28463 | c32bdc38e06f8d6c90765bbbe3168c358247da7dae85b80ba84a2da1763757dd |
Master sites 1
- CPAN