summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo@ribalda.com>2019-06-19 13:21:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-19 22:13:40 +0100
commit17e59cab322402bf2b3b7cdd4631d7a05036019c (patch)
tree93ada63067185d6b04a2a1ed5192c09a47deeb4f /meta
parent7c9ec5a2c1993c1ac95a77eb7ea62db6cb2010f5 (diff)
downloadpoky-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')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg/pager.patch21
-rw-r--r--meta/recipes-devtools/dpkg/dpkg_1.19.4.bb1
2 files changed, 22 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 @@
1pager: Use less instead of pager
2
3pager is a Debianism. Istead use directly pager.
4
5Upstream-Status: Inappropriate [OE-Core integration specific]
6
7Suggested-by: Burton, Ross <ross.burton@intel.com>
8Signed-off-by: Ricardo Ribalda <ricardo@ribalda.com>
9diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h
10index 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
diff --git a/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb b/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb
index 77fbfb5c91..b83868fec0 100644
--- a/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb
+++ b/meta/recipes-devtools/dpkg/dpkg_1.19.4.bb
@@ -12,6 +12,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.xz \
12 file://0006-add-musleabi-to-known-target-tripets.patch \ 12 file://0006-add-musleabi-to-known-target-tripets.patch \
13 file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \ 13 file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \
14 file://0001-dpkg-Support-muslx32-build.patch \ 14 file://0001-dpkg-Support-muslx32-build.patch \
15 file://pager.patch \
15 " 16 "
16SRC_URI_append_class-native = " \ 17SRC_URI_append_class-native = " \
17 file://tweak-options-require-tar-1.27.patch \ 18 file://tweak-options-require-tar-1.27.patch \