public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/aqualung] rawhide: backport patch to fix build with mac-13.40 or later
@ 2026-11-13 11:44 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-11-13 11:44 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/aqualung
Branch : rawhide
Commit : 00246f27e7db88e39142a2356d67ccba64ac200a
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2026-11-13T12:42:04+01:00
Stats  : +38/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/aqualung/c/00246f27e7db88e39142a2356d67ccba64ac200a?branch=rawhide

Log:
backport patch to fix build with mac-13.40 or later

---
diff --git a/aqualung-mac-13.40.patch b/aqualung-mac-13.40.patch
new file mode 100644
index 0000000..3cc57c1
--- /dev/null
+++ b/aqualung-mac-13.40.patch
@@ -0,0 +1,35 @@
+From 668285ea523a4adecbae78ec0e6bedc3640ca6b3 Mon Sep 17 00:00:00 2001
+From: Adam Sampson <ats@offog.org>
+Date: Wed, 21 Oct 2026 15:08:03 +0100
+Subject: [PATCH] Fix build with Monkey's Audio 1340
+
+The error constants were renamed from ERROR_x to APE_ERROR_x.
+---
+ src/decoder/dec_mac.cpp | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/decoder/dec_mac.cpp b/src/decoder/dec_mac.cpp
+index f89450d4..f70e04dd 100644
+--- a/src/decoder/dec_mac.cpp
++++ b/src/decoder/dec_mac.cpp
+@@ -32,6 +32,11 @@
+ #include "../undef_ac_pkg.h"
+ #include <config.h>	/* re-establish undefined autoconf macros */
+ 
++/* error macros were renamed in MAC 1340 */
++#ifndef APE_ERROR_SUCCESS
++#define APE_ERROR_SUCCESS ERROR_SUCCESS
++#endif
++
+ #include "../i18n.h"
+ #include "../metadata.h"
+ #include "../metadata_ape.h"
+@@ -180,7 +185,7 @@ mac_decoder_open(decoder_t * dec, char * filename) {
+         pdecompress = CreateIAPEDecompress(filename_utf16, &ret, FALSE, FALSE, FALSE);
+         delete [] filename_utf16;
+ 
+-        if (!pdecompress || ret != ERROR_SUCCESS) {
++        if (!pdecompress || ret != APE_ERROR_SUCCESS) {
+                 return DECODER_OPEN_BADLIB;
+         }
+ 

diff --git a/aqualung.spec b/aqualung.spec
index e845103..eeda034 100644
--- a/aqualung.spec
+++ b/aqualung.spec
@@ -16,6 +16,8 @@ Patch:          %{name}-add-opus.patch
 Patch:          %{name}-configure-typo.patch
 # https://github.com/jeremyevans/aqualung/pull/43
 Patch:          %{name}-reject-corrupt-ID3v2.patch
+# support mac >= 13.40
+Patch:          https://github.com/jeremyevans/aqualung/commit/668285ea523a4adecbae78ec0e6bedc3640ca6b3.patch#/%{name}-mac-13.40.patch
 
 # autogen.sh
 BuildRequires:  autoconf
@@ -196,6 +198,7 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdat
 %changelog
 * Fri Nov 13 2026 Dominik Mierzejewski <dominik@greysector.net> - 2.0-14
 - Rebuilt for mac-13.46
+- Fixed build with mac-13.40 or later
 
 * Thu Sep 10 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0-13
 - Rebuilt for libxml-2.5.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-13 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 11:44 [rpms/aqualung] rawhide: backport patch to fix build with mac-13.40 or later Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox