Bug 547121

Summary: Encode module in perl package references nonexisting file
Product: [Fedora] Fedora Reporter: Christian Krause <chkr>
Component: perlAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: cweyl, kasal, lkundrak, mmaslano, rc040203, tcallawa
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-22 11:56:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Krause 2009-12-13 17:29:30 UTC
[ copied from RHEL bug #435505 ]

Description of problem:
Perl's Encode module (/usr/lib/perl5/5.10.0/i386-linux-thread-multi/Encode.pm
) looks for a Encode::ConfigLocal module by calling:

eval { require Encode::ConfigLocal };

This Encode::ConfigLocal module does not exist, but since the require is wrapped
in an eval, it is not a fatal error, but depending on how the perl script is
written, this can generate warning messages, if for example the script is
catching eval errors and logging them.

The problem can be reproduced easily:

perl -e 'BEGIN { $SIG{__DIE__} = sub { print "Die: $_[0]\n"; }; }; use Encode;print "Hello world.\n";'

output:
-------------------------------
Die: Can't locate Encode/ConfigLocal.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/Encode.pm line 53.

Hello world.
-------------------------------

F11 and F12 are both affected, the status in rawhide I don't know...

The problem got fixed in RHEL:
http://rhn.redhat.com/errata/RHBA-2009-0117.html

Upstream tracking bug and suggested patch:
http://rt.cpan.org/Public/Bug/Display.html?id=11511#txn-481431

Comment 1 Marcela Mašláňová 2009-12-22 08:04:01 UTC
F-13 (perl-5.10.1) isn't affected.

Comment 2 Marcela Mašláňová 2010-01-11 14:31:25 UTC
This should be fixed in next update in F-12 since perl-5.10.0-88.fc12 or later.

Comment 3 Marcela Mašláňová 2010-03-16 09:20:38 UTC
Please re-open in case this is still bother you.

Comment 4 Christian Krause 2010-03-16 23:12:05 UTC
The servers I'm maintaining are running currently F11 and F12 and on these systems I always have to do some workarounds. So if it would be possible to get an update for F12 and F11, this would be great.

Comment 5 Marcela Mašláňová 2010-03-17 14:35:18 UTC
The mentioned patch is applied, but it gets somehow changed during the build. I'll fix it.

Comment 6 Bug Zapper 2010-04-28 11:34:25 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Christian Krause 2010-06-20 14:23:56 UTC
The bug is still present in F12 (F13 is fixed). It would be great if the fix would land in F12, too.

Comment 8 Marcela Mašláňová 2010-07-22 11:56:23 UTC
In F-12 should be fixed in perl-5.10.0-89.

Comment 9 Christian Krause 2010-07-24 16:52:48 UTC
(In reply to comment #8)
> In F-12 should be fixed in perl-5.10.0-89.    

Yes, I can confirm this. Thanks!