]> code.ossystems Code Review - openembedded-core.git/commit
rpm: ensure rpm2cpio call rpm relocation code
authorZhixiong Chi <Zhixiong.Chi@windriver.com>
Mon, 5 Sep 2016 04:08:13 +0000 (12:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Sep 2016 09:23:59 +0000 (10:23 +0100)
commitaea2bf5c8101ac0bb27776a5614be345835c4a03
tree8bff7997c8f833be2e4a33e450f1b2db76cc022a
parent18ff7efef77120538372a81b2cc8e8479742b064
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.

Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm/rpm-ensure-rpm2cpio-call-rpm-relocation-code.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_5.4.16.bb