diff options
author | Ricardo Ribalda Delgado <ricardo@ribalda.com> | 2019-06-19 13:21:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-19 22:13:40 +0100 |
commit | 17e59cab322402bf2b3b7cdd4631d7a05036019c (patch) | |
tree | 93ada63067185d6b04a2a1ed5192c09a47deeb4f /meta/recipes-devtools/dpkg/dpkg | |
parent | 7c9ec5a2c1993c1ac95a77eb7ea62db6cb2010f5 (diff) | |
download | poky-17e59cab322402bf2b3b7cdd4631d7a05036019c.tar.gz |
dpkg: Use less as pager
Debian traditionaly uses /usr/bin/pager as the system pager, which is a
link to the user preferred pager. This is a Debianism.
Without this patch:
root@qt5122:~# dpkg -l
sh: pager: command not found
dpkg-query: error: showing package list on pager subprocess returned error exit status 127
(From OE-Core rev: 580d7f3325af0569239cdd9757ca77fbe6f29146)
Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg/pager.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/pager.patch b/meta/recipes-devtools/dpkg/dpkg/pager.patch new file mode 100644 index 0000000000..e56b9d28af --- /dev/null +++ b/meta/recipes-devtools/dpkg/dpkg/pager.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | pager: Use less instead of pager | ||
2 | |||
3 | pager is a Debianism. Istead use directly pager. | ||
4 | |||
5 | Upstream-Status: Inappropriate [OE-Core integration specific] | ||
6 | |||
7 | Suggested-by: Burton, Ross <ross.burton@intel.com> | ||
8 | Signed-off-by: Ricardo Ribalda <ricardo@ribalda.com> | ||
9 | diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h | ||
10 | index 2bb067a..6cbce80 100644 | ||
11 | --- a/lib/dpkg/dpkg.h | ||
12 | +++ b/lib/dpkg/dpkg.h | ||
13 | @@ -95,7 +95,7 @@ DPKG_BEGIN_DECLS | ||
14 | #define MAXUPDATES 250 | ||
15 | |||
16 | #define DEFAULTSHELL "sh" | ||
17 | -#define DEFAULTPAGER "pager" | ||
18 | +#define DEFAULTPAGER "less" | ||
19 | |||
20 | #define MD5HASHLEN 32 | ||
21 | #define MAXTRIGDIRECTIVE 256 | ||