]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rpm: fix RPM_ETCCONFIGDIR value in SDK
authorChen Qi <Qi.Chen@windriver.com>
Tue, 21 Mar 2023 16:45:59 +0000 (00:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Mar 2023 23:17:24 +0000 (23:17 +0000)
commit2c6388e5bbf45a71891aa90047eef980d8a27c9d
treee048807a9950ebb4f1ad14c0075db1732aa56216
parente9f0070631b032a143b765874a228674c19d0304
rpm: fix RPM_ETCCONFIGDIR value in SDK

The RPM_ETCCONFIGDIR should be some root directory instead of the
etc directory as in patch 0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch
RPM_ETCCONFIGDIR is used to prefix /etc.

The regression was introduced in the following patch.
"""
nativesdk-rpm: export RPM_ETCCONFIGDIR and MAGIC in environment like RPM_CONFIGDIR
"""
The patch incorrectly set RPM_ETCCONFIGDIR, maybe because this variable's
name is a little misleading.

Note that this patch modifies both RPM_ETCCONFIGDIR and RPM_CONFIGDIR.
The RPM_CONFIGDIR's value happened to be correct because of the ${libdir},
not $OECORE_NATIVE_SYSROOT. In fact, due to the substitution mechanism,
the $OECORE_NATIVE_SYSROOT is empty.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm_4.18.0.bb