Bug 757

Summary: [rpm] platform mismatch reported as warning instead of error
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Qing He <qing.he>
Component: coreAssignee: Mark Hatle <mark.hatle>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: Low CC: jiajun.xu, liang.li2, meta.mr.watcher, meta.watcher, sgw
Version: 1.0   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: verified
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Qing He 2011-02-22 22:40:33 UTC
using sato images from 
http://autobuilder.pokylinux.org/nightly/20110212-1/qemu/qemuppc/

and rpm files from 
http://autobuilder.pokylinux.org/nightly/20110212-1/rpm/ppc603e/

1)
# rpm -ivh rpm-dbg-5.4.0-r11.ppc603e.rpm
warning: package rpm-dbg-5.4.0-r11.ppc603e is intended for a ppc603e-pc-linux-gnu platform

where it in fact installs no packages, either it should install the package or it should return an error

2)
# rpm -i rpm-dbg-5.4.0-r11.ppc603e.rpm

without -v option, no error or warning is printed, but the package is not installed

3)
1)
# rpm -ivh --force rpm-dbg-5.4.0-r11.ppc603e.rpm
warning: package rpm-dbg-5.4.0-r11.ppc603e is intended for a ppc603e-pc-linux-gnu platform

--force doesn't overcome the warning
Comment 1 liang li 2011-02-23 20:52:59 UTC
also happended on  sato and sato-sdk images in nightly build 20110217-1 from
http://autobuilder.pokylinux.org/nightly/20110217-1/qemu/qemuppc/
Comment 2 Mark Hatle 2011-02-24 08:11:58 UTC
May turn out to be a duplicate of 756...
Comment 3 Qing He 2011-02-24 18:01:27 UTC
(In reply to comment #2)
> May turn out to be a duplicate of 756...

The bug is reported against the error message, and '-v' option

a warning is quite misleading at this point, and is omitting '-v' there is nothing reported but silent failure.
Comment 4 Mark Hatle 2011-03-01 08:21:37 UTC
I am lowering the importance of this issue.  The symptom of a failure -- without showing an error has been fixed by a correction to the rpm "platform" configuration file.  But this bug, as reported, still exists.
Comment 5 Mark Hatle 2011-03-16 19:04:02 UTC
Can we please re-verify this issue.

I think it's been resolved now.
Comment 6 Saul Wold 2012-05-01 16:31:49 UTC
We should test this please.
Comment 7 liang li 2012-05-02 03:05:38 UTC
the error not met on qemuppc sato,sato-sdk image from nightly build 20120423-1(1.2 M4 RC5):
http://autobuilder.pokylinux.org/nightly/20120423-1/machines/qemu/qemuppc/

and rpm package "rpm-dbg-5.4.0-r36.ppc603e.rpm" from: 
http://autobuilder.pokylinux.org/nightly/20120423-1/rpm/ppc603e/

when use following command "rpm -ivh", "rpm -i","rpm -ivh --force" to install the rpm-dbg package on qemuppc sato,sato-sdk image, the package is installed and no warning or error messages met from the output of the commands.

git info : 35196ff703726addf7f4051ee09d70bf9ee0c5d0
git branch : poky/denzil
Comment 8 Mark Hatle 2012-05-02 16:24:15 UTC
Based on the last comment it appears this has infact been corrected.
Comment 9 liang li 2012-05-03 01:17:08 UTC
verified on nightly build 20120423-1:(1.2 M4 RC5):
http://autobuilder.pokylinux.org/nightly/20120423-1/machines/qemu/qemuppc/
git info : 35196ff703726addf7f4051ee09d70bf9ee0c5d0
git branch : poky/denzil