iperf: Update to 2.2.1

fix is included in the new release
This commit is contained in:
Christoph Reiter 2025-03-24 07:28:01 +01:00
parent c7c2646ea7
commit b491d912d6
2 changed files with 3 additions and 20 deletions

View File

@ -1,11 +0,0 @@
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -93,7 +93,7 @@
}
}
#endif
-#if HAVE_DECL_MSG_CTRUNC
+#if (HAVE_DECL_SO_TIMESTAMP) && (HAVE_DECL_MSG_CTRUNC)
ctrunc_warn_enable = true;
#endif
// Enable kernel level timestamping if available

View File

@ -1,7 +1,7 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=iperf
pkgver=2.2.0
pkgver=2.2.1
pkgrel=1
pkgdesc='A tool to measure maximum TCP bandwidth'
arch=('i686' 'x86_64')
@ -13,17 +13,11 @@ msys2_references=(
license=('custom')
depends=('gcc-libs')
makedepends=('autotools' 'gcc')
source=("https://downloads.sourceforge.net/iperf2/iperf-$pkgver.tar.gz"
"0001-build-fix.patch")
sha256sums=('16810a9575e4c6dd65e4a18ab5df3cdac6730b3c832cf080a8990f132f68364a'
'65baf3f40cd7caa8312e02a0264579d329b5f1bb11fa2ff36907ed6685f8ef9f')
source=("https://downloads.sourceforge.net/iperf2/iperf-$pkgver.tar.gz")
sha256sums=('754ab0a7e28033dbea81308ef424bc7df4d6e2fe31b60cc536b61b51fefbd8fb')
prepare() {
cd "${pkgname}-${pkgver}"
# https://sourceforge.net/p/iperf2/tickets/328/
# https://sourceforge.net/p/iperf2/code/ci/97c193ac9aecd7884988a16a2454346253590b66
patch -Np1 -i "${srcdir}"/0001-build-fix.patch
}
build() {