dpkg: Use less as pager
PATCH v2 1/1 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
Signed-off-by Ricardo Ribalda Delgado <[email protected]>
--- meta/recipes-devtools/dpkg/dpkg/pager.patch | 21 +++++++++++++++++++++ meta/recipes-devtools/dpkg/dpkg_1.19.4.bb | 1 + 2 files changed, 22 insertions(+) create mode 100644 meta/recipes-devtools/dpkg/dpkg/pager.patch
meta/recipes-devtools/dpkg/dpkg/pager.patch new file +21 -0
@@ -0,0 +1,21 @@ +pager: Use less instead of pager + +pager is a Debianism. Istead use directly pager. + +Upstream-Status: Inappropriate [OE-Core integration specific] + +Suggested-by: Burton, Ross <[email protected]> +Signed-off-by: Ricardo Ribalda <[email protected]> +diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h +index 2bb067a..6cbce80 100644 +--- a/lib/dpkg/dpkg.h ++++ b/lib/dpkg/dpkg.h +@@ -95,7 +95,7 @@ DPKG_BEGIN_DECLS + #define MAXUPDATES 250 + + #define DEFAULTSHELL "sh" +-#define DEFAULTPAGER "pager" ++#define DEFAULTPAGER "less" + + #define MD5HASHLEN 32 + #define MAXTRIGDIRECTIVE 256
meta/recipes-devtools/dpkg/dpkg_1.19.4.bb +1 -0
@@ -12,6 +12,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.xz \ file://0006-add-musleabi-to-known-target-tripets.patch \ file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \ file://0001-dpkg-Support-muslx32-build.patch \ + file://pager.patch \ " SRC_URI_append_class-native = " \ file://tweak-options-require-tar-1.27.patch \
Signature · 1 line
2.20.1