diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-03-13 20:37:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-14 17:13:10 +0000 |
commit | 198512c27bc47433b0c4caaf0674bd17b2355505 (patch) | |
tree | 2dbdf55582c2a39b337f838f0b6bd50d5ff1bdbb /meta/recipes-devtools/file | |
parent | f7a18431548167e78e38112e7976691fcbf96085 (diff) | |
download | poky-198512c27bc47433b0c4caaf0674bd17b2355505.tar.gz |
file: add few more PACKAGECONFIGs to avoid autodetected deps from host
* there are few more autodetected compression libs
--disable-zlib disable zlib compression support [default=auto]
--disable-bzlib disable bz2lib compression support [default=auto]
--disable-xzlib disable liblzma/xz compression support
--disable-zstdlib disable zstdlib compression support [default=auto]
--disable-lzlib disable liblz (lzip) compression support
and lzlib was detected on my gentoo (even when it doesn't say that default
is auto detection)
I've noticed this, because I've reused sstate-cache from my gentoo build
in docker container with ubuntu-23.04 and esdk.oeSDKExtSelfTest.test_install_libraries_headers
test was now failing with:
Exception: subprocess.CalledProcessError: Command '/OE/build/poky/build/build-st-2023-03-12-esdk-patch1/esdk.oeSDKExtSelfTest.test_install_libraries_headers/build-st/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c --update -q /OE/build/poky/build/build-st-2023-03-12-esdk-patch1/esdk.oeSDKExtSelfTest.test_install_libraries_headers/build-st/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/oe-sdk-repo' returned non-zero exit status 127.
Subprocess output:
/OE/build/poky/build/build-st-2023-03-12-esdk-patch1/esdk.oeSDKExtSelfTest.test_install_libraries_headers/build-st/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c: error while loading shared libraries: liblz.so.1: cannot open shared object file: No such file or directory
and liblz.so.1 ended in createrepo_c.real because of libmagic.so from file-native-replacement.
* use PACKAGECONFIG for seccomp as well and keep it disabled as it was
explicitly disabled before (${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)}
can be added to default PACKAGECONFIG later if someone finds it useful)
(From OE-Core rev: b7c51fe740f00f60c591099fe5c2155b2126068c)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file')
-rw-r--r-- | meta/recipes-devtools/file/file_5.44.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/file/file_5.44.bb b/meta/recipes-devtools/file/file_5.44.bb index d4b49341b7..3090d346ed 100644 --- a/meta/recipes-devtools/file/file_5.44.bb +++ b/meta/recipes-devtools/file/file_5.44.bb | |||
@@ -22,8 +22,9 @@ PACKAGECONFIG ??= "bz2 lzma zlib" | |||
22 | PACKAGECONFIG[bz2] = "--enable-bzlib, --disable-bzlib, bzip2" | 22 | PACKAGECONFIG[bz2] = "--enable-bzlib, --disable-bzlib, bzip2" |
23 | PACKAGECONFIG[lzma] = "--enable-xzlib, --disable-xzlib, xz" | 23 | PACKAGECONFIG[lzma] = "--enable-xzlib, --disable-xzlib, xz" |
24 | PACKAGECONFIG[zlib] = "--enable-zlib, --disable-zlib, zlib" | 24 | PACKAGECONFIG[zlib] = "--enable-zlib, --disable-zlib, zlib" |
25 | 25 | PACKAGECONFIG[zstdlib] = "--enable-zstdlib, --disable-zstdlib, zstd" | |
26 | EXTRA_OECONF += "--disable-libseccomp" | 26 | PACKAGECONFIG[lzlib] = "--enable-lzlib, --disable-lzlib, lzip" |
27 | PACKAGECONFIG[seccomp] = "--enable-libseccomp, --disable-libseccomp, libseccomp" | ||
27 | 28 | ||
28 | ALTERNATIVE:${PN} = "file" | 29 | ALTERNATIVE:${PN} = "file" |
29 | ALTERNATIVE_LINK_NAME[file] = "${bindir}/file" | 30 | ALTERNATIVE_LINK_NAME[file] = "${bindir}/file" |