From patchwork Tue Feb 12 12:24:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kpa_info@yahoo.fr X-Patchwork-Id: 219835 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 1AD552C0330 for ; Tue, 12 Feb 2013 23:24:54 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D5749A012D; Tue, 12 Feb 2013 12:24:54 +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 BoydoG65gv9q; Tue, 12 Feb 2013 12:24:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id ACF5CA00C8; Tue, 12 Feb 2013 12:24:40 +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 C2F978F7A4 for ; Tue, 12 Feb 2013 12:24:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 66C76840A0 for ; Tue, 12 Feb 2013 12:24:36 +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 DStiLLEU6TbF for ; Tue, 12 Feb 2013 12:24:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm21-vm5.bullet.mail.ird.yahoo.com (nm21-vm5.bullet.mail.ird.yahoo.com [212.82.109.245]) by whitealder.osuosl.org (Postfix) with SMTP id ABA0D80C11 for ; Tue, 12 Feb 2013 12:24:20 +0000 (UTC) Received: from [77.238.189.53] by nm21.bullet.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 12:24:18 -0000 Received: from [217.146.188.173] by tm6.bullet.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 12:24:18 -0000 Received: from [127.0.0.1] by smtp141.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 12:24:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1360671858; bh=3PLYdCW1Q10RJDo/Nfx9uFH+lbX5fNv3Ezrih+mh3bw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=2HkOX8Hvc4xWzCufG3pRw+ZryriKmNJwm4wkwjHgVkiafMK2bxGuSwmGxFV8De7s9CmXhF7kDu7I7shPa65GPsiDwiJomk8JTai0UZWYgtl0MnXgKP0s6E9h/PmdwfxyJhb6RucveMSsJFYLeYwwt5FNjB1fmWmE+2cXv8BdbA4= X-Yahoo-Newman-Id: 704122.83029.bm@smtp141.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: .WpGtUcVM1lzZCE9Af2cE7tQCM2upksaCqmgzNsv1_N3Sde DKmL9N.fEXncO4GMs8K4UCsIOg1feTXyWAkvUSYAvoPXjGMJgg5462Gt3dx7 fDLZBfIbtMDRmTgs2GO8iShLWytxEO9Hio3QoYXYhh7Qqz9ZJ1gZNJ7Ud_vY Y2.AmRQf7RwQ.XFWFkvODS_l8PqOi5oJsiigM4chhRBLXQQbRLhzSiEP7_K0 lDyWTSQBxuXuVTd_YTXVd0.nLBBmcWSkiw4oAksC7hwCfhFJd.f7a3nxUnIp xlERGgKc_a3pGJOtk2gOtIQKIs5HpAjP0zYVXKTK5NHV4XGTC7IP1EQptL_v 14x2bm5gYULmGu.rQyD6IZ1KrHTpawu6a47EPEXoJP7f8p05tn2yhbL_RNOB M_n.du8vzK0_etyo7.B7QO7qpPcMps2PZbi1WQbDAn.6rF0lcdpLVBZLhZbb 8wGEBqw4alF0hlPs2XMVvdmefNvezp8lpWbhthow- X-Yahoo-SMTP: gXxkLaeswBDA9gtBSIbQ8XWSflp0 Received: from kpa-move.lan.sensometrix.ch (kpa_info@109.164.253.69 with login) by smtp141.mail.ird.yahoo.com with SMTP; 12 Feb 2013 04:24:18 -0800 PST From: Patrick Gerber To: buildroot@busybox.net Date: Tue, 12 Feb 2013 13:24:06 +0100 Message-Id: <1360671849-7621-3-git-send-email-kpa_info@yahoo.fr> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360671849-7621-1-git-send-email-kpa_info@yahoo.fr> References: <1360671849-7621-1-git-send-email-kpa_info@yahoo.fr> Subject: [Buildroot] [PATCH 2/5] When using python3 a symlink "python" is added in staging and point to python3. This is needed to call python setup for external package. A second simlink is added to alias the config-3.3m directory to config 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: Patrick Gerber --- package/python3/python3.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 7551a7b..5974824 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -160,6 +160,14 @@ ifneq ($(BR2_PACKAGE_PYTHON),y) PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_INSTALL_SYMLINK endif +define HOST_PYTHON3_INSTALL_SYMLINK + ln -fs python3 $(HOST_DIR)/usr/bin/python + ln -fs config-3.3m $(HOST_DIR)/usr/lib/python3.3/config +endef + +HOST_PYTHON3_POST_INSTALL_HOOKS += HOST_PYTHON3_INSTALL_SYMLINK + + ifeq ($(BR2_PACKAGE_PYTHON3_PY_ONLY),y) define PYTHON3_REMOVE_MODULES_FILES for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) \