libvirt: unbreak musl.
This commit is contained in:
parent
6a73da639e
commit
15290cfd63
2 changed files with 20 additions and 1 deletions
13
srcpkgs/libvirt/patches/musl-fixes.patch
Normal file
13
srcpkgs/libvirt/patches/musl-fixes.patch
Normal file
|
@ -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);
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue