Skip Menu |
 

This queue is for tickets about the Rose-DateTime CPAN distribution.

Report information
The Basics
Id: 65070
Status: resolved
Priority: 0/
Queue: Rose-DateTime

People
Owner: Nobody in particular
Requestors: s.schoeling [...] linet-services.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.535



X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.42/RELEASE, bases: 20110124 #4713153, check: 20110124 clean
From s.schoeling [...] linet-services.de Mon Jan 24 11: 51:00 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-7 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="------------040002020608000200010907"
Message-ID: <4D3DADE5.5020709 [...] linet-services.de>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -7
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4C1B124136B for <cpan-bug+Rose-DateTime [...] hipster.bestpractical.com>; Mon, 24 Jan 2011 11:51:00 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pkJPQuarZdUW for <cpan-bug+Rose-DateTime [...] hipster.bestpractical.com>; Mon, 24 Jan 2011 11:50:57 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 8527E2413A0 for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 11:50:56 -0500 (EST)
Received: (qmail 23254 invoked by uid 103); 24 Jan 2011 16:50:55 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 24 Jan 2011 16:50:55 -0000
Received: from ls-bs-se1.linet-services.de (HELO ls-bs-se1.linet-services.de) (212.68.92.67) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 24 Jan 2011 08:50:53 -0800
Received: from ls-bs-se1.linet-services.de (localhost.localdomain [127.0.0.1]) by ls-bs-se1.linet-services.de (Postfix) with ESMTP id BBC9C60002 for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 17:50:49 +0100 (CET)
Received: from ls-bs-se1.linet-services.de ([127.0.0.1]) by localhost (ls-bs-se1.linet-services.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JUisyRhZxAnk for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 17:50:48 +0100 (CET)
Received: from ls-bs-si3.linet-services.ucs (ls-bs-si3.bs.linet-services.de [192.168.10.4]) by ls-bs-se1.linet-services.de (Postfix) with ESMTP id 39D9E60001 for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 17:50:48 +0100 (CET)
Received: from [192.168.10.24] (ls-bs-ws15.linet-services.ucs [192.168.10.24]) by ls-bs-si3 (Postfix) with ESMTP id 2378FC541A for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 17:50:45 +0100 (CET)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] linet-services.de
Delivered-To: cpan-bug+Rose-DateTime [...] hipster.bestpractical.com
Subject: Rose::DateTime and DateTime::Locale 0.3x
User-Agent: Thunderbird 2.0.0.24 (X11/20100623)
Return-Path: <s.schoeling [...] linet-services.de>
X-RT-Mail-Extension: rose-datetime
X-Original-To: cpan-bug+Rose-DateTime [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linet-services.de; s=mail200801; t=1295887849; bh=E2un7zeMKDQs5uvXrSKcO9xJ1yfn+MHIwBdA q27vo6E=; h=Date:From:MIME-Version:To:Message-ID:Content-Type: Subject; b=ostiIWyfirhY/rVvh2YQdFzHSft7Iwl+h60pgyAsaR2xSqjG3AcQzu2 rzfRpoUndL+9LVSyRLJMaLeohKjjW6EwHNyFNy+dhGuSWoLoSHJYTWeRzghemFXyXFN s8NYQwrkq8YF1BSOHRr73aasjFe/BnBz5YLYdhe4P5a85hc60=
Date: Mon, 24 Jan 2011 17:50:45 +0100
X-Spam-Level:
To: bug-Rose-DateTime [...] rt.cpan.org
X-Enigmail-Version: 0.96.0
From: Sven Schöling <s.schoeling [...] linet-services.de>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: ISO-8859-15
Content-Length: 2128
R:DT does not specify which DateTime::Locale version it needs. DT:L changed its API in v0.4. Methods now ending with '_short', '_long', 'medium', and '_full' used to be prefixed with those expressions. R:DT:U uses those in init_europea_dates, which dies on old DT:L versions. Attached is a patch against Rose/DB/Util.pm 0.534 that seems to work, although I didn't put much effort into correct version handling. Data: Rose-DateTime-Util-0.534, as installed by Ubuntu package librose-db-util-perl, but identical with the cpan version for this case. Test machine #1, Ubuntu 9.04 $ uname -a Linux ls-bs-ws15 2.6.31.1 #1 SMP Fri Oct 2 13:05:50 CEST 2009 x86_64 GNU/Linux $ perl -v This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi $ perl -le 'eval "use $_; print qq|$_ => \$${_}::VERSION|" for qw(Rose::DateTime::Util DateTime::Locale)' Rose::DateTime::Util => 0.534 DateTime::Locale => 0.45 Test machine #2, Ubuntu 8.04 LTS Server (the reason for all that) # uname -a Linux ubuntu804 2.6.24-24-server #1 SMP Tue Jul 7 20:21:17 UTC 2009 i686 GNU/Linux # perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi # perl -le 'eval "use $_; print qq|$_ => \$${_}::VERSION|" for qw(Rose::DateTime::Util DateTime::Locale)' Rose::DateTime::Util => 0.534 DateTime::Locale => 0.35 Test machine #3, Debian Etch # uname -a Linux debian-etch 2.6.18-6-486 #1 Sat Dec 27 08:57:46 UTC 2008 i686 GNU/Linux # perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi # perl -le 'eval "use $_; print qq|$_ => \$${_}::VERSION|" for qw(Rose::DateTime::Util DateTime::Locale)' Rose::DateTime::Util => 0.534 DateTime::Locale => 0.3101 -- Sven Schöling Entwickler LINET Services GmbH | Am Alten Bahnhof 4b | 38122 Braunschweig Tel. 0531-180508-0 | Fax 0531-180508-29 | http://www.linet-services.de Geschäftsführung: Philip Reetz und Torsten Börner HR B 9170 Amtsgericht Braunschweig ---------------------------------------------------- Besuchen Sie uns auf der CeBIT (1. bis 5. März) auf dem Univention-Partnerstand in Halle 2 Stand D36 ----------------------------------------------------
content-type: text/x-patch; name="r_dt_u.patch"
content-disposition: inline; filename="r_dt_u.patch"
Content-Transfer-Encoding: 7bit
Content-Length: 488
Download r_dt_u.patch
text/x-diff 488b
--- a/Rose/DateTime/Util.pm 2010-03-22 21:29:25.000000000 +0100 +++ b/Rose/DateTime/Util.pm 2011-01-24 17:26:48.000000000 +0100 @@ -57,8 +57,10 @@ my $locale_class = DateTime::Locale->load(DateTime->DefaultLocale); - my $short = $locale_class->date_format_short; - + my $short = $DateTime::Locale::VERSION >= 0.4 + ? $locale_class->date_format_short + : $locale_class->short_date_format; + $short =~ tr{dmyDMY}{}cd; $short =~ tr{dmyDMY}{dmydmy}s;
MIME-Version: 1.0
In-Reply-To: <4D3DADE5.5020709 [...] linet-services.de>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <4D3DADE5.5020709 [...] linet-services.de>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-19311-1295889465-730.65070-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 826
Download (untitled) / with headers
text/plain 826b
On Mon Jan 24 11:51:01 2011, s.schoeling@linet-services.de wrote: Show quoted text
> R:DT does not specify which DateTime::Locale version it needs. DT:L > changed its API in v0.4. Methods now ending with '_short', '_long', > 'medium', and '_full' used to be prefixed with those expressions. R:DT:U > uses those in init_europea_dates, which dies on old DT:L versions.
I was under the impression that DateTime itself would complain if it doesn't have a new enough DateTime::Locale. Example error message produced by loading DateTime 0.66 with DateTime::Locale 0.35: "DateTime::Locale version 0.4 required--this is only version 0.35 at /usr/local/lib/perl5/site_perl/5.12.1/darwin-2level/DateTime.pm line 45" Anyway, it's easy enough to patch (though I'm going to use can() instead of a version number comparison). Thanks for the report.
From s.schoeling [...] linet-services.de Mon Jan 24 12: 41:04 2011
X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.42/RELEASE, bases: 20110124 #4713153, check: 20110124 clean
MIME-Version: 1.0
X-Spam-Status: No, score=-7 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-19311-1295889465-1571.65070-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <4D3DADE5.5020709 [...] linet-services.de> <rt-3.8.HEAD-19311-1295889465-1571.65070-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <4D3DB9A0.5040900 [...] linet-services.de>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] linet-services.de
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 67906241477 for <cpan-bug+Rose-DateTime [...] hipster.bestpractical.com>; Mon, 24 Jan 2011 12:41:04 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NLZUnj8mgVEm for <cpan-bug+Rose-DateTime [...] hipster.bestpractical.com>; Mon, 24 Jan 2011 12:41:02 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 89BC224136B for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 12:41:02 -0500 (EST)
Received: (qmail 27110 invoked by uid 103); 24 Jan 2011 17:41:01 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 24 Jan 2011 17:41:01 -0000
Received: from ls-bs-se1.linet-services.de (HELO ls-bs-se1.linet-services.de) (212.68.92.67) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 24 Jan 2011 09:41:00 -0800
Received: from ls-bs-se1.linet-services.de (localhost.localdomain [127.0.0.1]) by ls-bs-se1.linet-services.de (Postfix) with ESMTP id CE90860002 for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 18:40:56 +0100 (CET)
Received: from ls-bs-se1.linet-services.de ([127.0.0.1]) by localhost (ls-bs-se1.linet-services.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H26YwcxKA94z for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 18:40:56 +0100 (CET)
Received: from ls-bs-si3.linet-services.ucs (ls-bs-si3.bs.linet-services.de [192.168.10.4]) by ls-bs-se1.linet-services.de (Postfix) with ESMTP id 31A7460001 for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 18:40:56 +0100 (CET)
Received: from [192.168.10.24] (ls-bs-ws15.linet-services.ucs [192.168.10.24]) by ls-bs-si3 (Postfix) with ESMTP id A194FC5652 for <bug-Rose-DateTime [...] rt.cpan.org>; Mon, 24 Jan 2011 18:40:48 +0100 (CET)
Delivered-To: cpan-bug+Rose-DateTime [...] hipster.bestpractical.com
User-Agent: Thunderbird 2.0.0.24 (X11/20100623)
Subject: Re: [rt.cpan.org #65070] Rose::DateTime and DateTime::Locale 0.3x
Return-Path: <s.schoeling [...] linet-services.de>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linet-services.de; s=mail200801; t=1295890856; bh=QBGFA3Y4kKkS92vbz05e/3qdapBQyyD5nmU1 Yz7LyoE=; h=Date:From:MIME-Version:To:References:In-Reply-To: Message-ID:Content-Type:Content-Transfer-Encoding:Subject; b=eIiDj hbZeAxyUTf/QVHCowMf+ig2TTxrEOfTrMv5NSHgykcDTzSNg+vzLNkEkH6g5IoLK+WE auZ154PPMAN8LaFgJkhJmCsk1w6H7q8Z/tTOTQALULkghbx97fKcOuksMF7fkZx5s7K PRL5GNrJvsb33xpXOqztLold/WbYrjQY=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Rose-DateTime [...] hipster.bestpractical.com
X-RT-Mail-Extension: rose-datetime
Date: Mon, 24 Jan 2011 18:40:48 +0100
X-Spam-Level:
To: bug-Rose-DateTime [...] rt.cpan.org
X-Enigmail-Version: 0.96.0
Content-Transfer-Encoding: 7bit
From: Sven Schöling <s.schoeling [...] linet-services.de>
RT-Message-ID: <rt-3.8.HEAD-19313-1295890864-922.65070-0-0 [...] rt.cpan.org>
Content-Length: 841
Download (untitled) / with headers
text/plain 841b
John Siracusa via RT wrote: Show quoted text
> I was under the impression that DateTime itself would complain if it doesn't have a new enough > DateTime::Locale. Example error message produced by loading DateTime 0.66 with > DateTime::Locale 0.35: > > "DateTime::Locale version 0.4 required--this is only version 0.35 at > /usr/local/lib/perl5/site_perl/5.12.1/darwin-2level/DateTime.pm line 45" > > Anyway, it's easy enough to patch (though I'm going to use can() instead of a version number > comparison). Thanks for the report. >
It was chosen to keep as many prepackaged cpan distributions as possible on those legacy systems, and DateTime was one of them. Sorry for not including the DateTime version in my report: Debian Etch: 0.35 Ubuntu 8.04: 0.41 Ubuntu 9.04: 0.55 those will of course not complain about their matching DateTime::Locale.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.