Package: libcgi-psgi-perl
Version: 0.15-1
Severity: normal
Trying to use request-tracker4 (another Debian package),
I was getting errors like
Undefined subroutine CGI::PSGI::delete at ...
To solve the issues, I had to make changes to file
/usr/share/perl5/CGI/PSGI.pm
as below:
--- /usr/share/perl5/CGI/PSGI.pm.orig 2011-08-29 22:54:39.000000000 +1000
+++ /usr/share/perl5/CGI/PSGI.pm 2014-09-05 09:31:42.000000000 +1000
@@ -204,11 +204,22 @@
user_name
read_multipart
read_multipart_related
+ delete
+ cache
+ path_info
+ query_string
+ unescapeHTML
+ new_MultipartBuffer
)) {
no strict 'refs';
*$method = sub {
my $self = shift;
- my $super = "SUPER::$method";
+ # PSz 5 Sep 2014 Fix error
+ # "Undefined subroutine CGI::PSGI::SUPER::request_method".
+ # Also, added some methods above: could we simply have used
+ # the line use parent 'CGI'; instead?
+ #my $super = "SUPER::$method";
+ my $super = "CGI::$method";
local *ENV = $self->{psgi_env};
$self->$super(@_);
};
Does this indicate a bug in PSGI.pm, could it be fixed?
Thanks, Paul
Paul Szabo [email protected] http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia
-- System Information:
Debian Release: 7.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.2.57-pk06.24-i386 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages libcgi-psgi-perl depends on:
ii libcgi-pm-perl 3.61-2
ii perl 5.14.2-21+deb7u1
ii perl-modules [libcgi-pm-perl] 5.14.2-21+deb7u1
libcgi-psgi-perl recommends no packages.
libcgi-psgi-perl suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]