Package Details: libvirt-git 10.2.0.rc2.r1.g32d836bc6f-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: https://libvirt.org/
Keywords: git library management virtualization
Licenses: GPL3, LGPL
Conflicts: libvirt
Provides: libvirt, libvirt-admin.so, libvirt-lxc.so, libvirt-qemu.so, libvirt.so
Submitter: xtfxme
Maintainer: sirspudd
Last Packager: sirspudd
Votes: 10
Popularity: 0.000000
First Submitted: 2009-12-06 07:37 (UTC)
Last Updated: 2024-06-11 16:26 (UTC)

Dependencies (35)

Required by (88)

Sources (1)

Latest Comments

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

ArthurBorsboom commented on 2020-01-07 13:26 (UTC)

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

FredBezies commented on 2020-01-07 12:42 (UTC)

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 (UTC) (edited on 2020-01-07 12:32 (UTC) by FredBezies)

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 (UTC)

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 (UTC)

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 (UTC)

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

Sources https://github.com/panda-re/panda/issues/299 https://github.com/demirten/twamp-dissector/issues/1 https://aur.archlinux.org/packages/libvirt-apparmor/

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 (UTC)

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 (UTC)

Fails to build:

==> Starting build()...
Updating submodules...
Submodule 'gnulib' (<https://git.savannah.gnu.org/git/gnulib.git/>) registered for path '.gnulib'
Submodule 'keycodemapdb' (<https://gitlab.com/keycodemap/keycodemapdb.git>) 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 (UTC)

Good one. Thanks for providing the easy fix!

Fixed.

CyberShadow commented on 2018-04-11 19:19 (UTC)

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: https://git.archlinux.org/svntogit/community.git/diff/libvirt/trunk/libvirt.install?id=9a07ef3771d570995415fa1737548d84cc17cecb