mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
diffoscope: Ensure the correct magic file is used
diffoscope uses libmagic and it was searching in file-native's sysroot for the magic file. Wrap it and set MAGIC in the environment to ensure the file is found correctly and avoid build failures. (From OE-Core rev: 3488a8316891829892bd41a1caacaeeef73da7ef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -14,4 +14,8 @@ RDEPENDS_${PN} += "binutils vim squashfs-tools python3-libarchive-c python3-magi
|
||||
# Dependencies don't build for musl
|
||||
COMPATIBLE_HOST_libc-musl = 'null'
|
||||
|
||||
do_install_append_class-native() {
|
||||
create_wrapper ${D}${bindir}/diffoscope MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
Reference in New Issue
Block a user