diff options
author | Lei Maohui <leimaohui@fujitsu.com> | 2024-02-28 15:41:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-29 10:26:13 +0000 |
commit | 930450926cad6459950a004f2aad31adea8bd97e (patch) | |
tree | e269292539bcd73fc4ac73e1bf07685636958613 /meta/recipes-devtools/rpm | |
parent | 90893b5e83c01b3d952d7117181ccd3a0448112f (diff) | |
download | poky-930450926cad6459950a004f2aad31adea8bd97e.tar.gz |
rpm: Fix the following error when run nativesdk-rpm in nativesdk environment.
package busybox-inittab-1.36.1-r0.ubinux_x86_64 is intended for a different architecture
package busybox-udhcpc-1.36.1-r0.core2_64 is intended for a different architecture
package ldconfig-2.39+git0+312e159626-r0.core2_64 is intended for a different architecture
......
CMAKE_INSTALL_SYSCONFDIR is necessary. If not set
CMAKE_INSTALL_SYSCONFDIR, nativesdk-rpm will use the default setting:
/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-ubinuxsdk-linux/etc to find rpmrc file.
(From OE-Core rev: c9cb2eb2e662e19d68d27f2eec791986715c3abe)
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_4.19.1.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_4.19.1.bb b/meta/recipes-devtools/rpm/rpm_4.19.1.bb index 1f8611a29c..a495f7ced2 100644 --- a/meta/recipes-devtools/rpm/rpm_4.19.1.bb +++ b/meta/recipes-devtools/rpm/rpm_4.19.1.bb | |||
@@ -57,7 +57,7 @@ EXTRA_OECMAKE:append:libc-musl = " -DENABLE_NLS=OFF -DENABLE_OPENMP=OFF" | |||
57 | # --sysconfdir prevents rpm from attempting to access machine-specific configuration in sysroot/etc; we need to have it in rootfs | 57 | # --sysconfdir prevents rpm from attempting to access machine-specific configuration in sysroot/etc; we need to have it in rootfs |
58 | # --localstatedir prevents rpm from writing its database to native sysroot when building images | 58 | # --localstatedir prevents rpm from writing its database to native sysroot when building images |
59 | EXTRA_OECMAKE:append:class-native = " -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var" | 59 | EXTRA_OECMAKE:append:class-native = " -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var" |
60 | EXTRA_OECMAKE:append:class-nativesdk = " -DCMAKE_INSTALL_FULL_SYSCONFDIR=/etc" | 60 | EXTRA_OECMAKE:append:class-nativesdk = " -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_FULL_SYSCONFDIR=/etc" |
61 | 61 | ||
62 | inherit cmake gettext pkgconfig python3targetconfig | 62 | inherit cmake gettext pkgconfig python3targetconfig |
63 | OECMAKE_GENERATOR = "Unix Makefiles" | 63 | OECMAKE_GENERATOR = "Unix Makefiles" |