From abd1b4b877836eca3ee149f9f5b20a2e75a7875d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Fri, 1 Oct 2021 23:48:38 -0300 Subject: [PATCH] iperf: update to 2.1.4. --- .../patches/reorder-includes-for-musl.patch | 28 +++++++++++++++++++ srcpkgs/iperf/template | 4 +-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/iperf/patches/reorder-includes-for-musl.patch diff --git a/srcpkgs/iperf/patches/reorder-includes-for-musl.patch b/srcpkgs/iperf/patches/reorder-includes-for-musl.patch new file mode 100644 index 000000000000..066620c8666c --- /dev/null +++ b/srcpkgs/iperf/patches/reorder-includes-for-musl.patch @@ -0,0 +1,28 @@ +Change order of includes to fix compilation with musl libc + +--- a/include/headers.h 2021-08-16 14:27:51.000000000 -0300 ++++ b/include/headers.h 2021-10-01 23:42:09.471528972 -0300 +@@ -106,11 +106,6 @@ + #include + #endif + +-#if ((HAVE_TUNTAP_TAP) || (HAVE_TUNTAP_TUN)) +-#include +-#include +-#endif +- + + // AF_PACKET HEADERS + #if defined(HAVE_LINUX_FILTER_H) && defined(HAVE_AF_PACKET) +@@ -146,6 +141,11 @@ + #define IPV6HDRLEN 40 + #endif // HAVE_AF_PACKET + ++#if ((HAVE_TUNTAP_TAP) || (HAVE_TUNTAP_TUN)) ++#include ++#include ++#endif ++ + #ifdef WIN32 + + /* Windows config file */ diff --git a/srcpkgs/iperf/template b/srcpkgs/iperf/template index d992f0d3d67b..ba754db0d608 100644 --- a/srcpkgs/iperf/template +++ b/srcpkgs/iperf/template @@ -1,6 +1,6 @@ # Template file for 'iperf' pkgname=iperf -version=2.0.13 +version=2.1.4 revision=1 build_style=gnu-configure configure_args="--enable-ipv6 --enable-multicast --enable-threads @@ -10,7 +10,7 @@ maintainer="Orphaned " license="NCSA" homepage="https://iperf.fr/" distfiles="${SOURCEFORGE_SITE}/${pkgname}2/${pkgname}-${version}.tar.gz" -checksum=c88adec966096a81136dda91b4bd19c27aae06df4d45a7f547a8e50d723778ad +checksum=062b392e87b8e227aca74fef0a99b04fe0382d4518957041b508a56885b4d4f9 post_install() { vlicense COPYING LICENSE