]> 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>
Tue, 29 May 2018 20:06:03 +0000 (21:06 +0100)
commit760103cdaed3e820888d8984ec0b76cfc831d534
tree9bfbf6d7cef583786325872edf5a0fbcaf662fc8
parentca3ef7d1ef9b1f0dc4d3170b1ad20d5f725872a1
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.

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>
meta/recipes-devtools/rpm/rpm_4.14.1.bb