Summary: | <dev-perl/Template-Toolkit-0.270.0-r1: Template::Provider::_load_compiled broken with relative paths without '.' in @INC (Tests fail with Can't locate t/test/src/baz.ttc in @INC) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kent Fredric (IRC: kent\n) (RETIRED) <kentnl> |
Component: | Current packages | Assignee: | Gentoo Perl team <perl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | TESTFAILURE |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://rt.cpan.org/Ticket/Display.html?id=121171 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 648794 | ||
Bug Blocks: | 612408 |
Description
Kent Fredric (IRC: kent\n) (RETIRED)
2017-04-16 02:37:44 UTC
Yeah, this has runtime implications. -- sub _load_compiled { my ($self, $file) = @_; # load compiled template via require(); we zap any # %INC entry to ensure it is reloaded (we don't # want 1 returned by require() to say it's in memory) delete $INC{ $file }; eval { $compiled = require $file; }; return $@ -- Fixing this for Unix is mostly straight forward (kinda), just making a platform agnostic patch for upstream is messy. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da0f714f5d4ca194ca32b106b635577f9d601e38 commit da0f714f5d4ca194ca32b106b635577f9d601e38 Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2018-01-14 17:21:15 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2018-01-14 17:22:02 +0000 dev-perl/Template-Toolkit: Add fix for '.' in @INC bug #615704 - Add runtime fix for '.' in @INC problems - Patch tests for CGI.pm warnings Bug: https://bugs.gentoo.org/615704 Package-Manager: Portage-2.3.18, Repoman-2.3.6 .../Template-Toolkit-2.270.0-r1.ebuild | 49 ++++++++++++++++ .../files/Template-Toolkit-2.27-cgipm.patch | 66 ++++++++++++++++++++++ .../files/Template-Toolkit-2.27-no-dot-inc.patch | 54 ++++++++++++++++++ 3 files changed, 169 insertions(+)} The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a43e21d613f78dee77ef6820127ca17dc74462a commit 4a43e21d613f78dee77ef6820127ca17dc74462a Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2018-04-20 07:13:43 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2018-04-20 07:13:43 +0000 dev-perl/Template-Toolkit: Cleanup old re bug #615704 Closes: https://bugs.gentoo.org/615704 Package-Manager: Portage-2.3.29, Repoman-2.3.9 dev-perl/Template-Toolkit/Manifest | 1 - .../Template-Toolkit-2.260.0.ebuild | 36 ------------------- .../Template-Toolkit-2.270.0.ebuild | 42 ---------------------- 3 files changed, 79 deletions(-) |