summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/file_5.38.bb
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2020-05-11 21:28:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-12 15:20:43 +0100
commit17b80b70baadde12044f7a784c5ba85c435c0cfb (patch)
treeb2d93a52f6cb45b4548318c21297e8ae185ef1a4 /meta/recipes-devtools/file/file_5.38.bb
parent73b0154c973e531b8717d1bdc1bbf96f25c27f8b (diff)
downloadpoky-17b80b70baadde12044f7a784c5ba85c435c0cfb.tar.gz
file: add PACKAGECONFIG for auto options
A few options of file configure are set to auto, which can lead to unpredictable effects when something in the sysroot does provide things that satisfy the autotools checks. In the worst case this will lead to package-qa failures as libraries are not set in RDEPENDS but configured for the tool. To mitigate changes of accidental configure set explicit options via newly introduced PACKAGECONFIG variables for bzip, lzma and zlib support, where the default is just zlib, as it was before (From OE-Core rev: a2236917395239eba7a8358ca4de61fd0d25b27f) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file/file_5.38.bb')
-rw-r--r--meta/recipes-devtools/file/file_5.38.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/file/file_5.38.bb b/meta/recipes-devtools/file/file_5.38.bb
index b8f09107e8..f5ad568936 100644
--- a/meta/recipes-devtools/file/file_5.38.bb
+++ b/meta/recipes-devtools/file/file_5.38.bb
@@ -8,8 +8,8 @@ SECTION = "console/utils"
8LICENSE = "BSD-2-Clause" 8LICENSE = "BSD-2-Clause"
9LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=0251eaec1188b20d9a72c502ecfdda1b" 9LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=0251eaec1188b20d9a72c502ecfdda1b"
10 10
11DEPENDS = "zlib file-replacement-native" 11DEPENDS = "file-replacement-native"
12DEPENDS_class-native = "zlib-native" 12DEPENDS_class-native = ""
13 13
14SRC_URI = "git://github.com/file/file.git" 14SRC_URI = "git://github.com/file/file.git"
15 15
@@ -18,6 +18,12 @@ S = "${WORKDIR}/git"
18 18
19inherit autotools update-alternatives 19inherit autotools update-alternatives
20 20
21PACKAGECONFIG ??= "zlib"
22PACKAGECONFIG_class-native ??= "zlib"
23PACKAGECONFIG[bz2] = "--enable-bzlib, --disable-bzlib, bzip2"
24PACKAGECONFIG[lzma] = "--enable-xzlib, --disable-xzlib, xz"
25PACKAGECONFIG[zlib] = "--enable-zlib, --disable-zlib, zlib"
26
21EXTRA_OECONF += "--disable-libseccomp" 27EXTRA_OECONF += "--disable-libseccomp"
22 28
23ALTERNATIVE_${PN} = "file" 29ALTERNATIVE_${PN} = "file"