From 15290cfd6328c115a4783b3fd35b4df53b98c2b8 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sun, 21 Jun 2015 17:41:42 +0200 Subject: [PATCH] libvirt: unbreak musl. --- srcpkgs/libvirt/patches/musl-fixes.patch | 13 +++++++++++++ srcpkgs/libvirt/template | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libvirt/patches/musl-fixes.patch diff --git a/srcpkgs/libvirt/patches/musl-fixes.patch b/srcpkgs/libvirt/patches/musl-fixes.patch new file mode 100644 index 00000000000..f83b0423f89 --- /dev/null +++ b/srcpkgs/libvirt/patches/musl-fixes.patch @@ -0,0 +1,13 @@ +--- src/storage/storage_backend.h 2015-06-21 17:25:00.303000000 -0200 ++++ src/storage/storage_backend.h 2015-06-21 17:26:31.583000000 -0200 +@@ -31,6 +31,10 @@ + # include "vircommand.h" + # include "storage_driver.h" + ++#ifndef _PATH_MOUNTED ++#define _PATH_MOUNTED MOUNTED ++#endif ++ + typedef char * (*virStorageBackendFindPoolSources)(virConnectPtr conn, + const char *srcSpec, + unsigned int flags); diff --git a/srcpkgs/libvirt/template b/srcpkgs/libvirt/template index 31d57e89761..8a67cd254ea 100644 --- a/srcpkgs/libvirt/template +++ b/srcpkgs/libvirt/template @@ -1,7 +1,7 @@ # Template file for 'libvirt' pkgname=libvirt version=1.2.16 -revision=4 +revision=5 build_style=gnu-configure configure_args="--without-hal --with-storage-lvm --with-qemu-user=nobody --disable-static @@ -25,6 +25,12 @@ makedepends="readline-devel libcap-ng-devel libnl3-devel attr-devel python-devel libssh2-devel libcap-ng-devel fuse-devel" depends="ebtables dnsmasq" +case "$XBPS_TARGET_MACHINE" in + # musl libc + *-musl) makedepends+=" portablexdr-devel" + ;; +esac + if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then configure_args+=" --with-xen" makedepends+=" libnuma-devel xen-devel"