Bug 756 - [rpm] installation errors on powerpc
Summary: [rpm] installation errors on powerpc
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.0
Hardware: x86 ppc
: High normal
Target Milestone: 1.0 M4
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-02-22 22:33 UTC by Qing He
Modified: 2011-03-01 08:26 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Qing He 2011-02-22 22:33:36 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/

# 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


Although it states "warning", the package didn't get installed.

adding the line ppc603e-pc-linux-gnu in the /etc/rpm/platform, the problem will disappear
Comment 1 liang li 2011-02-23 20:08:33 UTC
also happended on  sato and sato-sdk images in nightly build 20110217-1 from http://autobuilder.pokylinux.org/nightly/20110217-1/qemu/qemuppc/
see below:
root@qemuppc:~# rpm -ivh man-1.6f-r0.ppc603e.rpm 
warning: package man-1.6f-r0.ppc603e is intended for a ppc603e-pc-linux-gnu platform
root@qemuppc:~# rpm -qa |grep man-1.6f
root@qemuppc:~#
Comment 2 Mark Hatle 2011-02-24 08:10:24 UTC
Can you check what the /etc/rpm/platform file says?

This file should be constructed based on the compatible CPUs mentioned by the Poky build environment.  It's possible something isn't working correctly with the construction of this file.

I'll attempt to build a qemuppc machine locally and see what I can reproduce.
Comment 3 Qing He 2011-02-24 18:03:32 UTC
(In reply to comment #2)
> Can you check what the /etc/rpm/platform file says?
> This file should be constructed based on the compatible CPUs mentioned by the
> Poky build environment.  It's possible something isn't working correctly with
> the construction of this file.
> I'll attempt to build a qemuppc machine locally and see what I can reproduce.

powerpc-unknown-linux
all-unknown-linux
any-unknown-linux
noarch-unknown-linux
powerpc-unknown-linux
ppc603e-unknown-linux
qemuppc-unknown-linux


What I did is adding "ppc603e-pc-linux-gnu" in it and installation can continue.

Btw, x86_64 images also observe this.
Comment 4 Mark Hatle 2011-03-01 08:26:19 UTC
Fixed with:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=08c8f7bb7375a6f51c12ee5e7808e38e914d5413

The problem was due to the platform file not being configured properly.