diff options
author | Zhixiong Chi <Zhixiong.Chi@windriver.com> | 2016-09-05 12:08:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-23 15:27:05 +0100 |
commit | 6f60d91adcd01f1338e62bc70004b6407f4ecd3f (patch) | |
tree | 9e3a084ffc1730f60e9e1b7d0d905457bf1522d5 /meta-selftest | |
parent | 642890f5d011768c76a065e1e83f2370b2141c9d (diff) | |
download | poky-6f60d91adcd01f1338e62bc70004b6407f4ecd3f.tar.gz |
rpm: ensure rpm2cpio call rpm relocation code
We need to call rpmcliInit to ensure the rpm relocation code is called.
when we allow rpm2cpio to be relocatable, The adjusted path used to find
the macro files was being built into the binary and this path was valid
for the machine it was built on and some of our other build machines,
but invalid on some others, and was not being properly overridden at
runtime.
when we export the wrsdk and source the sdk, then execute rpm2cpio xxx.rpm|cpio -t.
we will get the following error :
"rpm-5.4.14/rpmdb/dbconfig.c:493:
db3New: Assertion `dbOpts != ((void *)0) && *dbOpts != '\0'' failed.
(From OE-Core rev: aea2bf5c8101ac0bb27776a5614be345835c4a03)
(From OE-Core rev: b55e1de5b7371e06ec999fdf588052b4babbc3d2)
Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
0 files changed, 0 insertions, 0 deletions