From patchwork Wed Mar 31 08:15:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Cavallari X-Patchwork-Id: 1460395 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F9K002Rn0z9sW0 for ; Wed, 31 Mar 2021 19:16:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 04E5184817; Wed, 31 Mar 2021 08:16:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dZyF42nZH2HR; Wed, 31 Mar 2021 08:16:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 6455084815; Wed, 31 Mar 2021 08:16:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7CCEC1BF5A1 for ; Wed, 31 Mar 2021 08:16:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 79ADD84816 for ; Wed, 31 Mar 2021 08:16:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OFhiJWHVR5a5 for ; Wed, 31 Mar 2021 08:16:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by smtp1.osuosl.org (Postfix) with ESMTPS id 87D7484812 for ; Wed, 31 Mar 2021 08:16:09 +0000 (UTC) Received: from evilbit.green-communications.fr ([92.154.77.116]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.119]) with ESMTPSA (Nemesis) id 1MYeV3-1l6OFJ1oqR-00Vcyi; Wed, 31 Mar 2021 10:16:06 +0200 From: Nicolas Cavallari To: buildroot@buildroot.org Date: Wed, 31 Mar 2021 10:15:59 +0200 Message-Id: <20210331081559.29619-1-nicolas.cavallari@green-communications.fr> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:QqfkuyNCGj+FRx6blnyddBi8gOKFRHBpirqe6uoPyhjS7wZCPaT 3qIK/MACbJGxsjnekyWFGGxRyR6FMX+Rp9wClzt0PljcsjhaJV2Z08IgKl1Nd4N4lEsDuUn svctk8aG7lJ6TSY5BZH/5AEG2Yqk8VMQWtGgm99/biiQz3q7x17Eqf/FCYTNZwfrBmfyr8r cNxC1UfLdwU12BXSzVjqg== X-UI-Out-Filterresults: notjunk:1;V03:K0:CfSp6sO0XnY=:ii0rYpd+3ezcud/L/dpEKX WuN7TR5ea/mnsCQA0IcJX+9q4s+DJxQUHgu8ok+uz7pr0QYHq1ITBAO4S7aaT8If/yFrJsSIm gf70SQfeyPOLSn67pULoNGpNOc+IGvQgNIhYNwShCYOktykPfczyPfLq8VFIVZ1fC1cP4Xi4y uqHIYNHKalFG+TdMChm2m/v7y3qvD9XZmlswCznKRvcSXjYFk/SYOvCKCuaYp18te6ygv2NyT RspZjIo8Q7xqviScMQzmBNfx2rD/OfObLvNEU8jTYydgrsn/n1ZeeKjwJ16TKycDWfQdJtwXJ ryvHly2FfwhH6ygaBEK/u1b/m4NhSKDTqNc+VJmPmOKKfQbJcDlzBjDRsoXctqSD9j+ZnQ5x9 XrI4OC37+W7AccYT4WRMthtgZFuhOcrjtWAv4wyvyOzvMFNNUA9Iit3sL6BUhXSVCQkjFMAlP p94fewRaHq4/R3bDa90v0628egEFZoNFZPCpyrdhjYaeCR3mdiQQSJ8LJih+fs0ZHx+z70SWG A== Subject: [Buildroot] [PATCH 1/1] package/bash: remove development files and modules on the target. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bash installs /lib/pkgconfig/bash.pc on the target, which buildroot does not remove because it is not in the usual /usr/lib/pkgconfig. It also install makefiles and example builtins in /lib/bash that are not required. The Makefiles and .pc encode the build path and create reproducibility issues. Remove them. Signed-off-by: Nicolas Cavallari --- package/bash/bash.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/bash/bash.mk b/package/bash/bash.mk index efe7cbbe59..6af31f182d 100644 --- a/package/bash/bash.mk +++ b/package/bash/bash.mk @@ -41,7 +41,8 @@ endif define BASH_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ DESTDIR=$(TARGET_DIR) exec_prefix=/ install - rm -f $(TARGET_DIR)/bin/bashbug + rm -f $(TARGET_DIR)/bin/bashbug $(TARGET_DIR)/lib/pkgconfig/bash.pc + rm -rf $(TARGET_DIR)/lib/bash endef # Add /bin/bash to /etc/shells otherwise some login tools like dropbear