Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632064 - www-apps/bugzilla-5.0.3-r2 fails tests without '.' in @INC (Can't locate Bugzilla.pm in @INC, Unescaped left brace in regex is illegal here in regex)
Summary: www-apps/bugzilla-5.0.3-r2 fails tests without '.' in @INC (Can't locate Bugz...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: perl-5.26-no-dot-inc perl-5.26-stable
  Show dependency tree
 
Reported: 2017-09-26 16:46 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2018-12-30 21:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (bugzilla-5.0.3-r1:20170926-163910.log,15.05 KB, text/plain)
2017-09-26 16:46 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-09-26 16:46:44 UTC
Created attachment 496454 [details]
build.log

All versions of bugzilla in tree are affected. See tracker and https://wiki.gentoo.org/wiki/Project:Perl/Dot-In-INC-Removal for details.

Test Summary Report
-------------------
t/001compile.t     (Wstat: 1024 Tests: 231 Failed: 4)
  Failed tests:  222-223, 227-228
  Non-zero exit status: 4
t/004template.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/005whitespace.t  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/007util.t        (Wstat: 65280 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 17 tests but ran 2.
t/009bugwords.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/010dependencies.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
Files=13, Tests=3019, 93 wallclock secs ( 0.31 usr  0.03 sys + 83.94 cusr  7.20 csys = 91.48 CPU)
Result: FAIL


---

t/001compile.t ....... 221/231 # Can't locate Bugzilla.pm in @INC (you may need to install the Bugzilla module) (@INC contains: t lib /etc/perl /usr/lo
cal/lib64/perl5/5.26.1/x86_64-linux-thread-multi /usr/local/lib64/perl5/5.26.1 /usr/lib64/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib64
/perl5/vendor_perl/5.26.1 /usr/local/lib64/perl5/5.26.0 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.26.0 /usr/lib64/perl5/vendor_perl/5.25.12
 /usr/lib64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.26.1/x86_64-linux-thread-mult
i /usr/lib64/perl5/5.26.1) at t/Support/Templates.pm line 20.
# BEGIN failed--compilation aborted at t/Support/Templates.pm line 20.
# Compilation failed in require at t/004template.t line 18.                     
# BEGIN failed--compilation aborted at t/004template.t line 18.

#     Error:  Can't locate Bugzilla/Util.pm in @INC (you may need to install the Bugzilla::Util module) (@INC contains: t lib /etc/perl /usr/local/lib6
4/perl5/5.26.1/x86_64-linux-thread-multi /usr/local/lib64/perl5/5.26.1 /usr/lib64/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib64/perl5/v
endor_perl/5.26.1 /usr/local/lib64/perl5/5.26.0 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.26.0 /usr/lib64/perl5/vendor_perl/5.25.12 /usr/li
b64/perl5/vendor_perl/5.25.11 /usr/lib64/perl5/vendor_perl/5.22.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.26.1/x86_64-linux-thread-multi /usr/l
ib64/perl5/5.26.1) at t/007util.t line 23.
# BEGIN failed--compilation aborted at t/007util.t line 23.
Can't locate object method "user" via package "Bugzilla" at t/007util.t line 28.

t/010dependencies.t .. Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE [^}]+}/ at t/010dependencies.t line
 72.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2018-12-22 23:47:55 UTC
Test Summary Report
-------------------
t/001compile.t     (Wstat: 768 Tests: 231 Failed: 3)
  Failed tests:  222-223, 227
  Non-zero exit status: 3
t/004template.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/005whitespace.t  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/007util.t        (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 17 tests but ran 2.
t/009bugwords.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=13, Tests=3602, 128 wallclock secs ( 0.49 usr  0.04 sys + 115.82 cusr 11.57 csys = 127.92 CPU)
Result: FAIL
Uncaught exception from user code:
        Failed 5/13 test programs. 4/3602 subtests failed.
        Test::Harness::runtests("t/001compile.t", "t/002goodperl.t", "t/003safesys.t", "t/004template.t", "t/005whitespace.t", "t/006spellcheck.t", "t/007util.t", "t/008filter.t", ...) called at runtests.pl line 30
 * ERROR: www-apps/bugzilla-5.0.3-r2::gentoo failed (test phase):
 *   (no error message)
Comment 2 Larry the Git Cow gentoo-dev 2018-12-25 20:40:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bce34290b1ac77ddf8e9f018b93356b7e859dadc

commit bce34290b1ac77ddf8e9f018b93356b7e859dadc
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2018-12-25 20:40:22 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2018-12-25 20:40:44 +0000

    www-apps/bugzilla: Fix tests for Perl 5.26, bug 632064
    
    The required modules are not installed into any Perl default search
    paths, but into the BZ web directory. This means that not finding
    the modules is a test-specific problem; in actual usage they will
    be found otherwise.
    
    Closes: https://bugs.gentoo.org/632064
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild        | 11 ++++++---
 www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild         | 11 ++++++---
 .../bugzilla/files/bugzilla-5.0.3-leftbrace.patch  | 26 ++++++++++++++++++++++
 3 files changed, 42 insertions(+), 6 deletions(-)
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2018-12-25 21:40:35 UTC
kent\n says this needs more checking. :/
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2018-12-30 21:56:05 UTC
OK so I can't find any reason why this shouldnt work in an installation.
Fingers crossed.