You are not logged in.

#1 2016-09-26 21:10:40

Erroneous
Member
Registered: 2006-08-28
Posts: 35

[Fixed] Bugzilla, Throwable.pm syntax error

After upgrading my system to perl 5.24.0-2 Bugzilla errors out with the following when navigating to /srv/http/Bugzilla/index.cgi:

syntax error at /usr/share/perl5/vendor_perl/Throwable.pm line 42, near "has 'previous_exception'"
BEGIN not safe after errors--compilation aborted at /usr/share/perl5/vendor_perl/Throwable.pm line 79.
Compilation failed in require at /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at /usr/share/perl5/vendor_perl/Email/Sender/Role/CommonSending.pm line 9.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Email/Sender/Role/CommonSending.pm line 9.
Compilation failed in require at /usr/share/perl5/vendor_perl/Module/Runtime.pm line 317.
Compilation failed in require at /usr/share/perl5/vendor_perl/Email/Sender/Simple.pm line 23.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Email/Sender/Simple.pm line 23.
Compilation failed in require at Bugzilla/Mailer.pm line 26.
BEGIN failed--compilation aborted at Bugzilla/Mailer.pm line 26.
Compilation failed in require at Bugzilla/Auth.pm line 22.
BEGIN failed--compilation aborted at Bugzilla/Auth.pm line 22.
Compilation failed in require at Bugzilla.pm line 23.
BEGIN failed--compilation aborted at Bugzilla.pm line 23.
Compilation failed in require at /srv/http/bugzilla/index.cgi line 15.
BEGIN failed--compilation aborted at /srv/http/bugzilla/index.cgi line 15.

Looking at line 42 of Throwable.pm looks pretty innocuous, it simply is declaring a has 'previous_exception' => (...

As for Moose-like modules, here's what I get from pacman -Qsq perl moose:

perl-class-method-modifiers
perl-moo
perl-moox-types-mooselike
perl-role-tiny

I have reinstalled the 3 perl modules I have listed in pacman -Qml | fgrep 'usr/lib/perl5/vendor_perl' | awk '{print $1}' | sort -u

Not sure what else to do since all of the packages in the stack trace are community packages (perl-throwable, perl-module-runtime, perl-email-sender, and bugzilla).

Here's the output from ./checksetup.pl --check-modules:

* This is Bugzilla 5.0.3 on perl 5.24.0
* Running on Linux 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016

Checking perl modules...
Checking for               CGI.pm (v3.51)     ok: found v4.28 
Checking for           Digest-SHA (any)       ok: found v5.95 
Checking for             TimeDate (v2.23)     ok: found v2.24 
Checking for             DateTime (v0.75)     ok: found v1.25 
Checking for    DateTime-TimeZone (v1.64)     ok: found v1.95 
Checking for                  DBI (v1.614)    ok: found v1.636 
Checking for     Template-Toolkit (v2.24)     ok: found v2.26 
Checking for         Email-Sender (v1.300011) ok: found v1.300021 
Checking for           Email-MIME (v1.904)    ok: found v1.937 
Checking for                  URI (v1.55)     ok: found v1.65 
Checking for       List-MoreUtils (v0.32)     ok: found v0.416 
Checking for    Math-Random-ISAAC (v1.0.1)    ok: found v1.004 
Checking for           File-Slurp (v9999.13)  ok: found v9999.19 
Checking for              JSON-XS (v2.01)     ok: found v3.02 

Checking available perl DBD modules...
Checking for           DBD-Oracle (v1.19)     not found 
Checking for           DBD-SQLite (v1.29)     not found                                                                                                                                                                                     
Checking for            DBD-mysql (v4.001)    ok: found v4.036 
Checking for               DBD-Pg (v2.7.0)    not found 

The following Perl modules are optional:
Checking for                   GD (v1.20)     ok: found v2.56 
Checking for                Chart (v2.4.1)    ok: found v2.4.10 
Checking for          Template-GD (any)       ok: found v1.56 
Checking for           GDTextUtil (any)       ok: found v0.86 
Checking for              GDGraph (any)       ok: found v1.52 
Checking for           MIME-tools (v5.406)    ok: found v5.507 
Checking for          libwww-perl (any)       ok: found v6.15 
Checking for             XML-Twig (any)       ok: found v3.49 
Checking for          PatchReader (v0.9.6)    ok: found v0.9.6 
Checking for            perl-ldap (any)       ok: found v0.65 
Checking for          Authen-SASL (any)       ok: found v2.16 
Checking for         Net-SMTP-SSL (v1.01)     ok: found v1.03 
Checking for           RadiusPerl (any)       ok: found v0.24 
Checking for            SOAP-Lite (v0.712)    ok: found v1.19 
Checking for          XMLRPC-Lite (v0.712)    not found 
Checking for             JSON-RPC (any)       not found                                                                                                                                                                                     
Checking for           Test-Taint (v1.06)     not found                                                                                                                                                                                     
Checking for          HTML-Parser (v3.67)     ok: found v3.72 
Checking for        HTML-Scrubber (any)       ok: found v0.15 
Checking for               Encode (v2.21)     ok: found v2.80 
Checking for        Encode-Detect (any)       not found 
Checking for          Email-Reply (any)       ok: found v1.204 
Checking for HTML-FormatText-WithLinks (v0.13)     not found 
Checking for          TheSchwartz (v1.07)     not found                                                                                                                                                                                     
Checking for       Daemon-Generic (any)       not found                                                                                                                                                                                     
Checking for             mod_perl (v1.999022) not found                                                                                                                                                                                     
Checking for     Apache-SizeLimit (v0.96)     not found                                                                                                                                                                                     
Checking for        File-MimeInfo (any)       ok: found v0.27 
Checking for           IO-stringy (any)       ok: found v2.111 
Checking for      Cache-Memcached (any)       not found 
Checking for  File-Copy-Recursive (any)       ok: found v0.38 
Checking for           File-Which (any)       ok: found v1.21 
Checking for              mod_env (any)       ok 
Checking for          mod_expires (any)       ok 
Checking for          mod_headers (any)       ok 
Checking for          mod_rewrite (any)       ok 
Checking for          mod_version (any)       ok 
***********************************************************************
* OPTIONAL MODULES                                                    *
***********************************************************************
* Certain Perl modules are not required by Bugzilla, but by           *
* installing the latest version you gain access to additional         *
* features.                                                           *
*                                                                     *
* The optional modules you do not have installed are listed below,    *
* with the name of the feature they enable. Below that table are the  *
* commands to install each module.                                    *
***********************************************************************
*               MODULE NAME * ENABLES FEATURE(S)                      *
***********************************************************************
*               XMLRPC-Lite * XML-RPC Interface                       *
*                  JSON-RPC * JSON-RPC Interface, REST Interface      *
*                Test-Taint * JSON-RPC Interface, XML-RPC Interface, REST Interface *
*             Encode-Detect * Automatic charset detection for text attachments *
* HTML-FormatText-WithLinks * Inbound Email                           *
*               TheSchwartz * Mail Queueing                           *
*            Daemon-Generic * Mail Queueing                           *
*                  mod_perl * mod_perl                                *
*          Apache-SizeLimit * mod_perl                                *
*           Cache-Memcached * Memcached Support                       *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:

    XMLRPC-Lite: /usr/bin/perl install-module.pl XMLRPC::Lite
       JSON-RPC: /usr/bin/perl install-module.pl JSON::RPC
     Test-Taint: /usr/bin/perl install-module.pl Test::Taint
  Encode-Detect: /usr/bin/perl install-module.pl Encode::Detect
HTML-FormatText-WithLinks: /usr/bin/perl install-module.pl HTML::FormatText::WithLinks
    TheSchwartz: /usr/bin/perl install-module.pl TheSchwartz
 Daemon-Generic: /usr/bin/perl install-module.pl Daemon::Generic
       mod_perl: /usr/bin/perl install-module.pl mod_perl2
Apache-SizeLimit: /usr/bin/perl install-module.pl Apache2::SizeLimit
Cache-Memcached: /usr/bin/perl install-module.pl Cache::Memcached


To attempt an automatic install of every required and optional module
with one command, do:

  /usr/bin/perl install-module.pl --all

Last edited by Erroneous (2016-09-29 15:15:05)

Offline

#2 2016-09-28 17:03:30

lprovot
Member
Registered: 2016-09-28
Posts: 1

Re: [Fixed] Bugzilla, Throwable.pm syntax error

Hi. I don't really know what's wrong with the last version of perl-moo, but downgrading perl-moo from 2.002004-1 to 2.000002-1 solved the problem. I don't have neither the time nor the skills to find the root of this issue, but I hope this little contribution will be helpful.

Offline

#3 2016-09-29 14:56:37

Erroneous
Member
Registered: 2006-08-28
Posts: 35

Re: [Fixed] Bugzilla, Throwable.pm syntax error

lprovot wrote:

Hi. I don't really know what's wrong with the last version of perl-moo, but downgrading perl-moo from 2.002004-1 to 2.000002-1 solved the problem. I don't have neither the time nor the skills to find the root of this issue, but I hope this little contribution will be helpful.

I built perl-moo and perl-role-tiny using cpanplus:

cpanp i Moo

I did some more testing and used the perl-moo from community but cpanplus version of perl-role-tiny and that seems to be the issue. Looking at the PKGBUILD from ABS it seems that perl-role-tiny updated the pkgver to 2.000003 but the source is still 2.000000

After that it stops showing the errors. I'll see about submitting a bug report.

Offline

#4 2016-09-29 15:14:00

Erroneous
Member
Registered: 2006-08-28
Posts: 35

Re: [Fixed] Bugzilla, Throwable.pm syntax error

To be clear, to fix this until perl-role-tiny is updated, run

cpanp i Role::Tiny

Offline

Board footer

Powered by FluxBB