Skip to contentSkip to conversation

libvirt: uprev to the latest release, v4.3.0

PATCH New Mark Asselstine 1 participant 1 message Jun 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libvirt: uprev to the latest release, v4.3.0

We have been using the 1.3.x release series for a long time now which has been great for stability but is slowly becoming harder and harder to track and port bug and CVE fixes. This is a big jump to the latest upstream release which gives us access to a myriad of fixes as well as puts us in a better position to contribute to the upstream project when issues are found.

Several patches have been dropped as they are either no longer valid against this release or have equivalent updates already applied to the upstream project. Some patches were consolidated which should ease future uprevs of this recipe. The majority of the updates were related to ptest patches, which is not a huge surprise given this code has no upstream equivalent.

The overall runtime behavior remains much the same from v1.3.5 with the only notable configuration change being for 'seccomp_sandbox' which has been disabled here but should possibly be revisited in the near future.

As usual the normal runtime usecases for qemu/kvm and lxc have been run successfully along with ptest results which are by and large OK:

    ====================================
    Testsuite summary for libvirt 4.3.0
    ====================================
    # TOTAL: 119
    # PASS:  115
    # SKIP:  0
    # XFAIL: 0
    # FAIL:  4
    # XPASS: 0
    # ERROR: 0

---

V2: Same as V1 but with some new content I had missed while
squashing my development commits.

 ...gure-variable-for-placing-systemd-untis-l.patch |  55 ------------
 ...pty-default-VNC-password-work-as-document.patch |  81 -----------------
 .../Makefiles-Add-more-XDR_CFLAGS-as-needed.patch  |  62 -------------
 recipes-extended/libvirt/libvirt-python.inc        |   4 +-
 .../0001-nsslinktest-also-build-virAtomic.h.patch  |  40 ---------
 .../0001-ptest-add-missing-test_helper-files.patch |  29 ------
 .../0001-to-fix-build-error.patch                  |  27 +++---
 ...vert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch |  70 ---------------
 ...re.ac-search-for-rpc-rpc.h-in-the-sysroot.patch |  10 +--
 .../libvirt/libvirt/install-missing-file.patch     |  35 ++++----
 .../libvirt-use-pkg-config-to-locate-libcap.patch  |  48 +++++-----
 .../libvirt/libvirt/libvirt_api_xml_path.patch     |  26 +++---
 recipes-extended/libvirt/libvirt/runptest.patch    | 100 ++++++++++++---------
 .../tests-allow-separated-src-and-build-dirs.patch |  57 ------------
 ...ibvirt-net-rpc-to-virt-host-validate-when.patch |  34 +++----
 .../libvirt/{libvirt_1.3.5.bb => libvirt_4.3.0.bb} |  29 +++---
 16 files changed, 170 insertions(+), 537 deletions(-)
 delete mode 100644 recipes-extended/libvirt/libvirt-1.3.5/0001-Added-configure-variable-for-placing-systemd-untis-l.patch
 delete mode 100644 recipes-extended/libvirt/libvirt-1.3.5/0001-qemu-Let-empty-default-VNC-password-work-as-document.patch
 delete mode 100644 recipes-extended/libvirt/libvirt-1.3.5/Makefiles-Add-more-XDR_CFLAGS-as-needed.patch
 delete mode 100644 recipes-extended/libvirt/libvirt/0001-nsslinktest-also-build-virAtomic.h.patch
 delete mode 100644 recipes-extended/libvirt/libvirt/0001-ptest-add-missing-test_helper-files.patch
 rename recipes-extended/libvirt/{libvirt-1.3.5 => libvirt}/0001-to-fix-build-error.patch (65%)
 delete mode 100644 recipes-extended/libvirt/libvirt/Revert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch
 rename recipes-extended/libvirt/{libvirt-1.3.5 => libvirt}/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch (85%)
 delete mode 100644 recipes-extended/libvirt/libvirt/tests-allow-separated-src-and-build-dirs.patch
 rename recipes-extended/libvirt/{libvirt_1.3.5.bb => libvirt_4.3.0.bb} (93%)
recipes-extended/libvirt/libvirt-1.3.5/0001-Added-configure-variable-for-placing-systemd-untis-l.patch deleted +0 -55
deleted file mode 100644
index a64739c..0000000
@@ -1,55 +0,0 @@
-From 531178d7fbb5d4b3404766cfd0fc999398cccd58 Mon Sep 17 00:00:00 2001
-From: Amarnath Valluri <[email protected]>
-Date: Wed, 8 Feb 2017 18:39:48 +0200
-Subject: [PATCH] Added configure variable for placing systemd untis location
-
-Upstream-Status: Pending
-
-Signed-off-by: Amarnath Valluri <[email protected]>
----
- configure.ac       | 3 +++
- daemon/Makefile.am | 1 -
- tools/Makefile.am  | 1 -
- 3 files changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 0e5b8e3..5a6408c 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -2687,6 +2687,9 @@ AC_DEFINE_UNQUOTED([isbase64],[libvirt_gl_isbase64],[Hack to avoid symbol clash]
- AC_DEFINE_UNQUOTED([base64_encode],[libvirt_gl_base64_encode],[Hack to avoid symbol clash])
- AC_DEFINE_UNQUOTED([base64_encode_alloc],[libvirt_gl_base64_encode_alloc],[Hack to avoid symbol clash])
- 
-+AC_ARG_VAR(SYSTEMD_UNIT_DIR, 'location for systemd units, defautls to /lib/systemd/system')
-+AS_IF([test "x$SYSTEMD_UNIT_DIR" = "x"], [SYSTEMD_UNIT_DIR="/lib/systemd/system"])
-+
- AC_CONFIG_FILES([run],
-                 [chmod +x,-w run])
- AC_CONFIG_FILES([\
-diff --git a/daemon/Makefile.am b/daemon/Makefile.am
-index edb75e8..2ab42a6 100644
---- a/daemon/Makefile.am
-+++ b/daemon/Makefile.am
-@@ -449,7 +449,6 @@ endif ! LIBVIRT_INIT_SCRIPT_UPSTART
- 
- if LIBVIRT_INIT_SCRIPT_SYSTEMD
- 
--SYSTEMD_UNIT_DIR = /lib/systemd/system
- BUILT_SOURCES += libvirtd.service
- 
- install-init-systemd: install-sysconfig libvirtd.service
-diff --git a/tools/Makefile.am b/tools/Makefile.am
-index 27ecbf1..8cefe1a 100644
---- a/tools/Makefile.am
-+++ b/tools/Makefile.am
-@@ -380,7 +380,6 @@ libvirt-guests.init: libvirt-guests.init.in libvirt-guests.sh
- 
- 
- EXTRA_DIST += libvirt-guests.service.in
--SYSTEMD_UNIT_DIR = /lib/systemd/system
- 
- if LIBVIRT_INIT_SCRIPT_SYSTEMD
- install-systemd: libvirt-guests.service install-sysconfig libvirt-guests.sh
--- 
-2.7.4
-
recipes-extended/libvirt/libvirt-1.3.5/0001-qemu-Let-empty-default-VNC-password-work-as-document.patch deleted +0 -81

81 lines not on this page · raw message

recipes-extended/libvirt/libvirt-1.3.5/Makefiles-Add-more-XDR_CFLAGS-as-needed.patch deleted +0 -62

62 lines not on this page · raw message

recipes-extended/libvirt/libvirt-python.inc +2 -2
index 15aa804..79beb95 100644
@@ -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 += "file://libvirt_api_xml_path.patch;patchdir=../libvirt-python-${PV}"
 
-SRC_URI[libvirt_python.md5sum] = "4dbd7ef9ee9c4dea5887b5b31eb04529"
-SRC_URI[libvirt_python.sha256sum] = "a0508a57637fd18a3584fb9d2322fb172f65708c9db16e0438a70eb0f36fa5c2"
+SRC_URI[libvirt_python.md5sum] = "2ea5f1871358e6a5788b52c2e1a0b809"
+SRC_URI[libvirt_python.sha256sum] = "efe384479a0bf74b1b83bba208887b263cc0061fd4f87759cf3067a403618ea9"
 
 export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
 export LIBVIRT_CFLAGS = "-I${S}/include"
recipes-extended/libvirt/libvirt/0001-nsslinktest-also-build-virAtomic.h.patch deleted +0 -40
deleted file mode 100644
index 6ab1c4e..0000000
@@ -1,40 +0,0 @@
-Upstream-Status: Submitted [http://www.redhat.com/archives/libvir-list/2016-August/msg00389.html]
-
-When build for architecture that don't use gcc atomic ops but pthread,
-it fails to build for arm:
-
-| ../tools/nss/.libs/libnss_libvirt_impl.a(libvirt_nss_la-virobject.o): In function `virClassNew':
-| /buildarea2/kkang/builds/qemuarm-Aug03/bitbake_build/tmp/work/armv5e-wrs-linux-gnueabi/libvirt/1.3.5-r0/build/src/../../libvirt-1.3.5/src/util/virobject.c:153: undefined reference to `virAtomicLock'
-| ../tools/nss/.libs/libnss_libvirt_impl.a(libvirt_nss_la-virobject.o): In function `virObjectNew':
-| /buildarea2/kkang/builds/qemuarm-Aug03/bitbake_build/tmp/work/armv5e-wrs-linux-gnueabi/libvirt/1.3.5-r0/build/src/../../libvirt-1.3.5/src/util/virobject.c:205: undefined reference to `virAtomicLock'
-| ../tools/nss/.libs/libnss_libvirt_impl.a(libvirt_nss_la-virobject.o): In function `virObjectUnref':
-| /buildarea2/kkang/builds/qemuarm-Aug03/bitbake_build/tmp/work/armv5e-wrs-linux-gnueabi/libvirt/1.3.5-r0/build/src/../../libvirt-1.3.5/src/util/virobject.c:277: undefined reference to `virAtomicLock'
-| ../tools/nss/.libs/libnss_libvirt_impl.a(libvirt_nss_la-virobject.o): In function `virObjectRef':
-| /buildarea2/kkang/builds/qemuarm-Aug03/bitbake_build/tmp/work/armv5e-wrs-linux-gnueabi/libvirt/1.3.5-r0/build/src/../../libvirt-1.3.5/src/util/virobject.c:298: undefined reference to `virAtomicLock'
-| collect2: error: ld returned 1 exit status
-
-It is similar with:
-
-http://libvirt.org/git/?p=libvirt.git;a=commit;h=12dc729
-
-Signed-off-by: Kai Kang <[email protected]>
----
- src/Makefile.am | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 12b66c2..6e55972 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -2989,6 +2989,8 @@ noinst_LTLIBRARIES += libvirt-nss.la
- libvirt_nss_la_SOURCES =		\
- 		util/viralloc.c			\
- 		util/viralloc.h			\
-+		util/viratomic.c		\
-+		util/viratomic.h		\
- 		util/virbitmap.c		\
- 		util/virbitmap.h		\
- 		util/virbuffer.c		\
--- 
-2.9.0
-
recipes-extended/libvirt/libvirt/0001-ptest-add-missing-test_helper-files.patch deleted +0 -29
deleted file mode 100644
index b4f1e27..0000000
@@ -1,29 +0,0 @@
-From e625a42caca492fe7d52b70bbbf83ae4d99cb15e Mon Sep 17 00:00:00 2001
-From: He Zhe <[email protected]>
-Date: Tue, 23 Aug 2016 02:16:20 -0400
-Subject: [PATCH] ptest: add missing test_helper files
-
-Signed-off-by: He Zhe <[email protected]>
----
- tests/Makefile.am | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/tests/Makefile.am b/tests/Makefile.am
-index 1c85656..2f8b9eb 100644
---- a/tests/Makefile.am
-+++ b/tests/Makefile.am
-@@ -1422,8 +1422,10 @@ install-ptest:
- 	@(for file in $(PTESTS); do \
- 		if [ -f .libs/$$file ]; then \
- 			install .libs/$$file $(DEST_DIR)/tests; \
--		else \
-+		elif [ -f $(srcdir)/$$file ]; then \
- 			install $(srcdir)/$$file $(DEST_DIR)/tests; \
-+		else \
-+			install $(builddir)/$$file $(DEST_DIR)/tests; \
- 		fi; \
- 	done;)
- 	@(if [ -d .libs ]; then install .libs/*.so $(DEST_DIR)/tests/.libs; fi;)
--- 
-2.8.1
-
recipes-extended/libvirt/libvirt/0001-to-fix-build-error.patch renamed from recipes-extended/libvirt/libvirt-1.3.5/0001-to-fix-build-error.patch +15 -12
similarity index 65%
rename from recipes-extended/libvirt/libvirt-1.3.5/0001-to-fix-build-error.patch
rename to recipes-extended/libvirt/libvirt/0001-to-fix-build-error.patch
index 089ee33..c920139 100644
@@ -15,16 +15,18 @@ The error likes as following
 Signed-off-by: Lei Maohui <[email protected]>
 [ywei: rebased to libvirt-1.3.2]
 Signed-off-by: Yunguo Wei <[email protected]>
+[MA: rebase to v4.3.0]
+Signed-off-by: Mark Asselstine <[email protected]>
 ---
- docs/Makefile.am | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ docs/Makefile.am | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
 
 diff --git a/docs/Makefile.am b/docs/Makefile.am
-index 1b4353b..c199551 100644
+index 9620587..060a82b 100644
 --- a/docs/Makefile.am
 +++ b/docs/Makefile.am
-@@ -164,7 +164,7 @@ EXTRA_DIST=					\
-   todo.pl hvsupport.pl todo.cfg-example \
+@@ -183,7 +183,7 @@ EXTRA_DIST= \
+   hvsupport.pl \
    $(schema_DATA)
  
 -acl_generated = aclperms.htmlinc
@@ -32,15 +34,16 @@ index 1b4353b..c199551 100644
  
  $(srcdir)/aclperms.htmlinc: $(top_srcdir)/src/access/viraccessperm.h \
          $(srcdir)/genaclperms.pl Makefile.am
-@@ -221,7 +221,7 @@ $(srcdir)/hvsupport.html.in: $(srcdir)/hvsupport.pl $(api_DATA) \
+@@ -247,8 +247,7 @@ MAINTAINERCLEANFILES += \
+ %.png: %.fig
  	convert -rotate 90 $< $@
  
- %.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \
--		sitemap.html.in $(acl_generated)
-+		sitemap.html.in
- 	@if [ -x $(XSLTPROC) ] ; then \
- 	  echo "Generating $@"; \
- 	  name=`echo $@ | sed -e 's/.tmp//'`; \
+-%.html.tmp: %.html.in site.xsl subsite.xsl page.xsl \
+-		$(acl_generated)
++%.html.tmp: %.html.in site.xsl subsite.xsl page.xsl
+ 	$(AM_V_GEN)name=`echo $@ | sed -e 's/.tmp//'`; \
+ 	  dir=`dirname $@` ; \
+ 	  if test "$$dir" = "."; \
 -- 
 1.9.1
 
recipes-extended/libvirt/libvirt/Revert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch deleted +0 -70

70 lines not on this page · raw message

recipes-extended/libvirt/libvirt/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch renamed from recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch +5 -5
similarity index 85%
rename from recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch
rename to recipes-extended/libvirt/libvirt/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch
index edbadb6..0a9d5f4 100644
@@ -11,14 +11,14 @@ Upstream-Status: Inappropriate [old release]
 
 Signed-off-by: Mark Asselstine <[email protected]>
 ---
- configure.ac | 4 ++--
+ m4/virt-xdr.m4 | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
-diff --git a/configure.ac b/configure.ac
+diff --git a/m4/virt-xdr.m4 b/m4/virt-xdr.m4
 index 5a6408c..6c19f6d 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -705,10 +705,10 @@ if test x"$with_remote" = x"yes" || test x"$with_libvirtd" = x"yes"; then
+--- a/m4/virt-xdr.m4
++++ b/m4/virt-xdr.m4
+@@ -33,10 +33,10 @@ if test x"$with_remote" = x"yes" || test x"$with_libvirtd" = x"yes"; then
      dnl check for cygwin's variation in xdr function names
      AC_CHECK_FUNCS([xdr_u_int64_t],[],[],[#include <rpc/xdr.h>])
  
recipes-extended/libvirt/libvirt/install-missing-file.patch +17 -18
index ecd4a87..cb5a20e 100644
@@ -1,11 +1,3 @@
-Upstream-Status: Inapproriate
-
-This patch is for ptest, so it is inapproriate to send to upstream.
-
-Update context for 1.3.5.
-
-Signed-off-by: Kai Kang <[email protected]>
----
 From 0780181a3285511f166487a54ebc231fc657edfe Mon Sep 17 00:00:00 2001
 From: Catalin Enache <[email protected]>
 Date: Mon, 25 Jul 2016 16:38:51 +0300
@@ -13,24 +5,30 @@ Subject: [PATCH] Install missing conf file
 
 openvzutilstest.conf file is needed by openvzutilstest test.
 
+Upstream-Status: Inapproriate
+
 Signed-off-by: Catalin Enache <[email protected]>
+[KK: Update context for 1.3.5.]
+Signed-off-by: Kai Kang <[email protected]>
+[MA: Update context for v4.3.0]
+Signed-off-by: Mark Asselstine <[email protected]>
 ---
  tests/Makefile.am | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
 
 diff --git a/tests/Makefile.am b/tests/Makefile.am
-index 02e0dd8..187fbca 100644
+index 65f776e..8a6fd44 100644
 --- a/tests/Makefile.am
 +++ b/tests/Makefile.am
-@@ -170,6 +170,7 @@ EXTRA_DIST =		\
- 	xml2vmxdata
+@@ -173,6 +173,7 @@ EXTRA_DIST = \
+ 	$(NULL)
  
- test_helpers = commandhelper ssh virconftest
+ test_helpers = commandhelper ssh
 +test_misc =
  test_programs = virshtest sockettest \
- 	nodeinfotest virbuftest \
+ 	virhostcputest virbuftest \
  	commandtest seclabeltest \
-@@ -259,6 +260,7 @@ endif WITH_LXC
+@@ -305,6 +306,7 @@ endif WITH_LXC
  
  if WITH_OPENVZ
  test_programs += openvzutilstest
@@ -38,15 +36,16 @@ index 02e0dd8..187fbca 100644
  endif WITH_OPENVZ
  
  if WITH_ESX
-@@ -1293,7 +1295,7 @@ endif ! WITH_CIL
+@@ -1488,7 +1490,7 @@ endif ! WITH_CIL
  
  buildtest-TESTS: $(TESTS) $(test_libraries) $(test_helpers)
  
--PTESTS = $(TESTS) $(test_helpers) test-lib.sh schematestutils.sh
-+PTESTS = $(TESTS) $(test_helpers) $(test_misc) test-lib.sh schematestutils.sh
+-PTESTS = $(TESTS) $(test_helpers) test-lib.sh virschematest
++PTESTS = $(TESTS) $(test_helpers) $(test_misc) test-lib.sh virschematest
  
  install-ptest:
- 	list='$(TESTS) $(test_helpers) test-lib.sh schematestutils.sh'
+ 	list='$(TESTS) $(test_helpers) test-lib.sh virschematest'
+
 -- 
 2.7.4
 
recipes-extended/libvirt/libvirt/libvirt-use-pkg-config-to-locate-libcap.patch +24 -24

58 lines not on this page · raw message

recipes-extended/libvirt/libvirt/libvirt_api_xml_path.patch +14 -12
index 3c2622c..30c30e8 100644
@@ -13,14 +13,14 @@ Signed-off-by: Martin Kletzander <mkletzan redhat com>
 [ywei: rebased to 1.3.2]
 Signed-off-by: Yunguo Wei <[email protected]>
 ---
- setup.py |   25 ++++++++++++++++++++++---
- 1 file changed, 22 insertions(+), 3 deletions(-)
+ setup.py | 35 ++++++++++++++++++++++++-----------
+ 1 file changed, 24 insertions(+), 11 deletions(-)
 
-Index: libvirt-python-1.2.4/setup.py
-===================================================================
---- libvirt-python-1.2.4.orig/setup.py
-+++ libvirt-python-1.2.4/setup.py
-@@ -40,13 +40,7 @@
+diff --git a/setup.py b/setup.py
+index eff9d54..48ec4fe 100755
+--- a/setup.py
++++ b/setup.py
+@@ -43,13 +43,7 @@ def check_minimum_libvirt_version():
             "libvirt"])
  
  def have_libvirt_lxc():
@@ -33,9 +33,9 @@ Index: libvirt-python-1.2.4/setup.py
 -        return False
 +    return True
  
- def get_pkgconfig_data(args, mod, required=True):
-     """Run pkg-config to and return content associated with it"""
-@@ -68,7 +62,17 @@
+ def have_libvirtaio():
+     # This depends on asyncio, which in turn depends on "yield from" syntax.
+@@ -77,7 +71,17 @@ def get_api_xml_files():
      """Check with pkg-config that libvirt is present and extract
      the API XML file paths we need from it"""
  
@@ -54,7 +54,7 @@ Index: libvirt-python-1.2.4/setup.py
  
      offset = libvirt_api.index("-api.xml")
      libvirt_qemu_api = libvirt_api[0:offset] + "-qemu-api.xml"
-@@ -88,8 +92,17 @@
+@@ -97,8 +101,17 @@ def get_module_lists():
  
      c_modules = []
      py_modules = []
@@ -74,7 +74,7 @@ Index: libvirt-python-1.2.4/setup.py
  
      module = Extension('libvirtmod',
                         sources = ['libvirt-override.c', 'build/libvirt.c', 'typewrappers.c', 'libvirt-utils.c'],
-@@ -138,7 +151,7 @@
+@@ -144,7 +157,7 @@ def get_module_lists():
  class my_build(build):
  
      def run(self):
@@ -83,3 +83,5 @@ Index: libvirt-python-1.2.4/setup.py
          apis = get_api_xml_files()
  
          self.spawn([sys.executable, "generator.py", "libvirt", apis[0]])
+-- 
+2.17.0
recipes-extended/libvirt/libvirt/runptest.patch +59 -41

159 lines not on this page · raw message

recipes-extended/libvirt/libvirt/tests-allow-separated-src-and-build-dirs.patch deleted +0 -57

57 lines not on this page · raw message

recipes-extended/libvirt/libvirt/tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch +18 -16
index a7fc727..5f6f950 100644
@@ -1,4 +1,4 @@
-From a790bfe8fa7b24b68cb6f9a1b7205fda2c6d558e Mon Sep 17 00:00:00 2001
+From f73c5c61c921bf773dcba5e4234e23afce5dbe7f Mon Sep 17 00:00:00 2001
 From: Bruce Ashfield <[email protected]>
 Date: Fri, 2 Aug 2013 11:38:43 -0400
 Subject: [PATCH] tools: add libvirt-net-rpc to virt-host-validate when TLS is
@@ -11,18 +11,20 @@ link against libvirt-net-rpc which provides the implementation.
 Signed-off-by: Bruce Ashfield <[email protected]>
 [ywei: rebased to libvirt-1.3.2]
 Signed-off-by: Yunguo Wei <[email protected]>
+[MA: rebase to v4.3.0]
+Signed-off-by: Mark Asselstine <[email protected]>
 ---
  examples/Makefile.am | 19 +++++++++++++++++++
  tools/Makefile.am    | 13 +++++++++++++
  2 files changed, 32 insertions(+)
 
 diff --git a/examples/Makefile.am b/examples/Makefile.am
-index 2adcefb..fff49d4 100644
+index 7069d74..c8893e3 100644
 --- a/examples/Makefile.am
 +++ b/examples/Makefile.am
-@@ -39,6 +39,10 @@ INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir) \
- LDADD = $(STATIC_BINARIES) $(WARN_CFLAGS) $(COVERAGE_LDFLAGS) \
- 	$(top_builddir)/src/libvirt.la $(top_builddir)/gnulib/lib/libgnu.la
+@@ -39,6 +39,10 @@ LDADD = $(STATIC_BINARIES) $(WARN_CFLAGS) $(COVERAGE_LDFLAGS) \
+ 	$(top_builddir)/src/libvirt.la $(top_builddir)/gnulib/lib/libgnu.la \
+ 	$(top_builddir)/src/libvirt-admin.la
  
 +if WITH_GNUTLS
 +LDADD += $(top_builddir)/src/libvirt-net-rpc.la
@@ -30,10 +32,10 @@ index 2adcefb..fff49d4 100644
 +
  noinst_PROGRAMS=dominfo/info1 dommigrate/dommigrate domsuspend/suspend \
  	domtop/domtop hellolibvirt/hellolibvirt object-events/event-test \
- 	openauth/openauth rename/rename
-@@ -52,6 +56,21 @@ object_events_event_test_SOURCES = object-events/event-test.c
- openauth_openauth_SOURCES = openauth/openauth.c
- rename_rename_SOURCES = rename/rename.c
+ 	openauth/openauth rename/rename admin/list_servers admin/list_clients \
+@@ -70,6 +74,21 @@ admin_logging_SOURCES = admin/logging.c
+ INSTALL_DATA_LOCAL =
+ UNINSTALL_LOCAL =
  
 +if WITH_GNUTLS
 +dominfo_info1_LDADD = $(top_builddir)/src/libvirt-net-rpc.la  \
@@ -54,11 +56,11 @@ index 2adcefb..fff49d4 100644
  apparmordir = $(sysconfdir)/apparmor.d/
  apparmor_DATA = \
 diff --git a/tools/Makefile.am b/tools/Makefile.am
-index 0be3567..b3227a7 100644
+index 1452d98..204e772 100644
 --- a/tools/Makefile.am
 +++ b/tools/Makefile.am
-@@ -169,6 +169,13 @@ virt_host_validate_LDADD = \
- 		../gnulib/lib/libgnu.la				\
+@@ -188,6 +188,13 @@ virt_host_validate_LDADD = \
+ 		../gnulib/lib/libgnu.la \
  		$(NULL)
  
 +if WITH_GNUTLS
@@ -69,9 +71,9 @@ index 0be3567..b3227a7 100644
 +
 +
  virt_host_validate_CFLAGS = \
- 		$(LIBXML_CFLAGS)				\
- 		$(WARN_CFLAGS)					\
-@@ -256,6 +263,12 @@ virt_admin_CFLAGS =						\
+ 		$(AM_CFLAGS) \
+ 		$(NULL)
+@@ -268,6 +275,12 @@ virt_admin_CFLAGS = \
  		$(READLINE_CFLAGS)
  BUILT_SOURCES =
  
@@ -85,5 +87,5 @@ index 0be3567..b3227a7 100644
  virsh_LDADD += virsh_win_icon.$(OBJEXT)
  
 -- 
-1.9.1
+2.7.4
 
recipes-extended/libvirt/libvirt_4.3.0.bb renamed from recipes-extended/libvirt/libvirt_1.3.5.bb +16 -13
similarity index 93%
rename from recipes-extended/libvirt/libvirt_1.3.5.bb
rename to recipes-extended/libvirt/libvirt_4.3.0.bb
index 35fd577..a9cc011 100644
@@ -14,7 +14,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux
 #
 RDEPENDS_${PN} = "gettext-runtime"
 
-RDEPENDS_${PN}-ptest += "make gawk perl"
+RDEPENDS_${PN}-ptest += "make gawk perl bash"
 
 RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd"
 RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
@@ -23,29 +23,22 @@ RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
 #connman blocks the 53 port and libvirtd can't start its DNS service
 RCONFLICTS_${PN}_libvirtd = "connman"
 
-SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \
+SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
            file://tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch \
            file://libvirtd.sh \
            file://libvirtd.conf \
            file://dnsmasq.conf \
            file://runptest.patch \
            file://run-ptest \
-           file://tests-allow-separated-src-and-build-dirs.patch \
            file://libvirt-use-pkg-config-to-locate-libcap.patch \
            file://0001-to-fix-build-error.patch \
-           file://Revert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch \
            file://install-missing-file.patch \
-           file://0001-nsslinktest-also-build-virAtomic.h.patch \
-           file://0001-qemu-Let-empty-default-VNC-password-work-as-document.patch \
-           file://0001-ptest-add-missing-test_helper-files.patch \
            file://0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch \
-	   file://0001-Added-configure-variable-for-placing-systemd-untis-l.patch \
-	   file://configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch \
-	   file://Makefiles-Add-more-XDR_CFLAGS-as-needed.patch \
+           file://configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch \
           "
 
-SRC_URI[libvirt.md5sum] = "f9dc1e63d559eca50ae0ee798a4c6c6d"
-SRC_URI[libvirt.sha256sum] = "93a23c44eb431da46c9458f95a66e29c9b98e37515d44b6be09e75b35ec94ac8"
+SRC_URI[libvirt.md5sum] = "946cfa2558401612c4fcbc934ef9077b"
+SRC_URI[libvirt.sha256sum] = "a531e22c8b985ecb2d1223b913fd6ec0f1800e3ebe02351924274885db20c2b7"
 
 inherit autotools gettext update-rc.d pkgconfig ptest systemd
 
@@ -119,10 +112,16 @@ FILES_${PN}-libvirtd = " \
 	${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '', '${libexecdir}/libvirt-guests.sh', d)} \
         "
 
-FILES_${PN}-virsh = "${bindir}/virsh"
+FILES_${PN}-virsh = " \
+    ${bindir}/virsh \
+    ${datadir}/bash-completion/completions/virsh \
+"
+
 FILES_${PN} += "${libdir}/libvirt/connection-driver \
 	    ${datadir}/augeas \
 	    ${@bb.utils.contains('PACKAGECONFIG', 'polkit', '${datadir}/polkit-1', '', d)} \
+	    ${datadir}/bash-completion/completions/vsh \
+	    ${datadir}/bash-completion/completions/virt-admin \
 	    "
 
 FILES_${PN}-dbg += "${libdir}/libvirt/connection-driver/.debug ${libdir}/libvirt/lock-driver/.debug"
@@ -267,6 +266,10 @@ do_install_append() {
 		rm -rf ${D}/${datadir}/polkit-1
 	fi
 
+	# disable seccomp_sandbox
+	sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \
+	    ${D}${sysconfdir}/libvirt/qemu.conf
+
 	# Add hook support for libvirt
 	mkdir -p ${D}/etc/libvirt/hooks
 
Signature · 1 line
2.7.4