Bug 17421

Summary: Missing dependency on CGI::Emulate::PSGI
Product: Koha Reporter: David Cook <dcook>
Component: PackagingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: katrin.fischer, lari.taskula, mirko
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20693
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 17421: Add Devel::Size and Plack::Middleware::Debug as Perl dependency

Description David Cook 2016-10-10 23:51:11 UTC
I just tried to do a plackup (the Plack utility not plackup.sh) and got an error that CGI::Emulate::PSGI wasn't installed.

I'm thinking we should add that to Koha's Perl dependencies.

Looking at Debian (https://packages.debian.org/sid/perl/libplack-perl), it looks like the package is recommended but not required. 

Actually, I don't notice it in https://github.com/Koha-Community/Koha/blob/master/debian/control either...

I'm using Plack v1.0037 whereas Jessie is at v1.0033-1...

It's required by Plack::App::WrapCGI, which uses it in v1.0033: https://metacpan.org/source/MIYAGAWA/Plack-1.0033/lib/Plack/App/WrapCGI.pm
Comment 1 David Cook 2016-10-10 23:53:47 UTC
Actually, now that I'm installing dependencies, it seems like there's quite a few...

CGI::Emulate::PSGI
CGI::Compile
Plack::Middleware::Debug
Devel::Size
Comment 2 David Cook 2016-10-11 00:12:25 UTC
Plack::Handler::Starman
Comment 3 Lari Taskula 2017-04-24 14:44:04 UTC
I got the same errors for Plack::Middleware::Debug and Devel::Size.
Comment 4 Lari Taskula 2017-04-24 14:44:22 UTC
Created attachment 62610 [details] [review]
Bug 17421: Add Devel::Size and Plack::Middleware::Debug as Perl dependency

After fresh install, starting Plack throws the following errors:

Error while loading /home/koha/Koha/misc/plack/plack.psgi: Can't locate
Devel/Size.pm in @INC (you may need to install the Devel::Size module)

Error while loading /home/koha/Koha/misc/plack/plack.psgi: Can't locate
Plack/Middleware/Debug.pm in @INC (you may need to install the
Plack::Middleware::Debug module)

This patch adds Devel::Size and Plack::Middleware::Debug to Perl dependencies.

sudo cpanm Devel::Size
sudo cpanm Plack::Middleware::Debug
Comment 5 David Cook 2020-04-02 00:42:23 UTC
Given the age of this bug, I think it's probably safe to close it
Comment 6 Katrin Fischer 2020-04-02 19:52:25 UTC
(In reply to David Cook from comment #5)
> Given the age of this bug, I think it's probably safe to close it