From patchwork Mon Nov 11 21:31:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Shukron X-Patchwork-Id: 1193153 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EBm0Fxv5"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47Bkbx4gr7z9sPJ for ; Tue, 12 Nov 2019 08:32:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E599388042; Mon, 11 Nov 2019 21:32:11 +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 meh7ScM93ohN; Mon, 11 Nov 2019 21:32:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C837E87FBF; Mon, 11 Nov 2019 21:32:10 +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 009E81BF3C8 for ; Mon, 11 Nov 2019 21:32:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F0FA687FBF for ; Mon, 11 Nov 2019 21:32:09 +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 hNNbytwSpZr9 for ; Mon, 11 Nov 2019 21:32:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0AD3087F5C for ; Mon, 11 Nov 2019 21:32:09 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id w9so9462775wrr.0 for ; Mon, 11 Nov 2019 13:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lGWsmwRFEpp2dtIKBsj3ET9oU/wPgnzlfNNLCGiJ7ME=; b=EBm0Fxv5TU3RQGUgdyVO0ypQ/TK1O9pgToQU5r2baqBWtJpwRbAPCh1Njz6MdauVGC fGL9CPOX56Q2tAirEUmow/wWKKsKg8Q2pPbmzpbYN0QVxbVaYrTJ0wAuMVgPSf0nkHoI Ef84S4YntKmaifTDXIZeJc4UUj3wW9uwKlXCHMJInkALzzCSyceQ3TnuWstByc6B8pTi Q+Ds8Fd3FizhfXyAEXsCZGHzIwDWhu4hSSaZYzt3KNT3i/5KReL19kvw+YcT69TUOpIo tc8CEoszuZW2ROacDE2UF9revfOFakWlnIeSl/Ydnl2UGLQoqQK75kUkiLXmgUfppY5j w8Pw== 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; bh=lGWsmwRFEpp2dtIKBsj3ET9oU/wPgnzlfNNLCGiJ7ME=; b=hqNZgc6EXAaWrSZt59qKePqHa9tMTMbX9mJv3pqjEnMHMsq9hJVzYarhvXJ2IV3iz6 UTxK3zl3ZIOBeXJBzlfYjQLTFf7KARhLLxkBkLTVVrioc8j8kwlnT0hcMQmyHOMiiFjR 0qutUI78l3nPAjovJIBk3uhwS9YbOmUzYcgWp4j1Vao4M3cqycWBLfwdafVVSWplhE7V UAeFTAFaNdbMrbaVo7kmcqROdZFWjqv8iRia2HLzm4dwuiWn2QY81FshsyksvJrpX3XD ZTV85DGfe0Pq4f4qw9h6X0rrPetZ8xI2bW6KuSKRlbShJF8QQbKrfYUfMfsgngcwq//k vHPQ== X-Gm-Message-State: APjAAAVN61uMW+NcXgXIb5k6OGDYAlVZk1YOVzUpLZBaTmn7FeBcRjcj q69TXjrrhLQoxGm1VVA9dt7Fi8QJNLA= X-Google-Smtp-Source: APXvYqyugc5pnprDdYLq0oT4TUUwci4NwCfwG46y4C0KWqxeWfkjY1lzKYF41KUy5HaNuhHr+75Wrg== X-Received: by 2002:adf:e803:: with SMTP id o3mr14236874wrm.326.1573507926812; Mon, 11 Nov 2019 13:32:06 -0800 (PST) Received: from localhost.localdomain (93-173-242-11.bb.netvision.net.il. [93.173.242.11]) by smtp.gmail.com with ESMTPSA id h8sm35987645wrc.73.2019.11.11.13.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 13:32:06 -0800 (PST) From: Avi Shukron To: buildroot@buildroot.org Date: Mon, 11 Nov 2019 23:31:45 +0200 Message-Id: <20191111213154.19409-1-avraham.shukron@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH v2 1/2] package/ninja: invoke python3 explicitly to configure the package 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: Eric Le Bihan , Avi Shukron MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" ninja depends on python3 specifically, but the configure.py file simply uses "env python". Where no python is selected for the target you simply won't get a python symlink in $(HOST_DIR)/usr/bin, so the configure.py script fails to run since it can't find "python". Notice that in order to reproduce the issue, you must not have python2 installed on your host machine. Signed-off-by: Avi Shukron --- package/ninja/ninja.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/ninja/ninja.mk b/package/ninja/ninja.mk index 4897012150..281cd70412 100644 --- a/package/ninja/ninja.mk +++ b/package/ninja/ninja.mk @@ -17,7 +17,7 @@ NINJA_LICENSE_FILES = COPYING HOST_NINJA_DEPENDENCIES = host-python3 define HOST_NINJA_BUILD_CMDS - (cd $(@D); ./configure.py --bootstrap) + (cd $(@D); $(HOST_DIR)/bin/python3 configure.py --bootstrap) endef define HOST_NINJA_INSTALL_CMDS