Package Details: nethack-x11 3.6.7-1

Git Clone URL: https://aur.archlinux.org/nethack-x11.git (read-only, click to copy)
Package Base: nethack-x11
Description: Single-player roguelike dungeon exploration game (X11 version)
Upstream URL: http://nethack.org/
Keywords: game nethack X11
Licenses: custom
Conflicts: nethack
Submitter: None
Maintainer: Forty-Bot
Last Packager: Forty-Bot
Votes: 34
Popularity: 0.137319
First Submitted: 2008-07-03 18:01 (UTC)
Last Updated: 2023-11-11 22:55 (UTC)

Latest Comments

1 2 3 4 Next › Last »

Forty-Bot commented on 2024-01-09 01:21 (UTC)

It might be even better to set this option in sysconf and leave NETHACKOPTIONS unset. That would allow $NETHACKOPTIONS and ~/.nethackrc to work as documented.

What about something like

NETHACKOPTIONS="windowtype:X11 $NETHACKOPTIONS"

When trying to build, yacc was missing. When I manually installed bison, everything works. Shouldn't bison added as a build dependency?

bison is in base-devel.

teras commented on 2024-01-08 23:16 (UTC)

When trying to build, yacc was missing. When I manually installed bison, everything works. Shouldn't bison added as a build dependency?

jbhr commented on 2023-04-14 07:09 (UTC) (edited on 2023-04-14 16:30 (UTC) by jbhr)

~/.nethackrc not working is owed to setting NETHACKOPTIONS to @/etc/nethackrc in PKGBUILD. I'd recommend setting NETHACKOPTIONS="windowtype:X11" instead. This does set the windowtype while still allowing the user's options file to be read. The warn_unused patch is no longer necessary for 3.6.7.

[Edit]

It might be even better to set this option in sysconf and leave NETHACKOPTIONS unset. That would allow $NETHACKOPTIONS and ~/.nethackrc to work as documented.

ventodc commented on 2023-02-11 14:43 (UTC)

Thanks to kyechou patch, managed to build. The package needs to be updated.

kyechou commented on 2022-09-06 22:07 (UTC)

I encountered the same compilation issue as @tenebraus did. Here's a patch to fix the problem:

diff --git a/include/tradstdc.h b/include/tradstdc.h
index 12a0d4a..710a89d 100644
--- a/include/tradstdc.h
+++ b/include/tradstdc.h
@@ -431,7 +431,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */
 #define NORETURN __attribute__((noreturn))
 /* disable gcc's __attribute__((__warn_unused_result__)) since explicitly
    discarding the result by casting to (void) is not accepted as a 'use' */
-#define __warn_unused_result__ /*empty*/
+#define __warn_unused_result__ __unused__
 #define warn_unused_result /*empty*/
 #endif
 #endif

tenebraus commented on 2022-08-21 22:47 (UTC)

Hey, I'm having trouble compiling this package. Here goes the log below. It has something to do with cdefs.h, and I'm not sure if it's in my end or in the package's.

==> Criando o pacote: nethack-x11 3.6.6-1 (dom 21 ago 2022 19:45:17)
==> Verificando as dependências de tempo de execução...
==> Verificando as dependências de tempo de compilação...
==> Obtendo fontes...
  -> Encontrado nethack-366-src.tgz
  -> Encontrado nethack-x11.patch
  -> Encontrado nethack-x11.png
==> Validando source arquivos com sha256sums...
    nethack-366-src.tgz ... Passou
    nethack-x11.patch ... Passou
    nethack-x11.png ... Passou
==> Extraindo fontes...
  -> Extraindo nethack-366-src.tgz com bsdtar
==> Iniciando prepare()...
[nethack-x11]                     Generating desktop file... ok
patching file include/config.h
patching file include/unixconf.h
patching file src/invent.c
Hunk #1 succeeded at 3532 (offset 49 lines).
patching file sys/unix/Makefile.src
patching file sys/unix/Makefile.top
==> Removendo diretório $pkgdir/ existente...
==> Iniciando build()...
( cd src ; make )
make[1]: Entrando no diretório '/Seagate/Downloads/nethack-x11/src/NetHack-NetHack-3.6.6_Released/src'

touch ../src/config.h-t
cc -g -O -I../include -DNOTPARMDECL -DDLB -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DSYSCF -DSYSCF_FILE=\"/var/games/nethack/sysconf\" -DSECURE -DTIMED_DELAY -DHACKDIR=\"/var/games/nethack/\" -DDUMPLOG -DCONFIG_ERROR_SECURE=FALSE -c monst.c
In file included from monst.c:6:
../include/config.h:314: warning: "DLB" re-definido
  314 | #define DLB /* not supported on all platforms */
      |
<command-line>: note: essa é a localização da definição anterior
../include/config.h:365: warning: "SECURE" re-definido
  365 | #define SECURE /* do setuid(getuid()) after chdir() */
      |
<command-line>: note: essa é a localização da definição anterior
In file included from /usr/include/features.h:490,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../include/global.h:9,
                 from ../include/config.h:581:
/usr/include/sys/cdefs.h:405:73: error: macro "__has_attribute" requires an identifier
  405 | #if __GNUC_PREREQ (3,4) || __glibc_has_attribute (__warn_unused_result__)
      |                                                                         ^
In file included from ../include/global.h:136:
../include/unixconf.h:136: warning: "TIMED_DELAY" re-definido
  136 | #define TIMED_DELAY /* usleep() */
      |
<command-line>: note: essa é a localização da definição anterior
make[1]: *** [Makefile:657: monst.o] Erro 1
make[1]: Saindo do diretório '/Seagate/Downloads/nethack-x11/src/NetHack-NetHack-3.6.6_Released/src'

make: *** [Makefile:161: nethack] Erro 2
==> ERRO: Uma falha ocorreu em build().
    Abortando...

Forty-Bot commented on 2020-10-04 12:23 (UTC)

Hi jfcg, thanks for showing interest in this package.

  • Alternate tilesets are outside the scope of this package. If you would like to add some, feel free to fork this package :)
  • You can set numpad in-game with shift-O, or in your .nethackrc. If you would like to change the defaults, I suggest creating a patch upstream.

jfcg commented on 2020-10-04 10:00 (UTC)

Hi,

Thanks for the nethack-x11 package. I have some suggestions to improve first time user experience:

  • 32x32 tilesets (https://nethackwiki.com/wiki/Tileset) Dawnhack looks more appealing than the default 32x32 tileset. Nevanda looks even better but after converting it to xpm file and replacing x11tiles with it, nethack-x11 does not start. Also options "fullscreen, tile_width:32, tile_height:32" in /etc/nethackrc are necessary for bigger tiles.

  • number_pad:1 option would be more reasonable for easy navigation since this is a gui package.

  • pickup_types:$?!/="+ looks like a reasonable pickup default (https://nethackwiki.com/wiki/Autopickup)

  • when i run nethack-x11 on my current / updated Manjaro laptop, I see messages at the top, map in the middle and status at the bottom as 3 rows. I think it would be much better if messages appear on the bottom right (next to status), and the map covers the mid and upper section of the screen. I tried align_message and align_status options but they did not work (https://nethackwiki.com/wiki/Options).

Thanks..

revealer commented on 2020-05-05 21:50 (UTC)

I have xorg-fonts-misc installed as I saw it as a possible solution on other sites.

Forty-Bot commented on 2020-05-05 20:04 (UTC)

Do you have xorg-fonts-misc installed? If that solves your issue I'll add it as a dependency.