From patchwork Sat Aug 11 06:10:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Liu X-Patchwork-Id: 176662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 9E50C2C0090 for ; Sat, 11 Aug 2012 16:10:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6C6AD8B98E; Sat, 11 Aug 2012 06:10: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 j9sM6iXMfliB; Sat, 11 Aug 2012 06:10:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6E8248F73C; Sat, 11 Aug 2012 06:10:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7C25D8F791 for ; Sat, 11 Aug 2012 06:10:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 79097A0180 for ; Sat, 11 Aug 2012 06:10:05 +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 Y2TpE0fA8b6U for ; Sat, 11 Aug 2012 06:10:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by hemlock.osuosl.org (Postfix) with ESMTPS id B219CA0025 for ; Sat, 11 Aug 2012 06:10:04 +0000 (UTC) Received: by pbbrr13 with SMTP id rr13so3996799pbb.33 for ; Fri, 10 Aug 2012 23:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=cv50FoJBKOzvBAa1lhOqPx2peiAEjpjqTLJLbukZMBk=; b=Emxt+wnJVt75AZenb9VlZVDxiyDKFJ+DL+2VOTQolhRs5jzIDqPkmB+xnFPq9mk9/d TWHmvC8CxVeWT0UH1T+4pk8VtzzOXu3yBEAd/79E7/hXUn+y/A6L3drbT8XMxIvwJ15P /mRq9THK+DQ59gAMjq0H2N09XV8P+NO8PfVcO5LPMvw3Jy901JffzzD5WvgoUAcJHezx 5wnv87MKuu/e848LvdccBqCIU6+r8XclJAnlY7MoVSoF1S+ywP8qDVqXoiDMjJ7457id VgU47nDBOEj0LCZftT/c8WayjGAh2yhkSQr4tkJf+pIJTF06tyqfzJNLCDoXL3WsLwd/ gPXQ== Received: by 10.68.192.40 with SMTP id hd8mr498830pbc.125.1344665404306; Fri, 10 Aug 2012 23:10:04 -0700 (PDT) Received: from net147.co.cc (60-242-179-244.static.tpgi.com.au. [60.242.179.244]) by mx.google.com with ESMTPS id pq1sm791620pbb.3.2012.08.10.23.10.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2012 23:10:02 -0700 (PDT) From: Jonathan Liu To: buildroot@uclibc.org Date: Sat, 11 Aug 2012 16:10:27 +1000 Message-Id: <1344665427-27181-2-git-send-email-net147@gmail.com> X-Mailer: git-send-email 1.7.11.3 Subject: [Buildroot] [PATCH] python: fix interpreter directive for python scripts 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 Signed-off-by: Jonathan Liu --- package/python/python.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/python/python.mk b/package/python/python.mk index fae4e5c..783b7b8 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -165,6 +165,13 @@ endef PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_USELESS_FILES +# Fix Python interpreter directive +define PYTHON_FIX_INTERPRETER + sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{easy_install,easy_install-2.7,idle,smtpd.py} +endef + +PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_FIX_INTERPRETER + PYTHON_AUTORECONF = YES $(eval $(autotools-package))