From: Carlos Santos <casantos@datacom.ind.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] util-linux: disable useless programs in the host package
Date: Thu, 25 Jan 2018 22:16:52 -0200 [thread overview]
Message-ID: <20180126001652.7235-1-casantos@datacom.ind.br> (raw)
In-Reply-To: <87lgglln4t.fsf@dell.be.48ers.dk>
Disable all programs that depend on ncurses, as well as utilities that
are useless on the host: agetty, chfn-chsh, chmem, login, lslogins,
mesg, more, newgrp, nologin, nsenter, pg, rfkill, schedutils, setpriv,
setterm, su, sulogin, tunelp, ul, unshare, uuidd, vipw, wall, wdctl,
write, zramctl.
Also add dependency on host-zlib if host cramfs utils are to be built.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/util-linux/util-linux.mk | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index e368464e8d..72a6d18178 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -172,8 +172,37 @@ HOST_UTIL_LINUX_CONF_OPTS += \
ifeq ($(BR2_PACKAGE_HOST_UTIL_LINUX),y)
HOST_UTIL_LINUX_CONF_OPTS += --disable-makeinstall-chown
-# disable more command because of ncurses dependency
-HOST_UTIL_LINUX_CONF_OPTS += --disable-more
+# disable commands that have ncurses dependency, as well as
+# other ones that are useless on the host
+HOST_UTIL_LINUX_CONF_OPTS += \
+ --disable-agetty \
+ --disable-chfn-chsh \
+ --disable-chmem \
+ --disable-login \
+ --disable-lslogins \
+ --disable-mesg \
+ --disable-more \
+ --disable-newgrp \
+ --disable-nologin \
+ --disable-nsenter \
+ --disable-pg \
+ --disable-rfkill \
+ --disable-schedutils \
+ --disable-setpriv \
+ --disable-setterm \
+ --disable-su \
+ --disable-sulogin \
+ --disable-tunelp \
+ --disable-ul \
+ --disable-unshare \
+ --disable-uuidd \
+ --disable-vipw \
+ --disable-wall \
+ --disable-wdctl \
+ --disable-write \
+ --disable-zramctl
+# Used by cramfs utils
+HOST_UTIL_LINUX_DEPENDENCIES += host-zlib
else
HOST_UTIL_LINUX_CONF_OPTS += --disable-all-programs
endif
--
2.14.3
next prev parent reply other threads:[~2018-01-26 0:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-25 14:47 [Buildroot] Migrated from 2017.08 to 2017.11, rfkill issues Sjoerd Venema
2018-01-25 15:45 ` Peter Korsgaard
2018-01-25 16:06 ` Carlos Santos
2018-01-25 20:04 ` Peter Korsgaard
2018-01-25 16:14 ` Carlos Santos
2018-01-25 20:05 ` Peter Korsgaard
2018-01-26 0:16 ` Carlos Santos [this message]
2018-01-26 8:06 ` [Buildroot] [PATCH] util-linux: disable useless programs in the host package Peter Korsgaard
2018-01-31 12:32 ` 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=20180126001652.7235-1-casantos@datacom.ind.br \
--to=casantos@datacom.ind.br \
--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