aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/libvirt
AgeCommit message (Collapse)Author
2017-04-27libvirt: add DEPENDS for libdevmapperMark Asselstine
Commit 8709d4504c35817ef1d7181b47ba96c3ca0c949e [lvm2: separate libdevmapper to avoid circular dependency] in meta-oe meant that our build would fail with checking for libdevmapper.h... no configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt Add the required DEPENDS for libdevmapper to get the build working as it did prior to this meta-oe change. NOTE: our previous dependency on lvm2 was not only to get libdevmapper functionality, so lvm2 remains a valid DEPENDS, so is left in place. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-04-24libvirt: Fix conditional dependencies on polkitRob Woolley
The DIRFILES variable was a temporary workaround to resolve a do_rootfs RPM package conflict between libvirt and polkit. This happened because of the different permissions and ownership that the packages placed on ${datadir}/usr/share/polkit-1/rules.d. The behaviour is now conditional based on how PACKAGECONFIG is set. The polkit rules will be removed from the package if polkit is not enabled. If polkit is enabled the permissions and ownership are set to match those set by the polkit recipe. This uses the useradd enhancements for RSS. It requires that shadow-native be included as a DEPENDS to provide the useradd command in the native sysroot. Signed-off-by: Rob Woolley <rob.woolley@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-03-20libvirt: fix polkit file conflictBruce Ashfield
The switch to RPM4 and dnf results in this error during rootfs construction: Error: Transaction check error: file /usr/share/polkit-1/rules.d conflicts between attempted installs of libvirt-1.3.5-r0.13.core2_64 and polkit-0.113-r0.9.core2_64 We can temporarily work around it by instructing RPM to not package/process the dirfiles. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-03-14libvirt: fix QA warning caused by missing acl build depZhenbo Gao
The patch fix the following QA warning: -- WARNING: QA Issue: libvirt rdepends on libacl, but it isn't a build dependency? [build-deps] Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-02-09libvirt: Place systemd units at appropriate location.Amarnath Valluri
Systemd untis should be placed as per ${systemd_system_unitdir}. Patched the source code to support configure variable to set the systemd units directory. Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-01-03Remove True option to getVar callsPaul Barker
getVar() now defaults to expanding by default. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-11-17libvirt: add 'wireshark' packageconfigMark Asselstine
libvirt by default has '--with-wireshark-dissector' set to 'check'. Therefor if wireshark is built before vs after libvirt this will result in a potentially unexpected difference in how libvirt is configured. Additionally the build of libvirt with wireshark capabilities enabled is currently broken and thus if attempted will result in the error: fatal error: ws_symbol_export.h: No such file or directory To prevent the random configuration of libvirt with respect to wireshark we add a new packageconfig for wireshark. NOTE that the wireshark recipe is currently incomplete so this new packageconfig will result in a build failure if used, until wireshark is updated to build libwsutil. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
2016-09-22libvirt: remove .o files for ptestKai Kang
When do split_and_strip_files, it may calls debugedit to deal elf files. For ptest sub-package, it fails to run debugedit with .o files. So remove the .o files which are redundant to run ptest cases. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-09-06libvirt: Add missing test helpers and remove windows 1252He Zhe
Add missing test helpers We don't support windows encoding so remove that case Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-08-31libvirt: update list of licensesMark Asselstine
Apparently if a license is listed for a package it must be included in the overall LICENSE variable otherwise you will get WARNINGS such as: WARNING: LICENSE_libvirt-ptest includes licenses (LGPLv2.1 GPLv2+) that are not listed in LICENSE We ensure that the license string is consistent between the LICENSE variable and the subpackage license string to remove this warning. Since '2+' is a superset of '2', ie. "version 2 or later", and actually is more reflective of the text found on the file headers and such we use GPLv2+ and LGPLv2.1+. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-08-16libvirt: fix CVE-2016-5008Kai Kang
Backport patch to fix CVE-2016-5008 from: https://libvirt.org/git/?p=libvirt.git;a=commit;h=f32441c Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-08-08libvirt: fix build error for armKai Kang
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 <kai.kang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-08-04libvirt: upgrade 1.3.2 -> 1.3.5Kai Kang
Upgrade libvirt from 1.3.2 to 1.3.5. * update checksums and remove PR * remove trailing whitespace * remove backport patch 0001-fix-crash-in-getAllDomainStats.patch * update context of patches * remove libvirtd.socket from SYSTEMD_SERVICE which doesn't exist anymore * install test data which ptest requires Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2016-08-04libvirt: fix python install in multilib case.Jeremy Puhlman
Currently libvirt python builds in the multilib case, but fails to install. Switch from PN to BPN, and fix compile to be consistent. Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2016-07-31libvirt: add missing configuration fileCatalin Enache
openvzutilstest.conf file is needed by openvzutilstest test Signed-off-by: Catalin Enache <catalin.enache@windriver.com> Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2016-05-25libvirt-python: backport a patch to fix crash in getAllDomainStatsRoy Li
Upstream libvirt Commits 1d39dbaf and 827ed9b4 broke the libvirt-python API by removing virDomainRef() and virDomainFree(). virDomainStatsRecordListFree() will free that domain pointer and later when virDomain (python object) call its destructor and tries to free that same pointer again. Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-03globally replace 'base_contains' calls with 'bb.utils.contains'Derek Straka
The 'base_contains' is now deprecated and only kept as a compatibility method. It will be removed in future releases. Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-31libvirt: uprev to 1.3.2Yunguo Wei
Release notes here http://libvirt.org/news.html. Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-22libvirt: fix ptest QA errorsBruce Ashfield
The .la files generated for the ptest libraries have multiple references to the working dir and continue to trigger QA errors. Rather than playing whack-a-mole with the references, we can simply remove the .la files .. since they are not required on the target. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-11libvirt: fix .la QA errorsBruce Ashfield
oe-core 3739aaf644 [insane: Fix populate_sysroot sanity test path] means that .la files are subject to a QA sanity check that fails if the build paths (workdir) are found. The ptest and main libvirt files have silently had this issue with hosts paths. One fix is to remove the .la files, but this could impact on target test and builds, so our first attempt to fix them is to follow the lead of a similar lttng_tools fix, and modify .la files to have paths and values that are valid on target. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-16libvirt: Properly shutdown libvirtd.serviceMark Asselstine
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. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-16libvirt: upgrade 1.2.17 -> 1.2.19Roy Li
The release notes is http://libvirt.org/news.html Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-11libvirt: pass correct args when start libvirtdMark Asselstine
When systemd starts libvirtd we want to make sure we pass the correct arguments to run the daemon. If we fail to do so the libvirtd service will restart about once a minute and not allow for VMs to properly be instantiated. libvirtd now runs with the same args as when we use sysvinit. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-11libvirt: get libvirt-guests systemd service runningMark Asselstine
While testing libvirt with the new systemd init I found that the libvirt-guests service was failing to run since the libvirt-guests.sh script was not where it was expected. If we are building for systemd init system use the default installation location which is used upstream for the libvirt-guests.sh script. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-10libvirt: enable systemd supportMark Asselstine
Commit d114a62dd8a2121fa3026b83c5b250eb0ee6f21d [libvirt: kill update-rc.d when not using sysvinit] resulted in libvirt services not starting automatically at boot when using systemd. The upstream libvirt package already has the necessary systemd service files so it is just a matter of activating them via the '--with-init-script' configure option and making the recipe use these. We always set '--with-init-script' to 'systemd' regardless of the systemd vs sysvinit DISTRO_FLAG since our sysvinit scripts are external and thus not affected by this setting when building for sysvinit. Both sysvinit and systemd packages will be libvirt-libvirtd, the bbclasses ensure that only the files for one init system will exist in the package, so this 'overloading' is acceptable. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-10dnsmasq: allow for multiple instances (per libvirt)Mark Asselstine
We have had a persistent issue of contention with multiple instances of dnsmasq. When libvirtd is started it will attempt and fail to create virbr0 that includes a dnsmasq binding (dnsmasq complains that the port is already in use). The root cause being that the base dnsmasq configuration uses the 'default' binding, meaning it will be greedy and bind to all available interfaces, along with any new interfaces that appear. This prevents any new instances of dnsmasq to fail. By changing the base dnsmasq configuration to use 'bind-dynamic' we will be able to create new interfaces and if we want to attach a new dnsmasq instance for the new interface we can, without contention. Overall this change should not change the default behavior (other then fixing the contention) as the 'bind-dynamic' mode will allow the base config to attach to new interfaces which are not be bound to new dnsmasq instances. Removing dnsmasq_exclude_virbr.conf which was a previous (partial) attempt that was made to resolve this issue. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08libvirt: correct QA warning for missing build depMark Asselstine
Fixes the following QA warning: WARNING: QA Issue: libvirt-ptest rdepends on libtasn1, but it isn't a build dependency? [build-deps] Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08libvirt: DEPEND on libxslt-native to fix build issueMark Asselstine
Configure searches for and sets XSLTPROC and will not get a proper value unless we have made sure libxslt-native is built prior to libvirt. So we need to add it as a DEPENDS. Failing to do this we could end up with libvirt configuring before libxslt-native has built and installed xlstproc in the -native sysroot, resulting potential host contamination or in a potential build error: cat: acl.html.tmp: No such file or directory Makefile:2215: recipe for target 'acl.html' failed (xsltproc is used in the generation of acl.html.tmp) Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-08-13libvirt: kill update-rc.d when not using sysvinitNoor
* Fixes a dependency on a nonexistent initscripts-functions package. Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-08-05libvirt: upgrade 1.2.15 -> 1.2.17Lei Maohui
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-05-20libvirt: upgrade to 1.2.15Roy Li
Remove libvirt-Fix-cannot-symlink-cpu_map.xml-error.patch, since rules for install *.xml are changed, the race issue does not exist. Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-04-11libvirt: correct libcap-ng optionsDmitry Eremin-Solenikov
Fix the following warning by passing correct option to configure script: WARNING: QA Issue: libvirt: configure was passed unrecognised options: --with-capnp [unknown-configure-option] Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-04-08libvirt: use pkg-config to locate libcapBruce Ashfield
libvirt wants to use pcap-config to locate the exisence and location of libpcap. oe-core stubs this script and replaces it with pkg-config, which can lead to the host pcap-config triggering and either breaking the build or introducing host contamination. To fix this issue, we patch configure to use 'pkg-config libcap' to locate the correct libraries. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-03-24libvirt: do_compile fails 'src/cpu/cpu_map.xml': No such file or directory'Amy Fong
In some circumstances where the build tree differs from the source, libvirt's compile will try to create the symlink for cpu_map.xml before creating the directory $(abs_builddir)/cpu. Add a test to create this directory if it hasn't already been created. Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-03-10libvirt: Identify CONFFILESRob Woolley
Some package formats explicitly track which files are configuration files so that they are not overwritten on updates. Explicitly list the configuration files. Signed-off by: Rob Woolley <rob.woolley@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-27libvirt: uprev to 1.2.12Bruce Ashfield
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20libvirt: correct libvirt-python checksumsBruce Ashfield
The uprev to 1.2.11 had the incorrect libvirt-pthon checksums, we correct them here. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20libvirt: uprev to 1.2.11Bruce Ashfield
Other than updating the checksums, no other significant differences are present in the 1.2.8 -> 1.2.11 update of libvirt. Sanity testing passes, so we do the update. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-12-03libvirt: add PACKAGECONFIG for audit, libcap-ngWenzong Fan
Add PACKAGECONFIG for audit, libcap-ng, otherwise there would be warnings like below: WARN: libvirt: libvirt-virsh rdepends on audit, but it isn't a build dependency? WARN: libvirt: libvirt-virsh rdepends on libcap-ng, but it isn't a build dependency? WARN: libvirt: libvirt rdepends on audit, but it isn't a build dependency? WARN: libvirt: libvirt rdepends on libcap-ng, but it isn't a build dependency? WARN: libvirt: libvirt-libvirtd rdepends on audit, but it isn't a build dependency? WARN: libvirt: libvirt-libvirtd rdepends on libcap-ng, but it isn't a build dependency? Both audit and libcap-ng should be enabled/disabled along with selinux since all of them are from meta-selinux. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-29libvirt: uprev to v1.2.8Olivia Yin
Signed-off-by: Olivia Yin <r63875@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-08-18libvirt: set path to pkcheckShrikant Bobade
The libvirt build would fail whenever x11 was in DISTRO_FEATURES and the host didn't have polkit installed (either no polkit/policykit at all, or just old policykit). Ensure that libvirt uses polkit rather than policykit, whether the host has pkcheck installed or not, and ensure the path is correct per our config. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-07-31libvirt: add hooks directoryKeith Holman
Libvirt contains the functionality to run hooks when before and after it performs specific operations. Hooks are useful in order to perform actions on the host that occur outside of the VM. In order to enable the hooks scripts must exist in a specific directory. This fix adds the required directory to the file system. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
2014-07-09libvirt: add fuse PACKAGECONFIGBruce Ashfield
libvirt will probe and dynamically add fuse support if detected. This leads to build inconsistencies and errors due to race conditions. Explicitly adding fuse as a packageconfig option to ensure that it is consistently added (or removed). Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-06-03libvirt: fix PTEST_DIRMihaela Sendrea
The default PTEST_DIR only works for 32bit. Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-14libvirt: uprev to 1.2.4Bruce Ashfield
Updating the version of libvirt to 1.2.4. Only small changes are required to the ptest and python chnages for this new version, but otherwise, all packaging and build optinos are the same. Sanity tests show no regressions from 1.2.2. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-08libvirt: allow separated src and build dirsMark Asselstine
Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools: Enable separate builddir by default] enforced separate build directories, which is supported by automake. Make some minor updates to the recipes and upstream source to allow builds to work with separated src and build directories. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-07Revert "libvirt: force use of libssh2"Bruce Ashfield
This reverts commit df0678b3c9c44aac9703dcf78ceb4fdbe8397f3e.
2014-05-06libvirt: force use of libssh2Joe Slater
We add a PACKAGECONFIG[] to deterministically build with or without libssh2 and add ssh2 to PACKAGECONFIG, so we will always use it. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-06libvirt: add PACKAGECONFIG[numactl]Joe Slater
configure will check for numa support by default, resulting in indeterminate configuration. We add a PACKAGECONFIG[] to force behavior. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-19libvirt: Update version to 1.2.2Mihaela Sendrea
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>