# cpan-embed-persistent/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] # 1. The package Embed::Persistent is a special case. As of June # 2006, there's a CPAN tarball named "ExtUtils-Embed-1.14.tar.gz" that # defines a package named Embed::Persistent. However, the tarball is # extremely old (it's dated 1997), and it produces errors during the # standard "make test" stage. # Therefore, it's not clear where the official version of Embed::Per- # sistent is located. #--------------------------------------------------------------------- # 2. Presently, this distro installs two related Perl modules: # Persistent.pm - Defines a package named Embed::Persistent that's # roughly equivalent to the 1997 version. Note: Some "debug" code has # been dropped. # AltPersistent.pm - Defines a package named Embed::AltPersistent # that's equivalent to Embed::Persistent, with one key difference: It # overrides the standard "exit" call when compiling user-specified # source files. "exit" calls are replaced with "die" calls. This ad- # dresses a problem with the original package; i.e., code that used # "exit" couldn't be cached. # Note: Embed::AltPersistent isn't guaranteed to work with all Perl # source code. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.00 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.00 hours (or 000.02 minutes) - ThinkPad E540 i7 4x2 16GB RAM #--------------------------------------------------------------------- [settings] configure = none cpancheck = n/a proddir = none revision = 060604 shareddir = yes tmpsize = 1M unpack = none #--------------------------------------------------------------------- [provides-cpan] Embed::Persistent Embed::AltPersistent #--------------------------------------------------------------------- [depends] cpan-set02 grep perl:strict #--------------------------------------------------------------------- [build] echo Checkpoint 1 TMPFILE=cpan-temp-$$.delete perl -V > $TMPFILE echo Checkpoint 2 foo=`grep "/site_perl/5\.[0-9][0-9]*\.[0-9][0-9]*"\$ $TMPFILE` echo Checkpoint 3 if test -z "$foo"; then echo Internal error; exit 1; fi \ rm $TMPFILE LIBDIR=$foo/Embed mkdir -p $LIBDIR cd $LIBDIR \ cp -p $PKGDIR_SPECIAL/PersistentBase.pm Persistent.pm \ sed -e "s|Embed::Persistent|Embed::AltPersistent|" \ -e "s|OverrideExit__ *= *0|OverrideExit__ = 1|" \ < Persistent.pm > AltPersistent.pm \ echo Checkpoint 4 perl -e "use Embed::Persistent;" perl -e "use Embed::AltPersistent;" #--------------------------------------------------------------------- [urls] cpan_query = n/a url_tarball = n/a # See notes near start of this file