summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorbdunahu <bdunahu@operationnull.com>2026-03-26 16:07:07 -0400
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-04-04 18:27:03 +0200
commitddf9f96d916da7602e997fd7d9f5d217bcf59d8e (patch)
treed12225ab3d191b67b8fcfbf8ed4da2446b0632e6 /gnu
parent37bb79a391c6be63aacac11da6d6e12c08759a3a (diff)
gnu: angband: Update to 4.2.6.
* gnu/packages/games.scm (angband): Update to 4.2.6. [source]: Delete non-free and unused Windows libraries. [arguments]:<#:phases>: Add 'fix-infinite-loop-on-sighup to prevent SIGHUP from triggering an infinite loop. Change-Id: I865d80f02e1ee815ea3fdabfe6999ae13e4120a9 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/games.scm21
1 files changed, 17 insertions, 4 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c7b22b6f2e3..04a934882bd 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3964,7 +3964,7 @@ that beneath its ruins lay buried an ancient evil.")
(define-public angband
(package
(name "angband")
- (version "4.2.5")
+ (version "4.2.6")
(source
(origin
(method git-fetch)
@@ -3973,7 +3973,7 @@ that beneath its ruins lay buried an ancient evil.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0kg6npbfy42mhggsqvs04khc8198i980z52xm59pws29698qazaw"))
+ (base32 "0hgzdvlh0j42w4q9kch9xvhnbvcrypac01xhpksw35gj9my887cp"))
(modules '((guix build utils)))
(snippet
;; So, some of the sounds/graphics/tilesets are under different
@@ -3989,11 +3989,24 @@ that beneath its ruins lay buried an ancient evil.")
(substitute* "lib/Makefile"
;; And don't try to invoke makefiles in the directories we removed.
(("gamedata customize help screens fonts tiles sounds icons user")
- "gamedata customize help screens user"))))))
+ "gamedata customize help screens user"))
+ ;; Remove nonfree .dll files too.
+ (delete-file-recursively "src/win")))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no check target
- #:configure-flags (list (string-append "--bindir=" %output "/bin"))))
+ #:configure-flags (list (string-append "--bindir=" %output "/bin"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'fix-infinite-loop-on-sighup
+ ;; XXX Release 4.2.6 has a major bug where sending the process a
+ ;; SIGHUP when closing the terminal causes it to infinite loop
+ ;; waiting for input: https://github.com/angband/angband/issues/6558
+ ;; Reevaluate for future versions.
+ (lambda _
+ (substitute* "src/ui-signals.c"
+ (("(SIGHUP, )SIG_IGN" _ first)
+ (string-append first "handle_signal_abort"))))))))
(native-inputs (list autoconf automake))
(inputs (list ncurses))
(home-page "https://rephial.org/")