Bug 751032

Summary: file doesn't properly detect RPM architectures
Product: Red Hat Enterprise Linux 5 Reporter: Karel Srot <ksrot>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 5.7CC: ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: 676045 Environment:
Last Closed: 2012-02-21 05:46:37 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 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