Skip to contentSkip to conversation

libvirt: upgrade 1.2.17 -> 1.2.19

PATCH In review Mark Asselstine 2 participants 3 messages Sep 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libvirt: upgrade 1.2.17 -> 1.2.19

From: Roy Li <[email protected]>

The release notes is http://libvirt.org/news.html

---

Roys' original patch with context fixed up to apply against the latest. (non-thunking).

 .../{libvirt-1.2.17 => libvirt-1.2.19}/0001-to-fix-build-error.patch  | 0
 recipes-extended/libvirt/libvirt-python.inc                           | 4 ++--
 recipes-extended/libvirt/{libvirt_1.2.17.bb => libvirt_1.2.19.bb}     | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename recipes-extended/libvirt/{libvirt-1.2.17 => libvirt-1.2.19}/0001-to-fix-build-error.patch (100%)
 rename recipes-extended/libvirt/{libvirt_1.2.17.bb => libvirt_1.2.19.bb} (98%)
recipes-extended/libvirt/libvirt-1.2.19/0001-to-fix-build-error.patch renamed from recipes-extended/libvirt/libvirt-1.2.17/0001-to-fix-build-error.patch +0 -0
similarity index 100%
rename from recipes-extended/libvirt/libvirt-1.2.17/0001-to-fix-build-error.patch
rename to recipes-extended/libvirt/libvirt-1.2.19/0001-to-fix-build-error.patch
recipes-extended/libvirt/libvirt-python.inc +2 -2
index f42e491..015b4b6 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] = "a695e323e33db562d86e947f7ac77f09"
-SRC_URI[libvirt_python.sha256sum] = "f4d3db4012a800a2519e62bbef4ce14a37e030a20ab18f5b66759533a39b36ed"
+SRC_URI[libvirt_python.md5sum] = "429e328028fc59b62404a4163004f2ae"
+SRC_URI[libvirt_python.sha256sum] = "88ab63b0c53e435bd2c6e8551805fe273353708efd4dfab908257dc5f37bec49"
 
 export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
 export LIBVIRT_CFLAGS = "-I${S}/include"
recipes-extended/libvirt/libvirt_1.2.19.bb renamed from recipes-extended/libvirt/libvirt_1.2.17.bb +2 -2
similarity index 98%
rename from recipes-extended/libvirt/libvirt_1.2.17.bb
rename to recipes-extended/libvirt/libvirt_1.2.19.bb
index 06cb51b..f433321 100644
@@ -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] = "a1f49050223be3cbd7678c32b1ee2756"
-SRC_URI[libvirt.sha256sum] = "e07eaf20b0590fae05ba3b53ad4dac3e5fbd771437563cc78b692f23ddd02fad"
+SRC_URI[libvirt.md5sum] = "bc3ab1ba5b6fabd2e4516c70ddd4d97c"
+SRC_URI[libvirt.sha256sum] = "282c141f03331d640020c15f81464b27400e0ee307ef4c5190393b021caedd6e"
 
 inherit autotools gettext update-rc.d pkgconfig ptest systemd
 
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 libvirt: Properly shutdown libvirtd.service

We build libvirt without support for sd_notify (dbus) therefor we have to run libvirtd as a 'forking daemon' (per commit 055744cdbc1526d966091158c8fae2d22c905db4 we pass --daemon)

We need to update the systemd service file to reflect this such that the libvirtd.service can be properly stopped. If we ever enable sd_notify support in libvirt we can revert back to using the 'notify' systemd type. Without this change libvirtd continue to run even if the stop command is issued, subsequent attempts to start the service will fail.

---
 recipes-extended/libvirt/libvirt_1.2.19.bb | 5 +++++
 1 file changed, 5 insertions(+)
recipes-extended/libvirt/libvirt_1.2.19.bb +5 -0
index f433321..df53d59 100644
@@ -225,6 +225,11 @@ do_install_append() {
 	if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
 	    # This variable is used by libvirtd.service to start libvirtd in the right mode
 	    sed -i '/#LIBVIRTD_ARGS="--listen"/a LIBVIRTD_ARGS="--listen --daemon"' ${D}/${sysconfdir}/sysconfig/libvirtd
+
+	    # We can't use 'notify' when we don't support 'sd_notify' dbus capabilities.
+	    sed -i -e 's/Type=notify/Type=forking/' \
+	           -e '/Type=forking/a PIDFile=${localstatedir}/run/libvirtd.pid' \
+		   ${D}/${systemd_unitdir}/system/libvirtd.service
 	fi
 
 	# The /var/run/libvirt directories created by the Makefile
Signature · 1 line
2.1.4
#2 lore raw
In reply to Mark Asselstine

merged.

Bruce

Quoted 63 lines · Mark Asselstine

From: Roy Li <[email protected]>

The release notes is http://libvirt.org/news.html

---

Roys' original patch with context fixed up to apply against the latest. (non-thunking).

 .../{libvirt-1.2.17 => libvirt-1.2.19}/0001-to-fix-build-error.patch  | 0
 recipes-extended/libvirt/libvirt-python.inc                           | 4 ++--
 recipes-extended/libvirt/{libvirt_1.2.17.bb => libvirt_1.2.19.bb}     | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename recipes-extended/libvirt/{libvirt-1.2.17 => libvirt-1.2.19}/0001-to-fix-build-error.patch (100%)
 rename recipes-extended/libvirt/{libvirt_1.2.17.bb => libvirt_1.2.19.bb} (98%)
recipes-extended/libvirt/libvirt-1.2.19/0001-to-fix-build-error.patch renamed from recipes-extended/libvirt/libvirt-1.2.17/0001-to-fix-build-error.patch +0 -0
similarity index 100%
rename from recipes-extended/libvirt/libvirt-1.2.17/0001-to-fix-build-error.patch
rename to recipes-extended/libvirt/libvirt-1.2.19/0001-to-fix-build-error.patch
recipes-extended/libvirt/libvirt-python.inc +2 -2
index f42e491..015b4b6 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] = "a695e323e33db562d86e947f7ac77f09"
-SRC_URI[libvirt_python.sha256sum] = "f4d3db4012a800a2519e62bbef4ce14a37e030a20ab18f5b66759533a39b36ed"
+SRC_URI[libvirt_python.md5sum] = "429e328028fc59b62404a4163004f2ae"
+SRC_URI[libvirt_python.sha256sum] = "88ab63b0c53e435bd2c6e8551805fe273353708efd4dfab908257dc5f37bec49"
 
 export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml"
 export LIBVIRT_CFLAGS = "-I${S}/include"
recipes-extended/libvirt/libvirt_1.2.19.bb renamed from recipes-extended/libvirt/libvirt_1.2.17.bb +2 -3
similarity index 98%
rename from recipes-extended/libvirt/libvirt_1.2.17.bb
rename to recipes-extended/libvirt/libvirt_1.2.19.bb
index 06cb51b..f433321 100644
@@ -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] = "a1f49050223be3cbd7678c32b1ee2756"
-SRC_URI[libvirt.sha256sum] = "e07eaf20b0590fae05ba3b53ad4dac3e5fbd771437563cc78b692f23ddd02fad"
+SRC_URI[libvirt.md5sum] = "bc3ab1ba5b6fabd2e4516c70ddd4d97c"
+SRC_URI[libvirt.sha256sum] = "282c141f03331d640020c15f81464b27400e0ee307ef4c5190393b021caedd6e"
 
 inherit autotools gettext update-rc.d pkgconfig ptest systemd
 
--

2.1.4

--
_______________________________________________
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"