guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: gnu: chipmunk: Fix build.


From: guix-commits
Subject: 01/05: gnu: chipmunk: Fix build.
Date: Sun, 20 Nov 2022 04:16:38 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 3d1a5a3ec74bab3ce2ddce23b51d5e869df94363
Author: Adam Faiz <adam.faiz@disroot.org>
AuthorDate: Sun Nov 20 09:25:31 2022 +0800

    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>
---
 gnu/packages/game-development.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 90205a89ab..b319f2fef3 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2444,7 +2444,14 @@ computer games, 3D authoring tools and simulation 
tools.")
              (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]