From patchwork Tue Feb 18 20:39:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 321640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id B6A5C2C00BA for ; Wed, 19 Feb 2014 07:40:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 219828B943; Tue, 18 Feb 2014 20:40:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mW0r-QDytDEp; Tue, 18 Feb 2014 20:40:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1620A8B917; Tue, 18 Feb 2014 20:40:29 +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 E6EA51CE9A4 for ; Tue, 18 Feb 2014 20:40:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E66E88B977 for ; Tue, 18 Feb 2014 20:40:18 +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 quovcEmQVlAo for ; Tue, 18 Feb 2014 20:40:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id BB6448B7C5 for ; Tue, 18 Feb 2014 20:40:17 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 14C2E7AD; Tue, 18 Feb 2014 21:40:33 +0100 (CET) Received: from localhost (AToulouse-651-1-98-40.w109-222.abo.wanadoo.fr [109.222.65.40]) by mail.free-electrons.com (Postfix) with ESMTPSA id D07A16E8 for ; Tue, 18 Feb 2014 21:40:32 +0100 (CET) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Tue, 18 Feb 2014 21:39:58 +0100 Message-Id: <1392756013-27757-6-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392756013-27757-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1392756013-27757-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCH v2 05/20] python3: add python -> python3 symlink for the host variant 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 The target python3 depends on host-python3, but most of the scripts call "python", so we need to ensure that $(HOST_DIR)/usr/bin/python exists. This patch achieves this by creating a python -> python3 symbolic link in $(HOST_DIR), just like we are already doing for the target Python 3. Signed-off-by: Thomas Petazzoni --- package/python3/python3.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/python3/python3.mk b/package/python3/python3.mk index d49fe48..ba72e75 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -159,5 +159,11 @@ 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 +endef + +HOST_PYTHON3_POST_INSTALL_HOOKS += HOST_PYTHON3_INSTALL_SYMLINK + $(eval $(autotools-package)) $(eval $(host-autotools-package))