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 From patchwork Mon Nov 11 21:31:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Shukron X-Patchwork-Id: 1193154 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.137; helo=fraxinus.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="Y2cciqCx"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47Bkc825pFz9sPL for ; Tue, 12 Nov 2019 08:32:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 55AF586881; Mon, 11 Nov 2019 21:32:21 +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 V2-2hKqlw4Gy; Mon, 11 Nov 2019 21:32:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0F69086813; Mon, 11 Nov 2019 21:32:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A45A21BF3C8 for ; Mon, 11 Nov 2019 21:32:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A0ADC2226E for ; Mon, 11 Nov 2019 21:32:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fXLBiG46t+a6 for ; Mon, 11 Nov 2019 21:32:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by silver.osuosl.org (Postfix) with ESMTPS id DD33B22264 for ; Mon, 11 Nov 2019 21:32:17 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id f3so793525wmc.5 for ; Mon, 11 Nov 2019 13:32:17 -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:in-reply-to:references; bh=SlN3AcWbNfzLJS7Wt5j7CYVGu2PcynXrAMRpVQF69A4=; b=Y2cciqCxG/g1/TGqRYXqEV6dltoF+6mm5A7M2v35hQ3b2CO+YSIJA3ugbzAurRn+OK Yu6xMv4tV3TVLWXpddAtDcfIHeLPuJgtP9SYyVnLqQWLUitobqy+Y2Qnb3Hhrfg25xGY FIIXMrwh2QwN0ZBHptl/qUGnhNACNoF7FPAHL8eb67HO5nJjIU122EmYKFYx7/DWOpws I29vVL4ktCabn35zv1O6OV6ClZBSyUdcgJu9c1TpASTJnJo/qF2yeg0QhrD/zBnul4Og j3unnd6o8Yik1VEGNZifSiNdw8lrFTi6D41m+uC/DSoTroBE46nhBRwKW1bJxKoIkSvk 7TJw== 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:in-reply-to :references; bh=SlN3AcWbNfzLJS7Wt5j7CYVGu2PcynXrAMRpVQF69A4=; b=kXfuq/A85eiRlGXrKBpKCkpsiPTIwuK95AhFAGSM1zoiFw1L5Y3HVPxXuZhPj5VSpP dx4PF0i6MbJZV6WlBhxDQpOZibIlllolOvYi+egRWZlQ0GFrpo6wgTEjxLwcoAFdCkrz iS64DC80jHv4HBo/t3iFbKstQEZPDTfAZq/yO+y2dN/pg1t5VxP9E/kSfLIfbR15wswx WUvJUb4XJktDwRSKh4ggS2Ah/dw5htKpT9bwD6y7azArNjoj/7RYSR+9AVrciDwugYm8 8LP2Syx2neuSZJi40riF4EiwdUY7UdM3/LSAjSWzjb7Xdro258l6B8daA3o54PM3i1k6 FsAw== X-Gm-Message-State: APjAAAWW13KzTURbFqfdXcBM9dO7u6KE9hiRsQQKm1o5OH1qVR2VsXUi TCux6Fxx/oMMfVBjmgyxA+nxTZDitXo= X-Google-Smtp-Source: APXvYqy7rzFPK4BstOiwjawIe9dKYaHDyPRYy/DEBo3iqTob0u9J8k5AkNGspno8k4zw0020AA5TjA== X-Received: by 2002:a7b:c743:: with SMTP id w3mr895376wmk.165.1573507935701; Mon, 11 Nov 2019 13:32:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 13:32:15 -0800 (PST) From: Avi Shukron To: buildroot@buildroot.org Date: Mon, 11 Nov 2019 23:31:46 +0200 Message-Id: <20191111213154.19409-2-avraham.shukron@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191111213154.19409-1-avraham.shukron@gmail.com> References: <20191111213154.19409-1-avraham.shukron@gmail.com> Subject: [Buildroot] [PATCH v2 2/2] package/qemu: add host-python as an explicit dependency 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: Avi Shukron MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" qemu requires python in its configre script. Yet host-python was not listed as one of the package's dependencies. If no other package requested host-python, then configuring this package will fail since it won't find any executable named python in the host dir. In order to reproduce this issue you must not have python2 installed on your host machine. Signed-off-by: Avi Shukron --- package/qemu/qemu.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index a91f9d3eeb..00d413b68d 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -21,7 +21,7 @@ QEMU_LICENSE_FILES = COPYING COPYING.LIB #------------------------------------------------------------- # Target-qemu -QEMU_DEPENDENCIES = host-pkgconf libglib2 zlib pixman +QEMU_DEPENDENCIES = host-pkgconf libglib2 zlib pixman host-python # Need the LIBS variable because librt and libm are # not automatically pulled. :-( @@ -182,7 +182,7 @@ $(eval $(generic-package)) #------------------------------------------------------------- # Host-qemu -HOST_QEMU_DEPENDENCIES = host-pkgconf host-zlib host-libglib2 host-pixman +HOST_QEMU_DEPENDENCIES = host-pkgconf host-zlib host-libglib2 host-pixman host-python # BR ARCH qemu # ------- ----