Bug 292143 - [NEW PORT] sysutils/witr: Witr (why-is-this-running)
Summary: [NEW PORT] sysutils/witr: Witr (why-is-this-running)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Michael Osipov
URL: https://github.com/pranshuparmar/witr
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-03 05:50 UTC by Hung-Yi Chen
Modified: 2026-01-09 15:32 UTC (History)
2 users (show)

See Also:


Attachments
witr-0.1.6 (3.43 KB, patch)
2026-01-03 05:50 UTC, Hung-Yi Chen
no flags Details | Diff
witr-0.1.7 (5.40 KB, patch)
2026-01-04 08:04 UTC, Hung-Yi Chen
no flags Details | Diff
witr-0.1.7 (5.64 KB, patch)
2026-01-04 08:24 UTC, Hung-Yi Chen
no flags Details | Diff
witr-0.1.7 (5.87 KB, patch)
2026-01-04 09:05 UTC, Hung-Yi Chen
no flags Details | Diff
witr-0.1.7 (6.11 KB, patch)
2026-01-04 09:17 UTC, Hung-Yi Chen
no flags Details | Diff
witr 0.2.0 (3.68 KB, patch)
2026-01-08 07:15 UTC, Hung-Yi Chen
no flags Details | Diff
witr 0.2.2 (3.68 KB, patch)
2026-01-09 14:48 UTC, Hung-Yi Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hung-Yi Chen 2026-01-03 05:50:29 UTC
Created attachment 266768 [details]
witr-0.1.6

* witr 0.1.6
* Port to FreeBSD via local patch (upstream PR pending)
Comment 2 Michael Osipov freebsd_committer freebsd_triage 2026-01-03 13:11:26 UTC
> -X main.buildDate=$$(date -u +%Y-%m-%d)"

Will break reproducible builds. What is the benefit here if you cannot use the release date?


The code is using procfs(5). A pkg-message should tell which or some functions require it...
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2026-01-03 15:29:04 UTC
How much of the claimed functionality actually works on FreeBSD?
Comment 4 Hung-Yi Chen 2026-01-04 03:10:02 UTC
(In reply to Michael Osipov from comment #2)
Thanks for the review.

I agree with your suggestion. Using the release date for main.buildDate is indeed a better approach.

Upon reflection, given that procfs is not enabled by default on FreeBSD, I plan to remove the procfs implementation entirely.

I will make these adjustments and upload the updated patch soon.
Comment 5 Hung-Yi Chen 2026-01-04 08:04:04 UTC
Created attachment 266803 [details]
witr-0.1.7
Comment 6 Hung-Yi Chen 2026-01-04 08:24:48 UTC
Created attachment 266804 [details]
witr-0.1.7
Comment 7 Hung-Yi Chen 2026-01-04 09:05:28 UTC
Created attachment 266805 [details]
witr-0.1.7
Comment 8 Hung-Yi Chen 2026-01-04 09:17:00 UTC
Created attachment 266806 [details]
witr-0.1.7
Comment 9 Michael Osipov freebsd_committer freebsd_triage 2026-01-04 11:37:05 UTC
(In reply to Hung-Yi Chen from comment #4)

I don't consider it wrong to use procfs, you just need to tell people what is going to be missing. That's it.
Comment 10 Hung-Yi Chen 2026-01-08 07:15:00 UTC
Created attachment 266928 [details]
witr 0.2.0
Comment 11 Hung-Yi Chen 2026-01-09 14:48:11 UTC
Created attachment 266960 [details]
witr 0.2.2
Comment 12 Michael Osipov freebsd_committer freebsd_triage 2026-01-09 14:58:59 UTC
Shall I wait for you to analyze the other issues or go ahead with this one?
Comment 13 Hung-Yi Chen 2026-01-09 15:03:27 UTC
I think you can go ahead since upstream is very active.
Comment 14 commit-hook freebsd_committer freebsd_triage 2026-01-09 15:30:09 UTC
A commit in branch main references this bug:

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

commit 0290d902a098f3ff52c9b167a4ffad8b79032dfe
Author:     Hung-Yi Chen <gaod@hychen.org>
AuthorDate: 2026-01-09 14:48:00 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-01-09 15:28:57 +0000

    [NEW PORT] sysutils/witr: Witr (why-is-this-running)

    Co-authored-by: Michael Osipov <michaelo@FreeBSD.org>
    PR:             292143

 sysutils/Makefile             |  1 +
 sysutils/witr/Makefile (new)  | 37 +++++++++++++++++++++++++++++++++++++
 sysutils/witr/distinfo (new)  | 15 +++++++++++++++
 sysutils/witr/pkg-descr (new) | 20 ++++++++++++++++++++
 4 files changed, 73 insertions(+)