]> code.ossystems Code Review - openembedded-core.git/commit
nativesdk-rpm: Add wrappers for nativesdk support
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 25 May 2018 02:48:29 +0000 (10:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Jul 2018 09:40:32 +0000 (10:40 +0100)
commitbca05415510ebd847da0035536e32ab5fca1c3e2
tree65c5203a6cc3c89ed9d234415e7659def33674aa
parent2f3faa2d80a2d848fe18fc375628b69a1ca4ee52
nativesdk-rpm: Add wrappers for nativesdk support

When installing the SDK to a non-default path, running "rpm --showrc" from the
sdk will produce the following error:
error: Unable to open /opt/windriver/wrlinux-small/10.17.41/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/rpm/rpmrc for reading: No such file or directory.

Fix this by adding wrappers that dynamically export the RPM_CONFIGDIR,
RPM_ETCCONFIGDIR and MAGIC environment variables, pointing to the proper
sdk locations.

(From OE-Core rev: 760103cdaed3e820888d8984ec0b76cfc831d534)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/rpm/rpm_4.14.1.bb