Bug 293113 - sysutils/whowatch: Update to 1.8.6
Summary: sysutils/whowatch: Update to 1.8.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-11 14:30 UTC by Jishan Alam
Modified: 2026-03-07 21:31 UTC (History)
2 users (show)

See Also:
vvd: merge-quarterly+


Attachments
Pointing to my fork of whowatch (8.70 KB, patch)
2026-02-11 14:30 UTC, Jishan Alam
no flags Details | Diff
1.8.6.1 (8.70 KB, patch)
2026-02-19 08:40 UTC, Jishan Alam
no flags Details | Diff
Fix (9.09 KB, patch)
2026-02-19 18:07 UTC, Jishan Alam
no flags Details | Diff
Improve ram and swap stats (4.59 KB, patch)
2026-02-27 23:10 UTC, Vladimir Druzenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jishan Alam 2026-02-11 14:30:11 UTC
Created attachment 267979 [details]
Pointing to my fork of whowatch

sysutils/whowatch: update to 1.8.6

- The new update wasn't working on FreeBSD due to Linuxisms and FreeBSD wrong API usages
- I overhauled the codebase in a fork and updated it to work on both Linux and FreeBSD
- Changes Mainly Include
 - Uses of sysctl, libprocstat etc to gather the system informations
Comment 1 Jishan Alam 2026-02-16 15:29:36 UTC
any update on this?
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-18 23:55:03 UTC
Can you create tag? For example 1.8.6.1.
Comment 3 Jishan Alam 2026-02-19 08:40:12 UTC
Created attachment 268184 [details]
1.8.6.1

Create the tag 1.8.6.1
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-19 11:20:55 UTC
Makefile:
PORTNAME=       whowatch
DISTVERSION=    1.8.6.1
CATEGORIES=     sysutils

MAINTAINER=     jishanalam9128@gmail.com
COMMENT=        Displays information in real time about users currently logged on
WWW=            https://github.com/mtsuszycki/whowatch/ \
                https://github.com/Zedai00/whowatch/

LICENSE=        GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=           autoreconf ncurses
USE_GITHUB=     yes
GH_ACCOUNT=     Zedai00
GNU_CONFIGURE=  yes

PLIST_FILES=    bin/whowatch \
                share/applications/whowatch.desktop \
                share/man/man1/whowatch.1.gz

.include <bsd.port.mk>

distinfo:
TIMESTAMP = 1771500000
SHA256 (Zedai00-whowatch-1.8.6.1_GH0.tar.gz) = 86e8e68e0dc88e29ec8a3a671d4640804fe48e086b98d6cf0307f23a6fc90868
SIZE (Zedai00-whowatch-1.8.6.1_GH0.tar.gz) = 52413

pkg-descr (text from README.md):
Whowatch is an interactive, ncurses-based, process and users monitoring tool
which updates information in real time. It can be described as a some kind of
interactive mix of ps, pstree, lsof, w, finger and kill. You can watch
information about users currently logged on to the machine: login type - ie.
"ssh" "telnet", tty, host, idle time and command line of their current process.
You can also naviagate in processes tree, watch process details (memory, uid,
open descriptors with TCP sockets mapped on IP:port -> IP:port pair etc.).
Whowatch has support for plugins.
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-19 11:26:53 UTC
Look wrong:
│MEMORY:                                                                       │
│MemTotal: 16694260 kB                                                         │
│MemFree: 3643038670956 kB                                                     │
│MemAvailable: 93617346202104 kB                                               │
│Active: 5688819079440 kB                                                      │
│Inactive: 89974307531148 kB

From top:
Mem: 658M Active, 10G Inact, 1234M Laundry, 3150M Wired, 304M Buf, 424M Free
Comment 6 Jishan Alam 2026-02-19 18:07:07 UTC
Created attachment 268192 [details]
Fix

Fix the active memory bug
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-19 19:09:04 UTC
RAM is correct now, but swap and "Cached" is not.

Mem: 634M Active, 10G Inact, 1194M Laundry, 2882M Wired, 90M Buf, 504M Free
ARC: 1012M Total, 363M MFU, 81M MRU, 256K Anon, 13M Header, 551M Other
     128M Compressed, 929M Uncompressed, 7,28:1 Ratio
Swap: 8192M Total, 1185M Used, 7007M Free, 14% Inuse

│Cached: 0 kB                                                                  │
│SwapTotal: 0 kB                                                               │
│SwapUsed: 18014398509370304 kB                                                │
│SwapFree: 111680 kB
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2026-02-27 23:10:14 UTC
Created attachment 268407 [details]
Improve ram and swap stats
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2026-03-05 17:46:51 UTC
Friendly ping.
Comment 10 commit-hook freebsd_committer freebsd_triage 2026-03-07 21:12:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=55476368ccbc3863cec96779d914046a39ac5299

commit 55476368ccbc3863cec96779d914046a39ac5299
Author:     Jishan Alam <jishanalam9128@gmail.com>
AuthorDate: 2026-03-07 21:04:18 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-07 21:04:18 +0000

    sysutils/whowatch: Update 1.4 => 1.8.6.2, take maintainership

    Switch to upstream with FreeBSD support:
    - The new update wasn't working on FreeBSD due to Linuxisms and FreeBSD
      wrong API usages.
    - Overhauled the codebase in a fork and updated it to work on both
      Linux and FreeBSD.
    - Uses of sysctl, libprocstat, kvm etc to gather the system informations.

    PR:             293113
    MFH:            2026Q1
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>

 sysutils/whowatch/Makefile                         |  25 ++---
 sysutils/whowatch/distinfo                         |   6 +-
 sysutils/whowatch/files/patch-Makefile.in (gone)   |  13 ---
 sysutils/whowatch/files/patch-process.c (gone)     |  11 --
 sysutils/whowatch/files/patch-procinfo.c (gone)    |  31 ------
 .../files/patch-src_sysinfo__freebsd.c (new)       | 121 +++++++++++++++++++++
 sysutils/whowatch/files/patch-whowatch.c (gone)    | 105 ------------------
 sysutils/whowatch/files/patch-whowatch.h (gone)    |  27 -----
 sysutils/whowatch/pkg-descr                        |  13 ++-
 9 files changed, 142 insertions(+), 210 deletions(-)
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-03-07 21:16:30 UTC
A commit in branch 2026Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e8f735b02d3b3890b7d8c70fc14b5ad2694ff90a

commit e8f735b02d3b3890b7d8c70fc14b5ad2694ff90a
Author:     Jishan Alam <jishanalam9128@gmail.com>
AuthorDate: 2026-03-07 21:04:18 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-03-07 21:14:50 +0000

    sysutils/whowatch: Update 1.4 => 1.8.6.2, take maintainership

    Switch to upstream with FreeBSD support:
    - https://github.com/Zedai00/whowatch/
    - The new update wasn't working on FreeBSD due to Linuxisms and FreeBSD
      wrong API usages.
    - Overhauled the codebase in a fork and updated it to work on both
      Linux and FreeBSD.
    - Uses of sysctl, libprocstat, kvm etc to gather the system informations.

    PR:             293113
    MFH:            2026Q1
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
    (cherry picked from commit 55476368ccbc3863cec96779d914046a39ac5299)

 sysutils/whowatch/Makefile                         |  23 ++--
 sysutils/whowatch/distinfo                         |   5 +-
 sysutils/whowatch/files/patch-Makefile.in (gone)   |  13 ---
 sysutils/whowatch/files/patch-process.c (gone)     |  11 --
 sysutils/whowatch/files/patch-procinfo.c (gone)    |  31 ------
 .../files/patch-src_sysinfo__freebsd.c (new)       | 121 +++++++++++++++++++++
 sysutils/whowatch/files/patch-whowatch.c (gone)    | 105 ------------------
 sysutils/whowatch/files/patch-whowatch.h (gone)    |  27 -----
 sysutils/whowatch/pkg-descr                        |  13 ++-
 9 files changed, 142 insertions(+), 207 deletions(-)