1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

nativesdk-rpm: adjust RPM_CONFIGDIR paths dynamically

While installing/extracting SDK to a non-default dir(not /opt),
run rpm failed:
$ python3 -c "import rpm"
|error: Unable to open /opt/windriver/wrlinux-graphics/20.31/sysroots/
x86_64-wrlinuxsdk-linux/usr/lib/rpm/rpmrc for reading: No such file or
directory.

This patch adds a flexible way to configure RPM_CONFIGDIR in SDK.

(From OE-Core rev: 5f16fd0bf774314c79572daf4ba7e4a8ae209ba1)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
hongxu
2020-07-29 01:22:06 -07:00
committed by Richard Purdie
parent 4b6cafae71
commit 92d9cc304d
2 changed files with 6 additions and 0 deletions
@@ -0,0 +1 @@
export RPM_CONFIGDIR="$OECORE_NATIVE_SYSROOT/usr/lib/rpm"