libvirt: upgrade to 5.3.0

1. remove the uml configure option because new version libvirt drop it
2. rebase three patches for new source codes

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Dengke Du 2019-05-09 17:53:28 +08:00 committed by Bruce Ashfield
parent 3c80794f80
commit 8e634ac487
5 changed files with 52 additions and 66 deletions

View File

@ -18,8 +18,8 @@ FILES_${PN}-python = "${bindir}/* ${libdir}/* ${libdir}/${PYTHON_DIR}/*"
SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python" SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python"
SRC_URI += "file://libvirt_api_xml_path.patch;patchdir=../libvirt-python-${PV}" SRC_URI += "file://libvirt_api_xml_path.patch;patchdir=../libvirt-python-${PV}"
SRC_URI[libvirt_python.md5sum] = "cba7dc90d564aa8c267c38d452b83f80" SRC_URI[libvirt_python.md5sum] = "b7e086e080e5681bece9e87db5a88afa"
SRC_URI[libvirt_python.sha256sum] = "01c4becf50b521a9e3d1b48a3a79d83cb389d86d760b895d911d78f5b6ae7b60" SRC_URI[libvirt_python.sha256sum] = "5213f995cb55a2f770aa36704b60313958c7ff1fde8cca39028ea889cc9f30ff"
export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml" export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
export LIBVIRT_CFLAGS = "-I${S}/include" export LIBVIRT_CFLAGS = "-I${S}/include"

View File

@ -1,6 +1,6 @@
From 0780181a3285511f166487a54ebc231fc657edfe Mon Sep 17 00:00:00 2001 From 4aea9dbeb7f7990ac5a2227d80251570b4a5bca1 Mon Sep 17 00:00:00 2001
From: Catalin Enache <catalin.enache@windriver.com> From: Dengke Du <dengke.du@windriver.com>
Date: Mon, 25 Jul 2016 16:38:51 +0300 Date: Wed, 8 May 2019 17:24:17 +0800
Subject: [PATCH] Install missing conf file Subject: [PATCH] Install missing conf file
openvzutilstest.conf file is needed by openvzutilstest test. openvzutilstest.conf file is needed by openvzutilstest test.
@ -12,15 +12,17 @@ Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Kai Kang <kai.kang@windriver.com>
[MA: Update context for v4.3.0] [MA: Update context for v4.3.0]
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
[DDU: Update context for v5.3.0]
Signed-off-by: Dengke Du <dengke.du@windriver.com>
--- ---
tests/Makefile.am | 4 +++- tests/Makefile.am | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-) 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/Makefile.am b/tests/Makefile.am diff --git a/tests/Makefile.am b/tests/Makefile.am
index 65f776e..8a6fd44 100644 index 7d0387e..68c3561 100644
--- a/tests/Makefile.am --- a/tests/Makefile.am
+++ b/tests/Makefile.am +++ b/tests/Makefile.am
@@ -173,6 +173,7 @@ EXTRA_DIST = \ @@ -168,6 +168,7 @@ EXTRA_DIST = \
$(NULL) $(NULL)
test_helpers = commandhelper ssh test_helpers = commandhelper ssh
@ -28,7 +30,7 @@ index 65f776e..8a6fd44 100644
test_programs = virshtest sockettest \ test_programs = virshtest sockettest \
virhostcputest virbuftest \ virhostcputest virbuftest \
commandtest seclabeltest \ commandtest seclabeltest \
@@ -305,6 +306,7 @@ endif WITH_LXC @@ -303,6 +304,7 @@ endif WITH_LXC
if WITH_OPENVZ if WITH_OPENVZ
test_programs += openvzutilstest test_programs += openvzutilstest
@ -36,7 +38,7 @@ index 65f776e..8a6fd44 100644
endif WITH_OPENVZ endif WITH_OPENVZ
if WITH_ESX if WITH_ESX
@@ -1488,7 +1490,7 @@ endif ! WITH_CIL @@ -1539,7 +1541,7 @@ endif ! WITH_CIL
buildtest-TESTS: $(TESTS) $(test_libraries) $(test_helpers) buildtest-TESTS: $(TESTS) $(test_libraries) $(test_helpers)
@ -45,7 +47,6 @@ index 65f776e..8a6fd44 100644
install-ptest: install-ptest:
list='$(TESTS) $(test_helpers) test-lib.sh virschematest' list='$(TESTS) $(test_helpers) test-lib.sh virschematest'
-- --
2.7.4 2.7.4

View File

@ -1,7 +1,7 @@
From 94478517c4f9950b28be3a348387db6ede3db812 Mon Sep 17 00:00:00 2001 From 52fc46b4f8cfd36476f59c0796f4f39686b53953 Mon Sep 17 00:00:00 2001
From: Mark Asselstine <mark.asselstine@windriver.com> From: Dengke Du <dengke.du@windriver.com>
Date: Mon, 4 Jun 2018 11:55:37 -0400 Date: Wed, 8 May 2019 10:20:47 +0800
Subject: [PATCH] Add 'install-ptest' rule. Subject: [PATCH] Add 'install-ptest' rule
Change TESTS_ENVIRONMENT to allow running outside build dir. Change TESTS_ENVIRONMENT to allow running outside build dir.
@ -15,15 +15,17 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: He Zhe <zhe.he@windriver.com>
[MA: Update context for v4.3.0] [MA: Update context for v4.3.0]
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
[DDU: Update context for v5.3.0]
Signed-off-by: Dengke Du <dengke.du@windriver.com>
--- ---
tests/Makefile.am | 74 +++++++++++++++++++++++++++++++++++++++++++++---------- tests/Makefile.am | 68 ++++++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 61 insertions(+), 13 deletions(-) 1 file changed, 60 insertions(+), 8 deletions(-)
diff --git a/tests/Makefile.am b/tests/Makefile.am diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7b93fbd..edc1eb9 100644 index 46d94d2..7d0387e 100644
--- a/tests/Makefile.am --- a/tests/Makefile.am
+++ b/tests/Makefile.am +++ b/tests/Makefile.am
@@ -35,11 +35,13 @@ INCLUDES = \ @@ -29,11 +29,13 @@ AM_CPPFLAGS = \
WARN_CFLAGS += $(RELAXED_FRAME_LIMIT_CFLAGS) WARN_CFLAGS += $(RELAXED_FRAME_LIMIT_CFLAGS)
@ -31,50 +33,32 @@ index 7b93fbd..edc1eb9 100644
+ +
AM_CFLAGS = \ AM_CFLAGS = \
- -Dabs_builddir="\"$(abs_builddir)\"" \ - -Dabs_builddir="\"$(abs_builddir)\"" \
- -Dabs_topbuilddir="\"$(abs_topbuilddir)\"" \ - -Dabs_top_builddir="\"$(abs_top_builddir)\"" \
- -Dabs_srcdir="\"$(abs_srcdir)\"" \ - -Dabs_srcdir="\"$(abs_srcdir)\"" \
- -Dabs_topsrcdir="\"$(abs_topsrcdir)\"" \ - -Dabs_top_srcdir="\"$(abs_top_srcdir)\"" \
+ -Dabs_builddir="\"$(PTEST_DIR)/tests\"" \ + -Dabs_builddir="\"$(PTEST_DIR)/tests\"" \
+ -Dabs_topbuilddir="\"$(PTEST_DIR)\"" \ + -Dabs_top_builddir="\"$(PTEST_DIR)\"" \
+ -Dabs_srcdir="\"$(PTEST_DIR)/tests\"" \ + -Dabs_srcdir="\"$(PTEST_DIR)/tests\"" \
+ -Dabs_topsrcdir="\"$(PTEST_DIR)\"" \ + -Dabs_top_srcdir="\"$(PTEST_DIR)\"" \
$(LIBXML_CFLAGS) \ $(LIBXML_CFLAGS) \
$(LIBNL_CFLAGS) \ $(LIBNL_CFLAGS) \
$(GNUTLS_CFLAGS) \ $(GNUTLS_CFLAGS) \
@@ -64,7 +66,7 @@ QEMULIB_LDFLAGS = \ @@ -465,10 +467,10 @@ TESTS = $(test_programs) \
$(MINGW_EXTRA_LDFLAGS)
INCLUDES += \
- -DTEST_DRIVER_DIR=\"$(top_builddir)/src/.libs\"
+ -DTEST_DRIVER_DIR=\"$(PTEST_DIR)/src/.libs\"
PROBES_O =
if WITH_DTRACE_PROBES
@@ -466,17 +468,15 @@ TESTS = $(test_programs) \
# Also, BSD sh doesn't like 'a=b b=$$a', so we can't use an
# intermediate shell variable, but must do all the expansion in make
-lv_abs_top_builddir=$(shell cd '$(top_builddir)' && pwd)
-
VIR_TEST_EXPENSIVE ?= $(VIR_TEST_EXPENSIVE_DEFAULT) VIR_TEST_EXPENSIVE ?= $(VIR_TEST_EXPENSIVE_DEFAULT)
TESTS_ENVIRONMENT = \ TESTS_ENVIRONMENT = \
- abs_top_builddir=$(lv_abs_top_builddir) \ - abs_top_builddir="$(abs_top_builddir)" \
- abs_top_srcdir=`cd '$(top_srcdir)'; pwd` \ - abs_top_srcdir="$(abs_top_srcdir)" \
- abs_builddir=$(abs_builddir) \ - abs_builddir="$(abs_builddir)" \
- abs_srcdir=$(abs_srcdir) \ - abs_srcdir="$(abs_srcdir)" \
- CONFIG_HEADER="$(lv_abs_top_builddir)/config.h" \
+ abs_top_builddir="$(PTEST_DIR)" \ + abs_top_builddir="$(PTEST_DIR)" \
+ abs_top_srcdir="$(PTEST_DIR)" \ + abs_top_srcdir="$(PTEST_DIR)" \
+ abs_builddir="$(PTEST_DIR)/tests" \ + abs_builddir="$(PTEST_DIR)/tests" \
+ abs_srcdir="$(PTEST_DIR)/tests" \ + abs_srcdir="$(PTEST_DIR)/tests" \
+ CONFIG_HEADER="$(PTEST_DIR)/config.h" \
SHELL="$(SHELL)" \ SHELL="$(SHELL)" \
- LIBVIRT_DRIVER_DIR="$(lv_abs_top_builddir)/src/.libs" \
+ LIBVIRT_DRIVER_DIR="$(PTEST_DIR)/src/.libs" \
LIBVIRT_AUTOSTART=0 \ LIBVIRT_AUTOSTART=0 \
LC_ALL=C \ LC_ALL=C \
VIR_TEST_EXPENSIVE=$(VIR_TEST_EXPENSIVE) \ @@ -1535,5 +1537,55 @@ else ! WITH_CIL
@@ -1486,5 +1486,55 @@ else ! WITH_CIL
EXTRA_DIST += objectlocking.ml EXTRA_DIST += objectlocking.ml
endif ! WITH_CIL endif ! WITH_CIL

View File

@ -1,6 +1,6 @@
From f73c5c61c921bf773dcba5e4234e23afce5dbe7f Mon Sep 17 00:00:00 2001 From ae4b40a1b3cb63a322716b6ad1762d53ada249e1 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@windriver.com> From: Dengke Du <dengke.du@windriver.com>
Date: Fri, 2 Aug 2013 11:38:43 -0400 Date: Tue, 7 May 2019 15:26:32 +0800
Subject: [PATCH] tools: add libvirt-net-rpc to virt-host-validate when TLS is Subject: [PATCH] tools: add libvirt-net-rpc to virt-host-validate when TLS is
enabled enabled
@ -13,17 +13,19 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com> Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com>
[MA: rebase to v4.3.0] [MA: rebase to v4.3.0]
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
[ddu: rebase to v5.3.0]
Signed-off-by: Dengke Du <dengke.du@windriver.com>
--- ---
examples/Makefile.am | 19 +++++++++++++++++++ examples/Makefile.am | 19 +++++++++++++++++++
tools/Makefile.am | 13 +++++++++++++ tools/Makefile.am | 12 ++++++++++++
2 files changed, 32 insertions(+) 2 files changed, 31 insertions(+)
diff --git a/examples/Makefile.am b/examples/Makefile.am diff --git a/examples/Makefile.am b/examples/Makefile.am
index 7069d74..c8893e3 100644 index ee7d3e6..7a5fd73 100644
--- a/examples/Makefile.am --- a/examples/Makefile.am
+++ b/examples/Makefile.am +++ b/examples/Makefile.am
@@ -39,6 +39,10 @@ LDADD = $(STATIC_BINARIES) $(WARN_CFLAGS) $(COVERAGE_LDFLAGS) \ @@ -34,6 +34,10 @@ LDADD = $(STATIC_BINARIES) $(WARN_CFLAGS) \
$(top_builddir)/src/libvirt.la $(top_builddir)/gnulib/lib/libgnu.la \ $(top_builddir)/src/libvirt.la \
$(top_builddir)/src/libvirt-admin.la $(top_builddir)/src/libvirt-admin.la
+if WITH_GNUTLS +if WITH_GNUTLS
@ -33,7 +35,7 @@ index 7069d74..c8893e3 100644
noinst_PROGRAMS=dominfo/info1 dommigrate/dommigrate domsuspend/suspend \ noinst_PROGRAMS=dominfo/info1 dommigrate/dommigrate domsuspend/suspend \
domtop/domtop hellolibvirt/hellolibvirt object-events/event-test \ domtop/domtop hellolibvirt/hellolibvirt object-events/event-test \
openauth/openauth rename/rename admin/list_servers admin/list_clients \ openauth/openauth rename/rename admin/list_servers admin/list_clients \
@@ -70,6 +74,21 @@ admin_logging_SOURCES = admin/logging.c @@ -65,6 +69,21 @@ admin_logging_SOURCES = admin/logging.c
INSTALL_DATA_LOCAL = INSTALL_DATA_LOCAL =
UNINSTALL_LOCAL = UNINSTALL_LOCAL =
@ -52,14 +54,14 @@ index 7069d74..c8893e3 100644
+ $(NULL) + $(NULL)
+endif +endif
+ +
if WITH_APPARMOR_PROFILES if WITH_NWFILTER
apparmordir = $(sysconfdir)/apparmor.d/ NWFILTER_DIR = "$(DESTDIR)$(sysconfdir)/libvirt/nwfilter"
apparmor_DATA = \
diff --git a/tools/Makefile.am b/tools/Makefile.am diff --git a/tools/Makefile.am b/tools/Makefile.am
index 1452d98..204e772 100644 index c6064de..1ac8445 100644
--- a/tools/Makefile.am --- a/tools/Makefile.am
+++ b/tools/Makefile.am +++ b/tools/Makefile.am
@@ -188,6 +188,13 @@ virt_host_validate_LDADD = \ @@ -188,6 +188,12 @@ virt_host_validate_LDADD = \
../gnulib/lib/libgnu.la \ ../gnulib/lib/libgnu.la \
$(NULL) $(NULL)
@ -68,12 +70,11 @@ index 1452d98..204e772 100644
+ ../gnulib/lib/libgnu.la \ + ../gnulib/lib/libgnu.la \
+ $(NULL) + $(NULL)
+endif +endif
+
+ +
virt_host_validate_CFLAGS = \ virt_host_validate_CFLAGS = \
$(AM_CFLAGS) \ $(AM_CFLAGS) \
$(NULL) $(NULL)
@@ -268,6 +275,12 @@ virt_admin_CFLAGS = \ @@ -265,6 +271,12 @@ virt_admin_CFLAGS = \
$(READLINE_CFLAGS) $(READLINE_CFLAGS)
BUILT_SOURCES = BUILT_SOURCES =

View File

@ -38,8 +38,8 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
file://hook_support.py \ file://hook_support.py \
" "
SRC_URI[libvirt.md5sum] = "aaf7b265ac2013d6eb184a86b5f7eeb9" SRC_URI[libvirt.md5sum] = "1cfaaf3717783ba19850b5ac04f7e76a"
SRC_URI[libvirt.sha256sum] = "4fd4bfe7312b7996a817c7919cf0062de0d5b3c400c93bd30855a46c40dd455a" SRC_URI[libvirt.sha256sum] = "8564bdd506817b3957fa67e4f06b217922d30f19e416c4dc620995fd155dc101"
inherit autotools gettext update-rc.d pkgconfig ptest systemd useradd inherit autotools gettext update-rc.d pkgconfig ptest systemd useradd
USERADD_PACKAGES = "${PN}" USERADD_PACKAGES = "${PN}"
@ -131,6 +131,7 @@ FILES_${PN} += "${libdir}/libvirt/connection-driver \
${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/polkit-1', '', d)} \ ${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/polkit-1', '', d)} \
${datadir}/bash-completion/completions/vsh \ ${datadir}/bash-completion/completions/vsh \
${datadir}/bash-completion/completions/virt-admin \ ${datadir}/bash-completion/completions/virt-admin \
/usr/lib/firewalld/zones/libvirt.xml \
" "
FILES_${PN}-dbg += "${libdir}/libvirt/connection-driver/.debug ${libdir}/libvirt/lock-driver/.debug" FILES_${PN}-dbg += "${libdir}/libvirt/connection-driver/.debug ${libdir}/libvirt/lock-driver/.debug"
@ -182,7 +183,7 @@ PRIVATE_LIBS_${PN}-ptest = " \
#PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd" #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd"
# full config # full config
PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 lxc test \ PACKAGECONFIG ??= "qemu yajl openvz vmware vbox esx iproute2 lxc test \
remote macvtap libvirtd netcf udev python ebtables \ remote macvtap libvirtd netcf udev python ebtables \
fuse iproute2 firewalld libpcap \ fuse iproute2 firewalld libpcap \
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit libcap-ng', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit libcap-ng', '', d)} \
@ -201,7 +202,6 @@ PACKAGECONFIG[qemu] = "--with-qemu --with-qemu-user=qemu --with-qemu-group=qemu,
PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl" PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl"
PACKAGECONFIG[xenapi] = "--with-xenapi,--without-xenapi,," PACKAGECONFIG[xenapi] = "--with-xenapi,--without-xenapi,,"
PACKAGECONFIG[libxl] = "--with-libxl=${STAGING_DIR_TARGET}/lib,--without-libxl,xen," PACKAGECONFIG[libxl] = "--with-libxl=${STAGING_DIR_TARGET}/lib,--without-libxl,xen,"
PACKAGECONFIG[uml] = "--with-uml, --without-uml,,"
PACKAGECONFIG[openvz] = "--with-openvz,--without-openvz,," PACKAGECONFIG[openvz] = "--with-openvz,--without-openvz,,"
PACKAGECONFIG[vmware] = "--with-vmware,--without-vmware,," PACKAGECONFIG[vmware] = "--with-vmware,--without-vmware,,"
PACKAGECONFIG[phyp] = "--with-phyp,--without-phyp,," PACKAGECONFIG[phyp] = "--with-phyp,--without-phyp,,"