Browse Source

New upstream version 5.6.0

tags/upstream/5.6.0^0
Guido Günther 1 year ago
parent
commit
07d5669404
100 changed files with 15686 additions and 3027 deletions
  1. +10
    -3
      AUTHORS
  2. +4
    -2
      Makefile.am
  3. +83
    -32
      Makefile.ci
  4. +26
    -248
      Makefile.in
  5. +179
    -0
      NEWS
  6. +1
    -1
      README
  7. +1
    -1
      README.md
  8. +86
    -104
      aclocal.m4
  9. +5
    -5
      build-aux/compile
  10. +326
    -316
      build-aux/config.guess
  11. +1244
    -1290
      build-aux/config.sub
  12. +5
    -5
      build-aux/depcomp
  13. +31
    -10
      build-aux/header-ifdef.pl
  14. +31
    -14
      build-aux/install-sh
  15. +1
    -1
      build-aux/ltmain.sh
  16. +8
    -8
      build-aux/missing
  17. +3
    -3
      build-aux/mkinstalldirs
  18. +5
    -5
      build-aux/test-driver
  19. +7
    -6
      cfg.mk
  20. +13
    -15
      config.h.in
  21. +302
    -503
      configure
  22. +1
    -17
      configure.ac
  23. +1
    -1
      docs/404.html
  24. +44
    -27
      docs/Makefile.am
  25. +57
    -42
      docs/Makefile.in
  26. +87
    -19
      docs/acl.html
  27. +66
    -16
      docs/aclperms.htmlinc
  28. +1
    -1
      docs/aclpolkit.html
  29. +1
    -1
      docs/api.html
  30. +4
    -4
      docs/api_extension.html
  31. +3
    -3
      docs/api_extension.html.in
  32. +2
    -0
      docs/apibuild.py
  33. +1
    -1
      docs/apps.html
  34. +1
    -1
      docs/architecture.html
  35. +1
    -1
      docs/auditlog.html
  36. +1
    -1
      docs/auth.html
  37. +1
    -1
      docs/bindings.html
  38. +1
    -1
      docs/bugs.html
  39. +1
    -1
      docs/cgroups.html
  40. +1
    -1
      docs/compiling.html
  41. +1
    -1
      docs/contact.html
  42. +1
    -1
      docs/contribute.html
  43. +1
    -1
      docs/csharp.html
  44. +1
    -1
      docs/dbus.html
  45. +1
    -1
      docs/devguide.html
  46. +1
    -1
      docs/devhelp/general.html
  47. +292
    -0
      docs/devhelp/libvirt-libvirt-common.html
  48. +280
    -0
      docs/devhelp/libvirt-libvirt-domain-checkpoint.html
  49. +540
    -0
      docs/devhelp/libvirt-libvirt-domain-snapshot.html
  50. +5905
    -0
      docs/devhelp/libvirt-libvirt-domain.html
  51. +252
    -0
      docs/devhelp/libvirt-libvirt-event.html
  52. +978
    -0
      docs/devhelp/libvirt-libvirt-host.html
  53. +288
    -0
      docs/devhelp/libvirt-libvirt-interface.html
  54. +646
    -0
      docs/devhelp/libvirt-libvirt-network.html
  55. +359
    -0
      docs/devhelp/libvirt-libvirt-nodedev.html
  56. +256
    -0
      docs/devhelp/libvirt-libvirt-nwfilter.html
  57. +316
    -0
      docs/devhelp/libvirt-libvirt-secret.html
  58. +869
    -0
      docs/devhelp/libvirt-libvirt-storage.html
  59. +582
    -0
      docs/devhelp/libvirt-libvirt-stream.html
  60. +6
    -2
      docs/devhelp/libvirt-virterror.html
  61. +68
    -0
      docs/devhelp/libvirt.devhelp
  62. +7
    -10
      docs/docs.html
  63. +6
    -8
      docs/docs.html.in
  64. +1
    -1
      docs/downloads.html
  65. +2
    -58
      docs/drivers.html
  66. +1
    -15
      docs/drivers.html.in
  67. +1
    -1
      docs/drvbhyve.html
  68. +1
    -1
      docs/drvesx.html
  69. +1
    -1
      docs/drvhyperv.html
  70. +1
    -1
      docs/drvlxc.html
  71. +1
    -1
      docs/drvnodedev.html
  72. +1
    -1
      docs/drvopenvz.html
  73. +1
    -1
      docs/drvphyp.html
  74. +46
    -70
      docs/drvqemu.html
  75. +42
    -72
      docs/drvqemu.html.in
  76. +1
    -1
      docs/drvremote.html
  77. +1
    -1
      docs/drvtest.html
  78. +1
    -1
      docs/drvvbox.html
  79. +1
    -1
      docs/drvvirtuozzo.html
  80. +1
    -1
      docs/drvvmware.html
  81. +2
    -3
      docs/drvxen.html
  82. +1
    -2
      docs/drvxen.html.in
  83. +1
    -1
      docs/errors.html
  84. +1
    -1
      docs/firewall.html
  85. +7
    -1
      docs/format.html
  86. +2
    -0
      docs/format.html.in
  87. +1
    -1
      docs/formatcaps.html
  88. +305
    -0
      docs/formatcheckpoint.html
  89. +198
    -0
      docs/formatcheckpoint.html.in
  90. +49
    -20
      docs/formatdomain.html
  91. +45
    -18
      docs/formatdomain.html.in
  92. +4
    -5
      docs/formatdomaincaps.html
  93. +3
    -4
      docs/formatdomaincaps.html.in
  94. +26
    -1
      docs/formatnetwork.html
  95. +22
    -0
      docs/formatnetwork.html.in
  96. +340
    -0
      docs/formatnetworkport.html
  97. +212
    -0
      docs/formatnetworkport.html.in
  98. +1
    -1
      docs/formatnode.html
  99. +1
    -1
      docs/formatnwfilter.html
  100. +59
    -3
      docs/formatsecret.html

+ 10
- 3
AUTHORS View File

@@ -234,7 +234,6 @@ Eric W. Biederman <ebiederm@xmission.com>
Ersek Laszlo <lacos@caesar.elte.hu>
Eugen Feller <eugen.feller@inria.fr>
Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Fabiano Fidêncio <fabiano@fidencio.org>
Fabiano Fidêncio <fidencio@redhat.com>
Farhan Ali <alifm@linux.ibm.com>
Farhan Ali <alifm@linux.vnet.ibm.com>
@@ -283,10 +282,12 @@ Hongwei Bi <hwbi2008@gmail.com>
Hu Jianwei <jiahu@redhat.com>
Hu Tao <hutao@cn.fujitsu.com>
Huanle Han <hanxueluo@gmail.com>
Huaqiang <huaqiang.wang@intel.com>
Ian Campbell <Ian.Campbell@citrix.com>
Ian Campbell <ian.campbell@citrix.com>
Ian Main <imain@redhat.com>
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Ilias Stamatis <stamatis.iliass@gmail.com>
Ilja Livenson <ilja.livenson@gmail.com>
Ishmanpreet Kaur Khera <khera.ishman@gmail.com>
Ivan Baldo <ibaldo@adinet.com.uy>
@@ -320,12 +321,14 @@ Jingjing Shao <jishao@redhat.com>
Jiri Denemark <jdenemar@redhat.com>
Joao Martins <joao.m.martins@oracle.com>
Joel SIMOES <joel.simoes@laposte.net>
Johannes Holmberg <johannes.holmberg@dataductus.se>
John Eckersberg <jeckersb@redhat.com>
John Morrissey <jwm@horde.net>
John Williams <john.williams@petalogix.com>
Jonas Eriksson <jonas.j.eriksson@ericsson.com>
Jonathan Lebon <jlebon@redhat.com>
Jonathan Toppins <jtoppins@cumulusnetworks.com>
Jonathon Jongsma <jjongsma@redhat.com>
Josh Durgin <josh.durgin@inktank.com>
Josh Stone <jistone@redhat.com>
Jovanka Gulicoska <jovanka.gulicoska@gmail.com>
@@ -358,6 +361,7 @@ Li Zhang <zhlcindy@linux.vnet.ibm.com>
Lily Zhu <lizhu@redhat.com>
Lin Ma <lma@suse.com>
Lincoln Myers <lincoln_myers@yahoo.com>
Liu Dayu <liu.dayu@zte.com.cn>
Liuji (Jeremy) <jeremy.liu@huawei.com>
Lorin Hochstein <lorin@isi.edu>
Lubomir Rintel <lkundrak@v3.sk>
@@ -397,6 +401,7 @@ Maxim Kozin <kolomaxes@gmail.com>
Maxim Perevedentsev <mperevedentsev@virtuozzo.com>
Maxime Leroy <maxime.leroy@6wind.com>
Maximilian Wilhelm <max@rfc2324.org>
Maxiwell S. Garcia <maxiwell@linux.ibm.com>
Mehdi Abaakouk <sileht@redhat.com>
Michael Avdienko <whitearchey@gmail.com>
Michael Chapman <mike@very.puzzling.org>
@@ -521,7 +526,6 @@ ShaoHe Feng <shaohe.feng@intel.com>
Shaohe Feng <shaohe.feng@intel.com>
Sharadha Prabhakar <sharadha.prabhakar@citrix.com>
Shi Lei <shi_lei@massclouds.com>
Shi Lei <shilei.massclouds@gmx.com>
Shichangkuo <shi.changkuo@h3c.com>
Shivangi Dhir <shivangi.dhir.02@gmail.com>
Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
@@ -529,6 +533,7 @@ Shivaprasad G Bhat <shivaprasadbhat@gmail.com>
Shotaro Gotanda <g.sho1500@gmail.com>
Shradha Shah <sshah@solarflare.com>
Shuang He <shuang.he@zstack.io>
Silvan Kaiser <silvan@quobyte.com>
Simon Arlott <bugzilla.redhat.simon@arlott.org>
Simon Kobyda <skobyda@redhat.com>
Simon McVittie <smcv@debian.org>
@@ -539,6 +544,7 @@ Sri Ramanujam <sramanujam@datto.com>
Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Stef Walter <stefw@gnome.org>
Stefan Bader <stefan.bader@canonical.com>
Stefan Berger <stefanb@linux.ibm.com>
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Stefan Hajnoczi <stefanha@redhat.com>
Stefan Schallenberg <infos@nafets.de>
@@ -620,6 +626,7 @@ Yanbing Du <ydu@redhat.com>
Yanbing Du <ydu@ydu-0.nay.redhat.com>
Yaniv Kaul <ykaul@redhat.com>
Yanqiu Zhang <yanqzhan@redhat.com>
Yi Li <yili@winhong.com>
Yi Min Zhao <zyimin@linux.ibm.com>
Yi Wang <wang.yi59@zte.com.cn>
Yogesh Tillu <tillu.yogesh@gmail.com>
@@ -650,7 +657,7 @@ dann frazier <dann.frazier@canonical.com>
gaohaifeng <gaohaifeng.gao@huawei.com>
hejia hejia <jiakernel@gmail.com>
ik.nitk <ik.nitk@gmail.com>
intrigeri <intrigeri+libvirt@boum.org>
intrigeri <intrigeri@boum.org>
intrigeri <intrigeri@debian.org>
james robson <jrobson@websense.com>
lawrancejing <lawrancejing@gmail.com>


+ 4
- 2
Makefile.am View File

@@ -35,6 +35,7 @@ EXTRA_DIST = \
libvirt-qemu.pc.in \
libvirt-lxc.pc.in \
libvirt-admin.pc.in \
Makefile.ci \
Makefile.nonreentrant \
autogen.sh \
cfg.mk \
@@ -83,7 +84,7 @@ srpm: clean

check-local: all tests

check-access:
check-access: all
@($(MAKE) $(AM_MAKEFLAGS) -C tests check-access)

MAINTAINERCLEANFILES = .git-module-status
@@ -107,4 +108,5 @@ gen-AUTHORS:
rm -f all.list maint.list contrib.list; \
fi

include Makefile.ci
ci-%:
$(MAKE) -f Makefile.ci $@

+ 83
- 32
Makefile.ci View File

@@ -17,7 +17,7 @@ CI_GIT_ROOT = $(shell git rev-parse --show-toplevel)
CI_HOST_SRCDIR = $(CI_SCRATCHDIR)/src

# The directory holding the source inside the
# container. ie where we told Docker to expose
# container, i.e. where we want to expose
# the $(CI_HOST_SRCDIR) directory from the host
CI_CONT_SRCDIR = /src

@@ -46,15 +46,14 @@ CI_CONFIGURE_ARGS =
# cloning them
CI_SUBMODULES = $(shell git submodule | awk '{ print $$2 }')

# Location of the Docker images we're going to pull
# Location of the container images we're going to pull
# Can be useful to overridde to use a locally built
# image instead
CI_IMAGE_PREFIX = quay.io/libvirt/buildenv-

# Docker defaults to pulling the ':latest' tag but
# if the Docker repo above uses different conventions
# this can override it
CI_IMAGE_TAG = :master
# The default tag is ':latest' but if the container
# repo above uses different conventions this can override it
CI_IMAGE_TAG = :latest

# We delete the virtual root after completion, set
# to 0 if you need to keep it around for debugging
@@ -71,15 +70,23 @@ CI_REUSE = 0
CI_UID = $(shell id -u)
CI_GID = $(shell id -g)

# Docker doesn't require the IDs you run as to exist in
CI_ENGINE = auto
# Container engine we are going to use, can be overridden per make
# invocation, if it is not we try podman and then default to docker.
ifeq ($(CI_ENGINE),auto)
override CI_ENGINE = $(shell podman version >/dev/null 2>&1 && echo podman || echo docker)
endif

# IDs you run as do not need to exist in
# the container's /etc/passwd & /etc/group files, but
# if they do not, then libvirt's 'make check' will fail
# if they do not, then libvirt's 'make check' will fail
# many tests.
#
# We do not directly mount /etc/{passwd,group} as Docker
# is liable to mess with SELinux labelling which will
# then prevent the host accessing them. Copying them
# first is safer.
# then prevent the host accessing them. And podman cannot
# relabel the files due to it running rootless. So
# copying them first is safer and error-prone.
CI_PWDB_MOUNTS = \
--volume $(CI_SCRATCHDIR)/group:/etc/group:ro,z \
--volume $(CI_SCRATCHDIR)/passwd:/etc/passwd:ro,z \
@@ -90,6 +97,46 @@ CI_PWDB_MOUNTS = \
# libvirt very slow at exec'ing programs.
CI_ULIMIT_FILES = 1024

ifeq ($(CI_ENGINE),podman)
# Podman cannot reuse host namespace when running non-root containers. Until
# support for --keep-uid is added we can just create another mapping that will
# do that for us. Beware, that in {uid,git}map=container_id:host_id:range,
# the host_id does actually refer to the uid in the first mapping where 0
# (root) is mapped to the current user and rest is offset.

# In order to set up this mapping, we need to keep all the user IDs to prevent
# possible errors as some images might expect UIDs up to 90000 (looking at you
# fedora), so we don't want the overflowuid to be used for them. For mapping
# all the other users properly ther eneeds to be some math done. Don't worry,
# it's just addition and subtraction.

# 65536 ought to be enough (tm), but for really rare cases the maximums might
# need to be higher, but that only happens when your /etc/sub{u,g}id allow
# users to have more IDs. Unless --keep-uid is supported, let's do this in a
# way that should work for everyone.
CI_MAX_UID = $(shell sed -n "s/^$USER:[^:]\+://p" /etc/subuid)
CI_MAX_GID = $(shell sed -n "s/^$USER:[^:]\+://p" /etc/subgid)
ifeq ($(CI_MAX_UID),)
CI_MAX_UID = 65536
endif
ifeq ($(CI_MAX_GID),)
CI_MAX_GID = 65536
endif
CI_UID_OTHER = $(shell echo $$(($(CI_UID)+1)))
CI_GID_OTHER = $(shell echo $$(($(CI_GID)+1)))
CI_UID_OTHER_RANGE = $(shell echo $$(($(CI_MAX_UID)-$(CI_UID))))
CI_GID_OTHER_RANGE = $(shell echo $$(($(CI_MAX_GID)-$(CI_GID))))

CI_PODMAN_ARGS = \
--uidmap 0:1:$(CI_UID) \
--uidmap $(CI_UID):0:1 \
--uidmap $(CI_UID_OTHER):$(CI_UID_OTHER):$(CI_UID_OTHER_RANGE) \
--gidmap 0:1:$(CI_GID) \
--gidmap $(CI_GID):0:1 \
--gidmap $(CI_GID_OTHER):$(CI_GID_OTHER):$(CI_GID_OTHER_RANGE) \
$(NULL)
endif

# Args to use when cloning a git repo.
# -c stop it complaining about checking out a random hash
# -q stop it displaying progress info for local clone
@@ -100,7 +147,7 @@ CI_GIT_ARGS = \
--local \
$(NULL)

# Args to use when running the Docker env
# Args to use when running the container
# --rm stop inactive containers getting left behind
# --user we execute as the same user & group account
# as dev so that file ownership matches host
@@ -110,22 +157,23 @@ CI_GIT_ARGS = \
# --ulimit lower files limit for performance reasons
# --interactive
# --tty Ensure we have ability to Ctrl-C the build
CI_DOCKER_ARGS = \
CI_ENGINE_ARGS = \
--rm \
--user $(CI_UID):$(CI_GID) \
--interactive \
--tty \
$(CI_PODMAN_ARGS) \
$(CI_PWDB_MOUNTS) \
--volume $(CI_HOST_SRCDIR):$(CI_CONT_SRCDIR):z \
--workdir $(CI_CONT_SRCDIR) \
--ulimit nofile=$(CI_ULIMIT_FILES):$(CI_ULIMIT_FILES) \
$(NULL)

ci-check-docker:
@echo -n "Checking if Docker is available and running..." && \
docker version 1>/dev/null && echo "yes"
ci-check-engine:
@echo -n "Checking if $(CI_ENGINE) is available..." && \
$(CI_ENGINE) version 1>/dev/null && echo "yes"

ci-prepare-tree: ci-check-docker
ci-prepare-tree: ci-check-engine
@test "$(CI_REUSE)" != "1" && rm -rf $(CI_SCRATCHDIR) || :
@if ! test -d $(CI_SCRATCHDIR) ; then \
mkdir -p $(CI_SCRATCHDIR); \
@@ -150,7 +198,7 @@ ci-prepare-tree: ci-check-docker
# gl_public_submodule_commit= to disable gnulib's submodule check
# which breaks due to way we clone the submodules
ci-build@%: ci-prepare-tree
docker run $(CI_DOCKER_ARGS) $(CI_IMAGE_PREFIX)$*$(CI_IMAGE_TAG) \
$(CI_ENGINE) run $(CI_ENGINE_ARGS) $(CI_IMAGE_PREFIX)$*$(CI_IMAGE_TAG) \
/bin/bash -c '\
mkdir -p $(CI_CONT_BUILDDIR) || exit 1 ; \
cd $(CI_CONT_BUILDDIR) ; \
@@ -179,11 +227,11 @@ ci-check@%:
$(MAKE) -f $(CI_MAKEFILE) ci-build@$* CI_MAKE_ARGS="check"

ci-shell@%: ci-prepare-tree
docker run $(CI_DOCKER_ARGS) $(CI_IMAGE_PREFIX)$*$(CI_IMAGE_TAG) /bin/bash
$(CI_ENGINE) run $(CI_ENGINE_ARGS) $(CI_IMAGE_PREFIX)$*$(CI_IMAGE_TAG) /bin/bash
@test "$(CI_CLEAN)" = "1" && rm -rf $(CI_SCRATCHDIR) || :

ci-help:
@echo "Build libvirt inside Docker containers used for CI"
@echo "Build libvirt inside containers used for CI"
@echo
@echo "Available targets:"
@echo
@@ -195,26 +243,29 @@ ci-help:
@echo
@echo " centos-7"
@echo " debian-9"
@echo " debian-10"
@echo " debian-sid"
@echo " fedora-28"
@echo " fedora-29"
@echo " fedora-30"
@echo " fedora-rawhide"
@echo " ubuntu-16"
@echo " ubuntu-18"
@echo
@echo "Available cross-compiler container images:"
@echo
@echo " debian-{9,sid}-cross-aarch64"
@echo " debian-{9,sid}-cross-armv6l"
@echo " debian-{9,sid}-cross-armv7l"
@echo " debian-sid-cross-i686"
@echo " debian-{9,sid}-cross-mips64el"
@echo " debian-{9,sid}-cross-mips"
@echo " debian-{9,sid}-cross-mipsel"
@echo " debian-{9,sid}-cross-ppc64le"
@echo " debian-{9,sid}-cross-s390x"
@echo " debian-{9,10,sid}-cross-aarch64"
@echo " debian-{9,10,sid}-cross-armv6l"
@echo " debian-{9,10,sid}-cross-armv7l"
@echo " debian-{10,sid}-cross-i686"
@echo " debian-{9,10,sid}-cross-mips64el"
@echo " debian-{9,10,sid}-cross-mips"
@echo " debian-{9,10,sid}-cross-mipsel"
@echo " debian-{9,10,sid}-cross-ppc64le"
@echo " debian-{9,10,sid}-cross-s390x"
@echo
@echo "Available make variables:"
@echo
@echo " CI_CLEAN=0 - do not delete '$(CI_SCRATCHDIR)' after completion"
@echo " CI_REUSE=1 - re-use existing '$(CI_SCRATCHDIR)' content"
@echo " CI_CLEAN=0 - do not delete '$(CI_SCRATCHDIR)' after completion"
@echo " CI_REUSE=1 - re-use existing '$(CI_SCRATCHDIR)' content"
@echo " CI_ENGINE=auto - container engine to use (podman, docker)"
@echo

+ 26
- 248
Makefile.in View File

@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.15.1 from Makefile.am.
# Makefile.in generated by automake 1.16.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# Copyright (C) 1994-2018 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -14,9 +14,6 @@

@SET_MAKE@

# -*- makefile -*-
# vim: filetype=make

VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
@@ -232,7 +229,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
$(top_srcdir)/m4/vasprintf.m4 $(top_srcdir)/m4/virt-acl.m4 \
$(top_srcdir)/m4/virt-apparmor.m4 $(top_srcdir)/m4/virt-arg.m4 \
$(top_srcdir)/m4/virt-atomic.m4 $(top_srcdir)/m4/virt-attr.m4 \
$(top_srcdir)/m4/virt-audit.m4 $(top_srcdir)/m4/virt-avahi.m4 \
$(top_srcdir)/m4/virt-audit.m4 \
$(top_srcdir)/m4/virt-bash-completion.m4 \
$(top_srcdir)/m4/virt-blkid.m4 $(top_srcdir)/m4/virt-capng.m4 \
$(top_srcdir)/m4/virt-chrdev-lock-files.m4 \
@@ -403,7 +400,7 @@ am__recursive_targets = \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
cscope distdir dist dist-all distcheck
cscope distdir distdir-am dist dist-all distcheck
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
$(LISP)config.h.in
# Read a list of newline-separated strings from the standard input,
@@ -427,12 +424,12 @@ CTAGS = ctags
CSCOPE = cscope
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/.color_coded.in \
$(srcdir)/.ycm_extra_conf.py.in $(srcdir)/Makefile.ci \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(srcdir)/libvirt-admin.pc.in $(srcdir)/libvirt-lxc.pc.in \
$(srcdir)/libvirt-qemu.pc.in $(srcdir)/libvirt.pc.in \
$(srcdir)/libvirt.spec.in $(srcdir)/mingw-libvirt.spec.in \
$(srcdir)/run.in $(top_srcdir)/build-aux/compile \
$(srcdir)/.ycm_extra_conf.py.in $(srcdir)/Makefile.in \
$(srcdir)/config.h.in $(srcdir)/libvirt-admin.pc.in \
$(srcdir)/libvirt-lxc.pc.in $(srcdir)/libvirt-qemu.pc.in \
$(srcdir)/libvirt.pc.in $(srcdir)/libvirt.spec.in \
$(srcdir)/mingw-libvirt.spec.in $(srcdir)/run.in \
$(top_srcdir)/build-aux/compile \
$(top_srcdir)/build-aux/config.guess \
$(top_srcdir)/build-aux/config.rpath \
$(top_srcdir)/build-aux/config.sub \
@@ -511,8 +508,6 @@ AUGPARSE = @AUGPARSE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AVAHI_CFLAGS = @AVAHI_CFLAGS@
AVAHI_LIBS = @AVAHI_LIBS@
AWK = @AWK@
BASH_COMPLETIONS_DIR = @BASH_COMPLETIONS_DIR@
BASH_COMPLETION_CFLAGS = @BASH_COMPLETION_CFLAGS@
@@ -1378,7 +1373,6 @@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@
HAVE__BOOL = @HAVE__BOOL@
HAVE__EXIT = @HAVE__EXIT@
HOSTENT_LIB = @HOSTENT_LIB@
HTML_DIR = @HTML_DIR@
IFCONFIG_PATH = @IFCONFIG_PATH@
INCLUDE_NEXT = @INCLUDE_NEXT@
INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@
@@ -1900,7 +1894,6 @@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
TC = @TC@
TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
UDEVADM = @UDEVADM@
UDEVSETTLE = @UDEVSETTLE@
UDEV_CFLAGS = @UDEV_CFLAGS@
UDEV_LIBS = @UDEV_LIBS@
UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@
@@ -2012,11 +2005,12 @@ COVERAGE_OUT = "cov"
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = config-post.h libvirt.spec libvirt.spec.in \
mingw-libvirt.spec.in libvirt.pc.in libvirt-qemu.pc.in \
libvirt-lxc.pc.in libvirt-admin.pc.in Makefile.nonreentrant \
autogen.sh cfg.mk run.in README.md AUTHORS.in \
build-aux/augeas-gentest.pl build-aux/check-spacing.pl \
build-aux/gitlog-to-changelog build-aux/header-ifdef.pl \
build-aux/minimize-po.pl build-aux/mock-noinline.pl \
libvirt-lxc.pc.in libvirt-admin.pc.in Makefile.ci \
Makefile.nonreentrant autogen.sh cfg.mk run.in README.md \
AUTHORS.in build-aux/augeas-gentest.pl \
build-aux/check-spacing.pl build-aux/gitlog-to-changelog \
build-aux/header-ifdef.pl build-aux/minimize-po.pl \
build-aux/mock-noinline.pl \
build-aux/prohibit-duplicate-header.pl \
build-aux/useless-if-before-free build-aux/vc-list-files \
$(NULL) $(srcdir)/docs/news.xml $(srcdir)/docs/news-ascii.xsl \
@@ -2024,136 +2018,13 @@ EXTRA_DIST = config-post.h libvirt.spec libvirt.spec.in \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc
MAINTAINERCLEANFILES = .git-module-status

# Figure out name and path to this file. This isn't
# portable but we only care for modern GNU make
CI_MAKEFILE = $(abspath $(firstword $(MAKEFILE_LIST)))

# The directory holding content on the host that we will
# expose to the container.
CI_SCRATCHDIR = $(shell pwd)/ci-tree

# The root directory of the libvirt.git checkout
CI_GIT_ROOT = $(shell git rev-parse --show-toplevel)

# The directory holding the clone of the git repo that
# we will expose to the container
CI_HOST_SRCDIR = $(CI_SCRATCHDIR)/src

# The directory holding the source inside the
# container. ie where we told Docker to expose
# the $(CI_HOST_SRCDIR) directory from the host
CI_CONT_SRCDIR = /src

# Relative directory to perform the build in. This
# defaults to using a separate build dir, but can be
# set to empty string for an in-source tree build.
CI_VPATH = build

# The directory holding the build output inside the
# container.
CI_CONT_BUILDDIR = $(CI_CONT_SRCDIR)/$(CI_VPATH)

# Can be overridden with mingw{32,64}-configure if desired
CI_CONFIGURE = $(CI_CONT_SRCDIR)/configure

# Default to using all possible CPUs
CI_SMP = $(shell getconf _NPROCESSORS_ONLN)

# Any extra arguments to pass to make
CI_MAKE_ARGS =

# Any extra arguments to pass to configure
CI_CONFIGURE_ARGS =

# Avoid pulling submodules over the network by locally
# cloning them
CI_SUBMODULES = $(shell git submodule | awk '{ print $$2 }')

# Location of the Docker images we're going to pull
# Can be useful to overridde to use a locally built
# image instead
CI_IMAGE_PREFIX = quay.io/libvirt/buildenv-

# Docker defaults to pulling the ':latest' tag but
# if the Docker repo above uses different conventions
# this can override it
CI_IMAGE_TAG = :master

# We delete the virtual root after completion, set
# to 0 if you need to keep it around for debugging
CI_CLEAN = 1

# We'll always freshly clone the virtual root each
# time in case it was not cleaned up before. Set
# to 1 if you want to try restarting a previously
# preserved env
CI_REUSE = 0

# We need the container process to run with current host IDs
# so that it can access the passed in build directory
CI_UID = $(shell id -u)
CI_GID = $(shell id -g)

# Docker doesn't require the IDs you run as to exist in
# the container's /etc/passwd & /etc/group files, but
# if they do not, then libvirt's 'make check' will fail
# many tests.
#
# We do not directly mount /etc/{passwd,group} as Docker
# is liable to mess with SELinux labelling which will
# then prevent the host accessing them. Copying them
# first is safer.
CI_PWDB_MOUNTS = \
--volume $(CI_SCRATCHDIR)/group:/etc/group:ro,z \
--volume $(CI_SCRATCHDIR)/passwd:/etc/passwd:ro,z \
$(NULL)


# Docker containers can have very large ulimits
# for nofiles - as much as 1048576. This makes
# libvirt very slow at exec'ing programs.
CI_ULIMIT_FILES = 1024

# Args to use when cloning a git repo.
# -c stop it complaining about checking out a random hash
# -q stop it displaying progress info for local clone
# --local ensure we don't actually copy files
CI_GIT_ARGS = \
-c advice.detachedHead=false \
-q \
--local \
$(NULL)


# Args to use when running the Docker env
# --rm stop inactive containers getting left behind
# --user we execute as the same user & group account
# as dev so that file ownership matches host
# instead of root:root
# --volume to pass in the cloned git repo & config
# --workdir to set cwd to vpath build location
# --ulimit lower files limit for performance reasons
# --interactive
# --tty Ensure we have ability to Ctrl-C the build
CI_DOCKER_ARGS = \
--rm \
--user $(CI_UID):$(CI_GID) \
--interactive \
--tty \
$(CI_PWDB_MOUNTS) \
--volume $(CI_HOST_SRCDIR):$(CI_CONT_SRCDIR):z \
--workdir $(CI_CONT_SRCDIR) \
--ulimit nofile=$(CI_ULIMIT_FILES):$(CI_ULIMIT_FILES) \
$(NULL)

all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

.SUFFIXES:
am--refresh: Makefile
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/Makefile.ci $(am__configure_deps)
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
@@ -2172,10 +2043,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
esac;
$(srcdir)/Makefile.ci $(am__empty):

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
@@ -2355,7 +2225,10 @@ distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files

distdir: $(DISTFILES)
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am

distdir-am: $(DISTFILES)
$(am__remove_distdir)
test -d "$(distdir)" || mkdir "$(distdir)"
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
@@ -2705,7 +2578,7 @@ srpm: clean

check-local: all tests

check-access:
check-access: all
@($(MAKE) $(AM_MAKEFLAGS) -C tests check-access)

dist-hook: gen-AUTHORS
@@ -2727,103 +2600,8 @@ gen-AUTHORS:
rm -f all.list maint.list contrib.list; \
fi

ci-check-docker:
@echo -n "Checking if Docker is available and running..." && \
docker version 1>/dev/null && echo "yes"

ci-prepare-tree: ci-check-docker
@test "$(CI_REUSE)" != "1" && rm -rf $(CI_SCRATCHDIR) || :
@if ! test -d $(CI_SCRATCHDIR) ; then \
mkdir -p $(CI_SCRATCHDIR); \
cp /etc/passwd $(CI_SCRATCHDIR); \
cp /etc/group $(CI_SCRATCHDIR); \
echo "Cloning $(CI_GIT_ROOT) to $(CI_HOST_SRCDIR)"; \
git clone $(CI_GIT_ARGS) $(CI_GIT_ROOT) $(CI_HOST_SRCDIR) || exit 1; \
for mod in $(CI_SUBMODULES) ; \
do \
test -f $(CI_GIT_ROOT)/$$mod/.git || continue ; \
echo "Cloning $(CI_GIT_ROOT)/$$mod to $(CI_HOST_SRCDIR)/$$mod"; \
git clone $(CI_GIT_ARGS) $(CI_GIT_ROOT)/$$mod $(CI_HOST_SRCDIR)/$$mod || exit 1; \
done ; \
fi

# $CONFIGURE_OPTS is a env that can optionally be set in the container,
# populated at build time from the Dockerfile. A typical use case would
# be to pass --host/--target args to trigger cross-compilation
#
# This can be augmented by make local args in $(CI_CONFIGURE_ARGS)
#
# gl_public_submodule_commit= to disable gnulib's submodule check
# which breaks due to way we clone the submodules
ci-build@%: ci-prepare-tree
docker run $(CI_DOCKER_ARGS) $(CI_IMAGE_PREFIX)$*$(CI_IMAGE_TAG) \
/bin/bash -c '\
mkdir -p $(CI_CONT_BUILDDIR) || exit 1 ; \
cd $(CI_CONT_BUILDDIR) ; \
NOCONFIGURE=1 $(CI_CONT_SRCDIR)/autogen.sh || exit 1 ; \
$(CI_CONFIGURE) $${CONFIGURE_OPTS} $(CI_CONFIGURE_ARGS) ; \
if test $$? != 0 ; \
then \
test -f config.log && cat config.log ; \
exit 1 ; \
fi; \
find -name test-suite.log -delete ; \
export VIR_TEST_DEBUG=1 ; \
make -j$(CI_SMP) gl_public_submodule_commit= $(CI_MAKE_ARGS) ; \
if test $$? != 0 ; then \
LOGS=`find -name test-suite.log` ; \
if test "$${LOGS}" != "" ; then \
echo "=== LOG FILE(S) START ===" ; \
cat $${LOGS} ; \
echo "=== LOG FILE(S) END ===" ; \
fi ; \
exit 1 ;\
fi'
@test "$(CI_CLEAN)" = "1" && rm -rf $(CI_SCRATCHDIR) || :

ci-check@%:
$(MAKE) -f $(CI_MAKEFILE) ci-build@$* CI_MAKE_ARGS="check"

ci-shell@%: ci-prepare-tree
docker run $(CI_DOCKER_ARGS) $(CI_IMAGE_PREFIX)$*$(CI_IMAGE_TAG) /bin/bash
@test "$(CI_CLEAN)" = "1" && rm -rf $(CI_SCRATCHDIR) || :

ci-help:
@echo "Build libvirt inside Docker containers used for CI"
@echo
@echo "Available targets:"
@echo
@echo " ci-build@\$$IMAGE - run a default 'make'"
@echo " ci-check@\$$IMAGE - run a 'make check'"
@echo " ci-shell@\$$IMAGE - run an interactive shell"
@echo
@echo "Available x86 container images:"
@echo
@echo " centos-7"
@echo " debian-9"
@echo " debian-sid"
@echo " fedora-28"
@echo " fedora-29"
@echo " fedora-rawhide"
@echo " ubuntu-18"
@echo
@echo "Available cross-compiler container images:"
@echo
@echo " debian-{9,sid}-cross-aarch64"
@echo " debian-{9,sid}-cross-armv6l"
@echo " debian-{9,sid}-cross-armv7l"
@echo " debian-sid-cross-i686"
@echo " debian-{9,sid}-cross-mips64el"
@echo " debian-{9,sid}-cross-mips"
@echo " debian-{9,sid}-cross-mipsel"
@echo " debian-{9,sid}-cross-ppc64le"
@echo " debian-{9,sid}-cross-s390x"
@echo
@echo "Available make variables:"
@echo
@echo " CI_CLEAN=0 - do not delete '$(CI_SCRATCHDIR)' after completion"
@echo " CI_REUSE=1 - re-use existing '$(CI_SCRATCHDIR)' content"
@echo
ci-%:
$(MAKE) -f Makefile.ci $@

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.


+ 179
- 0
NEWS View File

@@ -1,6 +1,185 @@
libvirt releases
================

# v5.6.0 (2019-08-05)

* New features

- qemu: Introduce a new video model of type 'bochs'
Introduce a new video model type that supports the bochs-display device
that was added in qemu version 3.0.

- api: new virDomainCheckpoint APIs
Introduce several new APIs for creating and managing checkpoints in the
test and qemu drivers (the latter requires qcow2 images). Checkpoints
serve as a way to tell which portions of a disk have changed since a
point in time.

- qemu: Add support for overriding max threads per process limit
systemd-based systems impose a limit on the number of threads a process
can spawn, which in some cases can be exceeded by QEMU processes
running VMs. Add a max_threads_per_process option to qemu.conf to
override the system default.

- Remember original owners and SELinux labels of files
When a domain is starting up libvirt changes DAC and SELinux labels so
that domain can access it. However, it never remembered the original
labels and therefore the file was returned back to root:root. With this
release, the original labels are remembered and restored properly.

- network: Allow passing arbitrary options to dnsmasq
This works similarly to the existing support for passing arbitary
options to QEMU, and just like that feature it comes with no support
guarantees.

* Removed features

- xen: Remove sxpr config support
Remove the sxpr style config parser and formatter a year after the xend
driver was removed.

* Improvements

- qemu: Allow XML validation for snapshot creation
Add flag VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE to validate snapshot input
XML. For virsh, users can use it as virsh snapshot-create --validate.

- Support encrypted soft TPM
A soft TPM backend could be encrypted with passphrase. Now libvirt
supports using a secret object to hold the passphrase, and referring to
it via the encryption element of the TPM device.

- test driver: Expand API coverage
Additional APIs have been implemented in the test driver.

- Implement per-driver locking
Drivers now acquire a lock when they're loaded, ensuring that there can
never be two instances of the same driver active at a time.

- nss: Report newer addresses first
In some cases, a guest might be assigned a new IP address by DHCP
before the previous lease has expired, in which case the NSS plugin
will correctly report both addresses; many applications, however,
ignore all addresses but the first, and may thus end up trying to
connect using a stale address. To prevent that from happening, the NSS
plugin will now always report the newest address first.

- util: Optimize mass closing of FDs when spawning child processes
When the limit on the number of FDs is very high, closing all unwanted
FDs after calling fork() can take a lot of time and delay the start of
the child process. libvirt will now use an optimized algorithm that
minimizes such delays.

* Bug fixes

- logging: Ensure virtlogd rollover takes priority over logrotate
virtlogd implements its own rollover mechanism, but until now logrotate
could end up acting on the logs before virtlogd had a chance to do so
itself.

# v5.5.0 (2019-07-02)

* Security

- api: Prevent access to several APIs over read-only connections
Certain APIs give root-equivalent access to the host, and as such
should be limited to privileged users. CVE-2019-10161, CVE-2019-10166,
CVE-2019-10167, CVE-2019-10168.

* New features

- qemu: Support SMMUv3 IOMMU
SMMUv3 is an IOMMU implementation for ARM virt guests.

- network: Introduce the network port API
This new public API can be used by virtualization drivers to manage
network resources associated with guests, and is a further step towards
splitting libvirtd into multiple daemons.

* Removed features

- qemu: Remove support for virDomainQemuAttach and
virConnectDomainXMLFromNative APIs
The qemu implementations for the APIs mentioned above were removed and
the APIs now return an error. The implementation was stale for a long
time and did not work with modern QEMU command lines, generated from
libvirt or otherwise.

- Stop supporting migration of config files from pre-XDG layout
The new layout was introduced with libvirt 0.9.13 (Jul 2012).

- Remove Avahi mDNS support
This feature was never used outside of virt-manager, which has itself
stopped using it a while ago.

* Improvements

- sysinfo: Report SMBIOS information on aarch64
While SMBIOS support has historically been limited to x86_64, modern
aarch64 machines often offer access to the same information as well,
and libvirt now exposes it to the user when that's the case.

- test driver: Expand API coverage
Even more APIs that were missing from the test driver have now been
implemented.

- virt-xml-validate: Allow input to be read from stdin

- qemu: Validate spapr-vio addresses as 32-bit
libvirt has always considered these addresses (used for pSeries guests)
as 64-bit, but the sPAPR specification says that they're 32-bit
instead.

* Bug fixes

- qemu: Set process affinity correctly when using <numatune>
libvirt would mistakenly interpret the nodeset attribute as a list of
CPUs instead of as a list of NUMA node, and the process affinity would
be set incorrectly as a result; this has now been fixed.

# v5.4.0 (2019-06-03)

* Security

- cpu: Introduce support for the md-clear CPUID bit
This bit is set when microcode provides the mechanism to invoke a flush
of various exploitable CPU buffers by invoking the x86 VERW
instruction. CVE-2018-12126, CVE-2018-12127, CVE-2018-12130,
CVE-2019-11091.

- Restrict user access to virt-admin, virtlogd and virtlockd
The intended users for these facilities are the root user and the
libvirtd service respectively, but these restrictions were not enforced
correctly. CVE-2019-10132.

* Improvements

- test driver: Expand API coverage
Several APIs that were missing from the test driver have now been
implemented.

- Avoid unnecessary static linking
Most binaries shipped as part of libvirt, for example virtlogd and
libvirt_iohelper, were embedding parts of the library even though they
also linked against the libvirt.so dynamic library. This is no longer
the case, which results in both the disk and memory footprint being
reduced.

- qemu: Report stat-htlb-pgalloc and stat-htlb-pgfail balloon stats
These stats have been introduced in QEMU 3.0.

* Bug fixes

- qemu: Fix emulator scheduler support
Setting the scheduler for QEMU's main thread before QEMU had a chance
to start up other threads was misleading as it would affect other
threads (vCPU and I/O) as well. In some particular situations this
could also lead to an error when the thread for vCPU #0 was being moved
to its cpu,cpuacct cgroup. This was fixed so that the scheduler for the
main thread is set after QEMU starts.

- apparmor: Allow hotplug of vhost-scsi devices

# v5.3.0 (2019-05-04)

* New features


+ 1
- 1
README View File

@@ -30,7 +30,7 @@ License
The libvirt C API is distributed under the terms of GNU Lesser General
Public License, version 2.1 (or later). Some parts of the code that are
not part of the C library may have the more restrictive GNU General
Public License, version 2.1 (or later). See the files `COPYING.LESSER`
Public License, version 2.0 (or later). See the files `COPYING.LESSER`
and `COPYING` for full license terms & conditions.




+ 1
- 1
README.md View File

@@ -30,7 +30,7 @@ License
The libvirt C API is distributed under the terms of GNU Lesser General
Public License, version 2.1 (or later). Some parts of the code that are
not part of the C library may have the more restrictive GNU General
Public License, version 2.1 (or later). See the files `COPYING.LESSER`
Public License, version 2.0 (or later). See the files `COPYING.LESSER`
and `COPYING` for full license terms & conditions.




+ 86
- 104
aclocal.m4 View File

@@ -1,6 +1,6 @@
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
# generated automatically by aclocal 1.16.1 -*- Autoconf -*-

# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# Copyright (C) 1996-2018 Free Software Foundation, Inc.

# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -364,7 +364,7 @@ AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
])dnl PKG_HAVE_DEFINE_WITH_MODULES

# Copyright (C) 2002-2017 Free Software Foundation, Inc.
# Copyright (C) 2002-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -376,10 +376,10 @@ AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
# generated from the m4 files accompanying Automake X.Y.
# (This private macro should not be called outside this file.)
AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.15'
[am__api_version='1.16'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
m4_if([$1], [1.15.1], [],
m4_if([$1], [1.16.1], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])

@@ -395,14 +395,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.15.1])dnl
[AM_AUTOMAKE_VERSION([1.16.1])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])

# AM_AUX_DIR_EXPAND -*- Autoconf -*-

# Copyright (C) 2001-2017 Free Software Foundation, Inc.
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -454,7 +454,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`

# AM_CONDITIONAL -*- Autoconf -*-

# Copyright (C) 1997-2017 Free Software Foundation, Inc.
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -485,7 +485,7 @@ AC_CONFIG_COMMANDS_PRE(
Usually this means the macro was only invoked conditionally.]])
fi])])

# Copyright (C) 1999-2017 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -676,13 +676,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl

# Generate code to set up dependency tracking. -*- Autoconf -*-

# Copyright (C) 1999-2017 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.


# _AM_OUTPUT_DEPENDENCY_COMMANDS
# ------------------------------
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
@@ -690,49 +689,41 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
# Older Autoconf quotes --file arguments for eval, but not when files
# are listed without --file. Let's play safe and only enable the eval
# if we detect the quoting.
case $CONFIG_FILES in
*\'*) eval set x "$CONFIG_FILES" ;;
*) set x $CONFIG_FILES ;;
esac
# TODO: see whether this extra hack can be removed once we start
# requiring Autoconf 2.70 or later.
AS_CASE([$CONFIG_FILES],
[*\'*], [eval set x "$CONFIG_FILES"],
[*], [set x $CONFIG_FILES])
shift
for mf
# Used to flag and report bootstrapping failures.
am_rc=0
for am_mf
do
# Strip MF so we end up with the name of the file.
mf=`echo "$mf" | sed -e 's/:.*$//'`
# Check whether this is an Automake generated Makefile or not.
# We used to match only the files named 'Makefile.in', but
# some people rename them; so instead we look at the file content.
# Grep'ing the first line is not enough: some people post-process
# each Makefile.in and add a new line on top of each file to say so.
# Grep'ing the whole file is not good either: AIX grep has a line
am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
# Check whether this is an Automake generated Makefile which includes
# dependency-tracking related rules and includes.
# Grep'ing the whole file directly is not great: AIX grep has a line
# limit of 2048, but all sed's we know have understand at least 4000.
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
dirpart=`AS_DIRNAME("$mf")`
else
continue
fi
# Extract the definition of DEPDIR, am__include, and am__quote
# from the Makefile without running 'make'.
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
test -z "$DEPDIR" && continue
am__include=`sed -n 's/^am__include = //p' < "$mf"`
test -z "$am__include" && continue
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
# Find all dependency output files, they are included files with
# $(DEPDIR) in their names. We invoke sed twice because it is the
# simplest approach to changing $(DEPDIR) to its actual value in the
# expansion.
for file in `sed -n "
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
# Make sure the directory exists.
test -f "$dirpart/$file" && continue
fdir=`AS_DIRNAME(["$file"])`
AS_MKDIR_P([$dirpart/$fdir])
# echo "creating $dirpart/$file"
echo '# dummy' > "$dirpart/$file"
done
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|| continue
am_dirpart=`AS_DIRNAME(["$am_mf"])`
am_filepart=`AS_BASENAME(["$am_mf"])`
AM_RUN_LOG([cd "$am_dirpart" \
&& sed -e '/# am--include-marker/d' "$am_filepart" \
| $MAKE -f - am--depfiles]) || am_rc=$?
done
if test $am_rc -ne 0; then
AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
for automatic dependency tracking. Try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).])
fi
AS_UNSET([am_dirpart])
AS_UNSET([am_filepart])
AS_UNSET([am_mf])
AS_UNSET([am_rc])
rm -f conftest-deps.mk
}
])# _AM_OUTPUT_DEPENDENCY_COMMANDS

@@ -741,18 +732,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
# -----------------------------
# This macro should only be invoked once -- use via AC_REQUIRE.
#
# This code is only required when automatic dependency tracking
# is enabled. FIXME. This creates each '.P' file that we will
# need in order to bootstrap the dependency handling code.
# This code is only required when automatic dependency tracking is enabled.
# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
# order to bootstrap the dependency handling code.
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AC_CONFIG_COMMANDS([depfiles],
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
[AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])

# Do all the work for Automake. -*- Autoconf -*-

# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -839,8 +829,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
# For better backward compatibility. To be removed once Automake 1.9.x
# dies out for good. For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
# We need awk for the "check" target (and possibly the TAP driver). The
# system "awk" is bad on some platforms.
@@ -907,7 +897,7 @@ END
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.
that behaves properly: <https://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
@@ -949,7 +939,7 @@ for _am_header in $config_headers :; do
done
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])

# Copyright (C) 2001-2017 Free Software Foundation, Inc.
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -970,7 +960,7 @@ if test x"${install_sh+set}" != xset; then
fi
AC_SUBST([install_sh])])

# Copyright (C) 2003-2017 Free Software Foundation, Inc.
# Copyright (C) 2003-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -991,7 +981,7 @@ AC_SUBST([am__leading_dot])])

# Check to see how 'make' treats includes. -*- Autoconf -*-

# Copyright (C) 2001-2017 Free Software Foundation, Inc.
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -999,49 +989,42 @@ AC_SUBST([am__leading_dot])])

# AM_MAKE_INCLUDE()
# -----------------
# Check to see how make treats includes.
# Check whether make has an 'include' directive that can support all
# the idioms we need for our automatic dependency tracking code.
AC_DEFUN([AM_MAKE_INCLUDE],
[am_make=${MAKE-make}
cat > confinc << 'END'
[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
cat > confinc.mk << 'END'
am__doit:
@echo this is the am__doit target
@echo this is the am__doit target >confinc.out
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
AC_MSG_CHECKING([for style of include used by $am_make])
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# Ignore all kinds of additional output from 'make'.
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
am__include=include
am__quote=
_am_result=GNU
;;
esac
# Now try BSD make style include.
if test "$am__include" = "#"; then
echo '.include "confinc"' > confmf
case `$am_make -s -f confmf 2> /dev/null` in #(
*the\ am__doit\ target*)
am__include=.include
am__quote="\""
_am_result=BSD
;;
esac
fi
AC_SUBST([am__include])
AC_SUBST([am__quote])
AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
])
# BSD make does it like this.
echo '.include "confinc.mk" # ignored' > confmf.BSD
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
echo 'include confinc.mk # ignored' > confmf.GNU
_am_result=no
for s in GNU BSD; do
AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
AS_CASE([$?:`cat confinc.out 2>/dev/null`],
['0:this is the am__doit target'],
[AS_CASE([$s],
[BSD], [am__include='.include' am__quote='"'],
[am__include='include' am__quote=''])])
if test "$am__include" != "#"; then
_am_result="yes ($s style)"
break
fi
done
rm -f confinc.* confmf.*
AC_MSG_RESULT([${_am_result}])
AC_SUBST([am__include])])
AC_SUBST([am__quote])])

# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-

# Copyright (C) 1997-2017 Free Software Foundation, Inc.
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1080,7 +1063,7 @@ fi

# Helper functions for option handling. -*- Autoconf -*-

# Copyright (C) 2001-2017 Free Software Foundation, Inc.
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1109,7 +1092,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])

# Copyright (C) 1999-2017 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1156,7 +1139,7 @@ AC_LANG_POP([C])])
# For backward compatibility.
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])

# Copyright (C) 2001-2017 Free Software Foundation, Inc.
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1175,7 +1158,7 @@ AC_DEFUN([AM_RUN_LOG],

# Check to make sure that the build environment is sane. -*- Autoconf -*-

# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1256,7 +1239,7 @@ AC_CONFIG_COMMANDS_PRE(
rm -f conftest.file
])

# Copyright (C) 2009-2017 Free Software Foundation, Inc.
# Copyright (C) 2009-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1316,7 +1299,7 @@ AC_SUBST([AM_BACKSLASH])dnl
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
])

# Copyright (C) 2001-2017 Free Software Foundation, Inc.
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1344,7 +1327,7 @@ fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])

# Copyright (C) 2006-2017 Free Software Foundation, Inc.
# Copyright (C) 2006-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1363,7 +1346,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])

# Check how to create a tarball. -*- Autoconf -*-

# Copyright (C) 2004-2017 Free Software Foundation, Inc.
# Copyright (C) 2004-2018 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1750,7 +1733,6 @@ m4_include([m4/virt-arg.m4])
m4_include([m4/virt-atomic.m4])
m4_include([m4/virt-attr.m4])
m4_include([m4/virt-audit.m4])
m4_include([m4/virt-avahi.m4])
m4_include([m4/virt-bash-completion.m4])
m4_include([m4/virt-blkid.m4])
m4_include([m4/virt-capng.m4])


+ 5
- 5
build-aux/compile View File

@@ -1,9 +1,9 @@
#!/bin/sh
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.

scriptversion=2016-01-11.22; # UTC
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 1999-2017 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@ scriptversion=2016-01-11.22; # UTC
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -340,7 +340,7 @@ exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"


+ 326
- 316
build-aux/config.guess
File diff suppressed because it is too large
View File


+ 1244
- 1290
build-aux/config.sub
File diff suppressed because it is too large
View File


+ 5
- 5
build-aux/depcomp View File

@@ -1,9 +1,9 @@
#!/bin/sh
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects

scriptversion=2016-01-11.22; # UTC
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 1999-2017 Free Software Foundation, Inc.
# Copyright (C) 1999-2018 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@ scriptversion=2016-01-11.22; # UTC
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -783,7 +783,7 @@ exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"


+ 31
- 10
build-aux/header-ifdef.pl View File

@@ -6,18 +6,26 @@
# ...copyright header...
# */
# <one blank line>
# #ifndef SYMBOL
# # define SYMBOL
# #pragma once
# ....content....
# #endif /* SYMBOL */
#
# For any file ending priv.h, before the #ifndef
#---
#
# For any file ending priv.h, before the #pragma once
# We will have a further section
#
# #ifndef SYMBOL_ALLOW
# # error ....
# #endif /* SYMBOL_ALLOW */
# <one blank line>
#
#---
#
# For public headers (files in include/), use the standard header guard instead of #pragma once:
# #ifndef SYMBOL
# # define SYMBOL
# ....content....
# #endif /* SYMBOL */

use strict;
use warnings;
@@ -38,6 +46,7 @@ my $file = " ";
my $ret = 0;
my $ifdef = "";
my $ifdefpriv = "";
my $publicheader = 0;

my $state = $STATE_EOF;
my $mistake = 0;
@@ -64,7 +73,11 @@ while (<>) {
} elsif ($state == $STATE_PRIV_BLANK) {
&mistake("$file: missing blank line after priv header check");
} elsif ($state == $STATE_GUARD_START) {
&mistake("$file: missing '#ifndef $ifdef'");
if ($publicheader) {
&mistake("$file: missing '#ifndef $ifdef'");
} else {
&mistake("$file: missing '#pragma once' header guard");
}
} elsif ($state == $STATE_GUARD_DEFINE) {
&mistake("$file: missing '# define $ifdef'");
} elsif ($state == $STATE_GUARD_END) {
@@ -83,6 +96,7 @@ while (<>) {
$file = $ARGV;
$state = $STATE_COPYRIGHT_COMMENT;
$mistake = 0;
$publicheader = ($ARGV =~ /include\//);
}

if ($mistake ||
@@ -133,12 +147,19 @@ while (<>) {
} elsif ($state == $STATE_GUARD_START) {
if (/^$/) {
&mistake("$file: too many blank lines after copyright header");
} elsif(/#pragma once/) {
$state = $STATE_PRAGMA;
} elsif (/#ifndef $ifdef$/) {
$state = $STATE_GUARD_DEFINE;
}
if ($publicheader) {
if (/#ifndef $ifdef$/) {
$state = $STATE_GUARD_DEFINE;
} else {
&mistake("$file: missing '#ifndef $ifdef'");
}
} else {
&mistake("$file: missing '#ifndef $ifdef'");
if (/#pragma once/) {
$state = $STATE_PRAGMA;
} else {
&mistake("$file: missing '#pragma once' header guard");
}
}
} elsif ($state == $STATE_GUARD_DEFINE) {
if (/# define $ifdef$/) {


+ 31
- 14
build-aux/install-sh View File

@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile

scriptversion=2016-01-11.22; # UTC
scriptversion=2018-03-11.20; # UTC

# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
@@ -271,15 +271,18 @@ do
fi
dst=$dst_arg

# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
# If destination is a directory, append the input filename.
if test -d "$dst"; then
if test "$is_target_a_directory" = never; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstbase=`basename "$src"`
case $dst in
*/) dst=$dst$dstbase;;
*) dst=$dst/$dstbase;;
esac
dstdir_status=0
else
dstdir=`dirname "$dst"`
@@ -288,6 +291,11 @@ do
fi
fi

case $dstdir in
*/) dstdirslash=$dstdir;;
*) dstdirslash=$dstdir/;;
esac

obsolete_mkdir_used=false

if test $dstdir_status != 0; then
@@ -324,34 +332,43 @@ do
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
# Note that $RANDOM variable is not portable (e.g. dash); Use it
# here however when possible just to lower collision chance.
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0

trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0

# Because "mkdir -p" follows existing symlinks and we likely work
# directly in world-writeable /tmp, make sure that the '$tmpdir'
# directory is successfully created first before we actually test
# 'mkdir -p' feature.
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
$mkdirprog $mkdir_mode "$tmpdir" &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
test_tmpdir="$tmpdir/a"
ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
$mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
fi
trap '' 0;;
esac;;
@@ -427,8 +444,8 @@ do
else

# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
dsttmp=${dstdirslash}_inst.$$_
rmtmp=${dstdirslash}_rm.$$_

# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
@@ -493,7 +510,7 @@ do
done

# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"


+ 1
- 1
build-aux/ltmain.sh View File

@@ -2124,7 +2124,7 @@ fi
# a configuration failure hint, and exit.
func_fatal_configuration ()
{
func__fatal_error ${1+"$@"} \
func_fatal_error ${1+"$@"} \
"See the $PACKAGE documentation for more information." \
"Fatal configuration error."
}


+ 8
- 8
build-aux/missing View File

@@ -1,9 +1,9 @@
#!/bin/sh
#! /bin/sh
# Common wrapper for a few potentially missing GNU programs.

scriptversion=2016-01-11.22; # UTC
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.

# This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@ scriptversion=2016-01-11.22; # UTC
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -101,9 +101,9 @@ else
exit $st
fi

perl_URL=http://www.perl.org/
flex_URL=http://flex.sourceforge.net/
gnu_software_URL=http://www.gnu.org/software
perl_URL=https://www.perl.org/
flex_URL=https://github.com/westes/flex
gnu_software_URL=https://www.gnu.org/software

program_details ()
{
@@ -207,7 +207,7 @@ give_advice "$1" | sed -e '1s/^/WARNING: /' \
exit $st

# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"


+ 3
- 3
build-aux/mkinstalldirs View File

@@ -1,7 +1,7 @@
#!/bin/sh
#! /bin/sh
# mkinstalldirs --- make directory hierarchy

scriptversion=2016-01-11.22; # UTC
scriptversion=2018-03-07.03; # UTC

# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
@@ -154,7 +154,7 @@ exit $errstatus
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"


+ 5
- 5
build-aux/test-driver View File

@@ -1,9 +1,9 @@
#!/bin/sh
#! /bin/sh
# test-driver - basic testsuite driver script.

scriptversion=2016-01-11.22; # UTC
scriptversion=2018-03-07.03; # UTC

# Copyright (C) 2011-2017 Free Software Foundation, Inc.
# Copyright (C) 2011-2018 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -16,7 +16,7 @@ scriptversion=2016-01-11.22; # UTC
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -140,7 +140,7 @@ echo ":copy-in-global-log: $gcopy" >> $trs_file
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"


+ 7
- 6
cfg.mk View File

@@ -133,7 +133,6 @@ useless_free_options = \
--name=virDomainNetDefFree \
--name=virDomainObjFree \
--name=virDomainSmartcardDefFree \
--name=virDomainSnapshotDefFree \
--name=virDomainSnapshotObjFree \
--name=virDomainSoundDefFree \
--name=virDomainVideoDefFree \
@@ -147,9 +146,6 @@ useless_free_options = \
--name=virJSONValueFree \
--name=virLastErrFreeData \
--name=virNetMessageFree \
--name=virNetServerMDNSFree \
--name=virNetServerMDNSEntryFree \
--name=virNetServerMDNSGroupFree \
--name=virNWFilterDefFree \
--name=virNWFilterEntryFree \
--name=virNWFilterHashTableFree \
@@ -211,7 +207,6 @@ useless_free_options = \
# y virDomainInputDefFree
# y virDomainNetDefFree
# y virDomainObjFree
# y virDomainSnapshotDefFree
# n virDomainSnapshotFree (returns int)
# n virDomainSnapshotFreeName (returns int)
# y virDomainSnapshotObjFree
@@ -616,6 +611,7 @@ msg_gen_function += virReportError
msg_gen_function += virReportErrorHelper
msg_gen_function += virReportSystemError
msg_gen_function += xenapiSessionErrorHandler
msg_gen_function += virLastErrorPrefixMessage

# Uncomment the following and run "make syntax-check" to see diagnostics
# that are not yet marked for translation, but that need to be rewritten
@@ -1147,6 +1143,11 @@ ifneq ($(_gl-Makefile),)
syntax-check: spacing-check test-wrap-argv \
prohibit-duplicate-header mock-noinline group-qemu-caps \
header-ifdef
@if ! cppi --version >/dev/null 2>&1; then \
echo "*****************************************************" >&2; \
echo "* cppi not installed, some checks have been skipped *" >&2; \
echo "*****************************************************" >&2; \
fi
endif

# Don't include duplicate header in the source (either *.c or *.h)
@@ -1255,7 +1256,7 @@ exclude_file_name_regexp--sc_prohibit_newline_at_end_of_diagnostic = \
^src/rpc/gendispatch\.pl$$

exclude_file_name_regexp--sc_prohibit_nonreentrant = \
^((po|tests|examples/admin)/|docs/.*(py|js|html\.in)|run.in$$|tools/wireshark/util/genxdrstub\.pl$$)
^((po|tests|examples)/|docs/.*(py|js|html\.in)|run.in$$|tools/wireshark/util/genxdrstub\.pl$$)

exclude_file_name_regexp--sc_prohibit_select = \
^cfg\.mk$$


+ 13
- 15
config.h.in View File

@@ -1306,6 +1306,9 @@
/* Define to 1 if you have the <libxlutil.h> header file. */
#undef HAVE_LIBXLUTIL_H

/* Define to 1 if you have the `yajl' library (-lyajl). */
#undef HAVE_LIBYAJL

/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H

@@ -1949,13 +1952,6 @@
/* Define to 1 if you have the `tzset' function. */
#undef HAVE_TZSET

/* whether libudev logging can be used */
#undef HAVE_UDEV_LOGGING

/* Define to 1 if you have the `udev_monitor_set_receive_buffer_size'
function. */
#undef HAVE_UDEV_MONITOR_SET_RECEIVE_BUFFER_SIZE

/* Define to 1 if you have the `uname' function. */
#undef HAVE_UNAME

@@ -2444,9 +2440,6 @@
/* Location or name of the udevadm program */
#undef UDEVADM

/* Location or name of the udevsettle program */
#undef UDEVSETTLE

/* Location or name of the umount programm */
#undef UMOUNT

@@ -2621,9 +2614,6 @@
/* whether libaudit is available */
#undef WITH_AUDIT

/* whether avahi-client >= 0.6.0 is available */
#undef WITH_AVAHI

/* whether bash-completion >= 2.0 is available */
#undef WITH_BASH_COMPLETION

@@ -2816,7 +2806,7 @@
/* whether Test driver is enabled */
#undef WITH_TEST

/* whether libudev >= 145 is available */
/* whether libudev >= 219 is available */
#undef WITH_UDEV

/* whether VirtualBox driver is enabled */
@@ -2840,7 +2830,7 @@
/* whether libxenserver is available */
#undef WITH_XENAPI

/* whether yajl >= 2.0.3 is available */
/* whether libyajl is available */
#undef WITH_YAJL

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
@@ -3178,6 +3168,14 @@
*/
#undef ssh_get_server_publickey

/* ssh_is_server_known is deprecated and replaced by
ssh_session_is_known_server. */
#undef ssh_session_is_known_server

/* ssh_write_knownhost is deprecated and replaced by
ssh_session_update_known_hosts. */
#undef ssh_session_update_known_hosts

/* Define as a signed type of the same size as size_t. */
#undef ssize_t



+ 302
- 503
configure
File diff suppressed because it is too large
View File


+ 1
- 17
configure.ac View File

@@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.

AC_INIT([libvirt], [5.3.0], [libvir-list@redhat.com], [], [https://libvirt.org])
AC_INIT([libvirt], [5.6.0], [libvir-list@redhat.com], [], [https://libvirt.org])
AC_CONFIG_SRCDIR([src/libvirt.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
@@ -245,7 +245,6 @@ LIBVIRT_LINKER_NO_UNDEFINED
LIBVIRT_ARG_APPARMOR