Package: speedy-cgi-perl
Version: 2.22-8
Severity: important
Tags: patch

The speedy-cgi-perl package fails to build with Perl 5.10 (currently in
experimental) due to two issues:

- Pod::Text::pod2text() calling conventions have changed
- the New() macro has been deprecated in 5.9.3 (see perlapi.pod) and its
  expansions in speedy_perl.c result in syntax errors. The Newx() macro works 
  fine and is now the recommended method.

Patch attached. This works with 5.8 too, so I'll upload a fixed version
as soon as I find out what's causing these:

 dpkg-shlibdeps: warning: symbol apr_table_get used by 
debian/libapache2-mod-speedycgi/usr/lib/apache2/modules/mod_speedycgi.so found 
in none of the libraries.
 dpkg-shlibdeps: warning: symbol ap_scan_script_header_err_brigade used by 
debian/libapache2-mod-speedycgi/usr/lib/apache2/modules/mod_speedycgi.so found 
in none of the libraries.
 dpkg-shlibdeps: warning: symbol apr_file_gets used by 
debian/libapache2-mod-speedycgi/usr/lib/apache2/modules/mod_speedycgi.so found 
in none of the libraries.
 [...]

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]
#! /bin/sh /usr/share/dpatch/dpatch-run
## 95perl5.10.dpatch by Niko Tyni <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix build failures with Perl 5.10.
## DP:  Pod::Text::pod2text() calling conventions changed
## DP:  use Newx() instead of New()

@DPATCH@
diff -urNad speedy-cgi-perl-2.22~/Makefile.PL speedy-cgi-perl-2.22/Makefile.PL
--- speedy-cgi-perl-2.22~/Makefile.PL   2008-01-28 12:17:32.000000000 +0200
+++ speedy-cgi-perl-2.22/Makefile.PL    2008-01-28 12:18:35.000000000 +0200
@@ -71,7 +71,7 @@
        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*
diff -urNad speedy-cgi-perl-2.22~/src/speedy_backend_main.h 
speedy-cgi-perl-2.22/src/speedy_backend_main.h
--- speedy-cgi-perl-2.22~/src/speedy_backend_main.h     2003-10-07 
07:03:48.000000000 +0300
+++ speedy-cgi-perl-2.22/src/speedy_backend_main.h      2008-01-28 
12:18:22.000000000 +0200
@@ -38,7 +38,7 @@
 
 #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
 

Reply via email to