Package Details: libvirt-git 6.5.0.r3.gc203b8fee1-1

Git Clone URL: https://aur.archlinux.org/libvirt-git.git (read-only, click to copy)
Package Base: libvirt-git
Description: API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
Upstream URL: http://libvirt.org/
Keywords: library management virtualization
Licenses: GPL3, LGPL
Conflicts: libvirt
Provides: libvirt
Submitter: xtfxme
Maintainer: FredBezies
Last Packager: FredBezies
Votes: 10
Popularity: 0.20
First Submitted: 2009-12-06 07:37
Last Updated: 2020-07-03 13:35

Dependencies (36)

Required by (65)

Sources (4)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

hakayova commented on 2020-06-20 01:38

@FredBezies: Thank you so very much! I confirm that the fix must have been included in this build, since upgrading to this package solved my problem. I cannot thank you enough for responding to my request this quickly!

FredBezies commented on 2020-06-19 05:59

@hakayova: this fix was added on June 9th, 2020.

https://gitlab.com/libvirt/libvirt/-/commit/f225f37a8a49cedb847488599cf30c08567ba279

I updated this PKGBUILD on June 13th, 2020. So it must be included.

hakayova commented on 2020-06-18 20:52

Hi there, I get nightly snapshots of my VMs and a recent confirmed bug in libvirt broke the virsh blockcommit command my script uses to get a live snapshot from a VM. Please see the links below for details:

https://www.redhat.com/archives/libvir-list/2020-June/msg00179.html

https://gitlab.com/libvirt/libvirt/-/issues/31

Would it be possible to update this package to contain this fix by any chance? Thank you so much for considering.

FredBezies commented on 2020-04-21 04:02

@mirh: done.

mirh commented on 2020-04-21 00:21

Can you build this with --without-wireshark-dissector, to workaround FS#63828?

ArthurBorsboom commented on 2020-01-07 13:26

Feel free to maintain the package. I have disowned it.

FredBezies commented on 2020-01-07 12:42

A working PKGBUILD:

# $Id$
# Maintainer: Arthur Borsboom <arthurborsboom@gmail.com>
# Contributor: Jonas Heinrich <onny@project-insanity.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jonathan Wiersma <archaur at jonw dot org>

pkgname=libvirt-git
pkgver=5.10.0.486.g529100d9f7
pkgrel=1
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('i686' 'x86_64')
url="http://libvirt.org/"
license=('LGPL')
depends=('e2fsprogs' 'gnutls' 'iptables' 'libxml2' 'parted' 'polkit' 'python'
     'avahi' 'yajl' 'libpciaccess' 'udev' 'dbus' 'libxau' 'libxdmcp' 'libpcap' 'libcap-ng'
     'curl' 'libsasl' 'libgcrypt' 'libgpg-error' 'openssl' 'libxcb' 'gcc-libs'
     'iproute2' 'libnl' 'libx11' 'numactl' 'gettext' 'ceph-libs' 'libssh2' 'netcf' 'perl-xml-xpath')
makedepends=('pkgconfig' 'lvm2' 'linux-api-headers' 'dnsmasq' 'rpcsvc-proto'
         'libiscsi' 'python-docutils' 'perl-xml-xpath' 'libxslt' 'git' 'xhtml-docs' 'rsync' 'rpcsvc-proto')
optdepends=('ebtables: required for default NAT networking'
        'dnsmasq: required for default NAT/DHCP for guests'
        'bridge-utils: for bridged networking'
        'openbsd-netcat: for remote management over ssh'
        'qemu'
        'radvd'
        'dmidecode'
        'pm-utils: host power management')
conflicts=('libvirt')
provides=('libvirt')
options=('emptydirs')
backup=('etc/conf.d/libvirt-guests'
    'etc/conf.d/libvirtd'
    'etc/libvirt/libvirt.conf'
    'etc/libvirt/virtlogd.conf'
    'etc/libvirt/libvirtd.conf'
    'etc/libvirt/lxc.conf'
    'etc/libvirt/nwfilter/allow-arp.xml'
    'etc/libvirt/nwfilter/allow-dhcp-server.xml'
    'etc/libvirt/nwfilter/allow-dhcp.xml'
    'etc/libvirt/nwfilter/allow-incoming-ipv4.xml'
    'etc/libvirt/nwfilter/allow-ipv4.xml'
    'etc/libvirt/nwfilter/clean-traffic.xml'
    'etc/libvirt/nwfilter/no-arp-ip-spoofing.xml'
    'etc/libvirt/nwfilter/no-arp-mac-spoofing.xml'
    'etc/libvirt/nwfilter/no-arp-spoofing.xml'
    'etc/libvirt/nwfilter/no-ip-multicast.xml'
    'etc/libvirt/nwfilter/no-ip-spoofing.xml'
    'etc/libvirt/nwfilter/no-mac-broadcast.xml'
    'etc/libvirt/nwfilter/no-mac-spoofing.xml'
    'etc/libvirt/nwfilter/no-other-l2-traffic.xml'
    'etc/libvirt/nwfilter/no-other-rarp-traffic.xml'
    'etc/libvirt/nwfilter/qemu-announce-self-rarp.xml'
    'etc/libvirt/nwfilter/qemu-announce-self.xml'
    'etc/libvirt/qemu-lockd.conf'
    'etc/libvirt/qemu.conf'
    'etc/libvirt/qemu/networks/autostart/default.xml'
    'etc/libvirt/qemu/networks/default.xml'
    'etc/libvirt/virt-login-shell.conf'
    'etc/libvirt/virtlockd.conf'
    'etc/logrotate.d/libvirtd'
    'etc/logrotate.d/libvirtd.lxc'
    'etc/logrotate.d/libvirtd.qemu'
    'etc/logrotate.d/libvirtd.uml'
    'etc/sasl2/libvirt.conf')
install="libvirt.install"
source=('git+git://libvirt.org/libvirt.git'
    libvirtd.conf.d
    libvirtd-guests.conf.d
    libvirt.tmpfiles.d)
md5sums=('SKIP'
     '5e31269067dbd12ca871234450bb66bb'
     '384fff96c6248d4f020f6fa66c32b357'
     '020971887442ebbf1b6949e031c8dd3f')     
pkgver() {
  cd "$SRCDEST/${pkgname/-git/}"
  git describe --always | sed 's|-|.|g' | sed 's/^.//'
}

prepare() {
  cd "$srcdir/${pkgname/-git/}"

  for file in $(find . -name '*.py' -print); do
    sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python_' $file
    sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python_' $file
  done

  sed -i 's|/sysconfig/|/conf.d/|g' \
    src/remote/libvirtd.service.in \
    tools/{libvirt-guests.service,libvirt-guests.sh,virt-pki-validate}.in \
    src/locking/virtlockd.service.in
  sed -i 's|@sbindir@|/usr/bin|g' src/locking/virtlockd.service.in
  # 78 is kvm group: https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database
  sed -i 's|#group =.*|group="78"|' src/qemu/qemu.conf
  sed -i 's|/usr/libexec/qemu-bridge-helper|/usr/lib/qemu/qemu-bridge-helper|g' \
    src/qemu/qemu{.conf,_conf.c} \
    src/qemu/test_libvirtd_qemu.aug.in

  sed -i 's/notify/simple/' src/remote/libvirtd.service.in
}

build() {
  cd "$srcdir/${pkgname/-git/}"

  export PYTHON=`which python`
  export LDFLAGS=-lX11
  export RADVD=/usr/bin/radvd
  NOCONFIGURE=1 ./autogen.sh
  sed -i 's|libsystemd-daemon|libsystemd|g' configure
  mkdir build && cd build

  [ -f Makefile ] || ../configure --prefix=/usr --libexec=/usr/lib/"${pkgname/-git/}" --sbindir=/usr/bin \
    --with-storage-lvm --with-udev --without-hal --disable-static \
    --with-init-script=systemd \
    --with-qemu-user=nobody --with-qemu-group=nobody \
    --with-netcf --with-interface
  make
}

package() {
  cd "$srcdir/${pkgname/-git/}/build"

  make DESTDIR="$pkgdir" install

  install -D -m644 "$srcdir"/libvirtd.conf.d "$pkgdir"/etc/conf.d/libvirtd
  install -D -m644 "$srcdir"/libvirtd-guests.conf.d "$pkgdir"/etc/conf.d/libvirt-guests
  install -D -m644 "$srcdir"/libvirt.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/libvirt.conf

  chown -R 0:78 "$pkgdir"/var/lib/libvirt/qemu
  chmod 0770 "$pkgdir"/var/lib/libvirt/qemu

  chown 0:102 "$pkgdir"/usr/share/polkit-1/rules.d
  chmod 0750 "$pkgdir"/usr/share/polkit-1/rules.d

  rm -rf \
    "$pkgdir"/var/run \
    "$pkgdir"/etc/sysconfig \
    "$pkgdir"/etc/rc.d
}

FredBezies commented on 2020-01-07 12:25

Cannot be built:

autoreconf: Leaving directory `.'
./bootstrap: ln -fs ../.gnulib/build-aux/install-sh build-aux/install-sh
./bootstrap: ln -fs ../.gnulib/build-aux/depcomp build-aux/depcomp
./bootstrap: ln -fs ../.gnulib/build-aux/config.guess build-aux/config.guess
./bootstrap: ln -fs ../.gnulib/build-aux/config.sub build-aux/config.sub
./bootstrap: ln -fs .gnulib/doc/INSTALL INSTALL
./bootstrap: done.  Now you can run 'mkdir build && cd build && ../configure'.
configure: error: Build directory must be different from source directory

You need to add:

mkdir build && cd build

before:

[ -f Makefile ] || ../configure --prefix=/usr --libexec=/usr/lib/"${pkgname/-git/}" --sbindir=/usr/bin \

Also, rs2html5 from python-docutils is needed:

checking for rst2html5... no
checking for rst2html5.py... no
checking for rst2html5-3... no
checking for rst2html... no
checking for rst2html.py... no
checking for rst2html-3... no
configure: error: "rst2html5/rst2html is required to build libvirt"

eschwartz commented on 2019-09-19 15:52

This is the Arch Linux distribution. There is no such thing as a "wireshark development package", the "wireshark-cli" base package provides the headers.

config.h is not an official wireshark header. The wireshark developers do not install any such file, however, software developed by Debian or Fedora developers may rely on broken packaging by other distros, which erroneously ship a false header that must not be used.

See https://bugs.archlinux.org/task/63828

sniper7kills commented on 2019-07-21 03:47

For those interested and running into the <wireshark/config.h> issue.

I had to manually install the libwireshark-dev package from debian. (Extract the .deb file, then extract the data.tar.xz file; and then copy the usr contents accordingly.)

It looks like the wireshark-cli contains most of the source files; but not all of them. (so this may be an issue that needs to be brought up in the wireshark-cli package?) If you don't have wireshark-cli installed you should be able to use debtap to install the libwireshark-dev package from debian.