[OE-core] [PATCH 1/2] less: Create symlink for pager
Ricardo Ribalda Delgado
ricardo at ribalda.com
Wed Jun 19 09:44:35 UTC 2019
Some system tools (like dpkg) expects a binary called pager when they
run on a interactive console.
This patch addes this symlink via alternative, so other packages can
also provide this symlink.
Signed-off-by: Ricardo Ribalda Delgado <ricardo at ribalda.com>
---
meta/recipes-extended/less/less_550.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-extended/less/less_550.bb b/meta/recipes-extended/less/less_550.bb
index bb1618f1eb..8f59bd6087 100644
--- a/meta/recipes-extended/less/less_550.bb
+++ b/meta/recipes-extended/less/less_550.bb
@@ -24,6 +24,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
file://LICENSE;md5=ba01d0cab7f62f7f2204c7780ff6a87d \
"
DEPENDS = "ncurses"
+RPROVIDES_${PN} = "pager"
SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz \
"
@@ -39,5 +40,6 @@ do_install () {
oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install
}
-ALTERNATIVE_${PN} = "less"
+ALTERNATIVE_${PN} = "less pager"
ALTERNATIVE_PRIORITY = "100"
+ALTERNATIVE_TARGET[pager] = "/usr/bin/less.less"
--
2.20.1
More information about the Openembedded-core
mailing list