Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 84055 - Should search the /etc/rpm/platform file under the root-dir
Should search the /etc/rpm/platform file under the root-dir
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2003-02-11 12:08 EST by Enrico Scholz
Modified: 2007-04-18 12:51 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-13 11:04:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2003-02-11 12:08:19 EST
Description of problem:

When using the '--root=...' option, rpm reads the platform-information from the
toplevel /etc/rpm/platform file. This is bad and forces the usage of the
'--ignorearch' switch when installing cross-arch packages.

It would be better when rpm searches the platform-file under the given

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


Steps to Reproduce:
1. D=/foobar
2. mkdir -p $D/var/lib/rpm $D/etc/rpm
3. echo 'arm-unknown-linux' >$D/etc/rpm/platform
4. rpm --root=$D --initdb
5. rpmbuild --rebuild --target=arm foobar.src.rpm
6. rpm --root=$D -U foobar.arm.rpm
Actual results:

rpm tells 'package foobar.arm.rpm is intended for a arm architecture'

Expected results:

rpm installs the package
Comment 1 Jeff Johnson 2003-02-13 11:04:29 EST
rpm determines arch very, very early so that per-arch
configuration can be determined. There's no easy way to
do this after the chrott(2) in order to support cross-platform

    --ignorearch  don't verify package architecture

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