all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Faiz via Guix-patches via <guix-patches@gnu.org>
To: 59395@debbugs.gnu.org
Subject: [bug#59395] [PATCH] gnu: chipmunk: Fix build.
Date: Sun, 20 Nov 2022 09:25:31 +0800	[thread overview]
Message-ID: <02d3d385-a7fd-2de4-bd2d-0e437fc0f90c@disroot.org> (raw)

 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(-)

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




             reply	other threads:[~2022-11-20  1:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20  1:25 Adam Faiz via Guix-patches via [this message]
2022-11-20  1:28 ` [bug#59395] [PATCH] gnu: chipmunk: Use gexps Adam Faiz via Guix-patches via
2022-11-20  9:16 ` bug#59395: [PATCH] gnu: chipmunk: Fix build Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02d3d385-a7fd-2de4-bd2d-0e437fc0f90c@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=59395@debbugs.gnu.org \
    --cc=adam.faiz@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.