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: Simon Bertrang (januserrornet.de)
Date: Wed Oct 01 2008 - 17:31:30 CDT


On Wed, Oct 01, 2008 at 09:09:34PM +0200, Christian Weisgerber wrote:
> Here's a list of ports that fail to build after the Perl 5.10 update:
>
...
> www/p5-CGI-SpeedyCGI
...

Only a few bits like found on the web required to make it work again.

Regards,
Simon

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/p5-CGI-SpeedyCGI/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile 8 Nov 2007 06:43:47 -0000 1.7
+++ Makefile 1 Oct 2008 22:25:44 -0000
-7,7 +7,7 COMMENT= speed up perl scripts by runnin
 MODULES= cpan
 VERSION= 2.22
 DISTNAME= CGI-SpeedyCGI-${VERSION}
-PKGNAME= p5-CGI-SpeedyCGI-${VERSION}p0
+PKGNAME= p5-CGI-SpeedyCGI-${VERSION}p1
 CATEGORIES= www
 
 HOMEPAGE= http://daemoninc.com/SpeedyCGI/
Index: patches/patch-Makefile_PL
===================================================================
RCS file: /cvs/ports/www/p5-CGI-SpeedyCGI/patches/patch-Makefile_PL,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile_PL
--- patches/patch-Makefile_PL 31 Oct 2003 10:23:47 -0000 1.2
+++ patches/patch-Makefile_PL 1 Oct 2008 22:25:44 -0000
-1,7 +1,7
 $OpenBSD: patch-Makefile_PL,v 1.2 2003/10/31 10:23:47 kevlo Exp $
---- Makefile.PL.orig 2003-10-05 06:40:46.000000000 +0000
-+++ Makefile.PL 2003-10-31 11:14:26.000000000 +0000
- -16,12 +16,12 requires a working copy of "apxs" in you
+--- Makefile.PL.orig Sun Oct 5 08:40:46 2003
++++ Makefile.PL Thu Oct 2 00:21:22 2008
+ -16,12 +16,12 requires a working copy of "apxs" in your path, Apache
  support, and additional Apache configuration.
  
  END
-16,3 +16,12 $OpenBSD: patch-Makefile_PL,v 1.2 2003/1
      die "ERROR: Command 'apxs -q CC' failed.\n"
          unless $macro->{APACHE_APXS_WORKS};
      print "Compiling for Apache version $macro->{APACHE_VERSION}\n";
+ -71,7 +71,7 readable:
+ chmod -R u+w,go-w,go+r .
+
+ README: src/SpeedyCGI.pm
+- cd src && $(PERL) -e "use Pod::Text; pod2text(-80)" <SpeedyCGI.pm >../README
++ cd src && pod2text -80 <SpeedyCGI.pm >../README
+
+ README.html: src/SpeedyCGI.pm
+ cd src && pod2html SpeedyCGI.pm >../README.html && $(RM_F) pod2h*
Index: patches/patch-src_speedy_backend_main_h
===================================================================
RCS file: patches/patch-src_speedy_backend_main_h
diff -N patches/patch-src_speedy_backend_main_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_speedy_backend_main_h 1 Oct 2008 22:25:44 -0000
-0,0 +1,12
+$OpenBSD$
+--- src/speedy_backend_main.h.orig Thu Oct 2 00:21:40 2008
++++ src/speedy_backend_main.h Thu Oct 2 00:23:12 2008
+ -38,7 +38,7 void * efence_realloc (void *ptr, size_t size);
+
+ #else
+
+-#define speedy_new(s,n,t) New(123,s,n,t)
++#define speedy_new(s,n,t) Newx(s,n,t)
+ #define speedy_renew Renew
+ #define speedy_free Safefree
+