commit: af621c349cb52c36d298d3715ad5b0c784836c1f Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> AuthorDate: Sun May 1 18:44:23 2016 +0000 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> CommitDate: Sun May 1 19:15:04 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af621c34
app-emulation/libvirt: version bump to 1.3.4, bug #580418, bug #579960 - bump to version 1.3.4, bug #580418 - apply a build system patch for the sysmacros header change, bug #579960 fixes the compile error "undefined reference to {'major', 'minor'}" due to gentoo specific glibc patches (bug #575232) Package-Manager: portage-2.2.26 app-emulation/libvirt/Manifest | 1 + .../libvirt/files/libvirt-1.3.4-glibc-2.23.patch | 86 ++++++++++++++++++++++ .../{libvirt-9999.ebuild => libvirt-1.3.4.ebuild} | 20 +++-- app-emulation/libvirt/libvirt-9999.ebuild | 3 +- 4 files changed, 102 insertions(+), 8 deletions(-) diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest index c05b37b..5d2e4bb 100644 --- a/app-emulation/libvirt/Manifest +++ b/app-emulation/libvirt/Manifest @@ -4,3 +4,4 @@ DIST libvirt-1.3.0-20151222.tar.xz 1684 SHA256 3628c3398862eae2966ccf0e55822e4cb DIST libvirt-1.3.0.tar.gz 30114683 SHA256 ebcf5645fa565e3fe2fe94a86e841db9b768cf0e0a7e6cf395c6327f9a23bd64 SHA512 e252390a05b76e9cd9ed02caadd0ee0d674505f60940bb6ced955e17f69c7dd55fe5b38204ae5c25b6e5703415a0f6a12fc545d138d0e8b016457a85dc8fa2b8 WHIRLPOOL 852c592b27be86d3fb2ec75ca5debf9a1e0ac5de6d1ab06c55c2d70e83de125d10c2fc967b7578fba9137ed7a30b7a7e195f4e5f8d35708deeeddc97424d5e40 DIST libvirt-1.3.1.tar.gz 29900143 SHA256 a5d43fbed34d31eeffc641d2ac9b6026a57bf1a4fa74d0fa19a9891d9ec2c21a SHA512 a109c09d947f7c5e924fdbc9c9b6c0a9d6ff64d9411aedd9a3e710d20f749b088ff9895e882dd888b88bfea7724a8933534be4078f16cb9d2047da761515e804 WHIRLPOOL 62fb8486bfa53d55b397d9a90750d32a83f0a73cf2e6685f296489390abf9c62efc69fecd6d011fc51e9f562f75f5b8ce03208c350e98d20de0a5560721c675e DIST libvirt-1.3.2.tar.gz 30056101 SHA256 e3c6fc2683178660b371efb3ac7a1103a3f4b78efac7ffe560bc5917974ccf05 SHA512 bcca111204c42db3a199c7d35758e78bcd9da557f091cb690dd712912aeee0ee89afa37a427ad972b94cc8ea9ed0788ff555a9042a9bab5ad0b55ca0d13aed1c WHIRLPOOL 551c4232e4890515276824e96a4379cc4908b71ac2d7ad27e4a1f7c78cc0ca39223422c17fee929d5dce090af03eaba5b5bd7ef83b0fc995dcac03398ef5d43b +DIST libvirt-1.3.4.tar.gz 30493908 SHA256 e2396ebebb3f3fdb50429ce8faa99559f6e8e3cc0493d5fa0c1999db189c25bd SHA512 6f85e4cd8a696da729bb88368c608694119258c6ab7f9b99f41c34a6cc4492d9ad90b8ff1574fd4ee6c78c674a3a501db60d1d3ba898f7013321ecc996612919 WHIRLPOOL af4a8a0e3d746f50e0f9d95e3920c023c5bbec0d7c641f43aea580db9b95a793027f7579ecd94625a68b7e3662c328d94b7b2d243afea60a8d2f31cab1cc9319 diff --git a/app-emulation/libvirt/files/libvirt-1.3.4-glibc-2.23.patch b/app-emulation/libvirt/files/libvirt-1.3.4-glibc-2.23.patch new file mode 100644 index 0000000..adeff5c --- /dev/null +++ b/app-emulation/libvirt/files/libvirt-1.3.4-glibc-2.23.patch @@ -0,0 +1,86 @@ +get major/minor macros by using AC_HEADER_MAJOR + +https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Headers.html#AC_HEADER_MAJOR + +https://bugs.gentoo.org/579960 +diff --git a/configure.ac b/configure.ac +index 93d347c..1e7ee51 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -282,2 +282,5 @@ AC_CHECK_SIZEOF([long]) + ++dnl detect system-specific headers for major()/minor() ++AC_HEADER_MAJOR ++ + dnl Availability of various common functions (non-fatal if missing), +diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c +index bd2eeb6..74b2487 100644 +--- a/src/conf/domain_audit.c ++++ b/src/conf/domain_audit.c +@@ -28,2 +28,9 @@ + ++#ifdef MAJOR_IN_MKDEV ++# include <sys/mkdev.h> ++#endif ++#ifdef MAJOR_IN_SYSMACROS ++# include <sys/sysmacros.h> ++#endif ++ + #include "domain_audit.h" +diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c +index 76bef82..49c0648 100644 +--- a/src/lxc/lxc_controller.c ++++ b/src/lxc/lxc_controller.c +@@ -48,2 +48,9 @@ + ++#ifdef MAJOR_IN_MKDEV ++# include <sys/mkdev.h> ++#endif ++#ifdef MAJOR_IN_SYSMACROS ++# include <sys/sysmacros.h> ++#endif ++ + #include "virerror.h" +diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c +index 3c6c839..983cd21 100644 +--- a/src/lxc/lxc_driver.c ++++ b/src/lxc/lxc_driver.c +@@ -38,2 +38,9 @@ + ++#ifdef MAJOR_IN_MKDEV ++# include <sys/mkdev.h> ++#endif ++#ifdef MAJOR_IN_SYSMACROS ++# include <sys/sysmacros.h> ++#endif ++ + #include "virerror.h" +diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c +index 38398fd..4b45458 100644 +--- a/src/util/vircgroup.c ++++ b/src/util/vircgroup.c +@@ -31,2 +31,10 @@ + #endif ++ ++#ifdef MAJOR_IN_MKDEV ++# include <sys/mkdev.h> ++#endif ++#ifdef MAJOR_IN_SYSMACROS ++# include <sys/sysmacros.h> ++#endif ++ + #include <fcntl.h> +diff --git a/src/util/virutil.c b/src/util/virutil.c +index bb9604a..9840a9e 100644 +--- a/src/util/virutil.c ++++ b/src/util/virutil.c +@@ -68,2 +68,9 @@ + ++#ifdef MAJOR_IN_MKDEV ++# include <sys/mkdev.h> ++#endif ++#ifdef MAJOR_IN_SYSMACROS ++# include <sys/sysmacros.h> ++#endif ++ + #include "c-ctype.h" diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-1.3.4.ebuild similarity index 93% copy from app-emulation/libvirt/libvirt-9999.ebuild copy to app-emulation/libvirt/libvirt-1.3.4.ebuild index 22d4afb..67b638a 100644 --- a/app-emulation/libvirt/libvirt-9999.ebuild +++ b/app-emulation/libvirt/libvirt-1.3.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -220,7 +220,9 @@ src_prepare() { epatch \ "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \ "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch \ - "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch + "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch \ + "${FILESDIR}"/${PN}-1.2.21-avoid_deprecated_pc_file.patch \ + "${FILESDIR}"/${P}-glibc-2.23.patch [[ -n ${BACKPORTS} ]] && EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \ @@ -229,11 +231,11 @@ src_prepare() { epatch_user # Tweak the init script: - cp "${FILESDIR}/libvirtd.init-r15" "${S}/libvirtd.init" || die + cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \ - -e "s/USE_FLAG_AVAHI/$(usex avahi avahi-daemon '')/" \ - -e "s/USE_FLAG_ISCSI/$(usex iscsi iscsid '')/" \ - -e "s/USE_FLAG_RBD/$(usex rbd ceph '')/" \ + -e "s/USE_FLAG_AVAHI/$(usex avahi 'use avahi-daemon' '')/" \ + -e "s/USE_FLAG_ISCSI/$(usex iscsi 'use iscsid' '')/" \ + -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \ -i "${S}/libvirtd.init" || die "sed failed" AUTOTOOLS_AUTORECONF=true @@ -312,6 +314,10 @@ src_configure() { # bug #377279 (cd .gnulib && git reset --hard > /dev/null) fi + + # Workaround: Sometimes this subdirectory is missing and leads to a + # build failure. + mkdir -p "${BUILD_DIR}"/docs/internals } src_test() { @@ -343,7 +349,7 @@ src_install() { systemd_newtmpfilesd "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf newinitd "${S}/libvirtd.init" libvirtd || die - newinitd "${FILESDIR}/libvirt-guests.init-r1" libvirt-guests || die + newinitd "${FILESDIR}/libvirt-guests.init-r2" libvirt-guests || die newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild index 22d4afb..2b973d6 100644 --- a/app-emulation/libvirt/libvirt-9999.ebuild +++ b/app-emulation/libvirt/libvirt-9999.ebuild @@ -220,7 +220,8 @@ src_prepare() { epatch \ "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \ "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch \ - "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch + "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch \ + "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch [[ -n ${BACKPORTS} ]] && EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \