Patch provided by Martin Wilke via PR 34346.
Changes:
2006-08-18 Tim Jenness <tjenness@cpan.org>
--- RELEASE 0.17 CPAN ----
* Temp.pm: Also inherit from IO::Seekable so that seek and tell
methods can work on filehandles (thanks to Rick Myers and Toby Corkindale).
* t/seekable.t: Add test script from Rick Myers.
* Temp.pm: Add note about forking and resetting the random number generator
to prevent multiple clashes of temp file names. (pointed out by Brent Cowgill)
* Temp.pm: pre-emptively load Carp::Heavy. If we don't when we run out of file
handles and attempt to call croak() we get an error message telling
us that Carp::Heavy won't load rather than an error telling us we
have run out of file handles. (pointed out by bjoern_at_hoehrmann.de RT #14151)
* Temp.pm: Remove eg. from comments and replace with e.g. In pod
replace "e.g." with "for example". (David Landgren)
* Temp.pm: Correct synopsis concerning the arguments to the
File::Temp constructor (Peter Valdemar Moerch).
* Temp.pm: Update documentation to note that croak() will be
called by tempfile() and File::Temp->new if a problem occurs (thanks to Steve
Hay for pointing this out).
developer is officially maintaining the package.
The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list). Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
--- RELEASE V0.16 ---
* Temp.pm: Remove spurious debug statement
--- RELEASE V0.15 ---
* Temp.pm (unlink_on_destroy): Add post-object creation method to
control whether the temp file will be unlinked when the object
goes out of scope.
* Temp.pm: Increase maximum number of tries before aborting.
* Temp.pm: Add $KEEP_ALL to allow the temporary files to be
retained whilst debugging (suggestion from Ed Avis [and others]).
* Temp.pm: Temp files should have been opened O_NOFOLLOW rather
than O_FOLLOW! (thanks to Marc Tardif)
* Temp.pm: Add cleanup() function so that temp files that would be
removed by an END block can be removed by a daemon. (RT wishlist
item #6928 by Robert Rothenberg)
* Temp.pm: Force chmod on file before unlinking it. This can be a
problem on windows (see RT bug #6935). tempdir() has been fixed by
Slaven's earlier patch to change the rmtree arguments.
* Temp.pm (top_system_uid): Add interix patch from Todd Vierling
* Temp.pm (_gettemp): Pod patch from Steven Lembark clarifying the
error message associated with two few XXXXs
* Temp.pm: Add note on forking and make sure that END blocks only
remove temporary files created by the current process ID (prompted
by Daniel Macks in RT bug #11067)
* Temp.pm (cmpstat): Roman Vasicek reported problems with the _
filehandle. Play it safe and remove that handle. (see RT bug #8822)
* t/tempfile.t: Add test for write proteceted temp file (thanks to
Slaven Rezic)
* Temp.pm (_can_do_level): Change argument to rmtree to make it
attempt to remove write-protected files on cleanup (thanks to
Slaven Rezic)
* Temp.pm: Add note on binmode usage
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").
binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.
addresses PR pkg/28619 from H. Todd Fujinaka.
Add HOMEPAGE pointing into search.cpan.org.
Change log:
2003-08-16 Tim Jenness <tjenness@cpan.org>
--- RELEASE V0.14 ---
* t/object.t: Add test of OO interface and switch to Test::More
* Temp.pm: Add object-oriented interface.
* Temp.pm: mpeix fixes from Ken Hirsch <hirschk@labcorp.com>
2003-08-15 Tim Jenness <tjenness@cpan.org>
--- RELEASE V0.13 ---
* Temp.pm: Integrate doc fixes from bleadperl (Slaven Rezic and
Jeffrey Friedl)
* Makefile.PL: Add INSTALLDIRS switch on perl version so that the
module installs into the correct place for perl 5.6.1 and newer.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.