[libmojomojo-perl] 04/05: Add patch to use the Plack Engine instead of Catalyst::Engine::PSGI

gregor herrmann gregoa at debian.org
Fri Oct 24 14:23:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libmojomojo-perl.

commit ad03c30465bc4c0547c451e8761633e80c6d1bad
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Oct 24 16:22:16 2014 +0200

    Add patch to use the Plack Engine instead of Catalyst::Engine::PSGI
    
    following the documentation in Catalyst::Upgrading.
    
    Cf. #759960.
---
 debian/patches/plack-engine.patch | 51 +++++++++++++++++++++++++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 52 insertions(+)

diff --git a/debian/patches/plack-engine.patch b/debian/patches/plack-engine.patch
new file mode 100644
index 0000000..137564a
--- /dev/null
+++ b/debian/patches/plack-engine.patch
@@ -0,0 +1,51 @@
+Description: port from Catalyst::Engine::PSGI to Plack
+ Catalyst::Engine::PSGI is deprecated and failing its test in Debian.
+ Cf. #759960
+ .
+ The changes follow the "Upgrading the PSGI Engine" section in
+ Catalyst::Upgrading.
+Origin: vendor
+Forwarded: not yet
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-10-24
+
+--- a/app.psgi
++++ b/app.psgi
+@@ -4,6 +4,5 @@
+ use lib 'lib';
+ use MojoMojo;
+ 
+-MojoMojo->setup_engine('PSGI');
+-my $app = sub { MojoMojo->run(@_) };
++my $app = MojoMojo->psgi_app(@_);
+ 
+--- a/script/mojomojo.psgi
++++ b/script/mojomojo.psgi
+@@ -3,6 +3,5 @@
+ use warnings;
+ use MojoMojo;
+ 
+-MojoMojo->setup_engine('PSGI');
+-my $app = sub { MojoMojo->run(@_) };
++my $app = MojoMojo->psgi_app(@_);
+ 
+--- a/META.yml
++++ b/META.yml
+@@ -35,7 +35,6 @@
+   Catalyst::Action::RenderView: 0.07
+   Catalyst::Authentication::Store::DBIx::Class: 0.101
+   Catalyst::Controller::HTML::FormFu: 0.03007
+-  Catalyst::Engine::PSGI: 0
+   Catalyst::Model::DBIC::Schema: 0.01
+   Catalyst::Plugin::Authentication: 0.10005
+   Catalyst::Plugin::Cache: 0.08
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -18,7 +18,6 @@
+     'Catalyst::Action::RenderView' => '0.07',
+     'Catalyst::Authentication::Store::DBIx::Class' => '0.101',
+     'Catalyst::Controller::HTML::FormFu'           => '0.03007',
+-    'Catalyst::Engine::PSGI'                       => '0',
+     'Catalyst::Model::DBIC::Schema'                => '0.01',
+     'Catalyst::Plugin::Authentication'             => '0.10005',
+     'Catalyst::Plugin::Cache'                      => 0.08,
diff --git a/debian/patches/series b/debian/patches/series
index eeb5834..b322972 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 no-initial-qmark-split.patch
 encode.patch
+plack-engine.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmojomojo-perl.git



More information about the Pkg-perl-cvs-commits mailing list