[libvirt] [PATCH v3 01/19] build: probe for glib-2 library in configure

Ján Tomko jtomko at redhat.com
Thu Oct 10 12:47:35 UTC 2019


On Thu, Oct 10, 2019 at 11:53:55AM +0100, Daniel P. Berrangé wrote:
>Prepare for linking with glib by probing for it at configure
>time. Per supported platforms target, the min glib versions on
>relevant distros are:
>
>  RHEL-8: 2.56.1
>  RHEL-7: 2.50.3
>  Debian (Buster): 2.58.3
>  Debian (Stretch): 2.50.3
>  OpenBSD (Ports): 2.58.3
>  FreeBSD (Ports): 2.56.3
>  OpenSUSE Leap 15: 2.54.3
>  SLE12-SP2: 2.48.2
>  Ubuntu (Xenial): 2.48.0
>  macOS (Homebrew): 2.56.0
>
>This suggests that a minimum glib of 2.48 is a reasonable target.
>This aligns with the minimum version required by qemu too.
>
>We must disable the bad-function-cast warning as various GLib APIs
>and macros will trigger this.
>
>Reviewed-by: Ján Tomko <jtomko at redhat.com>
>Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> .travis.yml                 |  1 +
> configure.ac                |  2 ++
> libvirt.spec.in             |  1 +
> m4/virt-compile-warnings.m4 |  2 ++
> m4/virt-glib.m4             | 36 ++++++++++++++++++++++++++++++++++++
> mingw-libvirt.spec.in       |  2 ++
> 6 files changed, 44 insertions(+)
> create mode 100644 m4/virt-glib.m4
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191010/56f7a491/attachment-0001.sig>


More information about the libvir-list mailing list