Bug 268793 - sysutils/filewatcherd: fix argument parsing on arm/arm64
Summary: sysutils/filewatcherd: fix argument parsing on arm/arm64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Nuno Teixeira
URL: https://github.com/faelys/filewatcher...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 23:41 UTC by Robert Clausecker
Modified: 2023-01-31 10:17 UTC (History)
3 users (show)

See Also:
natbsd: maintainer-feedback+
eduardo: merge-quarterly+


Attachments
sysutils/filewatcherd: fix argument parsing on arm/arm64 (1.36 KB, patch)
2023-01-06 23:41 UTC, Robert Clausecker
natbsd: maintainer-approval+
Details | Diff
sysutils/filewatcherd: update to 1.0 (972 bytes, patch)
2023-01-31 06:16 UTC, Natacha Porté
natbsd: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker freebsd_committer freebsd_triage 2023-01-06 23:41:46 UTC
Created attachment 239313 [details]
sysutils/filewatcherd: fix argument parsing on arm/arm64

Don't use char to store the return value of getopt_long,
use int instead.

See also:	https://github.com/faelys/filewatcherd/issues/5

Tested with Poudriere on armv7 arm64 FreeBSD 13.1.
Please MFH if possible.
Comment 1 Natacha Porté 2023-01-07 07:23:27 UTC
Comment on attachment 239313 [details]
sysutils/filewatcherd: fix argument parsing on arm/arm64

Good catch, thanks a lot for reporting it!
Comment 2 Natacha Porté 2023-01-07 07:27:38 UTC
It might not be obvious, but I'm also upstream of this package. So I'm approving everything here, but I will fix it upstream within a few days. I let you decide whether it's worth the effort to patch it now in the ports infrastructure instead of waiting for the released fix.
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2023-01-07 12:00:32 UTC
Do what you believe is best.  This issue was relayed to me by a user.  It's not a big priority.
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2023-01-29 21:08:23 UTC
(In reply to Natacha Porté from comment #2)

Any progress with the upstream fix?
Comment 5 Natacha Porté 2023-01-30 06:34:42 UTC
Sorry for the delay, I got a bit side-tracked by personal stuff. I think I managed a 1.0 release including the fix, so the upstream side should be done. Will you do the ports side or do you prefer me to do it?
Comment 6 Robert Clausecker freebsd_committer freebsd_triage 2023-01-30 11:14:29 UTC
(In reply to Natacha Porté from comment #5)

Thank you for committing the fix.  It's your port, so I think it's better if you submitted the update.
Comment 7 Nuno Teixeira freebsd_committer freebsd_triage 2023-01-30 11:37:45 UTC
Nice!

Waiting on https://github.com/faelys/filewatcherd/releases/tag/1.0 update diff.

Cheers
Comment 8 Natacha Porté 2023-01-31 06:16:49 UTC
Created attachment 239825 [details]
sysutils/filewatcherd: update to 1.0

Here is a very simple patch to update to 1.0. It works on my amd64 poudriere, I don't have an easy access an arm machine to ensure it actually fixes the issue.
Comment 9 commit-hook freebsd_committer freebsd_triage 2023-01-31 10:14:42 UTC
A commit in branch main references this bug:

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

commit 7124540f1aed5cbb68480ed79a1149c368dcd0fb
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2023-01-31 10:04:47 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-01-31 10:13:16 +0000

    sysutils/filewatcherd: Update to 1.0

     Fix build on arm/arm64:

     Don't use char to store the return value of getopt_long, use int instead.

    ChangeLog:      https://github.com/faelys/filewatcherd/releases/tag/1.0
    See also:       https://github.com/faelys/filewatcherd/issues/5
    PR:             268793
    MFH:            2023Q1 (build fixes)

 sysutils/filewatcherd/Makefile | 7 +++++--
 sysutils/filewatcherd/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2023-01-31 10:16:44 UTC
A commit in branch 2023Q1 references this bug:

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

commit a8361b60e79a426c7e5d7915825fc56c49481a57
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2023-01-31 10:04:47 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-01-31 10:14:31 +0000

    sysutils/filewatcherd: Update to 1.0

     Fix build on arm/arm64:

     Don't use char to store the return value of getopt_long, use int instead.

    ChangeLog:      https://github.com/faelys/filewatcherd/releases/tag/1.0
    See also:       https://github.com/faelys/filewatcherd/issues/5
    PR:             268793
    MFH:            2023Q1 (build fixes)

    (cherry picked from commit 7124540f1aed5cbb68480ed79a1149c368dcd0fb)

 sysutils/filewatcherd/Makefile | 7 +++++--
 sysutils/filewatcherd/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)
Comment 11 Nuno Teixeira freebsd_committer freebsd_triage 2023-01-31 10:17:29 UTC
Committed, thanks!