summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2017-03-04 15:36:15 -0600
committerMatthias Maier <tamiko@gentoo.org>2017-03-04 15:36:15 -0600
commitee4cf77bfc66702e29c6fad238edd2a7e02dab1d (patch)
treec56c12f9caa0c211aa709e3f0632fa38edb779ab
parentapp-emulation/libvirt-glib: drop old versions 0.2.3* (diff)
downloadgentoo-ee4cf77bfc66702e29c6fad238edd2a7e02dab1d.tar.gz
gentoo-ee4cf77bfc66702e29c6fad238edd2a7e02dab1d.tar.bz2
gentoo-ee4cf77bfc66702e29c6fad238edd2a7e02dab1d.zip
app-emulation/libvirt: fix include for musl, bug #609488
Package-Manager: Portage-2.3.3, Repoman-2.3.2
-rw-r--r--app-emulation/libvirt/files/libvirt-3.1.0-musl-fix-includes.patch10
-rw-r--r--app-emulation/libvirt/libvirt-3.1.0.ebuild1
2 files changed, 11 insertions, 0 deletions
diff --git a/app-emulation/libvirt/files/libvirt-3.1.0-musl-fix-includes.patch b/app-emulation/libvirt/files/libvirt-3.1.0-musl-fix-includes.patch
new file mode 100644
index 00000000000..70fb1686faa
--- /dev/null
+++ b/app-emulation/libvirt/files/libvirt-3.1.0-musl-fix-includes.patch
@@ -0,0 +1,10 @@
+--- a/src/storage/storage_backend_fs.c
++++ b/src/storage/storage_backend_fs.c
+@@ -30,6 +30,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <paths.h>
+ #include <unistd.h>
+ #include <string.h>
+
diff --git a/app-emulation/libvirt/libvirt-3.1.0.ebuild b/app-emulation/libvirt/libvirt-3.1.0.ebuild
index bc87df8123f..2d157d5078a 100644
--- a/app-emulation/libvirt/libvirt-3.1.0.ebuild
+++ b/app-emulation/libvirt/libvirt-3.1.0.ebuild
@@ -126,6 +126,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
"${FILESDIR}"/${PN}-3.0.0-fix_paths_for_apparmor.patch
"${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch
+ "${FILESDIR}"/${PN}-3.1.0-musl-fix-includes.patch # bug #609488
)
pkg_setup() {