Bug 11369

Summary: A non-compatible arch rpm results in a misleading message
Product: [Retired] Red Hat Linux Reporter: Mark Hatle <mhatle>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 8.0CC: mhatle
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-07 19:01:36 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 Mark Hatle 2000-05-11 17:47:42 UTC
If you try to install a PPC.rpm on an intel machine you (usually) get the
following message:

error: failed dependencies:
	ld.so.1 is needed by zsh-3.0.5-15

when the correct error should be:

package %s-%s-%s is for a different architecture


The misleading error message seems to be because the dependencies are
checked first, and then the arch, os, etc are checked next.  It would be
very helpful to check the arch/os first and then the dependencies.

Comment 1 Jeff Johnson 2000-08-07 13:38:39 UTC
This problem will be addressed after rpm-4.0 is released.

Comment 2 Alan Cox 2002-12-14 23:23:03 UTC
Confirmed bug still present in 8.0


Comment 3 Paul Nasrat 2005-06-07 19:01:36 UTC
rpm -q rpm; uname -m
rpm-4.4.1-22.i386
i686

rpm -ivh yaboot-1.3.12-9.ppc.rpm
Preparing...                ########################################### [100%]
        package yaboot-1.3.12-9 is intended for a ppc architecture