Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iT1jB-0001FA-Uf for mharc-qemu-trivial@gnu.org; Fri, 08 Nov 2019 05:42:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52790) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iT1j9-0001Es-Sn for qemu-trivial@nongnu.org; Fri, 08 Nov 2019 05:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iT1j8-0005WN-PZ for qemu-trivial@nongnu.org; Fri, 08 Nov 2019 05:42:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25679) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iT1j8-0005W0-Hz for qemu-trivial@nongnu.org; Fri, 08 Nov 2019 05:42:50 -0500 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 10BEDC04D2F1 for ; Fri, 8 Nov 2019 10:42:49 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id c6so2978112wrp.3 for ; Fri, 08 Nov 2019 02:42:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bF9XiTb3l7F/4Vr4HJRGCu1lBZTzU09e/cNUwj1ZvhY=; b=aXCX4q2g0hORKzkNSYJydOmxY7v7IpehdfUIBXqhkqVGMnhL3IaplPe6EVbmB8rlgX DpiKB81hFunAAaZom60AL4Opvmm2GhwnNk0Qer1m+sW3SYLc0+B3rVFup80IboIQA1ki DZXIhQdM1luJwheQGRYi3FezD+q9kSOSOXL9UUiJsjoshccy3lkCAgvSFuOJShM1oIER jyXLvan5FahJiGCRy7pAzgfDxAznFYxEK7ezppaY6+zjQGG36uc07GswOwU44kUqm70u D9uC6TEjmkIabhwD+rUxX5DIa5VipIbOh4XuYlXRSbMU+N0GpPsi9DFPwz661zHfanrP py8w== X-Gm-Message-State: APjAAAURN6IF+Ta1/gTs6ywRAqXewPn/xPHifysLNpI9XGcjpcc8LLAG 3ymclmwqtJZEL4pUvwDqevoOKSiWna3YO1XAY5yshUAhJvQtF7D98qzHzGm5hiNQ59vhi2wuvl2 AKl301svPRAVG03IAoA== X-Received: by 2002:a1c:9646:: with SMTP id y67mr7381861wmd.79.1573209767789; Fri, 08 Nov 2019 02:42:47 -0800 (PST) X-Google-Smtp-Source: APXvYqx1YVfR/38o6ndI33XJOc9yyAz5auD6RlMMfsP1b4YJa6/oFkUplT7vTvOJ/q9sbVcsdABTmg== X-Received: by 2002:a1c:9646:: with SMTP id y67mr7381828wmd.79.1573209767466; Fri, 08 Nov 2019 02:42:47 -0800 (PST) Received: from [192.168.1.33] (62.red-88-21-202.staticip.rima-tde.net. [88.21.202.62]) by smtp.gmail.com with ESMTPSA id a11sm5863253wmh.40.2019.11.08.02.42.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Nov 2019 02:42:46 -0800 (PST) Subject: Re: [PATCH] configure: Check bzip2 is available To: Thomas Huth , Laszlo Ersek , qemu-devel@nongnu.org Cc: "Daniel P . Berrange" , qemu-trivial@nongnu.org, Wainer dos Santos Moschetta References: <20191108102805.8258-1-philmd@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Fri, 8 Nov 2019 11:42:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 10:42:53 -0000 On 11/8/19 11:34 AM, Thomas Huth wrote: > On 08/11/2019 11.28, Philippe Mathieu-Daud=C3=A9 wrote: >> The bzip2 tool is not included in default installations. >> On freshly installed systems, ./configure succeeds but 'make' >> might fail later: >> >> =C2=A0=C2=A0=C2=A0=C2=A0 BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2 >> =C2=A0=C2=A0 /bin/sh: bzip2: command not found >> =C2=A0=C2=A0 make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd= ] Error 127 >> =C2=A0=C2=A0 make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd= ' >> =C2=A0=C2=A0 make: *** Waiting for unfinished jobs.... >> >> Add a check in ./configure to warn the user if bzip2 is missing. >> >> Fixes: 536d2173b2b >> Reported-by: Thomas Huth >> Signed-off-by: Philippe Mathieu-Daud=C3=A9 >> --- >> =C2=A0 configure | 7 +++++++ >> =C2=A0 1 file changed, 7 insertions(+) >> >> diff --git a/configure b/configure >> index efe165edf9..9957e913e8 100755 >> --- a/configure >> +++ b/configure >> @@ -1851,6 +1851,13 @@ python_version=3D$($python -c 'import sys;=20 >> print("%d.%d.%d" % (sys.version_info[0] >> =C2=A0 # Suppress writing compiled files >> =C2=A0 python=3D"$python -B" >> +# Some firmware binaries are compressed with bzip2 >> +if has bzip2; then >> +=C2=A0 : >> +else >> +=C2=A0 error_exit "bzip2 program not found. Please install it" >> +fi >=20 > It's only required for the edk2 binaries, isn't it? So should this mayb= e=20 > also check whether we build any of the i386-softmmu, x86_64-softmmu=20 > arm-softmmu or aarch64-softmmu targets and pass otherwise? I have this on my TODO somewhere, because we extract the edk2 firmwares=20 even if we only build MIPS/PowerPC.