From patchwork Wed Jul 10 18:39:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 258219 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 58DD12C02CF for ; Thu, 11 Jul 2013 04:39:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1F13FA027B; Wed, 10 Jul 2013 18:39:34 +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 QOrqMK4JBteB; Wed, 10 Jul 2013 18:39:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E5E14A0263; Wed, 10 Jul 2013 18:39:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 162C61BFA7D for ; Wed, 10 Jul 2013 18:39:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9765B88DEE for ; Wed, 10 Jul 2013 18:39:34 +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 HS7ID6gBza4D for ; Wed, 10 Jul 2013 18:39:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4981A88DD6 for ; Wed, 10 Jul 2013 18:39:33 +0000 (UTC) Received: from asgard (host171.201-252-80.telecom.net.ar [201.252.80.171]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.7/8.14.7) with ESMTP id r6AIdQlO014377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 10 Jul 2013 18:39:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1373481571; bh=Ufucjkfz5IzwJXiX/aj2IAxKHe00qeyROEyrcfqN1E8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=d57cS8flHBzX0WVH/Q8GNvjwBFagMrZ6kvEHOofBwLy+NSzMCt1C2z6r55GABBKxq 7OZzCcRmrFkWBSSL6uu4nVLW9E/aT59P54MZopclCI3RLSMjybWp5yz/oHuIClv/FL NUF7hpnH28xfEA2FAYHTHZkMfhAaLIqYJtqWfkzs= Received: by asgard (sSMTP sendmail emulation); Wed, 10 Jul 2013 15:39:25 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Wed, 10 Jul 2013 15:39:17 -0300 Message-Id: <1373481558-30193-2-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1373481558-30193-1-git-send-email-gustavo@zacarias.com.ar> References: <1373481558-30193-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.97.7 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 2/3] python: remove idle sample X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Also move smtpd.py removal to the global remove useless files define. Signed-off-by: Gustavo Zacarias --- package/python/python.mk | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/package/python/python.mk b/package/python/python.mk index 975d6f4..ecea638 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -143,21 +143,18 @@ endef PYTHON_POST_INSTALL_STAGING_HOOKS += PYTHON_FIXUP_LIBDIR -# Bad shebang, normally not used -define PYTHON_REMOVE_SMTPD - rm -f $(TARGET_DIR)/usr/bin/smtpd.py -endef - -PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_SMTPD - # # Remove useless files. In the config/ directory, only the Makefile # and the pyconfig.h files are needed at runtime. # +# idle & smtpd.py have bad shebangs and are mostly samples +# define PYTHON_REMOVE_USELESS_FILES + rm -f $(TARGET_DIR)/usr/bin/idle rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR)-config rm -f $(TARGET_DIR)/usr/bin/python2-config rm -f $(TARGET_DIR)/usr/bin/python-config + rm -f $(TARGET_DIR)/usr/bin/smtpd.py for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config/ \ -type f -not -name pyconfig.h -a -not -name Makefile` ; do \ rm -f $$i ; \