Package Details: libvirt-git 7.0.0.r36.gb5f15b9db1-1

Git Clone URL: (read-only, click to copy)
Package Base: libvirt-git
Description: API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
Upstream URL:
Keywords: git library management virtualization
Licenses: GPL3, LGPL
Conflicts: libvirt
Provides: libvirt
Submitter: xtfxme
Maintainer: sirspudd
Last Packager: sirspudd
Votes: 10
Popularity: 0.000094
First Submitted: 2009-12-06 07:37
Last Updated: 2021-01-19 02:11

Dependencies (38)

Required by (71)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 ... Next › Last »

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 <>
# Contributor: Jonas Heinrich <>
# Contributor: Sergej Pupykin <>
# Contributor: Jonathan Wiersma <archaur at jonw dot org>

pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
arch=('i686' 'x86_64')
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'
        'pm-utils: host power management')
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

  sed -i 's|/sysconfig/|/conf.d/|g' \
    src/remote/ \
    tools/{libvirt-guests.service,,virt-pki-validate}.in \
  sed -i 's|@sbindir@|/usr/bin|g' src/locking/
  # 78 is kvm group:
  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} \

  sed -i 's/notify/simple/' src/remote/

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

  export PYTHON=`which python`
  export LDFLAGS=-lX11
  export RADVD=/usr/bin/radvd
  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

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 \

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


[ -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 no
checking for rst2html5-3... no
checking for rst2html... no
checking for 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.


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.

ArthurBorsboom commented on 2019-07-20 13:49

According to other bug reports, it seems that the wireshark development package has become a dependency.


I cannot find a wireshark development package in both the Arch official repository and the AUR.

Does anybody have a suggestion for this package?

sniper7kills commented on 2019-07-19 20:55

Running into the following build error.

wireshark/src/packet-libvirt.c:21:10: fatal error: wireshark/config.h: No such file or directory
   21 | #include <wireshark/config.h>

CyberShadow commented on 2018-05-15 05:07

Fails to build:

==> Starting build()...
Updating submodules...
Submodule 'gnulib' (<>) registered for path '.gnulib'
Submodule 'keycodemapdb' (<>) registered for path 'src/keycodemapdb'
Cloning into '/build/libvirt-git/src/libvirt/.gnulib'...
Cloning into '/build/libvirt-git/src/libvirt/src/keycodemapdb'...
Submodule path '.gnulib': checked out 'd6397dde2e127e246e3eeb5254a21f42cac783c8'
Submodule path 'src/keycodemapdb': checked out '16e5b0787687d8904dad2c026107409eb9bfcb95'
Running bootstrap...
./bootstrap: line 221: rpcgen: command not found
./bootstrap: Error: 'rpcgen' not found

rpcgen doesn't seem to be in core/glibc any more, but apparently it's provided by extra/rpcsvc-proto. Perhaps that should be added as a dependency?

ArthurBorsboom commented on 2018-04-11 19:58

Good one. Thanks for providing the easy fix!


CyberShadow commented on 2018-04-11 19:19

pacman now has a tmpfiles hook, so I think the systemd-tmpfiles invocation in the .install script is no longer necessary.

It was already removed in the community libvirt package back in 2016: