git: d357e43d0927 - main - sysutils/wmmemload: Fix stack overflow error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Oct 2024 17:29:30 UTC
The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=d357e43d0927dc1d85870cfea1473f4fd4b17e81 commit d357e43d0927dc1d85870cfea1473f4fd4b17e81 Author: Marco Beishuizen <mbeis@xs4all.nl> AuthorDate: 2024-10-09 17:26:58 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-10-09 17:29:02 +0000 sysutils/wmmemload: Fix stack overflow error Add x11 and xext to USE_XORG. Add LICENSE_FILE. Switch to DISTVERSION. PR: 264669 Reported by: Arie Bikker <src-2016@bikker.homeunix.net> Approved by: submitter is maintainer --- sysutils/wmmemload/Makefile | 11 ++++++----- sysutils/wmmemload/files/patch-src_mem__freebsd.c | 9 +++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/sysutils/wmmemload/Makefile b/sysutils/wmmemload/Makefile index bd3945e4a960..a71f7d2daaa3 100644 --- a/sysutils/wmmemload/Makefile +++ b/sysutils/wmmemload/Makefile @@ -1,6 +1,6 @@ PORTNAME= wmmemload -PORTVERSION= 0.1.8 -PORTREVISION= 1 +DISTVERSION= 0.1.8 +PORTREVISION= 2 CATEGORIES= sysutils windowmaker MASTER_SITES= https://dev.gentoo.org/~voyageur/distfiles/ @@ -9,11 +9,12 @@ COMMENT= Dockapp for monitoring memory and swap usage WWW= https://windowmaker.org/dockapps/?name=wmmemload LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING -GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share USES= autoreconf xorg -USE_XORG= xpm +USE_XORG= x11 xext xpm +GNU_CONFIGURE= yes + WRKSRC= ${WRKDIR}/dockapps .include <bsd.port.mk> diff --git a/sysutils/wmmemload/files/patch-src_mem__freebsd.c b/sysutils/wmmemload/files/patch-src_mem__freebsd.c index b3fcb888ca70..e22d4975481b 100644 --- a/sysutils/wmmemload/files/patch-src_mem__freebsd.c +++ b/sysutils/wmmemload/files/patch-src_mem__freebsd.c @@ -8,3 +8,12 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +@@ -81,7 +82,7 @@ void mem_getusage(int *per_mem, int *per_swap, const s + if (swap_firsttime || + (((new_swappgsin > swappgsin) || (new_swappgsout > swappgsout)) + && cur_time > last_time_swap + 1)) { +- int mib[2], n; ++ int mib[3], n; + size_t mibsize, size; + struct xswdev xsw; +