diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-14 20:05:37 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-23 04:26:31 +0300 |
commit | eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch) | |
tree | de291a73dc37168da6370e2cf16c347d1eba9df8 /poky/meta/recipes-devtools/file | |
parent | 9c3cf826d853102535ead04cebc2d6023eff3032 (diff) | |
download | openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.xz |
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers
content to the top level.
Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'poky/meta/recipes-devtools/file')
3 files changed, 114 insertions, 0 deletions
diff --git a/poky/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch b/poky/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch new file mode 100644 index 0000000000..8a16b2cf73 --- /dev/null +++ b/poky/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch @@ -0,0 +1,39 @@ +From 08abf944b2bff27b6dd325dd15b4861cebef113a Mon Sep 17 00:00:00 2001 +From: Junling Zheng <zhengjunling@huawei.com> +Date: Wed, 8 Apr 2015 03:26:57 +0000 +Subject: [PATCH] Add -P prompt into Usage info + +Currently, Usage info doesn't include -P prompt, add it: + +root@arma9el:~# file +Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type] + [-e testname] [-F separator] [-f namefile] [-m magicfiles] + [-P parameter=limits] file ... + file -C [-m magicfiles] + file [--help] + +Upstream-Status: Submitted + +Signed-off-by: Junling Zheng <zhengjunling@huawei.com> +--- + src/file.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/file.c b/src/file.c +index 2b15e21..e5a957b 100644 +--- a/src/file.c ++++ b/src/file.c +@@ -76,8 +76,8 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc + # define USAGE \ + "Usage: %s [" FILE_FLAGS \ + "] [--apple] [--extension] [--mime-encoding] [--mime-type]\n" \ +- " [-e testname] [-F separator] [-f namefile] [-m magicfiles] " \ +- "file ...\n" \ ++ " [-e testname] [-F separator] [-f namefile] [-m magicfiles]\n " \ ++ " [-P parameter=limits] file ...\n" \ + " %s -C [-m magicfiles]\n" \ + " %s [--help]\n" + +-- +1.8.3.4 + diff --git a/poky/meta/recipes-devtools/file/file/debian-742262.patch b/poky/meta/recipes-devtools/file/file/debian-742262.patch new file mode 100644 index 0000000000..319f9dbcf9 --- /dev/null +++ b/poky/meta/recipes-devtools/file/file/debian-742262.patch @@ -0,0 +1,27 @@ +The awk pattern was checked *before* the Perl pattern, so the +perl script with BEGIN{...} would be reported as awk, this patch fixes it. + +Upstream-Status: Backport [debian] + +Signed-off-by: Christoph Biedl <debian.axhn@manchmal.in-ulm.de> +Signed-off-by: Robert Yang <liezhi.yang@windriver.com> + +Rebase on 5.31 + +Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> +--- + magic/Magdir/commands | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/magic/Magdir/commands b/magic/Magdir/commands +index f6ad1c8..f79e7dd 100644 +--- a/magic/Magdir/commands ++++ b/magic/Magdir/commands +@@ -57,6 +57,7 @@ + 0 string/wt #!\ /usr/bin/awk awk script text executable + !:mime text/x-awk + 0 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text ++!:strength - 12 + + # AT&T Bell Labs' Plan 9 shell + 0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable diff --git a/poky/meta/recipes-devtools/file/file_5.32.bb b/poky/meta/recipes-devtools/file/file_5.32.bb new file mode 100644 index 0000000000..5e15925126 --- /dev/null +++ b/poky/meta/recipes-devtools/file/file_5.32.bb @@ -0,0 +1,48 @@ +SUMMARY = "File classification tool" +DESCRIPTION = "File attempts to classify files depending \ +on their contents and prints a description if a match is found." +HOMEPAGE = "http://www.darwinsys.com/file/" +SECTION = "console/utils" + +# two clause BSD +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188" + +DEPENDS = "zlib file-replacement-native" +DEPENDS_class-native = "zlib-native" + +# Blacklist a bogus tag in upstream check +UPSTREAM_CHECK_GITTAGREGEX = "FILE(?P<pver>(?!6_23).+)" + +SRC_URI = "git://github.com/file/file.git \ + file://debian-742262.patch \ + file://0001-Add-P-prompt-into-Usage-info.patch \ + " + +SRCREV = "d474e35513940dbca039b510b4de705b44f5bd9c" +S = "${WORKDIR}/git" + +inherit autotools + +EXTRA_OEMAKE_append_class-target = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" +EXTRA_OEMAKE_append_class-nativesdk = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file" + +CFLAGS_append = " -std=c99" + +FILES_${PN} += "${datadir}/misc/*.mgc" + +do_install_append_class-native() { + create_cmdline_wrapper ${D}/${bindir}/file \ + --magic-file ${datadir}/misc/magic.mgc +} + +do_install_append_class-nativesdk() { + create_cmdline_wrapper ${D}/${bindir}/file \ + --magic-file ${datadir}/misc/magic.mgc +} + +BBCLASSEXTEND = "native nativesdk" +PROVIDES_append_class-native = " file-replacement-native" +# Don't use NATIVE_PACKAGE_PATH_SUFFIX as that hides libmagic from anyone who +# depends on file-replacement-native. +bindir_append_class-native = "/file-native" |