Package Details: nethack4 4.3.0.beta2-2

Git Clone URL: (read-only, click to copy)
Package Base: nethack4
Description: A modern fork of Nethack
Upstream URL:
Licenses: custom
Submitter: keenerd
Maintainer: keenerd
Last Packager: keenerd
Votes: 6
Popularity: 0.000607
First Submitted: 2014-11-11 01:54
Last Updated: 2016-10-14 17:00

Latest Comments

1 2 Next › Last »

fenuks commented on 2019-06-06 20:08

Hacked for a while on the PKGBUILD, and managed to get working version with vastly simplified build file (no binary patching required).

# Maintainer: Kyle Keen <>

pkgdesc="A modern fork of Nethack"
arch=('i686' 'x86_64')
depends=('jansson' 'gcc-libs')
makedepends=('sdl2' 'libpng' 'chrpath')
optdepends=('sdl2: tiles'
            'libpng: tiles')

# postgresql-libs: multiuser server

package() {
  cd "$srcdir/$pkgname-$_pkgver"

  # allow aimake to run as "root"  (fakeroot confuses it)
  sed -i "s/\$os_parsed ne 'MSWin32'/0/" aimake
  # disable check for modified files (refuses to build)
  sed -i "s/\$objtype eq 'path'/0/" aimake

  mkdir -p build && cd build
  msg "Building console version"
  ../aimake --without=jansson --without=gui --without=server --install /usr --destdir "$pkgdir" --override-directory gamesbindir='/usr/bin'

  msg "Building SDL version"
  ../aimake --without=jansson --with=gui --without=server --install /usr --destdir "$pkgdir" --override-directory gamesbindir='/usr/bin'

fenuks commented on 2019-06-06 18:44

@terminalnode @keenerd Error with saving logfile is caused by improper configuration. strace shows that game tries to save in my case in "/home/fenuks/.cache/yay/nethack4/src/nethack4-4.3-beta2/opt00000000000000000000/save/logfile", or in other words, in build directory.

terminalnode commented on 2019-03-24 13:27

Every game after I die I get a message saying the save file is corrupted, and that if I want to report this error at I should include the following information:

Error: Failed to write logfile. Is it writable?

Location: libnethack/srs/topten.c:335

Game ID: <character name>_<some number>

Is this an error with the package or should it be reported to It does happen consistently every game. I'm not sure where the path libnethack is supposed to be located, only that the actual save files are located in ~/.config/NetHack4/<some_number>_<character name>.nhgame (note that it's inverse to the game id, perhaps that's relevant?)

keenerd commented on 2018-09-23 12:06

Builds fine. User fails to share meaningful error messages?

nanohard commented on 2018-09-22 18:20

Fails to build

khau commented on 2016-10-17 21:26

I'm still getting trouble saving (corrupted saves) - I can't quite figure out what is going wrong there, though.

keenerd commented on 2016-10-14 17:02

Should be fixed now, for very hacky values of fixed. There might be a legit way of solving the paths issue with aimake, but I could not find one.

khau commented on 2016-10-14 07:28

I'm getting repeated errors when trying to run the game:

Warning: could not open tileset file
'/home/user/.config/NetHack4/tilesets/textunicode.nh4ct' or

The relevent file exists in /usr/share/nethack4 but it seems that for some reason, the game is searching in the wrong directories.

EDIT: Related problems persists in other areas of the game as well (it cannot find the nhdat, cannot create save file at the moment).

keenerd commented on 2015-09-06 08:42

No build errors with beta2.

irb commented on 2015-07-30 18:30

Compilation error here too:

Building from libuncursed/src/plugins/sdl.c/sdl.c (rule compile_c) produced warnings, with the following command line:
/usr/bin/gcc -c -g -O2 -fno-common -Wall -fvisibility=hidden -fdiagnostics-show-option -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -D_REENTRANT -D_XOPEN_SOURCE=700 --std=c11 -DNETCLIENT -fPIC -o libuncursed/src/plugins/sdl.c/sdl.o -include aimake/aimake_1.h -I libuncursed/include/uncursed.h -I libuncursed/include/uncursed_hooks.h -I libuncursed/include/uncursed_sdl.h libuncursed/src/plugins/sdl.c/sdl.c
/var/cache/pacman/pkg/nethack420297/nethack4/src/libuncursed/src/plugins/sdl.c: In function ‘load_png_file_to_texture’:
/var/cache/pacman/pkg/nethack420297/nethack4/src/libuncursed/src/plugins/sdl.c:125:18: warning: variable ‘rv’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
SDL_Texture *rv = NULL;