summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file
Commit message (Collapse)AuthorAgeFilesLines
* file: export MAGIC in SDKChen Qi2023-01-181-2/+5
| | | | | | | | | | | | | | Previously, a wrapper is used for file, which adds '--magic-file' option to it. But other components might use libmagic and in such case, if there's no MAGIC environent variable set correctly, things do not work. For example, rpmbuild makes use of libmagic and it requries MAGIC to be set correctly. (From OE-Core rev: 47db876d09d9a4394048579c21d0b394450ce681) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.43 -> 5.44Alexander Kanavin2023-01-061-1/+1
| | | | | | | | (From OE-Core rev: 6e93f815e9439ad351c3b9a382accf7b3ba9a6e2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.42 -> 5.43Richard Purdie2022-09-171-1/+1
| | | | | | (From OE-Core rev: f8292f559349381d1781df8b1c6ce6b60856785f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.41 -> 5.42wangmy2022-06-171-1/+1
| | | | | | | | (From OE-Core rev: bafe556590cccae87a0259e7bb6daf527581d6ad) 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>
* recipes: Update github.com urls to use httpsRichard Purdie2021-11-031-1/+1
| | | | | | | | | | | | | | Github has announced there will be no more git:// fetching from their servers: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git and they're about to start having brownout periods to encourage people to update. This runs the conversion script over OE-Core to update our urls to use https instead of git. (From OE-Core rev: b37b61e9a1e448a34957db9ae39285d21352552e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Add explict branch to git SRC_URIsRichard Purdie2021-10-301-1/+1
| | | | | | | | | | | | | There is uncertainty about the default branch name in git going forward. To try and cover the different possible outcomes, add branch names to all git:// and gitsm:// SRC_URI entries. This update was made with the script added to contrib in this patch which aims to help others convert other layers. (From OE-Core rev: b51c405faf6f8c0365f7533bfaf470d79152a463) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.40 -> 5.41wangmy2021-10-271-1/+1
| | | | | | | | (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>
* Convert to new override syntaxRichard Purdie2021-08-021-10/+10
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.39 -> 5.40wangmy2021-04-182-30/+2
| | | | | | | | | | 0001-src-compress.c-correct-header-define-for-xz-lzma.patch removed since it is included in 5.40 (From OE-Core rev: ae73c5fa666c0e0a7d1d7a04acd6246542b744aa) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: enable all built-in compression checkersAlexander Kanavin2020-10-302-2/+30
| | | | | | | | | | | This allows re-enabling parallel file classification in rpm in particular, as otherwise libmagic calls out to external executables, which isn't implemented in a thread-safe way. (From OE-Core rev: 0515567a846adc5302384cb0a6bfcdb6dd1d8431) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.38 -> 5.39Andreas Müller2020-06-241-1/+1
| | | | | | | (From OE-Core rev: a9fb039852354ada27c95401bbe9c29d8f9b7f38) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: add bzip2-replacement-native to DEPENDS to fix sstate issueJan-Simon Moeller2020-05-221-1/+1
| | | | | | | | | | | | | | | | | | | | file-native when built on a Debian 10 host will embed a dependency to 'libbz2.so.1.0' (instead of 'libbz2.so.1'). This can cause issues when sharing the sstate between hosts e.g.: recipe-sysroot-native/usr/lib/rpm/rpmdeps: error while loading shared libraries: libbz2.so.1.0: \ cannot open shared object file: No such file or directory To avoid this situation, let's add the bzip2-replacement-native to the file recipe's DEPENDS_class-native . Details in https://bugzilla.yoctoproject.org/show_bug.cgi?id=13915 . (From OE-Core rev: 4a996574464028bd5d57b90920d0887d1a81e9e9) Signed-off-by: Jan-Simon Moeller <dl9pf@gmx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: Remove unneccessary override of PACKAGECONFIG for nativePeter Kjellerstedt2020-05-141-1/+0
| | | | | | | | | | There is no reason to set PACKAGECONFIG_class-native to the same value as the default PACKAGECONFIG. (From OE-Core rev: 276a21cbbfc929f718fd758b64e3e0567534fd41) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: add PACKAGECONFIG for auto optionsKonrad Weihmann2020-05-121-2/+8
| | | | | | | | | | | | | | | | | 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>
* file/elfutils: Adjust some appends to guarantee leading spacerpjday@crashcourse.ca2020-03-301-2/+2
| | | | | | | | | Add missing leading spaces or replace += usage with a leading space. (From OE-Core rev: 91f464177ed7ed59a4405a39a366b387338ae923) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.37 -> 5.38Wang Mingyu2020-01-272-58/+2
| | | | | | | | | | | CVE-2019-18218.patch Removed since it is included in 5.38. (From OE-Core rev: 2ac297f8906354bf3a1578b5e78df040b4712b81) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: run test suite when building nativelyRoss Burton2019-11-051-0/+4
| | | | | | | | | | | As we apply the same patches to native and target builds of file, we can verify that the patches are not breaking by executing the test suite during the build of file-native. (From OE-Core rev: 03591b9945bf04baca794e221b93ac66568b0609) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: remove redundant upstream check workaroundRoss Burton2019-11-051-3/+0
| | | | | | | | | This tag has been removed, so we don't need to work around it anymore. (From OE-Core rev: 1ab9fc04d6666de0c5c176f546f64c11dffe2106) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: fix CVE-2019-18218Ross Burton2019-11-052-1/+57
| | | | | | | (From OE-Core rev: 626f518df57868250ea467532b8cf2968d78df6d) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: explicitly disable seccompRoss Burton2019-10-191-0/+2
| | | | | | | | | | | | | file will automatically enable seccomp if the seccomp headers are available, but the build will fail on Opensuse Tumbleweed because the include paths are wrong. Enabling seccomp is a bad idea because it interacts badly with pseudo (causing build failures), so explicitly and globally disable seccomp. (From OE-Core rev: a752faa152df031df5acaa40491299ac115109a4) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: Clarify BSD license variantChristophe PRIOUZEAU2019-10-151-1/+1
| | | | | | | | | The license of file is BSD-2-Clause. (From OE-Core rev: 2bafc93d58adc9e869b873737e982192b191d1a4) Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: update to 5.37Oleksandr Kravchuk2019-05-291-1/+1
| | | | | | | (From OE-Core rev: 127d706d7fe5d29c500ab6f81bc6d97982209bf6) Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: Stop adding -std=c99 to CFLAGSAdrian Bunk2019-05-081-2/+0
| | | | | | | | | Upstream now adds this automatically when required. (From OE-Core rev: 26e87532874acde8e653769a8a7b87f2b6d366fb) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade to 5.36Ross Burton2019-03-062-31/+2
| | | | | | | | | | | | Upgrade to 5.36. Drop debian-742262.patch, this appears to have been fixed properly upstream some releases ago. (From OE-Core rev: cf6a32debcde5bfde94126c3b4200800d672e605) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade 5.34 -> 5.35Yi Zhao2019-01-111-2/+2
| | | | | | | | | License-Update: remove trailing whitespace from COPYING (From OE-Core rev: 3667d548e91e7409b6e572d393cebb920e3926b7) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: alternatify fileDan McGregor2018-10-181-1/+4
| | | | | | | | | file is also provided by toybox. (From OE-Core rev: e9a34c0753bb772f26d3ddd7fed3fc234635b172) Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: Update to 5.34Khem Raj2018-08-083-67/+1
| | | | | | | | | | Distros which have glibc 2.28 on them otherwsise fail to build due to some syscall mismatches (From OE-Core rev: 990a9c944375146bb3f0208b30e8b7f50239cef5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: fix regression for determining DB file typeYi Zhao2018-07-182-0/+33
| | | | | | | | | | | | | | | | | | | The version 5.33 introduced a regression bug for determining the DB file type. Backport a patch from upstream to fix it. Before apply the patch: $ file aliases.db aliases.db: created: Thu Jan 1 00:38:24 1970, modified: Thu Jan 1 00:00:00 1970 After apply the patch: $ file aliases.db aliases.db: Berkeley DB (Btree, version 9, native byte-order) (From OE-Core rev: 99e50d9e53ab23fc643c46378fa8c36190995335) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: Security fix CVE-2018-10360Yi Zhao2018-07-152-0/+33
| | | | | | | | | | | | | | | | | | CVE-2018-10360: The do_core_note function in readelf.c in libmagic.a in file 5.33 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted ELF file. References: https://nvd.nist.gov/vuln/detail/CVE-2018-10360 Patch from: https://github.com/file/file/commit/a642587a9c9e2dd7feacdf513c3643ce26ad3c22 (From OE-Core rev: 22886cf6f37d9a5c6ff90e10e0c17ed7f6321305) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: update to 5.33Yi Zhao2018-06-292-41/+1
| | | | | | | | | | Drop 0001-Add-P-prompt-into-Usage-info.patch since it is already fixed upstream. (From OE-Core rev: 02f8aff020762e77bf49587115f6b8fbc96296c9) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.31 -> 5.32Robert Yang2017-11-212-6/+3
| | | | | | | | | | Rebase debian-742262.patch for new source. (From OE-Core rev: 4231e238d9fe6b2178b900cde49ca17ce5aa1f47) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.30 -> 5.31Fan Xin2017-06-282-4/+15
| | | | | | | | | | | | | 1. Upgrade file from 5.30 to 5.31 2. Rebase the following patch file. debian-742262.patch (From OE-Core rev: f38290ec2a727427a6481e4dafb02ecd8a60fad1) Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "file: update SRCREV for 5.30 to fix fetch fail on missing commit"Richard Purdie2017-03-211-1/+1
| | | | | | | | This reverts commit adb71e06768adadda7b69c3b5e81ca3ad67237f4. Upstream restored the original hashes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: update SRCREV for 5.30 to fix fetch fail on missing commitPaul Gortmaker2017-03-171-1/+1
| | | | | | | | | | | | | | | | | | | Machines that cloned a while ago will have the commit, but new deployments won't because it seems the upstream changed/rebased and the old commit ID has been garbage-collected away. Hence the fetch fails to check out the named commit ID. Both the old (gone) commit, and the "new" commit show the same dates and commit log and point at 5.30, so hopefully this is the right thing to do. A git diff of the two seems to only show a blanket uprev of CVS tags and deletion of a couple autogen'd files, and no real source changes. Cc: Christos Zoulas <christos@zoulas.com> (From OE-Core rev: adb71e06768adadda7b69c3b5e81ca3ad67237f4) Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.29 -> 5.30Robert Yang2017-03-011-1/+1
| | | | | | | | (From OE-Core rev: 83a822e7b7810a9a59f0ad0efe6c827b89878b61) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.28 -> 5.29Huang Qiyu2017-01-051-1/+1
| | | | | | | | | | Upgrade file from 5.28 to 5.29. (From OE-Core rev: 056b31649141f8160ce05d72b9e53e39ac97c718) Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: build with c std as c99Jack Mitchell2016-09-081-0/+2
| | | | | | | | | | | | when using a toolchain not shipped by OE core such as linaro we can't be sure what the std will be set to. Set to compile as c99 which is the lowest version supported. (From OE-Core rev: e544ca08a2bcb5a8d98671e63f6c8b7b21c562ea) Signed-off-by: Jack Mitchell <jack@embed.me.uk> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.27 -> 5.28Robert Yang2016-07-122-34/+1
| | | | | | | | | | Remove host-file.patch which is already in the source. (From OE-Core rev: 43c2dcb70d88eeed2735eb4347e89250d606cd42) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.25 -> 5.27Robert Yang2016-06-151-1/+1
| | | | | | | (From OE-Core rev: 44a5da0e4ab49d49a2192b84a53cc1e726907f14) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.24 -> 5.25Robert Yang2016-01-151-1/+1
| | | | | | | (From OE-Core rev: 84e782e4c83236fe4a058309a9a5027589d27223) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_regex.inc: split GITTAGREGEX entries into recipe filesAlexander Kanavin2015-12-081-0/+3
| | | | | | | | (From OE-Core rev: 589f5442372a7ab0f8bc40403e1739ce1cdd1cc0) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: don't replace host file when built nativelyRoss Burton2015-10-272-1/+41
| | | | | | | | | | | | | | | | | | | | To avoid races over the file binaries being replaced mid-build we made file-native an assume-provided binary and check for it at startup, but target file still needs a native file binary of the same version to compile the magic data. The least invasive way of doing this is to build a native file don't put it on PATH, and tell the target build where to find the native binary. We do however want the native libmagic to be installed normally (as for example rpm and subversion need it) so we can't use NATIVE_PACKAGE_PATH_SUFFIX as that change libdir. [ YOCTO #8144 ] (From OE-Core rev: d48c0191871ce6b6fbf17d89b8f9d2750b64d671) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.23 -> 5.24Robert Yang2015-08-103-151/+7
| | | | | | | | | | | | | | * Remove backported patch: - 0001-Fix-bug-with-long-options-and-explicitly-number-them.patch \ - 0002-fix-bug-with-5.23-long-options.patch \ * Use git repo rather than tarball since the original SRC_URI is not stable, it is not reachable sometimes. (From OE-Core rev: 18d52e57299043953757e78c23205570440f039c) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: fix long-optionsRobert Yang2015-07-083-0/+144
| | | | | | | | | | | | Backport two patches to fix bug with long options: * 0001-Fix-bug-with-long-options-and-explicitly-number-them.patch * 0002-fix-bug-with-5.23-long-options.patch (From OE-Core rev: df6ddc4bf9795212fda87f9d401893eb254074da) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: 5.22 -> 5.23Robert Yang2015-07-012-6/+6
| | | | | | | | | Updated 0001-Add-P-prompt-into-Usage-info.patch. (From OE-Core rev: 91db51363b3cf78a7b908ea4a548ab9658150661) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: add -P prompt into usage infoJunling Zheng2015-04-092-1/+41
| | | | | | | | | Currently, file's usage info doesn't contain -P prompt. So add it. (From OE-Core rev: fa01893abc088b21b5b5f45927157c286b236dfd) Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade to 5.22Robert Yang2015-01-081-2/+2
| | | | | | | (From OE-Core rev: fa81c9fd14067075afbfe7787a3114b96abb902a) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: upgrade to 5.21Robert Yang2014-12-232-4/+4
| | | | | | | | | | * Upgrade to 5.21. * The debian-742262.patch is still needed. (From OE-Core rev: 9f336e07df7e273c55f0c7a451604a3500b4c6ab) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: add wrapper to nativesdk-fileHongxu Jia2014-10-181-0/+5
| | | | | | | | | | | | | | | | | | "file" command in exported SDK doesn't work: ... $ file sysroots/ file: could not find any valid magic files! ... In oe-core commit 68d548cbae729eaea8ce1403dc95ff63c4a7375c, it added wrapper to file-native. Do the same thing for nativesdk-file. (From OE-Core rev: 69a3ab38d1c725c2b575065739cae4a3b45015a2) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* file: remove dump and filesystemsRobert Yang2014-07-163-901/+0
| | | | | | | | | | | I can't find the reason from the log why we need them, and they are out of date, so remove them, then file would use the one from its package. (From OE-Core rev: 4c67bab18ba82a2e8446ff11482a234ec7e4cc35) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>