]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
rpm: write macros under libdir
authorChen Qi <Qi.Chen@windriver.com>
Mon, 19 Jun 2023 07:41:10 +0000 (00:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Jun 2023 22:21:18 +0000 (23:21 +0100)
commit5fde0eadf16d34d88a599009013913fe55d89283
treed2e2def3ed2f428e523d6d98e066063f4fb3e8f5
parent74b78d160a985e98f869c777847ab798e419dd2d
rpm: write macros under libdir

If we create a macros file under etc/, the populate_sdk task would
fail if 'package-management' is in SDKIMAGE_FEATURES and nativesdk-rpm-build
is installed.. The error message is like below:

  unable to place /.../sdk/image/etc/rpm in final SDK location

This is because it's trying to move the etc/rpm dictory into the
host sysroot but the <host_sysroot>/etc/rpm has already exists.

To solve this problem, avoid creating /etc/rpm/macros for nativesdk-rpm-build,
use ${libdir}/macros instead. In this way, the macros file is hold
in nativesdk-rpm. As nativesdk-rpm-build depends on nativesdk-rpm,
the 'rpmbuild' command inside SDK can still correctly find find-debuginfo
binary.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm_4.18.1.bb