gnu: chipmunk: Fix build.

* gnu/packages/game-development.scm (chipmunk)[source]: Don't include
the <sys/sysctl.h> header. It has been removed in glibc since 2.32.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Adam Faiz 2022-11-20 09:25:31 +08:00 committed by Efraim Flashner
parent d09a4cc7c7
commit 3d1a5a3ec7
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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