GNU bug report logs - #63347
[PATCH 1/2] gnu: raylib: Update to 4.5.0.

Previous Next

Package: guix-patches;

Reported by: iyzsong <at> envs.net

Date: Sun, 7 May 2023 11:50:02 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63347 in the body.
You can then email your comments to 63347 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#63347; Package guix-patches. (Sun, 07 May 2023 11:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to iyzsong <at> envs.net:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 07 May 2023 11:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: iyzsong <at> envs.net
To: guix-patches <at> gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: [PATCH 1/2] gnu: raylib: Update to 4.5.0.
Date: Sun,  7 May 2023 19:48:48 +0800
From: 宋文武 <iyzsong <at> member.fsf.org>

* gnu/packages/game-development.scm (raylib): Update to 4.5.0.
---
 gnu/packages/game-development.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 844ce935ae..560765fd64 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2853,7 +2853,7 @@ (define-public recastnavigation
 (define-public raylib
   (package
     (name "raylib")
-    (version "4.2.0")
+    (version "4.5.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -2863,7 +2863,7 @@ (define-public raylib
               ;; TODO: Unbundle src/external
               (sha256
                (base32
-                "14v5iwxh8grywiyw9agpd2sfpyriq1rwwkd9f2s4iihh0z5j7hk8"))))
+                "00y8fsa4g9fk93s3wihbxl929m84hw3fflr0h409s3i1kfmv7ajj"))))
     (build-system cmake-build-system)
     (arguments
      (list #:tests? #f  ;no test

base-commit: 7612610c44f16fc8f2ff395d9a2d58101a7356aa
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#63347; Package guix-patches. (Sun, 07 May 2023 11:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 63347 <at> debbugs.gnu.org (full text, mbox):

From: iyzsong <at> envs.net
To: 63347 <at> debbugs.gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: [PATCH 2/2] raylib: Fix audio and use system glfw.
Date: Sun,  7 May 2023 19:50:49 +0800
From: 宋文武 <iyzsong <at> member.fsf.org>

* gnu/packages/game-development.scm (raylib)[inputs]: Use glfw and pluseaudio.
[arguments]: Set flags for glfw and pulseaudio.
---
 gnu/packages/game-development.scm | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 560765fd64..0d519fb7ed 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2868,14 +2868,22 @@ (define-public raylib
     (arguments
      (list #:tests? #f  ;no test
            #:configure-flags
-           #~(list "-DBUILD_SHARED_LIBS=ON" )))
-    (inputs (list alsa-lib
-                  libx11
-                  libxrandr
-                  libxi
-                  libxinerama
-                  libxcursor
-                  mesa))
+           #~(list "-DBUILD_SHARED_LIBS=ON"
+                   "-DUSE_EXTERNAL_GLFW=ON"
+                   "-DCMAKE_C_FLAGS=-lpulse")
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'configure 'configure-miniaudio
+                 ;; Use PulseAudio as raudio backend.
+                 (lambda _
+                   (substitute* "src/raudio.c"
+                     (("^#include \"external/miniaudio\\.h\"") "
+#define MA_NO_RUNTIME_LINKING
+#define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
+#define MA_ENABLE_PULSEAUDIO
+#include \"external/miniaudio.h\"
+")))))))
+    (inputs (list glfw pulseaudio))
     (native-inputs (list pkg-config))
     (synopsis "C library for videogame programming")
     (description
-- 
2.39.2





Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Sat, 13 May 2023 09:37:01 GMT) Full text and rfc822 format available.

Notification sent to iyzsong <at> envs.net:
bug acknowledged by developer. (Sat, 13 May 2023 09:37:01 GMT) Full text and rfc822 format available.

Message #13 received at 63347-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: 63347-done <at> debbugs.gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: Re: bug#63347: [PATCH 1/2] gnu: raylib: Update to 4.5.0.
Date: Sat, 13 May 2023 17:36:33 +0800
Pushed now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Jun 2023 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 292 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.