[libvirt] [PATCH] storage: avoid use of undefined GLUSTER_CLI variable

Peter Krempa pkrempa at redhat.com
Thu Jan 19 10:40:06 UTC 2017


On Thu, Jan 19, 2017 at 10:34:22 +0000, Daniel Berrange wrote:
> Previous commit tried to change configure logic such that the
> GLUSTER_CLI parameter would always be set:
> 
>   commit 9e97c8c0f0f3921d06bac2b92cd094a41373f748
>   Author: Peter Krempa <pkrempa at redhat.com>
>   Date:   Mon Jan 9 15:56:12 2017 +0100
> 
>     storage: gluster: Remove build-time dependency on the 'gluster' cli tool
> 
> This missed the fact that the AC_PATH_PROG call was itself inside an 'if'
> conditional that would not be called in with_storage_gluster was false. As
> a result, GLUSTER_CLI was still conditionally defined.
> 
> Just kill the GLUSTER_CLI parameter and AC_PATH_PROG call entirely and pass a
> bare "gluster" string to virFindFileInPath instead.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> 
> Technically this is a build-break fix for FreeBSD, but I want to get a
> review to double-check before pushing this.

I was thinking doing the same originally, but then thought that letting
it configurable still might be a good idea. For this particular case I
don't think it's worth though.

ACK and thanks for fixing my mess.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170119/46e9e335/attachment-0001.sig>


More information about the libvir-list mailing list