summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/file
diff options
context:
space:
mode:
authorJunling Zheng <zhengjunling@huawei.com>2015-04-08 07:53:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 23:11:06 +0100
commitfa01893abc088b21b5b5f45927157c286b236dfd (patch)
tree48e073c64efd954d2c0eddf12231d8f2ba9bb5c4 /meta/recipes-devtools/file
parent3dec9ad1cd6ad1236950b0100f6327df7a0bf7db (diff)
downloadopenembedded-core-fa01893abc088b21b5b5f45927157c286b236dfd.tar.gz
openembedded-core-fa01893abc088b21b5b5f45927157c286b236dfd.tar.bz2
openembedded-core-fa01893abc088b21b5b5f45927157c286b236dfd.zip
file: add -P prompt into usage info
Currently, file's usage info doesn't contain -P prompt. So add it. Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/file')
-rw-r--r--meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch39
-rw-r--r--meta/recipes-devtools/file/file_5.22.bb3
2 files changed, 41 insertions, 1 deletions
diff --git a/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch b/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch
new file mode 100644
index 0000000000..95e1291f66
--- /dev/null
+++ b/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 546fd8b..beef868 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] [--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/meta/recipes-devtools/file/file_5.22.bb b/meta/recipes-devtools/file/file_5.22.bb
index 9c6bb38d71..e8d4dae4f8 100644
--- a/meta/recipes-devtools/file/file_5.22.bb
+++ b/meta/recipes-devtools/file/file_5.22.bb
@@ -12,7 +12,8 @@ DEPENDS = "zlib file-native"
DEPENDS_class-native = "zlib-native"
SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
- file://debian-742262.patch \
+ file://debian-742262.patch \
+ file://0001-Add-P-prompt-into-Usage-info.patch \
"
SRC_URI[md5sum] = "8fb13e5259fe447e02c4a37bc7225add"