community/mbuffer: upgrade to 20251025

This commit is contained in:
Leon White 2025-12-10 11:29:32 +01:00 committed by Achill Gilgenast
parent 079d485d6f
commit 749f6aea6c
2 changed files with 7 additions and 12 deletions

View File

@ -1,8 +1,8 @@
# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Katie Holly <holly@fuslvz.ws>
pkgname=mbuffer
pkgver=20240107
pkgrel=1
pkgver=20251025
pkgrel=0
pkgdesc="tool for measuring and buffering data streams"
url="https://www.maier-komor.de/mbuffer.html"
arch="all !armhf !armv7" # fails on the builders
@ -13,11 +13,6 @@ source="https://www.maier-komor.de/software/mbuffer/mbuffer-$pkgver.tgz
clamp-32-bit-parameters.patch
fix-shell.patch"
prepare() {
default_prepare
update_config_guess
}
build() {
./configure \
--prefix=/usr \
@ -37,7 +32,7 @@ package() {
}
sha512sums="
14773c1193ed5e4a0dfda4ef6bd6ccb0cf104f8c4ae1d22747e52e8247aeb1db64656700f9cf317b13140fb649db889831233f0b8fef0a8463d28713b5882977 mbuffer-20240107.tgz
73a8a854c8f1aae866abf2b52aa5fc2d276dd5a0cc8595e176bb852e731ba4b310833a9b58260b323abf413b0fec74bdb39f89d708ffb81fc5ea82680c535268 clamp-32-bit-parameters.patch
d1b4d49ed1d6a685a2db5a81cb2203ef92b5f8867bc534b7de6435c80a8e408e245052abc2ff5f79934a0c4079b33d496ba60fae005a5bd3f58a76443b1d31ae mbuffer-20251025.tgz
de704059bc538f4e1a2ddc6f6664b2e2e393dbc37e93a503febc49751af853d71cbecc0ec7020a6f46b0c792779943ebb695d2bee16abfec32c59247f0cd9a65 clamp-32-bit-parameters.patch
ca676600272747c70e6f0ca199bfa77849dd3fd5ec7ee9994286100812ff0c69fde2bd13a61ae430af31ec0b9331f34a847e55fe3b4e2305072d83673027666a fix-shell.patch
"

View File

@ -7,7 +7,7 @@ It should not be construed as fixing any bug in mbuffer.
--- a/mbuffer.c
+++ b/mbuffer.c
@@ -984,7 +984,14 @@
@@ -1014,7 +1014,14 @@ static void initDefaults()
/* get physical memory size */
#if defined(_SC_PHYS_PAGES)
@ -23,7 +23,7 @@ It should not be construed as fixing any bug in mbuffer.
if (NumP < 0) {
warningmsg("unable to determine number of total memory pages: %s\n",strerror(errno));
NumP = 0;
@@ -1004,8 +1011,12 @@
@@ -1032,8 +1039,12 @@ static void initDefaults()
char *at = strstr(tmp,"MemAvailable:");
if (at) {
AvP = strtol(at+13,0,0);
@ -34,6 +34,6 @@ It should not be construed as fixing any bug in mbuffer.
+ {
+ AvP = NumP;
+ }
debugmsg("available memory: %lu pages\n",AvP);
}
}
close(pm);