Bug 751032 - file doesn't properly detect RPM architectures
Summary: file doesn't properly detect RPM architectures
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file
Version: 5.7
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-03 10:02 UTC by Karel Srot
Modified: 2012-10-29 13:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Magic patterns for RPM didn't contain detection for MiNT, S/390, S/390x, PowerPC64, SuperH and Xtensa architectures. Consequence: RPM packages for those architectures were not detected by File and was detected as "bin". Fix: Detection for mentioned architectures have been added into RPM magic pattern. Result: File detects mentioned architectures properly now.
Clone Of: 676045
Environment:
Last Closed: 2012-02-21 05:46:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0201 0 normal SHIPPED_LIVE file bug fix update 2012-02-20 14:53:52 UTC

Description Karel Srot 2011-11-03 10:02:10 UTC
Some issues also in RHEL5:

[root@rhel57 ~]# file bz676045/*
bz676045/dummy-1.0-1.i386.rpm:   RPM v3 bin i386 dummy-1.0-1
bz676045/dummy-1.0-1.ia64.rpm:   RPM v3 bin IA64 dummy-1.0-1
bz676045/dummy-1.0-1.noarch.rpm: RPM v3 bin dummy-1.0-1
bz676045/dummy-1.0-1.ppc64.rpm:  RPM v3 bin dummy-1.0-1
bz676045/dummy-1.0-1.ppc.rpm:    RPM v3 bin PowerPC dummy-1.0-1
bz676045/dummy-1.0-1.s390.rpm:   RPM v3 bin dummy-1.0-1
bz676045/dummy-1.0-1.s390x.rpm:  RPM v3 bin dummy-1.0-1
bz676045/dummy-1.0-1.x86_64.rpm: RPM v3 bin i386 dummy-1.0-1
bz676045/dummy.spec:             ASCII text
[root@rhel57 ~]# rpm -q file
file-4.17-15.el5_3.1


+++ This bug was initially created as a clone of Bug #676045 +++

+++ This bug was initially created as a clone of Bug #676041 +++

Description of problem:
file doesn't detect certain architectures of RPM files, e.g. ppc64 or s390x.

Version-Release number of selected component (if applicable):
All.

How reproducible:
Always.

Steps to Reproduce:
1. file foo-1.0-1.ppc64.rpm
  
Actual results:
RPM v3.0 bin

Expected results:
RPM v3.0 bin PowerPC 64
(or similar)

Additional info:
File doesn't recognize RPM arches for ppc64, s390, s390x and possibly others.

Comment 5 Jan Kaluža 2012-01-05 10:47:04 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: Magic patterns for RPM didn't contain detection for MiNT, S/390, S/390x, PowerPC64, SuperH and Xtensa architectures.

Consequence: RPM packages for those architectures were not detected by File and was detected as "bin".

Fix: Detection for mentioned architectures have been added into RPM magic pattern.

Result: File detects mentioned architectures properly now.

Comment 6 errata-xmlrpc 2012-02-21 05:46:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0201.html


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