Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager
@ 2020-07-17 10:18 Norbert Lange
  2020-08-06  8:01 ` Thomas Petazzoni
  2020-08-28 14:48 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Norbert Lange @ 2020-07-17 10:18 UTC (permalink / raw)
  To: buildroot

If the less package is not enable and systemd is enabled,
then configure the less applet to fully work with systemd.

systemd sets the flags for less in an environment variable
and requires a few options for correct display.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
---
 package/busybox/busybox.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 7344e8a9ce..4f6ba9729e 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -236,6 +236,16 @@ define BUSYBOX_SET_SELINUX
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD)X$(BR2_PACKAGE_LESS),yX)
+define BUSYBOX_SET_LESS_FLAGS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_LESS_DASHCMD)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_LESS_RAW)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_LESS_TRUNCATE)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_LESS_FLAGS)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_LESS_ENV)
+endef
+endif
+
 ifeq ($(BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES),y)
 define BUSYBOX_SET_INDIVIDUAL_BINARIES
 	$(call KCONFIG_ENABLE_OPT,CONFIG_BUILD_LIBBUSYBOX)
@@ -337,6 +347,7 @@ define BUSYBOX_KCONFIG_FIXUP_CMDS
 	$(BUSYBOX_SET_INIT)
 	$(BUSYBOX_SET_WATCHDOG)
 	$(BUSYBOX_SET_SELINUX)
+	$(BUSYBOX_SET_LESS_FLAGS)
 	$(BUSYBOX_SET_INDIVIDUAL_BINARIES)
 endef
 
-- 
2.27.0

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

* [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager
  2020-07-17 10:18 [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager Norbert Lange
@ 2020-08-06  8:01 ` Thomas Petazzoni
  2020-08-28 14:48 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-08-06  8:01 UTC (permalink / raw)
  To: buildroot

On Fri, 17 Jul 2020 12:18:36 +0200
Norbert Lange <nolange79@gmail.com> wrote:

> If the less package is not enable and systemd is enabled,
> then configure the less applet to fully work with systemd.
> 
> systemd sets the flags for less in an environment variable
> and requires a few options for correct display.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> ---
>  package/busybox/busybox.mk | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager
  2020-07-17 10:18 [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager Norbert Lange
  2020-08-06  8:01 ` Thomas Petazzoni
@ 2020-08-28 14:48 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-08-28 14:48 UTC (permalink / raw)
  To: buildroot

>>>>> "Norbert" == Norbert Lange <nolange79@gmail.com> writes:

 > If the less package is not enable and systemd is enabled,
 > then configure the less applet to fully work with systemd.

 > systemd sets the flags for less in an environment variable
 > and requires a few options for correct display.

 > Signed-off-by: Norbert Lange <nolange79@gmail.com>

Committed to 2020.02.x and 2020.05.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2020-08-28 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-17 10:18 [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager Norbert Lange
2020-08-06  8:01 ` Thomas Petazzoni
2020-08-28 14:48 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox