All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] less: Create symlink for pager
@ 2019-06-19  9:44 Ricardo Ribalda Delgado
  2019-06-19  9:44 ` [PATCH 2/2] dpkg: add missing running dependency Ricardo Ribalda Delgado
  2019-06-19  9:54 ` [PATCH 1/2] less: Create symlink for pager Burton, Ross
  0 siblings, 2 replies; 5+ messages in thread
From: Ricardo Ribalda Delgado @ 2019-06-19  9:44 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ricardo Ribalda Delgado

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@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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-19 19:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19  9:44 [PATCH 1/2] less: Create symlink for pager Ricardo Ribalda Delgado
2019-06-19  9:44 ` [PATCH 2/2] dpkg: add missing running dependency Ricardo Ribalda Delgado
2019-06-19  9:54 ` [PATCH 1/2] less: Create symlink for pager Burton, Ross
2019-06-19  9:57   ` Ricardo Ribalda Delgado
2019-06-19 19:43   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.