vde2: fix musl build

This commit is contained in:
Alessio Sergi 2015-06-14 15:41:24 +02:00
parent 6026ce2e1e
commit fb4a1e07d8
2 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,27 @@
diff --git src/vde_switch/plugins/dump.c src/vde_switch/plugins/dump.c
index 6132158..e7da1e6 100644
--- src/vde_switch/plugins/dump.c
+++ src/vde_switch/plugins/dump.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <config.h>
#include <vde.h>
diff --git src/vdetaplib/libvdetap.c src/vdetaplib/libvdetap.c
index 00cd401..843a14e 100644
--- src/vdetaplib/libvdetap.c
+++ src/vdetaplib/libvdetap.c
@@ -102,6 +102,10 @@ void libvdetap_fini(void)
}
}
+/* musl apparently defines open64 as a macro */
+#ifdef open64
+#undef open64
+#endif
int open(const char *path, int flags, ...)
{
va_list ap;

View File

@ -1,10 +1,10 @@
# Template file for 'vde2'
pkgname=vde2
version=2.3.2
revision=11
revision=12
build_style=gnu-configure
configure_args="--disable-static --enable-experimental
--disable-python --enable-kernel-switch --sbindir=/usr/bin"
--disable-python --enable-kernel-switch"
hostmakedepends="automake libtool"
makedepends="libpcap-devel libressl-devel"
conf_files="
@ -34,15 +34,15 @@ post_install() {
libvde2_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/*.so.*
}
}
vde2-devel_package() {
depends="libvde2>=${version}_${revision}"
depends="libvde2-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/lib/*.so
}
}