summaryrefslogtreecommitdiffstats
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-09 07:43:50 +0100
commitf042708dc050eb56a050cc67834f2670c2f657ce (patch)
tree02d37cd482803395679e0722d59d9448958ccf02 /meta/recipes-devtools/file
parenta6866222ef6feaa2112618f1442a8960840e394a (diff)
downloadpoky-f042708dc050eb56a050cc67834f2670c2f657ce.tar.gz
file: add -P prompt into usage info
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>
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 @@
1From 08abf944b2bff27b6dd325dd15b4861cebef113a Mon Sep 17 00:00:00 2001
2From: Junling Zheng <zhengjunling@huawei.com>
3Date: Wed, 8 Apr 2015 03:26:57 +0000
4Subject: [PATCH] Add -P prompt into Usage info
5
6Currently, Usage info doesn't include -P prompt, add it:
7
8root@arma9el:~# file
9Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
10 [-e testname] [-F separator] [-f namefile] [-m magicfiles]
11 [-P parameter=limits] file ...
12 file -C [-m magicfiles]
13 file [--help]
14
15Upstream-Status: Submitted
16
17Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
18---
19 src/file.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22diff --git a/src/file.c b/src/file.c
23index 546fd8b..beef868 100644
24--- a/src/file.c
25+++ b/src/file.c
26@@ -76,8 +76,8 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc
27 # define USAGE \
28 "Usage: %s [" FILE_FLAGS \
29 "] [--apple] [--mime-encoding] [--mime-type]\n" \
30- " [-e testname] [-F separator] [-f namefile] [-m magicfiles] " \
31- "file ...\n" \
32+ " [-e testname] [-F separator] [-f namefile] [-m magicfiles]\n" \
33+ " [-P parameter=limits] file ...\n" \
34 " %s -C [-m magicfiles]\n" \
35 " %s [--help]\n"
36
37--
381.8.3.4
39
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"
12DEPENDS_class-native = "zlib-native" 12DEPENDS_class-native = "zlib-native"
13 13
14SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \ 14SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
15 file://debian-742262.patch \ 15 file://debian-742262.patch \
16 file://0001-Add-P-prompt-into-Usage-info.patch \
16 " 17 "
17 18
18SRC_URI[md5sum] = "8fb13e5259fe447e02c4a37bc7225add" 19SRC_URI[md5sum] = "8fb13e5259fe447e02c4a37bc7225add"