Bug 294079 - news/inn: Use blocklist
Summary: news/inn: Use blocklist
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kevin Bowling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-28 03:04 UTC by Jose Luis Duran
Modified: 2026-04-09 05:36 UTC (History)
0 users

See Also:
kbowling: maintainer-feedback+


Attachments
[PATCH 1/1] news/inn: Use blocklist (44.69 KB, patch)
2026-03-28 03:04 UTC, Jose Luis Duran
no flags Details | Diff
use upstream commit (3.46 KB, patch)
2026-04-08 12:02 UTC, Kevin Bowling
no flags Details | Diff
[PATCH] news/inn: Use blocklist (2.40 KB, patch)
2026-04-08 22:56 UTC, Jose Luis Duran
no flags Details | Diff
[PATCH] news/inn: Use blocklist (3.82 KB, patch)
2026-04-09 03:29 UTC, Jose Luis Duran
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Luis Duran freebsd_committer freebsd_triage 2026-03-28 03:04:12 UTC
Created attachment 269157 [details]
[PATCH 1/1] news/inn: Use blocklist

Starting from FreeBSD version 1500000, prefer the new blocklist nomenclature.

Once older versions are no longer supported, we should use blocklist exclusively.
Comment 1 Kevin Bowling freebsd_committer freebsd_triage 2026-03-28 05:03:23 UTC
Is this being coordinated with upstream?  Given that the port is just a veneer around automake and 1) upstream is not dead 2) the change equally applies to other environments such as NetBSD I think this should be driven with a release so we don't carry a massive patch.
Comment 2 Jose Luis Duran freebsd_committer freebsd_triage 2026-03-28 05:21:50 UTC
(In reply to Kevin Bowling from comment #1)

Not coordinated at the moment, but you are correct, currently it should not be working on NetBSD. I was planning on submitting a pull request here (within a few weeks):

https://github.com/InterNetNews/inn

Would you prefer to wait until the patch is accepted upstream and then patch for blacklist, as opposed to what is proposed here (patching for blocklist)? In other words, the "massive patch" will only need to be carried until stable/14 reaches EoL, as blocklist was not backported to stable/14 for reasons unrelated to this PR.
Comment 3 Kevin Bowling freebsd_committer freebsd_triage 2026-03-28 05:50:52 UTC
Yes, if there is some need for urgency the patch upstream can be pulled from GitHub.  Otherwise I suggest just asking for a point release once this is merged.
Comment 4 Jose Luis Duran freebsd_committer freebsd_triage 2026-03-28 05:53:59 UTC
(In reply to Kevin Bowling from comment #3)

Excellent! I'll do that. Thank you!
Comment 5 Jose Luis Duran freebsd_committer freebsd_triage 2026-03-30 03:15:24 UTC
For cross-reference: https://github.com/InterNetNews/inn/pull/335
Comment 6 Jose Luis Duran freebsd_committer freebsd_triage 2026-03-30 15:09:55 UTC
Upstream has accepted to update to the new "blocklist" nomenclature. I'll see if we can use REINPLACE_CMD instead of a "massive patch" for FreeBSD < 1500000.

Thank you for the suggestion!
Comment 7 Kevin Bowling freebsd_committer freebsd_triage 2026-04-08 12:02:04 UTC
Created attachment 269498 [details]
use upstream commit

Can you have a look at this or adapt it to your liking?
Comment 8 Kevin Bowling freebsd_committer freebsd_triage 2026-04-08 12:05:45 UTC
Note that I guess it will just stop working if someone runs a new inn release on 14.x.  This seems like a ridiculous amount of work for word salad.
Comment 9 Jose Luis Duran freebsd_committer freebsd_triage 2026-04-08 22:20:08 UTC
(In reply to Kevin Bowling from comment #8)

Yes, that patch will not work on 14.X-RELEASE.

Also, it's better not to build the port from GitHub, because the "configure" file is not present (it must be manually autogenerated). The file however, is present in the tarball.
My plan was to wait for an official release tarball, and resubmit the original patch, perhaps using REINPLACE_CMD to avoid having many similar patch files.
The REINPLACE_CMD should only apply .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000.
Comment 10 Jose Luis Duran freebsd_committer freebsd_triage 2026-04-08 22:56:06 UTC
Created attachment 269521 [details]
[PATCH] news/inn: Use blocklist

Something like this, but inverted (blocklist -> blacklist for older versions). What do you think?
Comment 11 Kevin Bowling freebsd_committer freebsd_triage 2026-04-09 00:11:19 UTC
(In reply to Jose Luis Duran from comment #10)
I guess a sed approach will be easiest.  Can you pull the changes from my patch to update inn-current so it contains your upstream PR so we can validate both ports?
Comment 12 Jose Luis Duran freebsd_committer freebsd_triage 2026-04-09 03:29:32 UTC
Created attachment 269529 [details]
[PATCH] news/inn: Use blocklist

- Includes changes to news/inn-current
- Fixes to the previous news/inn patch

Once upstream publishes a new release, the find/sed can be switched to:

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000
    @${FIND} ${WRKSRC} -type f -exec ${SED} -i '' -e 's/BLOCKLIST/BLACKLIST/g' {} +
    @${FIND} ${WRKSRC} -type f -exec ${SED} -i '' -e 's/Blocklist/Blacklist/g' {} +
    @${FIND} ${WRKSRC} -type f -exec ${SED} -i '' -e 's/blocklist/blacklist/g' {} +
.endif

Thank you!
Comment 13 Kevin Bowling freebsd_committer freebsd_triage 2026-04-09 05:36:59 UTC
(In reply to Jose Luis Duran from comment #12)
Almost there, I think you may need the sed you suggested when BRANCH == 2.8 immeidately and you don't need the second entry in distinfo.

Marking as approve since these are trivial fixups.