diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-devtools/file | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file')
3 files changed, 0 insertions, 187 deletions
diff --git a/meta/recipes-devtools/file/file_5.46.bb b/meta/recipes-devtools/file/file_5.46.bb deleted file mode 100644 index c035e0b11d..0000000000 --- a/meta/recipes-devtools/file/file_5.46.bb +++ /dev/null | |||
| @@ -1,61 +0,0 @@ | |||
| 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;branch=master;protocol=https \ | ||
| 15 | file://0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch \ | ||
| 16 | file://0001-PR-579-net147-Fix-stack-overrun.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRCREV = "c5aa4f7f8d5063fb3c37ad57bf54bb67ec641a09" | ||
| 20 | |||
| 21 | inherit autotools update-alternatives | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "bz2 lzma zlib zstdlib lzlib" | ||
| 24 | PACKAGECONFIG[bz2] = "--enable-bzlib, --disable-bzlib, bzip2" | ||
| 25 | PACKAGECONFIG[lzma] = "--enable-xzlib, --disable-xzlib, xz" | ||
| 26 | PACKAGECONFIG[zlib] = "--enable-zlib, --disable-zlib, zlib" | ||
| 27 | PACKAGECONFIG[zstdlib] = "--enable-zstdlib, --disable-zstdlib, zstd" | ||
| 28 | PACKAGECONFIG[lzlib] = "--enable-lzlib, --disable-lzlib, lzlib" | ||
| 29 | PACKAGECONFIG[seccomp] = "--enable-libseccomp, --disable-libseccomp, libseccomp" | ||
| 30 | |||
| 31 | ALTERNATIVE:${PN} = "file" | ||
| 32 | ALTERNATIVE_LINK_NAME[file] = "${bindir}/file" | ||
| 33 | |||
| 34 | EXTRA_OEMAKE:append:class-target = " -e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" | ||
| 35 | EXTRA_OEMAKE:append:class-nativesdk = " -e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" | ||
| 36 | |||
| 37 | FILES:${PN} += "${datadir}/misc/*.mgc" | ||
| 38 | FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/file.sh" | ||
| 39 | |||
| 40 | do_compile:append:class-native() { | ||
| 41 | oe_runmake check | ||
| 42 | } | ||
| 43 | |||
| 44 | do_install:append:class-native() { | ||
| 45 | create_cmdline_wrapper ${D}/${bindir}/file \ | ||
| 46 | --magic-file ${datadir}/misc/magic.mgc | ||
| 47 | } | ||
| 48 | |||
| 49 | do_install:append:class-nativesdk() { | ||
| 50 | create_wrapper ${D}/${bindir}/file MAGIC=${datadir}/misc/magic.mgc | ||
| 51 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
| 52 | cat <<- EOF > ${D}${SDKPATHNATIVE}/environment-setup.d/file.sh | ||
| 53 | export MAGIC="${datadir}/misc/magic.mgc" | ||
| 54 | EOF | ||
| 55 | } | ||
| 56 | |||
| 57 | BBCLASSEXTEND = "native nativesdk" | ||
| 58 | PROVIDES:append:class-native = " file-replacement-native" | ||
| 59 | # Don't use NATIVE_PACKAGE_PATH_SUFFIX as that hides libmagic from anyone who | ||
| 60 | # depends on file-replacement-native. | ||
| 61 | bindir:append:class-native = "/file-native" | ||
diff --git a/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch b/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch deleted file mode 100644 index 57725b1c5f..0000000000 --- a/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From fc6b51aa67a11806c95363e1bec925d15b3a98a5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Christos Zoulas <christos@zoulas.com> | ||
| 3 | Date: Thu, 5 Dec 2024 18:35:40 +0000 | ||
| 4 | Subject: [PATCH] PR/579: net147: Fix stack overrun. | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://github.com/file/file/commit/b3384a1fbfa1fee99986e5750ab8e700de4f24ad] | ||
| 7 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 8 | --- | ||
| 9 | src/readelf.c | 4 ++-- | ||
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/src/readelf.c b/src/readelf.c | ||
| 13 | index fe4cf541..d209d86d 100644 | ||
| 14 | --- a/src/readelf.c | ||
| 15 | +++ b/src/readelf.c | ||
| 16 | @@ -27,7 +27,7 @@ | ||
| 17 | #include "file.h" | ||
| 18 | |||
| 19 | #ifndef lint | ||
| 20 | -FILE_RCSID("@(#)$File: readelf.c,v 1.196 2024/11/11 15:49:11 christos Exp $") | ||
| 21 | +FILE_RCSID("@(#)$File: readelf.c,v 1.197 2024/12/05 18:35:40 christos Exp $") | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #ifdef BUILTIN_ELF | ||
| 25 | @@ -1726,7 +1726,7 @@ dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off, | ||
| 26 | Elf64_Phdr ph64; | ||
| 27 | const char *linking_style; | ||
| 28 | unsigned char nbuf[NBUFSIZE]; | ||
| 29 | - char interp[128]; | ||
| 30 | + char interp[NBUFSIZE]; | ||
| 31 | ssize_t bufsize; | ||
| 32 | size_t offset, align, need = 0; | ||
| 33 | int pie = 0, dynamic = 0; | ||
diff --git a/meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch b/meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch deleted file mode 100644 index 7601e6dead..0000000000 --- a/meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch +++ /dev/null | |||
| @@ -1,93 +0,0 @@ | |||
| 1 | From b310a0c2d3e4a1c12d579ad5c0266f1092a91340 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Christos Zoulas <christos@zoulas.com> | ||
| 3 | Date: Wed, 27 Nov 2024 15:37:46 +0000 | ||
| 4 | Subject: [PATCH] Use +4 in default reset previous negative offset in magic in | ||
| 5 | zip entry | ||
| 6 | |||
| 7 | Upstream-Status: Backport [https://github.com/file/file/commit/b310a0c2d3e4a1c12d579ad5c0266f1092a91340] | ||
| 8 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 9 | --- | ||
| 10 | magic/Magdir/archive | 50 +++++++++++++++++++++++--------------------- | ||
| 11 | 1 file changed, 26 insertions(+), 24 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/magic/Magdir/archive b/magic/Magdir/archive | ||
| 14 | index c8f440dc..b920f993 100644 | ||
| 15 | --- a/magic/Magdir/archive | ||
| 16 | +++ b/magic/Magdir/archive | ||
| 17 | @@ -1,5 +1,5 @@ | ||
| 18 | #------------------------------------------------------------------------------ | ||
| 19 | -# $File: archive,v 1.206 2024/11/26 19:39:14 christos Exp $ | ||
| 20 | +# $File: archive,v 1.207 2024/11/27 15:37:46 christos Exp $ | ||
| 21 | # archive: file(1) magic for archive formats (see also "msdos" for self- | ||
| 22 | # extracting compressed archives) | ||
| 23 | # | ||
| 24 | @@ -1875,15 +1875,6 @@ | ||
| 25 | >>>>>-22 string PK\005\006 | ||
| 26 | >>>>>>(-6.l-16) string APK\x20Sig\x20Block\x2042 \b, with APK Signing Block | ||
| 27 | |||
| 28 | -# Keyman Compiled Package File (keyman.com) | ||
| 29 | -# https://help.keyman.com/developer/current-version/reference/file-types/kmp | ||
| 30 | -# Find start of central directory | ||
| 31 | ->>>(-6.l) string PK\001\002 | ||
| 32 | -# Scan central directory for string 'kmp.json', will suffice for a | ||
| 33 | -# package containing about 150 files | ||
| 34 | ->>>>(-6.l) search/9000 kmp.json Keyman Compiled Package File | ||
| 35 | -!:mime application/vnd.keyman.kmp+zip | ||
| 36 | -!:ext kmp | ||
| 37 | |||
| 38 | # Specialised zip formats which start with a member named 'mimetype' | ||
| 39 | # (stored uncompressed, with no 'extra field') containing the file's MIME type. | ||
| 40 | @@ -2123,25 +2114,36 @@ | ||
| 41 | #>30 search/100/b application/epub+zip EPUB document | ||
| 42 | #!:mime application/epub+zip | ||
| 43 | |||
| 44 | -# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu) | ||
| 45 | -# Next line excludes specialized formats: | ||
| 46 | +# APK Signing Block | ||
| 47 | >(26.s+30) leshort !0xcafe | ||
| 48 | >>30 search/100/b !application/epub+zip | ||
| 49 | ->>>26 string !\x8\0\0\0mimetype Zip archive data | ||
| 50 | -!:mime application/zip | ||
| 51 | ->>>>4 beshort x \b, at least | ||
| 52 | ->>>>4 use zipversion | ||
| 53 | ->>>>4 beshort x to extract | ||
| 54 | ->>>>8 beshort x \b, compression method= | ||
| 55 | ->>>>8 use zipcompression | ||
| 56 | ->>>>0x161 string WINZIP \b, WinZIP self-extracting | ||
| 57 | -# APK Signing Block | ||
| 58 | ->0 default x | ||
| 59 | ->>-22 string PK\005\006 | ||
| 60 | ->>>(-6.l-16) string APK\x20Sig\x20Block\x2042 Android package (APK), with APK Signing Block | ||
| 61 | +>>>26 string !\x8\0\0\0mimetype | ||
| 62 | +>>>>-22 string PK\005\006 | ||
| 63 | +>>>>>(-6.l-16) string APK\x20Sig\x20Block\x2042 Android package (APK), with APK Signing Block | ||
| 64 | !:mime application/vnd.android.package-archive | ||
| 65 | !:ext apk | ||
| 66 | |||
| 67 | +# Keyman Compiled Package File (keyman.com) | ||
| 68 | +# https://help.keyman.com/developer/current-version/reference/file-types/kmp | ||
| 69 | +# Find start of central directory | ||
| 70 | +>>>>>(-6.l) string PK\001\002 | ||
| 71 | +# Scan central directory for string 'kmp.json', will suffice for a | ||
| 72 | +# package containing about 150 files | ||
| 73 | +>>>>>>(-6.l) search/9000 kmp.json Keyman Compiled Package File | ||
| 74 | +!:mime application/vnd.keyman.kmp+zip | ||
| 75 | +!:ext kmp | ||
| 76 | + | ||
| 77 | +# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu) | ||
| 78 | +# Next line excludes specialized formats: | ||
| 79 | +>>>>+4 default x | ||
| 80 | +>>>>>4 beshort x Zip archive data, at least | ||
| 81 | +!:mime application/zip | ||
| 82 | +>>>>>4 use zipversion | ||
| 83 | +>>>>>4 beshort x to extract | ||
| 84 | +>>>>>8 beshort x \b, compression method= | ||
| 85 | +>>>>>8 use zipcompression | ||
| 86 | +>>>>>0x161 string WINZIP \b, WinZIP self-extracting | ||
| 87 | + | ||
| 88 | # Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu) | ||
| 89 | 0 string PK\005\006 Zip archive data (empty) | ||
| 90 | !:mime application/zip | ||
| 91 | -- | ||
| 92 | 2.39.5 | ||
| 93 | |||
