mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 01:12:58 +02:00
vde2: fix musl build
This commit is contained in:
parent
6026ce2e1e
commit
fb4a1e07d8
2 changed files with 32 additions and 5 deletions
27
srcpkgs/vde2/patches/musl.patch
Normal file
27
srcpkgs/vde2/patches/musl.patch
Normal 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;
|
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'vde2'
|
# Template file for 'vde2'
|
||||||
pkgname=vde2
|
pkgname=vde2
|
||||||
version=2.3.2
|
version=2.3.2
|
||||||
revision=11
|
revision=12
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --enable-experimental
|
configure_args="--disable-static --enable-experimental
|
||||||
--disable-python --enable-kernel-switch --sbindir=/usr/bin"
|
--disable-python --enable-kernel-switch"
|
||||||
hostmakedepends="automake libtool"
|
hostmakedepends="automake libtool"
|
||||||
makedepends="libpcap-devel libressl-devel"
|
makedepends="libpcap-devel libressl-devel"
|
||||||
conf_files="
|
conf_files="
|
||||||
|
@ -34,15 +34,15 @@ post_install() {
|
||||||
libvde2_package() {
|
libvde2_package() {
|
||||||
short_desc+=" - runtime libraries"
|
short_desc+=" - runtime libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so.*"
|
vmove usr/lib/*.so.*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vde2-devel_package() {
|
vde2-devel_package() {
|
||||||
depends="libvde2>=${version}_${revision}"
|
depends="libvde2-${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove usr/lib/*.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue