On Thu, Feb 28, 2013 at 09:10:06AM +0100, Josip Rodin wrote: > > Can you try (a backport of) 0.63-1 which is currently in unstable and > > see if this fixes your problem? > > Bah, I installed the sid package and its new dependency libplack-perl, and > now everything's broken. > > Software error: > > Undefined subroutine &SVN::Web::run_cgi called at > /var/www/intsvn/private/svnweb/index.cgi line 6. > > Any quick hints would be most appreciated.
Argh, this is horrible, they completely changed everything, and the UPDATING manual page just says: WARNING This is out of date for 0.60 That's a serious bug in and of itself. :( So I followed the bare instructions in the SVN::Web manual page, installed mod_perl and replaced index.cgi with index.psgi: #!/usr/bin/perl -w # paste from Plack::Handler::Apache2(3pm) package My::ModPerl::Handler; use Plack::Handler::Apache2; sub get_app { # copy&paste from SVN-Web.psgi from the source - why aren't you # shipping this obviously critical file in the Debian package? use SVN::Web; SVN::Web::load_config('config.yaml'); my $handler = sub { SVN::Web->run_psgi(@_) }; # uncomment this __END__ if you dont want to have plack deliver /css #__END__ use Plack::Builder; use Plack::App::Directory; my $css = Plack::App::Directory->new({ root => './css' })->to_app; builder { mount '/css' => $css, mount '/' => $handler, } } sub handler { my $r = shift; my $app = get_app(); Plack::Handler::Apache2->call_app($r, $app); } But this nevertheless fails to run, saying: Can't use string ("") as a subroutine ref while "strict refs" in use at /usr/share/perl5/Plack/Handler/Apache2.pm line 51.\n *facepalm* this is a disaster... -- 2. That which causes joy or happiness. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org