diff options
| author | wangmy <wangmy@fujitsu.com> | 2021-10-25 22:26:54 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-27 09:46:41 +0100 |
| commit | 56da9f74f7030085088f0cab53523b188b1d90c9 (patch) | |
| tree | 08bdc0d46df66bf08666034ea2c81d117589fea2 /meta/recipes-devtools/file/file_5.41.bb | |
| parent | 7f6b6dd2744206c6563319b6cb4012fae0c78cc9 (diff) | |
| download | poky-56da9f74f7030085088f0cab53523b188b1d90c9.tar.gz | |
file: upgrade 5.40 -> 5.41
(From OE-Core rev: cf501dd94e16e4dfad7df6e57ef6b5bd6ab6d7d1)
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.41.bb')
| -rw-r--r-- | meta/recipes-devtools/file/file_5.41.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/file_5.41.bb b/meta/recipes-devtools/file/file_5.41.bb new file mode 100644 index 0000000000..9cc83085d0 --- /dev/null +++ b/meta/recipes-devtools/file/file_5.41.bb | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | SUMMARY = "File classification tool" | ||
| 2 | DESCRIPTION = "File attempts to classify files depending \ | ||
| 3 | on their contents and prints a description if a match is found." | ||
| 4 | HOMEPAGE = "http://www.darwinsys.com/file/" | ||
| 5 | SECTION = "console/utils" | ||
| 6 | |||
| 7 | # two clause BSD | ||
| 8 | LICENSE = "BSD-2-Clause" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=0251eaec1188b20d9a72c502ecfdda1b" | ||
| 10 | |||
| 11 | DEPENDS = "file-replacement-native" | ||
| 12 | DEPENDS:class-native = "bzip2-replacement-native" | ||
| 13 | |||
| 14 | SRC_URI = "git://github.com/file/file.git" | ||
| 15 | |||
| 16 | SRCREV = "504206e53a89fd6eed71aeaf878aa3512418eab1" | ||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | inherit autotools update-alternatives | ||
| 20 | |||
| 21 | PACKAGECONFIG ??= "bz2 lzma zlib" | ||
| 22 | PACKAGECONFIG[bz2] = "--enable-bzlib, --disable-bzlib, bzip2" | ||
| 23 | PACKAGECONFIG[lzma] = "--enable-xzlib, --disable-xzlib, xz" | ||
| 24 | PACKAGECONFIG[zlib] = "--enable-zlib, --disable-zlib, zlib" | ||
| 25 | |||
| 26 | EXTRA_OECONF += "--disable-libseccomp" | ||
| 27 | |||
| 28 | ALTERNATIVE:${PN} = "file" | ||
| 29 | ALTERNATIVE_LINK_NAME[file] = "${bindir}/file" | ||
| 30 | |||
| 31 | EXTRA_OEMAKE:append:class-target = " -e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" | ||
| 32 | EXTRA_OEMAKE:append:class-nativesdk = " -e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" | ||
| 33 | |||
| 34 | FILES:${PN} += "${datadir}/misc/*.mgc" | ||
| 35 | |||
| 36 | do_compile:append:class-native() { | ||
| 37 | oe_runmake check | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install:append:class-native() { | ||
| 41 | create_cmdline_wrapper ${D}/${bindir}/file \ | ||
| 42 | --magic-file ${datadir}/misc/magic.mgc | ||
| 43 | } | ||
| 44 | |||
| 45 | do_install:append:class-nativesdk() { | ||
| 46 | create_cmdline_wrapper ${D}/${bindir}/file \ | ||
| 47 | --magic-file ${datadir}/misc/magic.mgc | ||
| 48 | } | ||
| 49 | |||
| 50 | BBCLASSEXTEND = "native nativesdk" | ||
| 51 | PROVIDES:append:class-native = " file-replacement-native" | ||
| 52 | # Don't use NATIVE_PACKAGE_PATH_SUFFIX as that hides libmagic from anyone who | ||
| 53 | # depends on file-replacement-native. | ||
| 54 | bindir:append:class-native = "/file-native" | ||
