Re: [Libguestfs] [PATCH] Fix qemu version check

Richard W.M. Jones
Tue, 22 Apr 2014 20:28:08 -0000

On Tue, Apr 22, 2014 at 09:21:17PM +0200, Hilko Bengen
wrote:
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index ab072c3..9c398e0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -777,7 +777,7 @@ working.
>          fi
>
>          AC_MSG_CHECKING([for $QEMU version >= 1])
> -        if $QEMU -version | grep -sq 'version @<:@1-@:>@';
then
> +        if $QEMU -version | grep -sq 'version @<:@1-9@:>@';
then

I discovered the same problem earlier today and came up with an
identical fix:

https://github.com/libguestfs/libguestfs/commit/101d728e80cce73b882aac7af457013491d03311

However thanks for posting this.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch