| Summary: | rpm "unknown option" error while do_rootfs if build from sstate | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Dongxiao Xu <dongxiao.xu> |
| Component: | core | Assignee: | Dongxiao Xu <dongxiao.xu> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | High | CC: | edwin.zhai, kevin.tian, mark.hatle, meta.mr.watcher, meta.watcher, sgw |
| Version: | unspecified | ||
| Target Milestone: | 1.0 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Dongxiao Xu
2011-01-20 20:48:38 UTC
I just found that there is a runtime option "--rpmpopt" that can change the rpmpopt path, I will commit a patch to create a wrapper for rpm native binary. The version of RPM we built can be overridden in an easy way. We need to set the environment values of: RPM_USRLIBRPM RPM_ETCRPM RPM_LOCALEDIR There is an example runtime relocation wrapper included in the RPM sources: scripts/rt-reloc-wrapper.sh: #! /bin/sh # Identify run path, and forward to ../lib_or_lib64/$0 PROGNAME=$(basename $0) DIR=$(cd $(dirname $0) ; pwd) export LD_LIBRARY_PATH=$DIR/../libMark64:$DIR/../lib:$DIR/../lib64 export RPM_USRLIBRPM=$DIR/../libMark64/rpm export RPM_ETCRPM=$DIR/../etc/rpm export RPM_LOCALEDIR=$DIR/../share/locale exec $DIR/../libMark64/rpm/$PROGNAME "$@" where you see "libMark64" is replaced by either "lib" or "lib64"... |