[request-tracker-maintainers] Bug#806449: Bug#806449: request-tracker4: FTBFS: t/security/CVE-2011-5092-localizeddatetime.t locale warnings

Dominic Hargreaves dom at earth.li
Fri Nov 27 15:42:51 UTC 2015


On Fri, Nov 27, 2015 at 03:09:04PM +0000, Dominic Hargreaves wrote:
> This package has started FTBFS with this output:
> 
> Invalid locale code or name: en-us
> Invalid locale code or name: en-us

...

> According to 
> 
> https://reproducible.debian.net/history/request-tracker4.html
> 
> this started happening somewhere between 2015-11-07 and 2015-11-16.

This seems likely to be triggered by the new DateTime::Locale upload
on 10th November, which contained quite a lot of refactoring.

Fixed by this trivial patch:

diff --git a/t/security/CVE-2011-5092-localizeddatetime.t b/t/security/CVE-2011-5092-localizeddatetime.t
index 733afc0..5730ff3 100644
--- a/t/security/CVE-2011-5092-localizeddatetime.t
+++ b/t/security/CVE-2011-5092-localizeddatetime.t
@@ -4,7 +4,7 @@ use warnings;
 use RT::Test tests => undef;
 
 my $root = RT::CurrentUser->new('root');
-my ($ok, $msg) = $root->UserObj->SetLang('en-us');
+my ($ok, $msg) = $root->UserObj->SetLang('en-US');
 ok $ok, $msg;
 
 my $year = (localtime time)[5] + 1900;

Note: I'm filing a patch as I've realised that alioth does not have the
tree that I built and uploaded 4.2.12-3 with - that is on a machine of
mine that's currently switched off. I will remedy this as soon as possible.
I'll also forward this upstream.

Dominic.



More information about the pkg-request-tracker-maintainers mailing list