GNU bug report logs - #65827
[PATCH] gnu: Add alure.

Previous Next

Package: guix-patches;

Reported by: Hendursaga <hendursaga <at> aol.com>

Date: Fri, 8 Sep 2023 16:30:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 65827 in the body.
You can then email your comments to 65827 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#65827; Package guix-patches. (Fri, 08 Sep 2023 16:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hendursaga <hendursaga <at> aol.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 08 Sep 2023 16:30:02 GMT) Full text and rfc822 format available.

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

From: Hendursaga <hendursaga <at> aol.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add alure.
Date: Fri,  8 Sep 2023 12:29:08 -0400
* gnu/packages/audio.scm (alure): New variable.
---
 gnu/packages/audio.scm                  | 37 +++++++++++++++++++++++++
 gnu/packages/patches/alure-dumb-2.patch | 30 ++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 gnu/packages/patches/alure-dumb-2.patch

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 48a4f8d536..8f1647bc74 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3330,6 +3330,43 @@ (define-public freealut
     (home-page "https://kcat.strangesoft.net/openal.html")
     (license license:lgpl2.0)))
 
+(define-public alure
+  (package
+    (name "alure")
+    (version "1.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://kcat.tomasu.net/"
+                                  name
+                                  "-releases/"
+                                  name
+                                  "-"
+                                  version
+                                  ".tar.bz2"))
+              (sha256
+               (base32
+                "0w8gsyqki21s1qb2s5ac1kj08i6nc937c0rr08xbw9w9wvd6lpj6"))
+              (patches (search-patches "alure-dumb-2.patch"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f ;no tests
+       #:configure-flags '("-DMODPLUG=ON")))
+    (native-inputs (list pkg-config))
+    (inputs (list dumb
+                  flac
+                  mpg123
+                  libmodplug
+                  libsndfile
+                  libvorbis
+                  openal))
+    (home-page "https://kcat.tomasu.net/alure.html")
+    (synopsis "OpenAL utility library")
+    (description
+     "ALURE is a utility library to help manage common tasks with OpenAL applications.
+This includes device enumeration and initialization, file loading, and
+streaming.")
+    (license license:expat)))
+
 (define-public patchage
   (package
     (name "patchage")
diff --git a/gnu/packages/patches/alure-dumb-2.patch b/gnu/packages/patches/alure-dumb-2.patch
new file mode 100644
index 0000000000..60d18f8570
--- /dev/null
+++ b/gnu/packages/patches/alure-dumb-2.patch
@@ -0,0 +1,30 @@
+Source: https://gitlab.archlinux.org/archlinux/packaging/packages/alure/-/blob/main/dumb-2.patch
+
+diff -Naur a/src/codec_dumb.cpp b/src/codec_dumb.cpp
+--- a/src/codec_dumb.cpp	2011-07-29 09:37:48.000000000 +0100
++++ b/src/codec_dumb.cpp	2020-05-10 15:59:48.502632496 +0100
+@@ -272,7 +272,11 @@
+ 
+ private:
+     // DUMBFILE iostream callbacks
++#if DUMB_VERSION >= 2*10000
++    static int skip(void *user_data, dumb_off_t offset)
++#else
+     static int skip(void *user_data, long offset)
++#endif
+     {
+         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
+         stream->clear();
+@@ -282,7 +286,11 @@
+         return -1;
+     }
+ 
++#if DUMB_VERSION >= 2*10000
++    static dumb_ssize_t read(char *ptr, size_t size, void *user_data)
++#else
+     static long read(char *ptr, long size, void *user_data)
++#endif
+     {
+         std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
+         stream->clear();
+

base-commit: 451ba2e5bb523c18a2ccc941df47b598c48ef57e
-- 
2.40.1





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 18 Sep 2023 21:35:01 GMT) Full text and rfc822 format available.

Notification sent to Hendursaga <hendursaga <at> aol.com>:
bug acknowledged by developer. (Mon, 18 Sep 2023 21:35:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Hendursaga <hendursaga <at> aol.com>
Cc: 65827-done <at> debbugs.gnu.org
Subject: Re: bug#65827: [PATCH] gnu: Add alure.
Date: Mon, 18 Sep 2023 23:34:41 +0200
[Message part 1 (text/plain, inline)]
Hi,

Hendursaga <hendursaga <at> aol.com> skribis:

> * gnu/packages/audio.scm (alure): New variable.

Applied with the changes below.

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/local.mk b/gnu/local.mk
index de3cb0332c..e05f687467 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -902,6 +902,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/akonadi-not-relocatable.patch		\
   %D%/packages/patches/akonadi-timestamps.patch		\
   %D%/packages/patches/allegro-mesa-18.2.5-and-later.patch	\
+  %D%/packages/patches/alure-dumb-2.patch			\
   %D%/packages/patches/ibus-anthy-fix-tests.patch		\
   %D%/packages/patches/ibus-table-paths.patch			\
   %D%/packages/patches/anki-mpv-args.patch			\
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 9213186ada..5136d5c9cf 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3336,13 +3336,8 @@ (define-public alure
     (version "1.2")
     (source (origin
               (method url-fetch)
-              (uri (string-append "https://kcat.tomasu.net/"
-                                  name
-                                  "-releases/"
-                                  name
-                                  "-"
-                                  version
-                                  ".tar.bz2"))
+              (uri (string-append "https://kcat.tomasu.net/alure-releases/"
+                                  "alure-" version ".tar.bz2"))
               (sha256
                (base32
                 "0w8gsyqki21s1qb2s5ac1kj08i6nc937c0rr08xbw9w9wvd6lpj6"))

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

This bug report was last modified 1 year and 207 days ago.

Previous Next


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