From: Norbert Lange <nolange79@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager
Date: Fri, 17 Jul 2020 12:18:36 +0200 [thread overview]
Message-ID: <20200717101837.346354-1-nolange79@gmail.com> (raw)
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
next reply other threads:[~2020-07-17 10:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 10:18 Norbert Lange [this message]
2020-08-06 8:01 ` [Buildroot] [PATCH] package/busybox: Enable flags for use as systemd pager Thomas Petazzoni
2020-08-28 14:48 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200717101837.346354-1-nolange79@gmail.com \
--to=nolange79@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox