On Jul 15, 2010, at 9:04 AM, Gerd v. Egidy wrote:

> Can't locate object method "glibc_date_format" via package 
> "DateTime::Locale::en_US" at 
> /usr/lib/perl5/vendor_perl/5.8.8/DateTime/Format/Strptime.pm line 780
> 
> After downgrading to perl-DateTime-Format-Strptime-1.1000-1.el5.rf.noarch 
> everything worked again.
> 
> Is this a problem in perl-DateTime-Format-Strptime-1.2000-1.el5.rf.noarch,  
> some missing dependency or some misconfiguration on my side?


the issue is the following:

1) the DateTime-Locale Perl distribution is generally versioned like 0.XX, 0.XY 
etc., as you can see from the Changelog:

http://cpansearch.perl.org/src/DROLSKY/DateTime-Locale-0.45/Changes

however, on May 19, 2008, the developer released version 0.4001, intending that 
version to sort between versions 0.40 and 0.41.  from a Perlish standpoint, 
this is not unreasonable.

2) rpm's version comparison algorithm, however, sorts 0.4001 after 0.41 (Google 
for rpmvercmp if you want a more detailed explanation of why this is).

3) RPMforge has a perl-DateTime-Locale-0.4001 package, and many people 
(including you) have it installed on your system.

4) DateTime-Format-Strptime >= 1.2000 requires DateTime-Locale >= 0.45.

5) RPMforge has a perl-DateTime-Locale-0.45 package; however, yum (and rpm) 
don't see it as an available update because of point #2 above.

so, what's the fix for this situation?  one fix is as follows:

$ yumdownloader perl-DateTime-Locale-0.45
$ sudo rpm -e --nodeps perl-DateTime-Locale perl-DateTime-Format-Strptime
$ sudo rpm -U ./perl-DateTime-Locale-0.45*
$ sudo yum install perl-DateTime-Format-Strptime

after this, put an exclusion in your yum config so that your yum won't see the 
spurious perl-DateTime-Locale-0.4001 package.  we intend to remove 
perl-DateTime-Locale-0.4001 from the repo entirely, and i'll post to the users 
list when that is done.

-steve

--
If this were played upon a stage now, I could condemn it as an improbable 
fiction. - Fabian, Twelfth Night, III,v
http://five.sentenc.es

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to