From patchwork Fri Jan 26 00:16:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 866086 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zSKGh2SwGz9s74 for ; Fri, 26 Jan 2018 11:17:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1BC0389A1F; Fri, 26 Jan 2018 00:17:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h0EdprrHHDJe; Fri, 26 Jan 2018 00:17:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E028E899D9; Fri, 26 Jan 2018 00:17:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9729F1CF02A for ; Fri, 26 Jan 2018 00:17:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 939D388CBB for ; Fri, 26 Jan 2018 00:17:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t_AFFEHD6CGB for ; Fri, 26 Jan 2018 00:17:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by fraxinus.osuosl.org (Postfix) with ESMTPS id D2CAE88CB2 for ; Fri, 26 Jan 2018 00:17:07 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 706B11640C1A; Thu, 25 Jan 2018 22:17:01 -0200 (-02) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 5EE0E165E17C; Thu, 25 Jan 2018 22:17:01 -0200 (-02) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id R7g0ROef1LFi; Thu, 25 Jan 2018 22:17:01 -0200 (-02) Received: from p7-1130br.casantos.org (201.86.241.160.dynamic.adsl.gvt.net.br [201.86.241.160]) by mail.datacom.ind.br (Postfix) with ESMTPSA id C331114BC87D; Thu, 25 Jan 2018 22:17:00 -0200 (-02) From: Carlos Santos To: buildroot@buildroot.org Date: Thu, 25 Jan 2018 22:16:52 -0200 Message-Id: <20180126001652.7235-1-casantos@datacom.ind.br> X-Mailer: git-send-email 2.14.3 In-Reply-To: <87lgglln4t.fsf@dell.be.48ers.dk> References: <87lgglln4t.fsf@dell.be.48ers.dk> Subject: [Buildroot] [PATCH] util-linux: disable useless programs in the host package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sjoerd Venema MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- 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