[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] configure: Check bzip2 is available
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH] configure: Check bzip2 is available |
Date: |
Fri, 8 Nov 2019 10:31:47 +0000 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
On Fri, Nov 08, 2019 at 11:28:05AM +0100, Philippe Mathieu-Daudé wrote:
> The bzip2 tool is not included in default installations.
> On freshly installed systems, ./configure succeeds but 'make'
> might fail later:
>
> BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2
> /bin/sh: bzip2: command not found
> make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127
> make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd'
> make: *** Waiting for unfinished jobs....
>
> Add a check in ./configure to warn the user if bzip2 is missing.
>
> Fixes: 536d2173b2b
> Reported-by: Thomas Huth <address@hidden>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> configure | 7 +++++++
> 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=$($python -c 'import sys;
> print("%d.%d.%d" % (sys.version_info[0]
> # Suppress writing compiled files
> python="$python -B"
>
> +# Some firmware binaries are compressed with bzip2
> +if has bzip2; then
> + :
> +else
> + error_exit "bzip2 program not found. Please install it"
> +fi
Nitpick, I'd phrase this as
"The bzip2 program is required for building QEMU"
Either way though
Reviewed-by: Daniel P. Berrangé <address@hidden>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|