Bug 295021 - [new port] games/nethack50: new version 5.0
Summary: [new port] games/nethack50: new version 5.0
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: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-05 11:32 UTC by Adriaan de Groot
Modified: 2026-10-18 15:54 UTC (History)
1 user (show)

See Also:


Attachments
tarball of port directory (4.59 KB, application/gzip)
2026-05-05 15:51 UTC, Adriaan de Groot
no flags Details
nethack50.diff (15.56 KB, patch)
2026-08-11 02:16 UTC, Mark Linimon
no flags Details | Diff
My atttempt at a nethack-5.0.0 port (30.76 KB, text/plain)
2026-10-18 15:54 UTC, dfr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adriaan de Groot freebsd_committer freebsd_triage 2026-05-05 11:32:24 UTC
There's a new release of NetHack. Instead of 3.7, it has been called 5.0. The build is a bit weird because of a new Lua dependency, and I've borged together an ncurses-port for it.
Comment 1 Adriaan de Groot freebsd_committer freebsd_triage 2026-05-05 11:33:02 UTC
Assigning to glewis@ as the owner of other NetHack ports.
Comment 2 Adriaan de Groot freebsd_committer freebsd_triage 2026-05-05 15:51:14 UTC
Created attachment 270430 [details]
tarball of port directory

This is what I got so far, which is just banging away on the existing nethack36 makefile and then stripping out everything that isn't easy. I threw out most of the existing patches -- too many, probably, since now it expects /usr/games/lib/nethackdir to exist.

Creating /usr/games/lib and symlinking the directory does work, though.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2026-08-11 02:16:19 UTC
Created attachment 273608 [details]
nethack50.diff

^Triage: replace .tgz file with git diff (now preferred).

Note that this does not yet pass portlint.
Comment 4 dfr 2026-10-17 11:06:28 UTC
I tried to build this but it failed while trying to stage the manpages. It looks like the patch for Makefile.doc is wrong:

You may also want to reinstall the man pages via the doc Makefile.
mkdir -p /projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6
cat nethack.6 | ../util/makedefs --grep --input - --output - > /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/nethack.6
/bin/sh: cannot create /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/nethack.6: No such file or directory
*** Error code 2 (ignored)
cat recover.6 | ../util/makedefs --grep --input - --output - > /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/recover.6
/bin/sh: cannot create /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/recover.6: No such file or directory
*** Error code 2 (ignored)
cat dlb.6 | ../util/makedefs --grep --input - --output - > /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/dlb.6
/bin/sh: cannot create /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/dlb.6: No such file or directory
*** Error code 2 (ignored)
cat makedefs.6 | ../util/makedefs --grep --input - --output - > /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/makedefs.6
/bin/sh: cannot create /projects/freebsd/ports/games/nethack50/work/stage/projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/man/man6/makedefs.6: No such file or directory
*** Error code 2 (ignored)
install  -m 0644 /projects/freebsd/ports/games/nethack50/work/NetHack-NetHack-5.0.0_Released/doc/Guidebook.txt /projects/freebsd/ports/games/nethack50/work/stage/usr/local/share/doc/nethack50
====> Compressing man pages (compress-man)
Comment 5 dfr 2026-10-18 15:54:30 UTC
Created attachment 275916 [details]
My atttempt at a nethack-5.0.0 port

I took a copy of nethack37 and ported the patches forward to 5.0.0 manually (which was a pain). This version avoids the references to /usr/games and produces a working installable package with 'make package'. It doesn't build for X11 yet but does seem to work with tty and curses.