mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
rpm: do not export MAGIC in SDK
This MAGIC variable is used by libmagic (file), and should be exported by the file recipe. As the rpm recipe has 'file' in its DEPENDS, its sub-packages which links to libmagic will be automatically added the 'file' runtime dependency. More specifically, it's the rpm-build package. So in case components in nativesdk-rpm-build package uses libmagic, the nativesdk-file package will be installed and the MAGIC var will be exported. (From OE-Core rev: 6e2147ab1d0f3aad2dfe8180a3896c9c9bcfdac8) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -123,7 +123,6 @@ do_install:append:class-nativesdk() {
|
||||
cat <<- EOF > ${D}${SDKPATHNATIVE}/environment-setup.d/rpm.sh
|
||||
export RPM_CONFIGDIR="$OECORE_NATIVE_SYSROOT${libdir}/rpm"
|
||||
export RPM_ETCCONFIGDIR="$OECORE_NATIVE_SYSROOT${sysconfdir}"
|
||||
export MAGIC="$OECORE_NATIVE_SYSROOT${datadir}/misc/magic.mgc"
|
||||
export RPM_NO_CHROOT_FOR_SCRIPTS=1
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user