From patchwork Sat Sep 12 11:56:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1362843 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=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=RnuBo2Rq; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BpWMB6p61z9sTC for ; Sat, 12 Sep 2020 21:57:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6420586B52; Sat, 12 Sep 2020 11:57:07 +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 hJoFhPwxTo9D; Sat, 12 Sep 2020 11:57:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7A2BC86B7D; Sat, 12 Sep 2020 11:57:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B34081BF475 for ; Sat, 12 Sep 2020 11:57:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A73D087689 for ; Sat, 12 Sep 2020 11:57:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hd8nh6P97MPD for ; Sat, 12 Sep 2020 11:57:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id C5A6B87688 for ; Sat, 12 Sep 2020 11:57:02 +0000 (UTC) Received: by mail-ej1-f66.google.com with SMTP id r7so16881478ejs.11 for ; Sat, 12 Sep 2020 04:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OBQSxjbuEJAn589P6vRHKzLLX1e/xoloZlAjIdEnLcU=; b=RnuBo2RquLanBkc/0KW+oSj4WR8tya5E04+QnpjNFOUTRb+8BC2anSYQqCu7lZRVMZ a9UmQc2NLhWNATLsyI30n07xarHwT/Sk07f2/RchTt87AGIGdX89aVK+FuASSNPYw7h8 GeXaABq2vh6KGJCkAT1It2cYz7dLUiNMe6xq5mloSl/VnRpMsZFmSr55PLtp/f88n49E 0RPpQ6lkWB/PL91fbtUhAAI6QGNYlN6N4+U1i/lSdwQxK9xvBEnDsFc13z8Oj0bRBYGF 8xIOl5Z2o8B0+aUbqPTw9Pwmh0+h0Bd5CZ2nHNr4y5i9soKjTt8OpmSi8qaGbm3/JHO0 e1kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OBQSxjbuEJAn589P6vRHKzLLX1e/xoloZlAjIdEnLcU=; b=slYqTrkZKkWBQaFrZx/2TaZhbssno+XyQLb1EgVftDVjIm+vbEcNieltHqS3twkInC 0gU9Ehj6YC41gBaGyFe2af6f3K7e4P+x/iQsckaGKbByfcAnT01pO5CZZRTJDf98zH97 OF3n73UBJOLTyH7IJNagu2Z5IRGO/YNMH6mkFi73W9m5KamzVJGqSmv8rwH7+5Kcfotv zvGlIDn1bO9KRFLsf04boH396UGOvvGZoc9Ng+xcl1Kjooqb5EFgOmhmKuMpFWx7p8Hm xvZTtWwI5/ZLOdKcI2B4TI6/tWkYjYPp8xT3J2M/yG9Md9ZXh1ehFkNSoGgVShfyAkX0 Nrqw== X-Gm-Message-State: AOAM530RPVATVHvzlXWaKi2iBRjtmrXyw3T0ryqjbTo8NlmQSbZU/Mbv FntbOXXR9z5b9M8KIwN19vbjAoabe5R1/7tv X-Google-Smtp-Source: ABdhPJwsWWu6e3wMC7zJjVTasFStUEtpf+YV83c1xsTBhnf7R23g2mcIoU/Oypnt9AqcsHbDkamW1w== X-Received: by 2002:a17:907:7293:: with SMTP id dt19mr5710120ejc.5.1599911820843; Sat, 12 Sep 2020 04:57:00 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:63d3:7700:5fb9:2a66:a7a8:378f]) by smtp.gmail.com with ESMTPSA id p11sm4409094edu.93.2020.09.12.04.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 04:57:00 -0700 (PDT) From: Titouan Christophe To: buildroot@buildroot.org Date: Sat, 12 Sep 2020 13:56:21 +0200 Message-Id: <20200912115622.134543-1-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.25.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/python3: do not install MS Windows installers 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: , Cc: Adam Duskett , Titouan Christophe , Thomas Petazzoni , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Buildroot generates Linux systems, so there is no need to have MS Windows executables in there. This reduces the target filesystem size by about 2MB: $ du -hcs usr/lib/python3.8/distutils/command/wininst-*.exe 60K usr/lib/python3.8/distutils/command/wininst-6.0.exe 64K usr/lib/python3.8/distutils/command/wininst-7.1.exe 60K usr/lib/python3.8/distutils/command/wininst-8.0.exe 192K usr/lib/python3.8/distutils/command/wininst-9.0.exe 220K usr/lib/python3.8/distutils/command/wininst-9.0-amd64.exe 188K usr/lib/python3.8/distutils/command/wininst-10.0.exe 220K usr/lib/python3.8/distutils/command/wininst-10.0-amd64.exe 448K usr/lib/python3.8/distutils/command/wininst-14.0.exe 576K usr/lib/python3.8/distutils/command/wininst-14.0-amd64.exe 2,0M total Signed-off-by: Titouan Christophe --- package/python3/python3.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 31e7ca3d3a..3c2f71e448 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -212,6 +212,7 @@ define PYTHON3_REMOVE_USELESS_FILES rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)m-config rm -f $(TARGET_DIR)/usr/bin/python3-config rm -f $(TARGET_DIR)/usr/bin/smtpd.py.3 + rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/distutils/command/wininst*.exe for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config-$(PYTHON3_VERSION_MAJOR)m-*/ \ -type f -not -name Makefile` ; do \ rm -f $$i ; \