guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 78016f707b7a25d18991e96ead9aa90d83f0374e
Author: bdunahu <[email protected]>
AuthorDate: Fri Jul 24 20:18:37 2026 -0400
gnu: sfxr: Fix runtime.
A function failed to return a bool, which g++ decided was not allowed.
* gnu/packages/game-development.scm (sfxr)[#:phases]: Add
‘fix-undefined-no-return’.
Fixes: guix/guix!9965
Merges: guix/guix#10163
Signed-off-by: Liliana Marie Prikler <[email protected]>
---
gnu/packages/game-development.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/game-development.scm
b/gnu/packages/game-development.scm
index 53a37ae64d..a3697e91f9 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1305,6 +1305,14 @@ window, graphics, audio and network.")
(arguments
`(#:phases (modify-phases %standard-phases
(delete 'configure) ; no configure script
+ (add-before 'build 'fix-undefined-no-return
+ ;; The function is missing a return statement but
+ ;; says it'll return bool...
+ ;; Callees aren't expecting anything!
+ (lambda _
+ (substitute* "sdlkit.h"
+ (("static bool ddkLock")
+ "static void ddkLock"))))
(add-before 'build 'patch-makefile
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))