summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/file_5.45.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-08-01 15:41:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-14 12:51:21 +0100
commitc0202392844adb4411b881ed6c697e9bcf444077 (patch)
tree8c878de991e4f94584b488c0ee15edbe858eb0cf /meta/recipes-devtools/file/file_5.45.bb
parentc6bbb1c8c1a4dddd7c3d432928cf428a5b461bd2 (diff)
downloadpoky-c0202392844adb4411b881ed6c697e9bcf444077.tar.gz
file: upgrade 5.44 -> 5.45
Changelog: ========== -PR/465: psrok1: Avoid muslc asctime_r crash -add SIMH tape format support -bump the max size of the elf section notes to be read to 128K and make it configurable -PR/415: Fix decompression with program returning empty -PR/408: fix -p with seccomp -PR/412: fix MinGW compilation (From OE-Core rev: facef006da35e22394a4cbb13243769586d10f31) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file/file_5.45.bb')
-rw-r--r--meta/recipes-devtools/file/file_5.45.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/file_5.45.bb b/meta/recipes-devtools/file/file_5.45.bb
new file mode 100644
index 0000000000..a7127023cb
--- /dev/null
+++ b/meta/recipes-devtools/file/file_5.45.bb
@@ -0,0 +1,59 @@
1SUMMARY = "File classification tool"
2DESCRIPTION = "File attempts to classify files depending \
3on their contents and prints a description if a match is found."
4HOMEPAGE = "http://www.darwinsys.com/file/"
5SECTION = "console/utils"
6
7# two clause BSD
8LICENSE = "BSD-2-Clause"
9LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=0251eaec1188b20d9a72c502ecfdda1b"
10
11DEPENDS = "file-replacement-native"
12DEPENDS:class-native = "bzip2-replacement-native"
13
14SRC_URI = "git://github.com/file/file.git;branch=master;protocol=https"
15
16SRCREV = "4cbd5c8f0851201d203755b76cb66ba991ffd8be"
17S = "${WORKDIR}/git"
18
19inherit autotools update-alternatives
20
21PACKAGECONFIG ??= "bz2 lzma zlib"
22PACKAGECONFIG[bz2] = "--enable-bzlib, --disable-bzlib, bzip2"
23PACKAGECONFIG[lzma] = "--enable-xzlib, --disable-xzlib, xz"
24PACKAGECONFIG[zlib] = "--enable-zlib, --disable-zlib, zlib"
25PACKAGECONFIG[zstdlib] = "--enable-zstdlib, --disable-zstdlib, zstd"
26PACKAGECONFIG[lzlib] = "--enable-lzlib, --disable-lzlib, lzip"
27PACKAGECONFIG[seccomp] = "--enable-libseccomp, --disable-libseccomp, libseccomp"
28
29ALTERNATIVE:${PN} = "file"
30ALTERNATIVE_LINK_NAME[file] = "${bindir}/file"
31
32EXTRA_OEMAKE:append:class-target = " -e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file"
33EXTRA_OEMAKE:append:class-nativesdk = " -e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file"
34
35FILES:${PN} += "${datadir}/misc/*.mgc"
36FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/file.sh"
37
38do_compile:append:class-native() {
39 oe_runmake check
40}
41
42do_install:append:class-native() {
43 create_cmdline_wrapper ${D}/${bindir}/file \
44 --magic-file ${datadir}/misc/magic.mgc
45}
46
47do_install:append:class-nativesdk() {
48 create_wrapper ${D}/${bindir}/file MAGIC=${datadir}/misc/magic.mgc
49 mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d
50 cat <<- EOF > ${D}${SDKPATHNATIVE}/environment-setup.d/file.sh
51 export MAGIC="${datadir}/misc/magic.mgc"
52 EOF
53}
54
55BBCLASSEXTEND = "native nativesdk"
56PROVIDES:append:class-native = " file-replacement-native"
57# Don't use NATIVE_PACKAGE_PATH_SUFFIX as that hides libmagic from anyone who
58# depends on file-replacement-native.
59bindir:append:class-native = "/file-native"