From patchwork Thu Oct 13 15:47:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 614746 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp316242pvb; Thu, 13 Oct 2022 08:51:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rEZitRy8yHllPBbfPLJn0o3kLp6pykrvf2Jih6/jurijt97uuJWhmn2rQyJRk7Ra2NShp X-Received: by 2002:ac8:5e4b:0:b0:392:eba5:87a5 with SMTP id i11-20020ac85e4b000000b00392eba587a5mr339813qtx.685.1665676282283; Thu, 13 Oct 2022 08:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665676282; cv=none; d=google.com; s=arc-20160816; b=wL5yKyTVaGn2mIBaMS+Kdxp3XNRBTnhsiG1AFiRU1egjmKawVYW8sqQEbQVu0qSahl UIpkShimtxRKt/tAbqoc/KNU+tSY1LPoEAUY6WgBFFMWXuolcZAv/Y25uMRVNNA5lCNT JcLJZ0dtmppwD7zV41ZURqlmDY7qTZWotB5CB8JvcAbFQ9dDvHObSQ3s6X2NpuHwAeT7 hGHHZj+Fyrvk0j68YKBQlsNW6IXAQ7W5ejdvYVq6KMWgz5dmMFj/g5vom38QnioJffM7 tGncBdIRWAufgTzm9GfYQQ3pT4scmucdDtXVUZ26MQHk2Eu4avNThGfMfWMW0RYtftMC rjKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2ry1wU/BfM74+fJh+toSsnwKNvrVGaycYMZ3hF8weMU=; b=HKE0IsJI8f0vWtaK9BOZY8NJheqfZl1gHjwianJ6KarqiYcBRtfJxtxRDKfK5e+Lds 9aBLPCETzzeN42rtuqAkGAPDItw9e5Hj/D88U5GS8SCjvmZK7idA/jlcYduVPUi2a//I H2vyAwaPuJkfrVyYuIRZPaX+i/t2b1b15PVgCzTogtajG/EHrTVFjBaGxyMlY7bFWHNR u4nfcgyqkXQgXVBjfLefdS+vOPeCP0OozNtWwowOEbNWxJZPmIvrsk1ctvDwGFNvQvc3 4eSMts/XnBvyREX+r1lku+o8PR5mr/psmZcwBWKG96A4PZvmk2pPuEj2oCB81XGWIv1H a5LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F8ozOcJF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q1-20020a056214194100b004ad16fd5092si125178qvk.61.2022.10.13.08.51.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Oct 2022 08:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F8ozOcJF; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oj0UT-0006it-O3 for patch@linaro.org; Thu, 13 Oct 2022 11:51:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj0QW-0006B0-Dh for qemu-devel@nongnu.org; Thu, 13 Oct 2022 11:47:16 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:40775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oj0QT-0006oS-5X for qemu-devel@nongnu.org; Thu, 13 Oct 2022 11:47:15 -0400 Received: by mail-wr1-x42c.google.com with SMTP id w18so3479782wro.7 for ; Thu, 13 Oct 2022 08:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2ry1wU/BfM74+fJh+toSsnwKNvrVGaycYMZ3hF8weMU=; b=F8ozOcJFNhyTF+udriPACXXa/EOgB4FhHBwsfkuz7RrBP4/2cetoBM4ybJGEPLD1UQ diCjRZ2LyLhkr2OwM4tHLh61JRrfH+E6Cq1qzCKanG0mXDohxU8ZHBKTBcGz62/1d3j6 tJtzIWVHIJRZKAZQw+wVWy7Thbv6fiuo8gA938l1iXuVgYsvOb5MAoIBtVRb1dbgYN2g 5jwIN5QkVAp4A4c+GSi2AHLH4cn0SHlkon19zWupI6JyVOasT5SxQAse4jtfc7p25dN3 8tHE0IrUw5XFtDtOMzvQBEdG8YHUm987fRliQ1+dOY8ZRGoA1nuXuM0o/AB7csPJgB5C /zcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2ry1wU/BfM74+fJh+toSsnwKNvrVGaycYMZ3hF8weMU=; b=KQGFynjIkzFSpMc1o6bsD6tXVq/imZ2ZmcITgot4qVUj8VnUArW9dHG7jcyZgHx/J5 1nwHiAx5T3MF7F0thBrf3AVygaBgQATWDDu19Yxz4zFXBKmrGEOAWbHg141euOU4rfz2 aZyKzeUKn0lws5VzBN6bgj8hy2wL9rTPrEAQjclZ8yiyZ6wjV8qCKcNK8XubYBmL3pPo McNgU5pktzrPr4HjD2ADflIWi8GeuUiAJ7W5HrKthTG7wPJH7wG4LkR4LMx5o81xDyUC Kw7k+YBPD3gtVWw33MweuSUmMURIQD6bn6DyCddiNLmvcUf9HzCGEou3a5UeVF4ApIuJ tmBg== X-Gm-Message-State: ACrzQf3LQEuUFCcV5zZ6DTnw9+BC4IWRz9PUPxdQpcxxQhosLPx8Ix1U i2QsYHnNhTXueS9zLxXz4dMniQ== X-Received: by 2002:adf:de11:0:b0:22e:32bf:73f0 with SMTP id b17-20020adfde11000000b0022e32bf73f0mr425723wrm.37.1665676031747; Thu, 13 Oct 2022 08:47:11 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id r16-20020a05600c35d000b003a84375d0d1sm5245394wmq.44.2022.10.13.08.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 08:47:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 626591FFBE; Thu, 13 Oct 2022 16:47:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v2 6/7] configure: expose the direct container command Date: Thu, 13 Oct 2022 16:47:04 +0100 Message-Id: <20221013154705.1846261-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221013154705.1846261-1-alex.bennee@linaro.org> References: <20221013154705.1846261-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" In the process of migrating away from using docker.py to build our containers we need to expose the command to the build environment. The script is still a useful way to probe which command works though. Signed-off-by: Alex Bennée --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index bab4e6df9f..edac4f3577 100755 --- a/configure +++ b/configure @@ -1779,6 +1779,7 @@ fi # functions to probe cross compilers container="no" +runc="" if test $use_containers = "yes"; then case $($python "$source_path"/tests/docker/docker.py probe) in *docker) container=docker ;; @@ -1787,6 +1788,7 @@ if test $use_containers = "yes"; then esac if test "$container" != "no"; then docker_py="$python $source_path/tests/docker/docker.py --engine $container" + runc=$($python "$source_path"/tests/docker/docker.py probe) fi fi @@ -2386,6 +2388,7 @@ fi if test "$container" != no; then echo "ENGINE=$container" >> $config_host_mak + echo "RUNC=$runc" >> $config_host_mak fi echo "ROMS=$roms" >> $config_host_mak echo "MAKE=$make" >> $config_host_mak