Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 594605 - file cannot recognize perl modules and perl documentation
file cannot recognize perl modules and perl documentation
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: file (Show other bugs)
6.0
All Linux
medium Severity medium
: rc
: ---
Assigned To: Jan Kaluža
Milos Malik
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-21 03:09 EDT by Milos Malik
Modified: 2010-11-10 15:23 EST (History)
1 user (show)

See Also:
Fixed In Version: file-5.04-5.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-11-10 15:23:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fix for regressions (1.56 KB, patch)
2010-06-11 06:55 EDT, Jan Kaluža
no flags Details | Diff

  None (edit)
Description Milos Malik 2010-05-21 03:09:24 EDT
Description of problem:
Some .pm and .pod files are not correctly recognized by file. I believe it's a regression because file-5.03-12.el6 recognizes them correctly.

Version-Release number of selected component (if applicable):
file-5.04-4.el6.i686
perl-5.10.1-109.el6.i686
perl-DBI-1.609-4.el6.i686
perl-HTML-Parser-3.64-2.el6.i686
perl-libwww-perl-5.833-2.el6.noarch
perl-Pod-Simple-3.13-109.el6.i686
perl-Test-Harness-3.17-109.el6.i686
perl-MailTools-2.04-4.el6.noarch
spamassassin-3.3.1-2.el6.i686

How reproducible:
always

Steps to Reproduce:
* pick any of these files and run file on it
/usr/lib/perl5/DBI/FAQ.pm
/usr/lib/perl5/HTML/Filter.pm
/usr/lib/perl5/HTML/HeadParser.pm
/usr/lib/perl5/HTML/LinkExtor.pm
/usr/lib/perl5/HTML/Parser.pm
/usr/lib/perl5/HTML/PullParser.pm
/usr/lib/perl5/HTML/TokeParser.pm
/usr/share/perl5/HTML/Form.pm
/usr/share/perl5/HTTP/Headers/Util.pm
/usr/share/perl5/Locale/Script.pod
/usr/share/perl5/LWP/Protocol/file.pm
/usr/share/perl5/LWP/Protocol/gopher.pm
/usr/share/perl5/Mail/Header.pod
/usr/share/perl5/Mail/Internet.pod
/usr/share/perl5/Mail/SpamAssassin/Plugin/MIMEHeader.pm
/usr/share/perl5/Pod/Find.pm
/usr/share/perl5/Pod/Html.pm
/usr/share/perl5/pod/perl5004delta.pod
/usr/share/perl5/pod/perl572delta.pod
/usr/share/perl5/pod/perlpod.pod
/usr/share/perl5/Pod/Select.pm
/usr/share/perl5/Pod/Simple/HTMLBatch.pm
/usr/share/perl5/Pod/Simple/HTML.pm
/usr/share/perl5/Pod/Simple/Subclassing.pod
/usr/share/perl5/Pod/Simple/XHTML.pm
/usr/share/perl5/TAP/Formatter/Console/ParallelSession.pm
/usr/share/perl5/TAP/Formatter/Session.pm

Actual results:
you will see messages like "HTML document text"

Expected results:
you will see messages like "Perl5 module source text" or "Perl POD document text"
Comment 3 Jan Kaluža 2010-06-11 06:55:40 EDT
Created attachment 423237 [details]
Fix for regressions

Attached patch fixes regressions in file-5.0.4 which are causing described
problem. It basically removes excessive HTML/SGML "magic patterns".
Comment 6 Jan Kaluža 2010-06-11 07:44:26 EDT
Commited to CVS, fixed in version file-5.04-5.el6.

http://post-office.corp.redhat.com/archives/cvs-commits-list/2010-June/msg01612.html
Comment 8 releng-rhel@redhat.com 2010-11-10 15:23:14 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.