[libvirt] [PATCH] configure: enforce presence of python for build

Roman Bogorodskiy bogorodskiy at gmail.com
Mon May 8 11:37:19 UTC 2017


  Daniel P. Berrange wrote:

> The API docs extractor, ESX code generator and keycodemapdb tools
> rely on python. Historically every platform that this present, but
> with switch to Python3 by default, we're increasingly seeing
> installs without a /usr/bin/python.
> 
> This tightens up the check during configure, so it exits immediately
> if python is missing, rather than leaving an empty $(PYTHON) make
> variable which leads to more obscure errors later.
> 
> Also add it as a build dep for Mingw, since Fedora build roots no
> longer get python2 by default. This was not previously a major
> problem, since both ESX & API generated files were included in
> EXTRA_DIST, but the keycodemapdb generated files are not, so we
> require python all the time now.

I've just spotted the similar issue when building FreeBSD port, so this
changes makes perfect sense to me, ACK.

> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  configure.ac          | 5 ++++-
>  mingw-libvirt.spec.in | 1 +
>  2 files changed, 5 insertions(+), 1 deletion(-)

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170508/f804d764/attachment-0001.sig>


More information about the libvir-list mailing list