GNU bug report logs - #76719
[PATCH 0/2] Update Dosbox-Staging.

Previous Next

Package: guix-patches;

Reported by: Andrew Wong <wongandj <at> icloud.com>

Date: Mon, 3 Mar 2025 20:29: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 76719 in the body.
You can then email your comments to 76719 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 adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#76719; Package guix-patches. (Mon, 03 Mar 2025 20:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Wong <wongandj <at> icloud.com>:
New bug report received and forwarded. Copy sent to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Mon, 03 Mar 2025 20:29:02 GMT) Full text and rfc822 format available.

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

From: Andrew Wong <wongandj <at> icloud.com>
To: guix-patches <at> gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH 0/2] Update Dosbox-Staging.
Date: Mon,  3 Mar 2025 15:28:29 -0500
This patch series updates dosbox-staging and adds mt32emu. It also enables mt-32 emulation support.

Andrew Wong (2):
  gnu: Add mt32emu.
  gnu: dosbox-staging: Update to 0.82.0.

 gnu/packages/audio.scm     | 30 ++++++++++++++++++++++++++++++
 gnu/packages/emulators.scm | 23 +++++++----------------
 2 files changed, 37 insertions(+), 16 deletions(-)


base-commit: 5f4c785fc3caa0fd960ebcf9c1ea6ab396b96f25
-- 
2.48.1





Information forwarded to gabriel <at> erlikon.ch, guix-patches <at> gnu.org:
bug#76719; Package guix-patches. (Mon, 03 Mar 2025 20:31:01 GMT) Full text and rfc822 format available.

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

From: Andrew Wong <wongandj <at> icloud.com>
To: 76719 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH 1/2] gnu: Add mt32emu.
Date: Mon,  3 Mar 2025 15:30:22 -0500
* gnu/packages/audio.scm (mt32emu): New variable.

Change-Id: I458e4722ac012935814643a2925e185c46ecaba3
---
 gnu/packages/audio.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 9f50f7f940..1b134cd911 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -2030,6 +2030,36 @@ (define-public midicomp
       (home-page "https://github.com/markc/midicomp")
       (license license:agpl3))))
 
+(use-modules (guix build utils))
+(define-public mt32emu
+  (package
+    (name "mt32emu")
+    (version "2.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/munt/munt")
+             (commit (string-append "libmt32emu_"
+                                    (string-replace-substring
+                                     version "." "_")))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "06d3jzx69nwy9jj6jv9q6rhq5399mp51w6d5mijg3fmwr4al13fd"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:tests? #f
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'unpack 'chdir
+                     (lambda _ (chdir "mt32emu"))))))
+    (home-page "https://sourceforge.net/projects/munt/")
+    (synopsis "Pre-GM Roland MIDI device emulator")
+    (description "libmt32emu is a C/C++ library which approximately emulates
+the Roland MT-32, CM-32L and LAPC-I synthesizer modules. It is part of the
+Munt project.")
+    (license license:gpl2+)))
+
 (define-public clalsadrv
   (package
     (name "clalsadrv")
-- 
2.48.1





Information forwarded to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#76719; Package guix-patches. (Mon, 03 Mar 2025 20:31:02 GMT) Full text and rfc822 format available.

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

From: Andrew Wong <wongandj <at> icloud.com>
To: 76719 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH 2/2] gnu: dosbox-staging: Update to 0.82.0.
Date: Mon,  3 Mar 2025 15:30:23 -0500
* gnu/packages/emulators.scm (dosbox-staging): Update to 0.82.0.
[arguments]: Enable MT-32 emulation.
[inputs]: Add mt32emu, googletest.

Change-Id: Ia8ccdd533be6932e2e4fc3660cb472791194523a
---
 gnu/packages/emulators.scm | 23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 0eafc3df9e..15fdc163ec 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -571,7 +571,7 @@ (define-public dosbox-staging
   ;; This is not a patch staging area for DOSBox, but an unaffiliated fork.
   (package
     (name "dosbox-staging")
-    (version "0.81.0")
+    (version "0.82.0")
     (source
      (origin
        (method git-fetch)
@@ -580,32 +580,23 @@ (define-public dosbox-staging
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1fkshxaq12pd72v8m2f3a6d6jk9gh39hn0846gfkfinvw7yykzrl"))))
+        (base32 "1s4c6fiyjm91dnmkval9fvsqszc6yjq5b6pq895xi606dn29b85d"))))
     (build-system meson-build-system)
     (arguments
-     (list #:configure-flags
-           #~(list
-              ;; These both try to git clone subprojects.
-              "-Dunit_tests=disabled"   ; gtest
-              "-Duse_mt32emu=false")
-           #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'unpack 'fix-includes
-                 (lambda _
-                   ;; This unnecessary file has an encoding error.
-                   (delete-file "./src/libs/sdlcd/macosx/SDLOSXCAGuard.h")
-                   (substitute* (find-files "." "\\.(cpp|h)")
-                     (("^(#[[:space:]]*include <)(SDL[_.])" _ include file)
-                      (string-append include "SDL2/" file))))))))
+     ;; The tests expect a traditional directory layout.
+     ;; TODO: find a way to "pick out" the bad test(s).
+     (list #:tests? #f))
     (native-inputs
      (list pkg-config))
     (inputs
      (list alsa-lib
            fluidsynth
+           googletest
            iir
            libpng
            libslirp
            mesa
+           mt32emu
            opusfile
            sdl2
            sdl2-image
-- 
2.48.1





Information forwarded to guix-patches <at> gnu.org:
bug#76719; Package guix-patches. (Tue, 04 Mar 2025 10:21:01 GMT) Full text and rfc822 format available.

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

From: Gabriel Wicki <gabriel <at> erlikon.ch>
To: Andrew Wong <wongandj <at> icloud.com>
Cc: 76719 <at> debbugs.gnu.org
Subject: Re: [bug#76719] [PATCH 1/2] gnu: Add mt32emu.
Date: Tue, 4 Mar 2025 11:19:52 +0100
Hi there!

First of all: thanks for your time and effort.

On Mon, Mar 03, 2025 at 03:30:22PM -0500, Andrew Wong wrote:
> +(use-modules (guix build utils))
This is usually part of the header of the scheme module.

> +    (arguments
> +     (list
> +      #:tests? #f
Please comment why tests are deactivated - are they missing?

> +      #:phases #~(modify-phases %standard-phases
> +                   (add-after 'unpack 'chdir
> +                     (lambda _ (chdir "mt32emu"))))))
Not sure if this couldn't be specified in a dedicated argument for the
cmake-build-system.  But if it works (and this argument does not exist)
this is ok to me.


Otherwise this patch looks good to me.


Thanks again
gabber




Information forwarded to gabriel <at> erlikon.ch, guix-patches <at> gnu.org:
bug#76719; Package guix-patches. (Tue, 04 Mar 2025 18:49:04 GMT) Full text and rfc822 format available.

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

From: Andrew Wong <wongandj <at> icloud.com>
To: 76719 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH v2 1/2] gnu: Add mt32emu.
Date: Tue,  4 Mar 2025 13:47:42 -0500
* gnu/packages/audio.scm (mt32emu): New variable.

Change-Id: I458e4722ac012935814643a2925e185c46ecaba3
---
 gnu/packages/audio.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 9f50f7f940..d592f33c5e 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -53,6 +53,7 @@
 ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2025 Junker <dk <at> junkeria.club>
 ;;; Copyright © 2025 Sughosha <sughosha <at> disroot.org>
+;;; Copyright © 2025 Andrew Wong <wongandj <at> icloud.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2030,6 +2031,34 @@ (define-public midicomp
       (home-page "https://github.com/markc/midicomp")
       (license license:agpl3))))
 
+(define-public mt32emu
+  (package
+    (name "mt32emu")
+    (version "2.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/munt/munt")
+             (commit
+              (string-append "libmt32emu_"
+                             (string-replace-substring version "." "_")))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "06d3jzx69nwy9jj6jv9q6rhq5399mp51w6d5mijg3fmwr4al13fd"))))
+    (build-system cmake-build-system)
+    (arguments (list
+                #:tests? #f             ;no tests.
+                #:configure-flags #~(list "-Dmunt_WITH_MT32EMU_SMF2WAV=FALSE"
+                                          "-Dmunt_WITH_MT32EMU_QT=FALSE")))
+    (home-page "https://sourceforge.net/projects/munt/")
+    (synopsis "Pre-GM Roland MIDI device emulator")
+    (description
+     "libmt32emu is a C/C++ library which approximately emulates
+the Roland MT-32, CM-32L and LAPC-I synthesizer modules. It is part of the
+Munt project.")
+    (license license:gpl2+)))
+
 (define-public clalsadrv
   (package
     (name "clalsadrv")

base-commit: 5f4c785fc3caa0fd960ebcf9c1ea6ab396b96f25
-- 
2.48.1





Information forwarded to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#76719; Package guix-patches. (Tue, 04 Mar 2025 18:49:04 GMT) Full text and rfc822 format available.

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

From: Andrew Wong <wongandj <at> icloud.com>
To: 76719 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH v2 2/2] gnu: dosbox-staging: Update to 0.82.0.
Date: Tue,  4 Mar 2025 13:47:43 -0500
* gnu/packages/emulators.scm (dosbox-staging): Update to 0.82.0.
[arguments]: Enable MT-32 emulation.
[inputs]: Add mt32emu, googletest.

Change-Id: Ia8ccdd533be6932e2e4fc3660cb472791194523a
---
 gnu/packages/emulators.scm | 23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 0eafc3df9e..15fdc163ec 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -571,7 +571,7 @@ (define-public dosbox-staging
   ;; This is not a patch staging area for DOSBox, but an unaffiliated fork.
   (package
     (name "dosbox-staging")
-    (version "0.81.0")
+    (version "0.82.0")
     (source
      (origin
        (method git-fetch)
@@ -580,32 +580,23 @@ (define-public dosbox-staging
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1fkshxaq12pd72v8m2f3a6d6jk9gh39hn0846gfkfinvw7yykzrl"))))
+        (base32 "1s4c6fiyjm91dnmkval9fvsqszc6yjq5b6pq895xi606dn29b85d"))))
     (build-system meson-build-system)
     (arguments
-     (list #:configure-flags
-           #~(list
-              ;; These both try to git clone subprojects.
-              "-Dunit_tests=disabled"   ; gtest
-              "-Duse_mt32emu=false")
-           #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'unpack 'fix-includes
-                 (lambda _
-                   ;; This unnecessary file has an encoding error.
-                   (delete-file "./src/libs/sdlcd/macosx/SDLOSXCAGuard.h")
-                   (substitute* (find-files "." "\\.(cpp|h)")
-                     (("^(#[[:space:]]*include <)(SDL[_.])" _ include file)
-                      (string-append include "SDL2/" file))))))))
+     ;; The tests expect a traditional directory layout.
+     ;; TODO: find a way to "pick out" the bad test(s).
+     (list #:tests? #f))
     (native-inputs
      (list pkg-config))
     (inputs
      (list alsa-lib
            fluidsynth
+           googletest
            iir
            libpng
            libslirp
            mesa
+           mt32emu
            opusfile
            sdl2
            sdl2-image
-- 
2.48.1





Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Wed, 05 Mar 2025 07:40:01 GMT) Full text and rfc822 format available.

Notification sent to Andrew Wong <wongandj <at> icloud.com>:
bug acknowledged by developer. (Wed, 05 Mar 2025 07:40:02 GMT) Full text and rfc822 format available.

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

From: 宋文武 <iyzsong <at> envs.net>
To: Andrew Wong <wongandj <at> icloud.com>
Cc: 76719-done <at> debbugs.gnu.org,
 Liliana Marie Prikler <liliana.prikler <at> gmail.com>,
 Adam Faiz <adam.faiz <at> disroot.org>
Subject: Re: [bug#76719] [PATCH v2 2/2] gnu: dosbox-staging: Update to 0.82.0.
Date: Wed, 05 Mar 2025 15:43:32 +0800
Andrew Wong <wongandj <at> icloud.com> writes:

> * gnu/packages/emulators.scm (dosbox-staging): Update to 0.82.0.
> [arguments]: Enable MT-32 emulation.
> [inputs]: Add mt32emu, googletest.

Pushed to master, with skip-failing-tests phase added, thanks.




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

This bug report was last modified 138 days ago.

Previous Next


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