/p5-autodie, Replace functions with ones that succeed or die with lexical scope
2.29nb1, Package name:
p5-autodie-2.29nb1, Maintainer: pkgsrc-users
The autodie pragma provides a convenient way to replace functions that normally
return false on failure with equivalents that throw an exception on failure.
The autodie pragma has lexical scope, meaning that functions and subroutines
altered with autodie will only change their behaviour until the end of the
enclosing block, file, or eval.
If system is specified as an argument to autodie, then it uses
IPC::System::Simple to do the heavy lifting. See the description of that
module for more information.
Required to run:
Master sites: (Expand) SHA1:
Version history: (Expand)
- (2016-06-09) Updated to version: p5-autodie-2.29nb1
- (2015-08-01) Updated to version: p5-autodie-2.29
- (2015-06-12) Updated to version: p5-autodie-2.26nb1
- (2015-02-18) Updated to version: p5-autodie-2.26
- (2014-05-30) Updated to version: p5-autodie-2.25nb1
- (2014-05-29) Updated to version: p5-autodie-2.25
CVS history: (Expand)
| 2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | |
Bump PKGREVISION for perl-5.24.
| 2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995) |
Add SHA512 digests for distfiles for devel category
Issues found with existing distfiles:
No changes made to these distinfo files.
Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden). All existing
SHA1 digests retained for now as an audit trail.
| 2015-08-01 03:36:57 by Wen Heping | Files touched by this commit (2) | |
Update to 0.29
2.29 2015-07-09 17:16:38+10:00 Australia/Melbourne
* BUGFIX: Apply patch from Karen Etheridge to install
autodie and Fatal into 'perl' rather than 'site'
for older perls (RT#85801, GH#68)
2.28 2015-06-22 16:20:35+10:00 Australia/Melbourne
* TEST BUG: Properly skip the Import::Into test if the
version of Import::Into is insufficent. Thanks to
Olivier Mengu茅. (GH#67)
* DOC: Document change in 2.27 that was omitted from the
Changes-file by mistake.
2.27 2015-06-10 19:19:49+10:00 Australia/Melbourne
* DEPRECATION: Deprecate the use of "Fatal qw(:lexcial)". It
is an implementation detail of autodie and is about to
* BUG: Use "octal" numbers in error messages for CORE
subroutines taking a "mode" parameter (e.g. mkdir and chmod).
Thanks to "Bugdebugger". (GH#65 and GH#66)
* SPEED: Allow wrappers for CORE::exec and CORE::system to be
reused as they are not dependent on the calling package.
* TEST: Avoid hard-coded directory separator in t/system.t.
Thanks to A. Sinan Unur for reporting it and providing a
* TEST: Add missing "require autodie" in import-into test and
ensure Import::Into remains an optional test dependency.
* TEST / INTERNAL / TRAVIS: Set "sudo: false" to gain access
to the Travis container based infrastructure.
* TEST: Bump version of Import::Into to 1.002004 as older
versions are insufficient for our test. Thanks to
Olivier Mengu茅 for reporting it. (RT#101377)
| 2015-06-12 12:52:19 by Thomas Klausner | Files touched by this commit (3152) |
Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
| 2015-02-18 13:49:40 by Makoto Fujiwara | Files touched by this commit (2) |
2.26 2014-12-26 16:27:23+00:00 UTC
* BUGFIX / INCOMPAT: Remove "fileno" and "umask" \
from the list of
CORE subs protected by autodie and Fatal.
When they return undef, it is not a failure.
* BUGFIX: Fixed an error that could occur during global destruction of
the form "(in cleanup) Can't use an undefined value as an ARRAY
reference at .../autodie/Scope/GuardStack.pm line 48 during global
destruction" (Thanks to Dave Rolsky).
* BUGFIX: The open-pragma is now properly ignored when open is
given an explicit layer. This brings autodie protected
open in sync with open. Thanks to Gregory Oschwald and
Graham Knop for the report + test case and the patch.
(GH#52 + GH#53)
* BUGFIX: Hide the "SCALAR" (buffer) argument in the string
representation of autodie::exception for the read,
sysread and syswrite CORE subs. This is to avoid
a dump of binary data to the screen/log when a
(sys)read or syswrite fails.
* FEATURE: Let autodie::exception work in equality tests and
string comparison via "overload fallback".
(Thanks to Michael G. Schwern)
* DOC: Mention that "kill" is in the ":ipc" \
category. It has
been there since autodie v2.14.
(Thanks to Felipe Gasper for reporting it, RT#97320).
* INTERNAL: Use "parent" instead of "base" for \
avoid some @ISA relationships that were redundant.
Either truly redundant ones or by importing "import"
from Exporter v5.57.
- This change implies that perl 5.8 users must now
also fetch "parent" from cpan.
(Thanks to Olivier Mengue (Mengué), GH#59)
* DEVEL / TEST: The autodie module now accepts an undefined Fatal
version, assuming it to be development version.
Test cases that require versions are now either
skipped or considered "release" test.
* TEST / INTERNAL: Enabled travis-ci for Perl 5.20
* TEST: Close temp file before re-opening in t/truncate.t.
(Thanks to Craig A. Berry, RT#96609)
* TEST: Pass O_TRUNC with O_CREAT to sysopen in t/utf8_open.t.
(Thanks to Craig A. Berry, RT#87237)
* TEST: Clean up temp file in t/truncate.t.
(Thanks to Dave Mitchell, RT#100688)
| 2014-10-09 16:07:17 by Thomas Klausner | Files touched by this commit (1163) |
Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
| 2014-05-30 01:38:20 by Thomas Klausner | Files touched by this commit (3049) |
Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
| 2014-05-29 03:37:28 by Wen Heping | Files touched by this commit (2) | |
Update to 2.25
2.25 2014-04-03 09:43:15EST+1100 Australia/Melbourne
* DOCS: Spelling fixes in autodie::ScopeUtil
(Courtesy Salvatore Bonaccorso)
2.24 2014-03-30 19:30:10EST+1100 Australia/Melbourne
* FEATURE: Provide a stack backtrace when `Carp::Always` is enabled.
Note that sometimes this is not as pretty as it could
be, patches welcome.
(Thanks to Niels Thykier, GH #35)
* BUGFIX: Fix situations where `no autodie` doesn't respect lexical
scope. (Thanks to Niels Thykier, GH #41, RT #72053,
* INTERNAL: Remove now unused variables in code (Niels Thykier).
* DOCS: Make it extra-clear autodie doesn't check `print`.
(Dave Rolsky, GH #39)
* TEST: Removed obsolete boilerplate.t
* TEST / INTERNAL: Enabled travis-ci for Perl 5.8
* TEST: Stopped some Pod::Coverage tests failing under Perl 5.8
* BUILD: Better support for building in a read-only directory
(courtesy Andrew Fresh, GH #46)
2.23 2014-01-27 13:50:55EST+1100 Australia/Melbourne
* TEST / BUGFIX: Improved testing support on Android
and Blackberry devices. (GH #44, thanks to
* TEST / INTERNAL / TRAVIS: Various non-code
tweaks to make travis-ci more happy with testing
* BUGFIX: autodie no longer weakens strict by allowing
undeclared variables with the same name as built-ins.
(RT #74246, thanks to Neils Thykier and Father
* BUGFIX: `use autodie qw( foo ! foo);` now correctly
insists that we have hints for foo. (Thanks Niels Thykier)
* INTERNAL: Improved benchmarking code, thanks to
2.22 2013-09-21 11:37:14 Asia/Tokyo
* TEST / INTERNAL: Restore timestamps on touched testing
files to avoid git flagging files having changed in
git. (RT #88444, courtesy shay@cpan)
2.21 2013-09-12 13:17:23 Australia/Melbourne
Many more improvements from Niels Thykier, great hero of the
free people. Plus a compatibility patch from Zefram, keeper
* SPEED / INTERNAL : Through the magic of globally reuseable
core leak trampolines, autodie is even faster when used across
* SPEED / INTERNAL : Caches used for keeping track of
fatalised subroutines are faster and leaner.
* SPEED / INTERNAL : Core subroutine wrappers are now lazily
* SPEED / INTERNAL : Using autodie while autodie is already in
effect is now faster and more efficient.
* INTERNAL : $" and $! are no longer arbitrarily messed with
for no reason via autodie. (They're still messed with when
* SPEED / INTERNAL : The ':all' tag hierachy is expanded
immediately, in an efficient fashion.
* INTERNAL : Numerous minor clean-ups. Dead variables removed.
* SPEED / INTERNAL : import() and _make_fatal() cache more
aggressively, reducing CPU overhead.
* TEST: Compatibility with Carp 1.32 (thanks to Zefram).