OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Perl 5.10 fallout

From: Mike Erdely (mikeerdelynet.com)
Date: Wed Oct 01 2008 - 15:52:38 CDT


On Wed, Oct 01, 2008 at 09:09:34PM +0200, Christian Weisgerber wrote:
> textproc/p5-SWISH-API

Attached diff ok? (From upstream)
Regress tests pass on macppc.

-ME

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/p5-SWISH-API/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 11 Sep 2007 20:55:21 -0000 1.1.1.1
+++ Makefile 1 Oct 2008 20:48:06 -0000
-4,7 +4,7 COMMENT= Perl interface to the swish-e C
 SHARED_ONLY= Yes
 
 DISTNAME= swish-e-2.4.5
-PKGNAME= p5-SWISH-API-0.04
+PKGNAME= p5-SWISH-API-0.04p0
 CATEGORIES= textproc
 MODULES= cpan
 
Index: patches/patch-perl_Makefile_PL
===================================================================
RCS file: patches/patch-perl_Makefile_PL
diff -N patches/patch-perl_Makefile_PL
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-perl_Makefile_PL 1 Oct 2008 20:49:50 -0000
-0,0 +1,19
+$OpenBSD$
+
+Fixes build after perl 5.10 update.
+
+--- perl/Makefile.PL.orig Wed Oct 1 16:48:37 2008
++++ perl/Makefile.PL Wed Oct 1 16:49:18 2008
+ -80,10 +80,8 Can be either environment variables or passed on comma
+
+ EOF
+
+-$SIG{__DIE__} = sub {
+- print STDERR "\n ** ERROR: ", _;
+- print STDERR " Run perl Makefile.PL SWISHHELP for options\n\n";
+- exit 1;
++END {
++ print STDERR "Run perl Makefile.PL SWISHHELP for options\n\n" if $?;
+ };
+
+ #----------------------------------------------------------------------------------