b/gnu/packages/game-development.scm
@@ -2444,7 +2444,14 @@ (define-public chipmunk
(commit (string-append "Chipmunk-" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1qmkn01g06p3rnhmbyffmjns6wj5vhgf9cscigk3wzxcpwv1hyxb"))))
+ (base32 "1qmkn01g06p3rnhmbyffmjns6wj5vhgf9cscigk3wzxcpwv1hyxb"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; This is fixed in the upstream repository but the fix
+ ;; has not been released.
+ (substitute* "src/cpHastySpace.c"
+ (("#include <sys/sysctl.h>") ""))))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ;no test
From 365ca7ef3d98d3ce1cfff80defea5bbc4ebf5d62 Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 <adam.faiz@disroot.org> Date: Sun, 20 Nov 2022 09:03:29 +0800 Subject: [PATCH] gnu: chipmunk: Fix build. * gnu/packages/game-development.scm (chipmunk): Don't include the <sys/sysctl.h> header. It has been removed in glibc since 2.32. --- gnu/packages/game-development.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)