On Wed, Dec 18, 2019 at 08:46:16AM +0000, wen heping wrote: > Hi, ports@: > > Here is a patch for devel/p5-Carp-Always : > i) Update to 0.16 > ii) Remove the unneeded patch > iii) Add p5-Test-Base as TEST_DEPENDS > iv) Update DESCR > v) Add AUTHOR_TESTING to MAKE_ENV > It build well and pass all tests on amd64-current system. > > One port depends on it: textproc/p5-LaTeX-Encode, it build > well and pass all tests with this patch. > > Comments? OK? > wen
OK afresh1@ I am planning to go back through thing's I've OK'd recently and committing them if there weren't any complaints. > Index: Makefile > =================================================================== > RCS file: /cvs/ports/devel/p5-Carp-Always/Makefile,v > retrieving revision 1.7 > diff -u -p -r1.7 Makefile > --- Makefile 12 Jul 2019 20:44:45 -0000 1.7 > +++ Makefile 18 Dec 2019 08:40:37 -0000 > @@ -2,9 +2,8 @@ > > COMMENT = turn every die/warn into carp verbose messages > > -DISTNAME = Carp-Always-0.13 > +DISTNAME = Carp-Always-0.16 > CATEGORIES = devel > -REVISION = 0 > > MODULES = cpan > PKG_ARCH = * > @@ -12,9 +11,8 @@ PKG_ARCH = * > # perl > PERMIT_PACKAGE = Yes > > -MAKE_ENV = TEST_POD=Yes > +TEST_DEPENDS = devel/p5-Test-Base > > -pre-configure: > - rm ${WRKSRC}/lib/Carp/Always.pm.orig > +MAKE_ENV = TEST_POD=Yes AUTHOR_TESTING=Yes > > .include <bsd.port.mk> > Index: distinfo > =================================================================== > RCS file: /cvs/ports/devel/p5-Carp-Always/distinfo,v > retrieving revision 1.2 > diff -u -p -r1.2 distinfo > --- distinfo 25 Nov 2014 07:23:48 -0000 1.2 > +++ distinfo 18 Dec 2019 08:40:37 -0000 > @@ -1,2 +1,2 @@ > -SHA256 (Carp-Always-0.13.tar.gz) = > IcafjYWtgRmNAyo3XKi4fZ9/EBFFWYV1Y275k6eLWUQ= > -SIZE (Carp-Always-0.13.tar.gz) = 5462 > +SHA256 (Carp-Always-0.16.tar.gz) = > mKoRSSFxwBb7CCdYGrH6XtAbHpnGNXSJ3fOoJzFYZvE= > +SIZE (Carp-Always-0.16.tar.gz) = 13386 > Index: patches/patch-lib_Carp_Always_pm > =================================================================== > RCS file: patches/patch-lib_Carp_Always_pm > diff -N patches/patch-lib_Carp_Always_pm > --- patches/patch-lib_Carp_Always_pm 8 Mar 2013 12:12:03 -0000 1.1.1.1 > +++ /dev/null 1 Jan 1970 00:00:00 -0000 > @@ -1,24 +0,0 @@ > -$OpenBSD: patch-lib_Carp_Always_pm,v 1.1.1.1 2013/03/08 12:12:03 espie Exp $ > ---- lib/Carp/Always.pm.orig Mon Feb 18 11:24:02 2013 > -+++ lib/Carp/Always.pm Mon Feb 18 11:25:13 2013 > -@@ -9,6 +9,8 @@ our $VERSION = '0.12'; > - > - use Carp qw(verbose); # makes carp() cluck and croak() confess > - > -+my %OLD_SIG; > -+ > - sub _warn { > - if ($_[-1] =~ /\n$/s) { > - my $arg = pop @_; > -@@ -25,10 +27,9 @@ sub _die { > - $arg =~ s/(.*)( at .*? line .*?\n$)/$1/s; > - push @_, $arg; > - } > -+ $SIG{__DIE__} = $OLD_SIG{__DIE__}; > - die &Carp::longmess; > - } > -- > --my %OLD_SIG; > - > - BEGIN { > - @OLD_SIG{qw(__DIE__ __WARN__)} = @SIG{qw(__DIE__ __WARN__)}; > Index: pkg/DESCR > =================================================================== > RCS file: /cvs/ports/devel/p5-Carp-Always/pkg/DESCR,v > retrieving revision 1.2 > diff -u -p -r1.2 DESCR > --- pkg/DESCR 12 Jun 2017 10:57:57 -0000 1.2 > +++ pkg/DESCR 18 Dec 2019 08:40:37 -0000 > @@ -1,4 +1,3 @@ > -make every warn() and die() complains loudly in the calling package and > -elsewhere. More often used on the command line: > - > - perl -MCarp::Always script.pl > +This module is meant as a debugging aid. It can be used to make > +a script complain loudly with stack backtraces when warn()ing or > +die()ing. -- andrew - http://afresh1.com A printer consists of three main parts: the case, the jammed paper tray and the blinking red light.