From patchwork Fri Jul 12 11:18:46 2019 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: 168931 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp739948ilk; Fri, 12 Jul 2019 04:19:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqysP1KtZJ0K9xralH/XQHup7851DkQ7BOmr+hrZwqMpsNbxKRzI1C97COrApb849e5LH4wD X-Received: by 2002:a17:906:9145:: with SMTP id y5mr7717570ejw.257.1562930364784; Fri, 12 Jul 2019 04:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562930364; cv=none; d=google.com; s=arc-20160816; b=AV+2k1LfN4efWbOEaruKKUVR7o80+K0yboc3flZK0mpcV4LtkpSYLvOYsYtVHNub1g DjHEBaiPOJXhRYzziXKPhWdj+8sksrjpgNYBp6A1YC8uu+/axQHii3SbPbfpNr376Tbf Ld1eZXrQYcdc+FllOMTaXYqggAmBBuHmL4yM5ZU0bG5KmRhoRc62D1fROx8zND9UDRIJ +Og2U3b+ooGc9Y07lVSkJS5/hhljKCpQM1z14EhJ7fHUV8L4NTzQU2D3VbMm7rrW+39V RX+S0isra7uOMbRdA2xrs/9L7/99te1EEpJUJklebtdD7YgyuYlMBD748hR6HaIpKrE+ IXSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=S6vlCzd8bs8oUu9Zqj4pZDk3kYEbnE2MFo03V6K4g9k=; b=yoi9IOWntKAhwdYSXNLHoU1Hf+3xaFN6KMgsXncQ49R6vFy3XGfc0K2FfOXnib8Fs+ xJnLOpLtjNfQ0dJCvBqLEAvDtIVz8D9flVFYfBRF6KHOG9OJq+eyw/tOsNHJsI0g7B/4 FXmEueC2bbVhSIS8rW2qAbOsJBGzBj4imYV8hl9Dy75uUztwhc1i01ONKVRdx+EzN29s 7JlBG8SxrT6d0JeojSopWyde4roykocAFBZj69V+HGLW0yhKLotq/yEW6kh/tnTG3lgv r9wKny9HPFASqL/QBo9FkIYTTjdNoMa9nQIjcb6FTyzQnrJuaYRgeMgeld8XrIFj8VR2 4m0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NqlQGiQ3; 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=fail (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 p20si4646067ejb.361.2019.07.12.04.19.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jul 2019 04:19:24 -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=fail header.i=@linaro.org header.s=google header.b=NqlQGiQ3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hltaD-0000mf-QB for patch@linaro.org; Fri, 12 Jul 2019 07:19:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47149) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hltZo-0000H6-BQ for qemu-devel@nongnu.org; Fri, 12 Jul 2019 07:18:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hltZm-0000LJ-UZ for qemu-devel@nongnu.org; Fri, 12 Jul 2019 07:18:56 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:35255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hltZm-0000KO-MB for qemu-devel@nongnu.org; Fri, 12 Jul 2019 07:18:54 -0400 Received: by mail-wr1-x431.google.com with SMTP id y4so9595620wrm.2 for ; Fri, 12 Jul 2019 04:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S6vlCzd8bs8oUu9Zqj4pZDk3kYEbnE2MFo03V6K4g9k=; b=NqlQGiQ3liFYjXGiUFdSU2ZXvLkRXo1Mf5q3R45PAnbXkCRx9NpKVKyQOzv8bMqvB8 y5MT/UAvtUwThWaUrWiDFa4Q1mYtdhIlZhA192VYfj70Ta23EQ3DiL+QqOLSrJYM7nYI J85pXEXH39wxfpLlZD4TwPT+NB31NiJ3YPVn+0/hN5ywkgQsdV03rvbhYZv1ovCC1I69 lm7dEMz5YXUkQEV6FUi5cxgerI7KZ9H0CNcRf67uFMlGH90VvzyupaUawu8Q0UbF9jvA FjVzQ+slpuYXN5P/FYLEBWxq+0x7e1GW1HalOLdklnohfTGXMSNMZ2GgjbkdajdNoxTo IzUA== 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:mime-version:content-transfer-encoding; bh=S6vlCzd8bs8oUu9Zqj4pZDk3kYEbnE2MFo03V6K4g9k=; b=ddwro6PFNRBuGbLueHZqxKyZAk5I7R5OTHQCoJ31NzaIg9w41nLtNvgIvQtz/aETsw F8lBBzhZilM55292BrGKIWmfgaoeD4PhWcbNYR8tWZe1aRrJXPONQ1dUocMPqfeP3u/o VFF1uMdjHkQRVVmYCHEa7DyzCw5zJAXpPfp19kElQEmFIy8oY9JjEyaayF+v5SBSE+Of hDdtgU3D4QvBFLtCG6NGcPhi5F28xqXheJJUy+jJUgqVu74Vl3aJf2Cc+ljG8thoCN6c 9llJdnzwBRVPPGhh2GPBQEg8W+NikzHoJYT7LS8Li2LEeMbh8/JMcnPtYWhx+eqICAY3 SOzg== X-Gm-Message-State: APjAAAVEreNhMyj/MN4Ib2D2T22kGpNiX52uEqT12kgH/v/kXwmCyZfm ALkxqiKy09lOV9SV82VtxCoYmw== X-Received: by 2002:adf:f186:: with SMTP id h6mr11095370wro.274.1562930333444; Fri, 12 Jul 2019 04:18:53 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o6sm13811824wra.27.2019.07.12.04.18.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 04:18:51 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7D7A61FF91; Fri, 12 Jul 2019 12:18:50 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 12 Jul 2019 12:18:46 +0100 Message-Id: <20190712111849.9006-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190712111849.9006-1-alex.bennee@linaro.org> References: <20190712111849.9006-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 Subject: [Qemu-devel] [PATCH v1 4/7] tests/docker: Install Ubuntu images noninteractively X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , Fam Zheng , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé We correctly use the DEBIAN_FRONTEND environment variable on the Debian images, but forgot the Ubuntu ones are based on it. Since building docker images is not interactive, we need to inform the APT tools about it using the DEBIAN_FRONTEND environment variable (we already use it on our Debian images). This fixes: $ make docker-image-ubuntu V=1 [...] Setting up tzdata (2019b-0ubuntu0.19.04) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc 2. America 5. Arctic 8. Europe 11. SystemV 3. Antarctica 6. Asia 9. Indian 12. US Geographic area: 12 [HANG] Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20190711124805.26476-1-philmd@redhat.com> Signed-off-by: Alex Bennée --- tests/docker/dockerfiles/ubuntu.docker | 2 +- tests/docker/dockerfiles/ubuntu1804.docker | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/tests/docker/dockerfiles/ubuntu.docker b/tests/docker/dockerfiles/ubuntu.docker index 2500ec84b6f..a4f601395c8 100644 --- a/tests/docker/dockerfiles/ubuntu.docker +++ b/tests/docker/dockerfiles/ubuntu.docker @@ -66,6 +66,6 @@ ENV PACKAGES flex bison \ texinfo \ xfslibs-dev RUN apt-get update && \ - apt-get -y install $PACKAGES + DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES RUN dpkg -l $PACKAGES | sort > /packages.txt ENV FEATURES clang pyyaml sdl2 diff --git a/tests/docker/dockerfiles/ubuntu1804.docker b/tests/docker/dockerfiles/ubuntu1804.docker index 0bb8088658d..44bbf0f77ae 100644 --- a/tests/docker/dockerfiles/ubuntu1804.docker +++ b/tests/docker/dockerfiles/ubuntu1804.docker @@ -53,6 +53,6 @@ ENV PACKAGES flex bison \ texinfo \ xfslibs-dev RUN apt-get update && \ - apt-get -y install $PACKAGES + DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES RUN dpkg -l $PACKAGES | sort > /packages.txt ENV FEATURES clang pyyaml sdl2