While the last official release dates back to 2018, I do see somethe last upstream release of whowatch dates back to 2018
So upstream is basically unmaintained.
I can try to engage with upstream and explore this option, but at theDoes it make sense to patch whowatch to use utmpx/utx on FreeBSD, even
if this results in a significant, one-time overhaul of the codebase?
If you would do that, I suggest to get in touch with upstream and
upstream those patches, and if possible, take over upstream.
If a port uses interfaces that are effectively obsolete on newer releases, then the port is deprecated if the RELEASE which still supports itBased on this guidance, I plan to proceed with deprecating
is EOL. Probably even a bit earlier...
Hi!
IrCOm currently working on updating whowatch on FreeBSD from version 1.4 to 1.8.6, and IrCOve run into a few concerns regarding long-term viability and platform compatibility.[...]
whowatch depends on wtmp, which appears to be deprecated or no longer
maintained on FreeBSD 15.0-RELEASE, with utmp/utx being the preferred
interface
the last upstream release of whowatch dates back to 2018
So upstream is basically unmaintained.
Does it make sense to patch whowatch to use utmpx/utx on FreeBSD, even
if this results in a significant, one-time overhaul of the codebase?
If you would do that, I suggest to get in touch with upstream and
upstream those patches, and if possible, take over upstream.
Is it more appropriate to leave the port as-is (or mark it deprecated)
and instead focus effort on adopting or maintaining a different, more
actively maintained tool?
Yes, this seems more appropriate. The search for a different tool
can become quite burdensome, so it would be very helpful if you did that.
In general, what is the FreeBSD projectrCOs preferred practice when a port
depends on interfaces that are effectively obsolete on newer releases?
If a port uses interfaces that are effectively obsolete on newer releases, then the port is deprecated if the RELEASE which still supports it
is EOL. Probably even a bit earlier...
--
pi@FreeBSD.org +49 171 3101372 Now what ?
I may explore this experimentally in a personal repository to assess feasibility. This would be exploratory only and without any commitmentDoes it make sense to patch whowatch to use utmpx/utx on FreeBSD, even >> if this results in a significant, one-time overhaul of the codebase?
If you can do that, I'd like to try it out.
Hi, thank you for the reply
the last upstream release of whowatch dates back to 2018
So upstream is basically unmaintained.
While the last official release dates back to 2018, I do see some
repository activity as recently as 2025. However, given the lack of
releases and the absence of clear ongoing maintenance or
responsiveness, it still seems reasonable to treat upstream as
effectively unmaintained from a ports perspective.
Based on this guidance, I plan to proceed with deprecating
sysutils/whowatch due to its reliance on the obsolete wtmp interface.
I don't know it this is of any help (I am not the C dev), but I just
found this patch for version 1.4 for utmpx
https://github.com/pld-linux/whowatch/blob/master/whowatch-utmpx.patch
I made a quick update for port, if anybody what to test it from the
ports tree, see attached patch. If you apply it, remove "files" subdir
before running "make".
Your fixed version of whowatch runs, but it has different UI from the
old version 1.4, and the older version had colors for characters used
for tree branches. As I understand, it has nothing to do with your utmpx
fix, it was probably made by original author.
One issue I found is that on one machine it does not display process
[o]wner info, it shows -1 instead. I don't know why. On the other
machine it shows the correct owner info. Botch machines are 14.3 amd64.
On botch machines I tried to run it as normal user and as root.
If you are interested I have access to one old machine with working
whowatch 1.4 so I can make a few screenshots with the old UI and send it
to you privately. I think there are a few details which were nicer in
the old version.
Do you think you will be able to make [d]etails also working on FreeBSD? [d]etails and [s]ysinfo is new to this version, they were not there in
the version 1.4. But there was [c]md which turns On / Off showing long command line options of the running processes or process name only. So
for shell scripts you see just "sh" or "/home/user/bin/myscript.sh -t -b my-arg"
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 18:04:07 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
4 files (8,203K bytes) |
| Messages: | 184,416 |
| Posted today: | 1 |