diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-06-19 18:12:14 -0400 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-06-27 22:38:22 +0200 |
| commit | d17c7e24b3e11c988e509012e2ee7dfdfb2b95dc (patch) | |
| tree | 08eed77f47e94150450ca2efb4cf8df90e3090c2 /gnu/packages/games.scm | |
| parent | 5eade2a1e3d1cb350a9e9d143008bad676db972d (diff) | |
gnu: nethack: Use gzip and always link with tinfo.
The tests and dependent projects also use build systems which assume tinfo and
ncurses are compiled into the same shared library file. This avoids linker errors.
* gnu/packages/games.scm (nethack)[#:make-flags]: Add LIBS=-ltinfo. Remove
CFLAGS.
[#:phases]: Adjust 'patch-paths' to find gzip. Remove 'add-compression'.
[inputs]: Add gzip. Remove ncompress.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/games.scm')
| -rw-r--r-- | gnu/packages/games.scm | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 0a95d7eacdc..02d8e0438e1 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm | |||
| @@ -2826,8 +2826,8 @@ watch your CPU playing while enjoying a cup of tea!") | |||
| 2826 | #:make-flags | 2826 | #:make-flags |
| 2827 | #~(list | 2827 | #~(list |
| 2828 | (string-append "PREFIX=" #$output) | 2828 | (string-append "PREFIX=" #$output) |
| 2829 | ;; Add the -W without overwriting the -I and -D. | 2829 | ;; Without this, build system assumes ncurses and tinfo are combined. |
| 2830 | "CFLAGS=-g -O2 -I../include -DNOTPARMDECL -Wno-error=cast-qual" | 2830 | "LIBS=-ltinfo" |
| 2831 | (string-append "CC=" #$(cc-for-target)) | 2831 | (string-append "CC=" #$(cc-for-target)) |
| 2832 | (string-append "GREPPATH=" | 2832 | (string-append "GREPPATH=" |
| 2833 | (search-input-file %build-inputs "/bin/grep"))) | 2833 | (search-input-file %build-inputs "/bin/grep"))) |
| @@ -2871,15 +2871,9 @@ watch your CPU playing while enjoying a cup of tea!") | |||
| 2871 | (substitute* "sys/unix/sysconf" | 2871 | (substitute* "sys/unix/sysconf" |
| 2872 | (("^.*GREPPATH[^\n]+") | 2872 | (("^.*GREPPATH[^\n]+") |
| 2873 | (string-append "GREPPATH=" | 2873 | (string-append "GREPPATH=" |
| 2874 | (search-input-file inputs "/bin/grep")))))) | 2874 | (search-input-file inputs "/bin/grep")))) |
| 2875 | (add-before 'configure 'add-compression | 2875 | (substitute* "sys/unix/hints/linux.500" |
| 2876 | (lambda* (#:key inputs #:allow-other-keys) | 2876 | (("/bin/gzip") (search-input-file inputs "bin/gzip"))))) |
| 2877 | (substitute* "include/config.h" | ||
| 2878 | (("^.*define COMPRESS [^\n]+") | ||
| 2879 | (string-append | ||
| 2880 | "#define COMPRESS \"" | ||
| 2881 | (search-input-file inputs "/bin/compress") | ||
| 2882 | "\""))))) | ||
| 2883 | (add-before 'configure 'make-reproducible | 2877 | (add-before 'configure 'make-reproducible |
| 2884 | (lambda _ | 2878 | (lambda _ |
| 2885 | (substitute* "include/config.h" | 2879 | (substitute* "include/config.h" |
| @@ -2946,9 +2940,9 @@ done | |||
| 2946 | pkg-config)) | 2940 | pkg-config)) |
| 2947 | (inputs | 2941 | (inputs |
| 2948 | (list grep | 2942 | (list grep |
| 2943 | gzip | ||
| 2949 | less | 2944 | less |
| 2950 | lua-5.4 | 2945 | lua-5.4 |
| 2951 | ncompress | ||
| 2952 | ncurses/tinfo | 2946 | ncurses/tinfo |
| 2953 | perl)) | 2947 | perl)) |
| 2954 | (home-page "https://nethack.org") | 2948 | (home-page "https://nethack.org") |
