Skip to contentSkip to conversation

libvirt: uprev to 1.3.2

PATCH In review Yunguo Wei 2 participants 3 messages Mar 31, 2016

lore
Share & tools
lore

Yunguo Wei

author
#0 lore raw

v3 cover libvirt: uprev to 1.3.2

V3 changes:

Bring back the patch libvirt-use-pkg-config-to-locate-libcap.patch, which was dropped in V2 by mistake.

V2 changes:

1. use git "-M" option to generate patch for easy review.

2. Drop the patch 0001-Add-missing-split-to-properly-retrieve-cflags-and-ld.patch in V1 as the patch was actually fixing an issue introduced during rebasing 1.2.19 patches.

3. Rebase existing patches to make 2) happen.
---------------------------------------------
commit c3e03a8f5d4c8dce3d4d4076b2be5cb9bb44a8b5

Author: Yunguo Wei <[email protected]>
Date:   Mon Mar 28 16:54:04 2016 +0800

libvirt: uprev to 1.3.2

Release notes here http://libvirt.org/news.html.

Added Files:
------------

 .../libvirt-1.3.2/0001-to-fix-build-error.patch    |  46 ++++
 recipes-extended/libvirt/libvirt_1.3.2.bb          | 287 +++++++++++++++++++++

Removed Files:
--------------

 .../libvirt-1.2.19/0001-to-fix-build-error.patch   |  44 ----
 recipes-extended/libvirt/libvirt_1.2.19.bb         | 287 ---------------------

Remaining Changes (diffstat):
-----------------------------

 recipes-extended/libvirt/libvirt-python.inc        |   4 +-
 ...vert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch |  52 +++-------
 .../libvirt/libvirt/libvirt_api_xml_path.patch     |  14 +--
 recipes-extended/libvirt/libvirt/runptest.patch    |   2 +-
 ...ibvirt-net-rpc-to-virt-host-validate-when.patch | 107 ++++++++-------------

---------------------------
Test steps:

t@SDP_Wildcat_Pass-1:/media# libvirtd -V
libvirtd (libvirt) 1.3.2
root@SDP_Wildcat_Pass-1:/media# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor
preset: enabled)
   Active: active (running) since Thu 2016-03-31 03:43:57 UTC; 2s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
  Process: 2200 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS
(code=exited, status=0/SUCCESS)
 Main PID: 2202 (libvirtd)
   CGroup: /system.slice/libvirtd.service
           ├─2026 /usr/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib64/libvirt/libvirt_leaseshelper
           ├─2027 /usr/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib64/libvirt/libvirt_leaseshelper
           └─2202 /usr/sbin/libvirtd --listen --daemon
Mar 31 03:43:55 SDP_Wildcat_Pass-1 systemd[1]: Starting Virtualization
daemon...
Mar 31 03:43:57 SDP_Wildcat_Pass-1 libvirtd[2200]: 2016-03-31
03:43:57.284+0000: 2200: info : libvirt version: 1.3.2
Mar 31 03:43:57 SDP_Wildcat_Pass-1 libvirtd[2200]: 2016-03-31
03:43:57.284+0000: 2200: info : hostname: SDP_Wildcat_Pass-1
Mar 31 03:43:57 SDP_Wildcat_Pass-1 libvirtd[2200]: 2016-03-31
03:43:57.284+0000: 2200: warning : virGetHostnameImpl:703 : getaddrinfo
failed for 'SD...ot known
Mar 31 03:43:57 SDP_Wildcat_Pass-1 systemd[1]: Started Virtualization
daemon.
Mar 31 03:43:57 SDP_Wildcat_Pass-1 dnsmasq[2026]: read /etc/hosts - 6
addresses
Mar 31 03:43:57 SDP_Wildcat_Pass-1 dnsmasq[2026]: read
/var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 31 03:43:57 SDP_Wildcat_Pass-1 dnsmasq-dhcp[2026]: read

/var/lib/libvirt/dnsmasq/default.hostsfile
Hint: Some lines were ellipsized, use -l to show in full.

root@SDP_Wildcat_Pass-1:/media# cat test.xml 
<domain type='kvm'>
	<name>test</name>
	<memory>2048000</memory>
	<currentMemory>1024000</currentMemory>
	<vcpu>1</vcpu>
	<os>
		<type arch='x86_64' machine='pc'>hvm</type>
		<boot dev='hd' />
		<kernel>/media/guest.kernel</kernel>
		<cmdline>root=/dev/vda2 selinux=0 enforcing=0
console=ttyS0 rw </cmdline>
	</os>
	<devices>
		<disk type='file' device='disk'>
			<source file='/media/guest_70013.img' />
			<target dev='vda' bus='virtio'/>
		</disk>
		<serial type='pty'>
		        <target port='0'/>
		</serial>
		<console type='pty'>
		        <target type='serial' port='0'/>
		</console>
	</devices>
	<devices>
		<memballoon model='virtio'/>
	</devices>
</domain>
root@SDP_Wildcat_Pass-1:/media# virsh define test.xml 
Domain test defined from test.xml
root@SDP_Wildcat_Pass-1:/media# virsh start test
Domain test started
root@SDP_Wildcat_Pass-1:/media# virsh console test
Connected to domain test
Escape character is ^]
EXT4-fs (vda2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
fuse init (API version 7.22)
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Load Kernel Modules.
         Mounting FUSE Control File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started LSB: Set hostname based on /etc/hostname.
         Starting (null)...
[  OK  ] Started (null).
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /mnt/huge...
systemd-udevd[178]: starting version 216
         Mounting /var/volatile...
[  OK  ] Mounted /mnt/huge.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Mounted /var/volatile.
         Starting Load/Save Random Seed...
[  OK  ] Started LVM activation.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device
/dev/disk/by-uuid/c30d65b1-ac9c-4843-8ed0-1c572c45f411.
         Starting File System Check on
/dev/...1-ac9c-4843-8ed0-1c572c45f411...
[  OK  ] Found device
/dev/disk/by-uuid/dcb63b7b-29c5-46ca-bed4-561ddce91a10.
         Activating swap
/dev/disk/by-uuid/d...b-29c5-46ca-bed4-561ddce91a10...
Adding 204796k swap on /dev/vda3.  Priority:-1 extents:1 across:204796k 
[  OK  ] Activated swap
/dev/disk/by-uuid/dcb63b7b-29c5-46ca-bed4-561ddce91a10.
[  OK  ] Reached target Swap.
systemd-fsck[235]: /dev/vda1: recovering journal
systemd-fsck[235]: /dev/vda1: clean, 251/128016 files, 260578/512000
blocks
[  OK  ] Started File System Check on
/dev/d...5b1-ac9c-4843-8ed0-1c572c45f411.
         Mounting /boot...
EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting Create Volatile Files and Directories...
systemd-journald[131]: Received request to flush runtime journal from
PID 1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Security Auditing Service...
systemd-journald[131]: File
/var/log/journal/1a524f82242b49afb8353a2ab625087a/system.journal
corrupted or uncleanly shut down, renaming and replacing.
[  OK  ] Started Security Auditing Service.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
audit: type=1305 audit(1459395895.903:2): audit_pid=261 old=0
auid=4294967295 ses=4294967295 res=1
[  OK  ] Listening on CUPS Printing Service Sockets.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Paths.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Timers.
         Starting Restore Sound Card State...
[  OK  ] Listening on sshd.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting LSB: Raise network interfaces....
         Starting Ethernet Bridge Filtering Tables...
         Starting Dynamic Host Configuration Protocol (DHCP)...
[  OK  ] Started Dynamic Host Configuration Protocol (DHCP).
         Starting irqbalance daemon...
[  OK  ] Started irqbalance daemon.
         Starting GNU Zebra routing manager...
         Starting Job spooling tools...
[  OK  ] Started Job spooling tools.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting System Logging Service...
         Starting strongSwan IPsec...
[  OK  ] Started strongSwan IPsec.
         Starting ACPI Event Daemon...
         Starting Periodic Command Scheduler...
[  OK  ] Started Periodic Command Scheduler.
         Starting Apply Cpu Microcode...
         Starting Permit User Sessions...
         Starting Login Service...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting Network Service...
[  OK  ] Started System Logging Service.
[  OK  ] Started Restore Sound Card State.
[FAILED] Failed to start LSB: Raise network interfaces..
See 'systemctl status networking.service' for details.
[  OK  ] Started Ethernet Bridge Filtering Tables.
[  OK  ] Started ACPI Event Daemon.
[  OK  ] Started Apply Cpu Microcode.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Login Service.
         Starting (null)...
NET: Registered protocol family 15
[  OK  ] Started Network Service.
         Starting Wait for Network to be Configured...
Initializing XFRM netlink socket
[  OK  ] Started (null).
[  OK  ] Started GNU Zebra routing manager.
         Starting IS-IS routing daemon...
[  OK  ] Reached target Network.
         Starting Simple Network Management Protocol (SNMP) Trap
Daemon....
         Starting Distccd A Distributed Compilation Server...
[  OK  ] Started Distccd A Distributed Compilation Server.
         Starting FreeRADIUS high performance RADIUS server....
         Starting Xinetd A Powerful Replacement For Inetd...
         Starting DNS forwarder and DHCP server...
         Starting Postfix Mail Transport Agent...
         Starting Vsftpd ftp daemon...
[  OK  ] Started Vsftpd ftp daemon.
         Starting Network Time Service...
         Starting Berkeley Internet Name Domain (DNS)...
         Starting The RPC portmapper...
         Starting Collectd...
[  OK  ] Started Collectd.
         Starting HP Agentless Management Service daemon...
[  OK  ] Started HP Agentless Management Service daemon.
         Starting Check tcf-agent autostart...
         Starting Simple Network Management Protocol (SNMP) Daemon....
         Starting /etc/rc.local Compatibility...
         Starting OSPF routing daemon...
         Starting RIP routing daemon for IPv6...
         Starting OSPF routing daemon for IPv6...
         Starting Babel routing daemon...
         Starting RIP routing daemon...
         Starting BGP routing daemon...
[  OK  ] Started IS-IS routing daemon.
[  OK  ] Started Xinetd A Powerful Replacement For Inetd.
[  OK  ] Started Network Time Service.
[  OK  ] Started The RPC portmapper.
[  OK  ] Started /etc/rc.local Compatibility.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Babel routing daemon.
[  OK  ] Started RIP routing daemon for IPv6.
[  OK  ] Started OSPF routing daemon for IPv6.
[  OK  ] Started RIP routing daemon.
[  OK  ] Started OSPF routing daemon.
[  OK  ] Started DNS forwarder and DHCP server.
[  OK  ] Started BGP routing daemon.

tcf-agent: not configured to autostart, use /etc/cafe/tcf-agent.init force-start
[ OK ] Started Check tcf-agent autostart. systemd-journald[131]: File /var/log/journal/1a524f82242b49afb8353a2ab625087a/user-65534.journal corrupted or uncleanly shut down, renaming and replacing.

[  OK  ] Started Simple Network Management Protocol (SNMP) Trap Daemon..
[  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
[  OK  ] Started Berkeley Internet Name Domain (DNS).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started Postfix Mail Transport Agent.
[  OK  ] Started FreeRADIUS high performance RADIUS server..

Wind River Linux CGP 7.0.0.13 cgp-70013 ttyS0

cgp-70013 login: root
Password:
Last login: Tue Mar 29 04:21:57 EDT 2016 on ttyS0

author
#1 lore raw

PATCH v3 1/1 libvirt: uprev to 1.3.2

Release notes here http://libvirt.org/news.html.

---
 .../0001-to-fix-build-error.patch                  |  24 ++---
 recipes-extended/libvirt/libvirt-python.inc        |   4 +-
 ...vert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch |  52 +++-------
 .../libvirt/libvirt/libvirt_api_xml_path.patch     |  14 +--
 recipes-extended/libvirt/libvirt/runptest.patch    |   2 +-
 ...ibvirt-net-rpc-to-virt-host-validate-when.patch | 107 ++++++++-------------
 .../{libvirt_1.2.19.bb => libvirt_1.3.2.bb}        |   6 +-
 7 files changed, 85 insertions(+), 124 deletions(-)
 rename recipes-extended/libvirt/{libvirt-1.2.19 => libvirt-1.3.2}/0001-to-fix-build-error.patch (65%)
 rename recipes-extended/libvirt/{libvirt_1.2.19.bb => libvirt_1.3.2.bb} (97%)
recipes-extended/libvirt/libvirt-1.3.2/0001-to-fix-build-error.patch renamed from recipes-extended/libvirt/libvirt-1.2.19/0001-to-fix-build-error.patch +13 -11
similarity index 65%
rename from recipes-extended/libvirt/libvirt-1.2.19/0001-to-fix-build-error.patch
rename to recipes-extended/libvirt/libvirt-1.3.2/0001-to-fix-build-error.patch
index 61a54e1..089ee33 100644
@@ -1,4 +1,4 @@
-From 62514c8c2925e48a4f20ce3d7d48387851cb76a5 Mon Sep 17 00:00:00 2001
+From 8353dc1e642011199c3b3ba057d51d8768e4cd54 Mon Sep 17 00:00:00 2001
 From: Lei Maohui <[email protected]>
 Date: Fri, 31 Jul 2015 03:17:07 +0900
 Subject: [PATCH] to fix build error
@@ -13,32 +13,34 @@ The error likes as following
 | make[3]: *** Waiting for unfinished jobs....
 
 Signed-off-by: Lei Maohui <[email protected]>
+[ywei: rebased to libvirt-1.3.2]
+Signed-off-by: Yunguo Wei <[email protected]>
 ---
  docs/Makefile.am | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/docs/Makefile.am b/docs/Makefile.am
-index daf37b6..125c5fd 100644
+index 1b4353b..c199551 100644
 --- a/docs/Makefile.am
 +++ b/docs/Makefile.am
-@@ -162,7 +162,7 @@ EXTRA_DIST=					\
-   sitemap.html.in aclperms.htmlinc \
-   todo.pl hvsupport.pl todo.cfg-example
+@@ -164,7 +164,7 @@ EXTRA_DIST=					\
+   todo.pl hvsupport.pl todo.cfg-example \
+   $(schema_DATA)
  
 -acl_generated = aclperms.htmlinc
 +acl.html:: $(srcdir)/aclperms.htmlinc
  
  $(srcdir)/aclperms.htmlinc: $(top_srcdir)/src/access/viraccessperm.h \
          $(srcdir)/genaclperms.pl Makefile.am
-@@ -227,7 +227,7 @@ internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in
- 	    $(top_srcdir)/docs/subsite.xsl $< > $@ \
- 	    || { rm $@ && exit 1; }; fi
+@@ -221,7 +221,7 @@ $(srcdir)/hvsupport.html.in: $(srcdir)/hvsupport.pl $(api_DATA) \
+ 	convert -rotate 90 $< $@
  
--%.html.tmp: %.html.in site.xsl page.xsl sitemap.html.in $(acl_generated)
-+%.html.tmp: %.html.in site.xsl page.xsl sitemap.html.in 
+ %.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//'`; \
 -- 
-1.8.4.2
+1.9.1
 
recipes-extended/libvirt/libvirt-python.inc +2 -2
index 015b4b6..c1dafe9 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] = "429e328028fc59b62404a4163004f2ae"
-SRC_URI[libvirt_python.sha256sum] = "88ab63b0c53e435bd2c6e8551805fe273353708efd4dfab908257dc5f37bec49"
+SRC_URI[libvirt_python.md5sum] = "ed018c714d7ddbe93221c796dff283ed"
+SRC_URI[libvirt_python.sha256sum] = "6d35ae9e7801573393b9c92471f39e6700d479f10b641df81d041b469f160bf8"
 
 export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
 export LIBVIRT_CFLAGS = "-I${S}/include"
recipes-extended/libvirt/libvirt/Revert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch +16 -36

84 lines not on this page · raw message

recipes-extended/libvirt/libvirt/libvirt_api_xml_path.patch +8 -6
index 16321db..3c2622c 100644
@@ -10,6 +10,8 @@ one installed in the system.  This may be used for example in autotest
 or by packagers without the need to install libvirt into the system.
 
 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(-)
@@ -56,19 +58,19 @@ Index: libvirt-python-1.2.4/setup.py
  
      c_modules = []
      py_modules = []
--    ldflags = get_pkgconfig_data(["--libs-only-L"], "libvirt", False)
--    cflags = get_pkgconfig_data(["--cflags"], "libvirt", False)
+-    ldflags = get_pkgconfig_data(["--libs-only-L"], "libvirt", False).split()
+-    cflags = get_pkgconfig_data(["--cflags"], "libvirt", False).split()
 +    libvirt_cflags = os.getenv("LIBVIRT_CFLAGS")
 +    if libvirt_cflags:
-+        cflags = libvirt_cflags
++        cflags = libvirt_cflags.split()
 +    else:
-+        cflags = get_pkgconfig_data(["--cflags"], "libvirt", False)
++        cflags = get_pkgconfig_data(["--cflags"], "libvirt", False).split()
 +
 +    libvirt_libs = os.getenv("LIBVIRT_LIBS")
 +    if libvirt_libs:
-+        ldflags = libvirt_libs
++        ldflags = libvirt_libs.split()
 +    else:
-+        ldflags = get_pkgconfig_data(["--libs-only-L"], "libvirt", False)
++        ldflags = get_pkgconfig_data(["--libs-only-L"], "libvirt", False).split()
  
      module = Extension('libvirtmod',
                         sources = ['libvirt-override.c', 'build/libvirt.c', 'typewrappers.c', 'libvirt-utils.c'],
recipes-extended/libvirt/libvirt/runptest.patch +1 -1
index 873a959..a33f569 100644
@@ -20,8 +20,8 @@ Index: libvirt-1.2.4/tests/Makefile.am
 +	-Dabs_builddir="\"$(PTEST_DIR)/tests\"" \
 +	-Dabs_srcdir="\"$(PTEST_DIR)/tests\"" \
  	$(LIBXML_CFLAGS) \
+	$(LIBNL_CFLAGS) \
  	$(GNUTLS_CFLAGS) \
- 	$(SASL_CFLAGS) \
 @@ -48,7 +50,7 @@
  
  if WITH_DRIVER_MODULES
recipes-extended/libvirt/libvirt/tools-add-libvirt-net-rpc-to-virt-host-validate-when.patch +42 -65

138 lines not on this page · raw message

recipes-extended/libvirt/libvirt_1.3.2.bb renamed from recipes-extended/libvirt/libvirt_1.2.19.bb +3 -3
similarity index 97%
rename from recipes-extended/libvirt/libvirt_1.2.19.bb
rename to recipes-extended/libvirt/libvirt_1.3.2.bb
index 4de284c..42066c1 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://libvirt.org"
 LICENSE = "LGPLv2.1+"
 LICENSE_${PN}-ptest = "GPLv2+ & LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
-                    file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
+                    file://COPYING.LESSER;md5=4b54a1fd55a448865a0b32d41598759d"
 SECTION = "console/tools"
 PR = "r1"
 
@@ -35,8 +35,8 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \
            file://Revert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch \
           "
 
-SRC_URI[libvirt.md5sum] = "bc3ab1ba5b6fabd2e4516c70ddd4d97c"
-SRC_URI[libvirt.sha256sum] = "282c141f03331d640020c15f81464b27400e0ee307ef4c5190393b021caedd6e"
+SRC_URI[libvirt.md5sum] = "b48b06bbc7efbe9973ed0f3f223d6da2"
+SRC_URI[libvirt.sha256sum] = "e3c6fc2683178660b371efb3ac7a1103a3f4b78efac7ffe560bc5917974ccf05"
 
 inherit autotools gettext update-rc.d pkgconfig ptest systemd
 
Signature · 1 line
1.9.1
#2 lore raw
In reply to Yunguo Wei
Quoted 6 lines · Yunguo Wei

V3 changes:

Bring back the patch libvirt-use-pkg-config-to-locate-libcap.patch, which was dropped in V2 by mistake.

v3 is merged.

Bruce

Quoted 307 lines

V2 changes:

1. use git "-M" option to generate patch for easy review.

2. Drop the patch 0001-Add-missing-split-to-properly-retrieve-cflags-and-ld.patch in V1 as the patch was actually fixing an issue introduced during rebasing 1.2.19 patches.

3. Rebase existing patches to make 2) happen.
---------------------------------------------
commit c3e03a8f5d4c8dce3d4d4076b2be5cb9bb44a8b5

Author: Yunguo Wei <[email protected]>
Date:   Mon Mar 28 16:54:04 2016 +0800

libvirt: uprev to 1.3.2

Release notes here http://libvirt.org/news.html.

Added Files:
------------

 .../libvirt-1.3.2/0001-to-fix-build-error.patch    |  46 ++++
 recipes-extended/libvirt/libvirt_1.3.2.bb          | 287

+++++++++++++++++++++

Removed Files:
--------------

 .../libvirt-1.2.19/0001-to-fix-build-error.patch   |  44 ----
 recipes-extended/libvirt/libvirt_1.2.19.bb         | 287

---------------------

Remaining Changes (diffstat):
-----------------------------

 recipes-extended/libvirt/libvirt-python.inc        |   4 +-
 ...vert-build-add-prefix-to-SYSTEMD_UNIT_DIR.patch |  52 +++-------
 .../libvirt/libvirt/libvirt_api_xml_path.patch     |  14 +--
 recipes-extended/libvirt/libvirt/runptest.patch    |   2 +-
 ...ibvirt-net-rpc-to-virt-host-validate-when.patch | 107

++++++++-------------

---------------------------
Test steps:

t@SDP_Wildcat_Pass-1:/media# libvirtd -V
libvirtd (libvirt) 1.3.2
root@SDP_Wildcat_Pass-1:/media# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor
preset: enabled)
   Active: active (running) since Thu 2016-03-31 03:43:57 UTC; 2s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
  Process: 2200 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS
(code=exited, status=0/SUCCESS)
 Main PID: 2202 (libvirtd)
   CGroup: /system.slice/libvirtd.service
           ├─2026 /usr/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib64/libvirt/libvirt_leaseshelper
           ├─2027 /usr/bin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib64/libvirt/libvirt_leaseshelper
           └─2202 /usr/sbin/libvirtd --listen --daemon
Mar 31 03:43:55 SDP_Wildcat_Pass-1 systemd[1]: Starting Virtualization
daemon...
Mar 31 03:43:57 SDP_Wildcat_Pass-1 libvirtd[2200]: 2016-03-31
03:43:57.284+0000: 2200: info : libvirt version: 1.3.2
Mar 31 03:43:57 SDP_Wildcat_Pass-1 libvirtd[2200]: 2016-03-31
03:43:57.284+0000: 2200: info : hostname: SDP_Wildcat_Pass-1
Mar 31 03:43:57 SDP_Wildcat_Pass-1 libvirtd[2200]: 2016-03-31
03:43:57.284+0000: 2200: warning : virGetHostnameImpl:703 : getaddrinfo
failed for 'SD...ot known
Mar 31 03:43:57 SDP_Wildcat_Pass-1 systemd[1]: Started Virtualization
daemon.
Mar 31 03:43:57 SDP_Wildcat_Pass-1 dnsmasq[2026]: read /etc/hosts - 6
addresses
Mar 31 03:43:57 SDP_Wildcat_Pass-1 dnsmasq[2026]: read
/var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 31 03:43:57 SDP_Wildcat_Pass-1 dnsmasq-dhcp[2026]: read

/var/lib/libvirt/dnsmasq/default.hostsfile
Hint: Some lines were ellipsized, use -l to show in full.

root@SDP_Wildcat_Pass-1:/media# cat test.xml
<domain type='kvm'>
        <name>test</name>
        <memory>2048000</memory>
        <currentMemory>1024000</currentMemory>
        <vcpu>1</vcpu>
        <os>
                <type arch='x86_64' machine='pc'>hvm</type>
                <boot dev='hd' />
                <kernel>/media/guest.kernel</kernel>
                <cmdline>root=/dev/vda2 selinux=0 enforcing=0
console=ttyS0 rw </cmdline>
        </os>
        <devices>
                <disk type='file' device='disk'>
                        <source file='/media/guest_70013.img' />
                        <target dev='vda' bus='virtio'/>
                </disk>
                <serial type='pty'>
                        <target port='0'/>
                </serial>
                <console type='pty'>
                        <target type='serial' port='0'/>
                </console>
        </devices>
        <devices>
                <memballoon model='virtio'/>
        </devices>
</domain>
root@SDP_Wildcat_Pass-1:/media# virsh define test.xml
Domain test defined from test.xml
root@SDP_Wildcat_Pass-1:/media# virsh start test
Domain test started
root@SDP_Wildcat_Pass-1:/media# virsh console test
Connected to domain test
Escape character is ^]
EXT4-fs (vda2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
fuse init (API version 7.22)
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Load Kernel Modules.
         Mounting FUSE Control File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started LSB: Set hostname based on /etc/hostname.
         Starting (null)...
[  OK  ] Started (null).
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /mnt/huge...
systemd-udevd[178]: starting version 216
         Mounting /var/volatile...
[  OK  ] Mounted /mnt/huge.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Mounted /var/volatile.
         Starting Load/Save Random Seed...
[  OK  ] Started LVM activation.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device
/dev/disk/by-uuid/c30d65b1-ac9c-4843-8ed0-1c572c45f411.
         Starting File System Check on
/dev/...1-ac9c-4843-8ed0-1c572c45f411...
[  OK  ] Found device
/dev/disk/by-uuid/dcb63b7b-29c5-46ca-bed4-561ddce91a10.
         Activating swap
/dev/disk/by-uuid/d...b-29c5-46ca-bed4-561ddce91a10...
Adding 204796k swap on /dev/vda3.  Priority:-1 extents:1 across:204796k
[  OK  ] Activated swap
/dev/disk/by-uuid/dcb63b7b-29c5-46ca-bed4-561ddce91a10.
[  OK  ] Reached target Swap.
systemd-fsck[235]: /dev/vda1: recovering journal
systemd-fsck[235]: /dev/vda1: clean, 251/128016 files, 260578/512000
blocks
[  OK  ] Started File System Check on
/dev/d...5b1-ac9c-4843-8ed0-1c572c45f411.
         Mounting /boot...
EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting Create Volatile Files and Directories...
systemd-journald[131]: Received request to flush runtime journal from
PID 1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Security Auditing Service...
systemd-journald[131]: File
/var/log/journal/1a524f82242b49afb8353a2ab625087a/system.journal
corrupted or uncleanly shut down, renaming and replacing.
[  OK  ] Started Security Auditing Service.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
audit: type=1305 audit(1459395895.903:2): audit_pid=261 old=0
auid=4294967295 ses=4294967295 res=1
[  OK  ] Listening on CUPS Printing Service Sockets.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Paths.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Timers.
         Starting Restore Sound Card State...
[  OK  ] Listening on sshd.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting LSB: Raise network interfaces....
         Starting Ethernet Bridge Filtering Tables...
         Starting Dynamic Host Configuration Protocol (DHCP)...
[  OK  ] Started Dynamic Host Configuration Protocol (DHCP).
         Starting irqbalance daemon...
[  OK  ] Started irqbalance daemon.
         Starting GNU Zebra routing manager...
         Starting Job spooling tools...
[  OK  ] Started Job spooling tools.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting System Logging Service...
         Starting strongSwan IPsec...
[  OK  ] Started strongSwan IPsec.
         Starting ACPI Event Daemon...
         Starting Periodic Command Scheduler...
[  OK  ] Started Periodic Command Scheduler.
         Starting Apply Cpu Microcode...
         Starting Permit User Sessions...
         Starting Login Service...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting Network Service...
[  OK  ] Started System Logging Service.
[  OK  ] Started Restore Sound Card State.
[FAILED] Failed to start LSB: Raise network interfaces..
See 'systemctl status networking.service' for details.
[  OK  ] Started Ethernet Bridge Filtering Tables.
[  OK  ] Started ACPI Event Daemon.
[  OK  ] Started Apply Cpu Microcode.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Login Service.
         Starting (null)...
NET: Registered protocol family 15
[  OK  ] Started Network Service.
         Starting Wait for Network to be Configured...
Initializing XFRM netlink socket
[  OK  ] Started (null).
[  OK  ] Started GNU Zebra routing manager.
         Starting IS-IS routing daemon...
[  OK  ] Reached target Network.
         Starting Simple Network Management Protocol (SNMP) Trap
Daemon....
         Starting Distccd A Distributed Compilation Server...
[  OK  ] Started Distccd A Distributed Compilation Server.
         Starting FreeRADIUS high performance RADIUS server....
         Starting Xinetd A Powerful Replacement For Inetd...
         Starting DNS forwarder and DHCP server...
         Starting Postfix Mail Transport Agent...
         Starting Vsftpd ftp daemon...
[  OK  ] Started Vsftpd ftp daemon.
         Starting Network Time Service...
         Starting Berkeley Internet Name Domain (DNS)...
         Starting The RPC portmapper...
         Starting Collectd...
[  OK  ] Started Collectd.
         Starting HP Agentless Management Service daemon...
[  OK  ] Started HP Agentless Management Service daemon.
         Starting Check tcf-agent autostart...
         Starting Simple Network Management Protocol (SNMP) Daemon....
         Starting /etc/rc.local Compatibility...
         Starting OSPF routing daemon...
         Starting RIP routing daemon for IPv6...
         Starting OSPF routing daemon for IPv6...
         Starting Babel routing daemon...
         Starting RIP routing daemon...
         Starting BGP routing daemon...
[  OK  ] Started IS-IS routing daemon.
[  OK  ] Started Xinetd A Powerful Replacement For Inetd.
[  OK  ] Started Network Time Service.
[  OK  ] Started The RPC portmapper.
[  OK  ] Started /etc/rc.local Compatibility.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Babel routing daemon.
[  OK  ] Started RIP routing daemon for IPv6.
[  OK  ] Started OSPF routing daemon for IPv6.
[  OK  ] Started RIP routing daemon.
[  OK  ] Started OSPF routing daemon.
[  OK  ] Started DNS forwarder and DHCP server.
[  OK  ] Started BGP routing daemon.

tcf-agent: not configured to autostart, use /etc/cafe/tcf-agent.init force-start
[ OK ] Started Check tcf-agent autostart. systemd-journald[131]: File /var/log/journal/1a524f82242b49afb8353a2ab625087a/user-65534.journal corrupted or uncleanly shut down, renaming and replacing.

[  OK  ] Started Simple Network Management Protocol (SNMP) Trap Daemon..
[  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
[  OK  ] Started Berkeley Internet Name Domain (DNS).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started Postfix Mail Transport Agent.
[  OK  ] Started FreeRADIUS high performance RADIUS server..

Wind River Linux CGP 7.0.0.13 cgp-70013 ttyS0

cgp-70013 login: root
Password:
Last login: Tue Mar 29 04:21:57 EDT 2016 on ttyS0

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"