[packages/libtunepimp] fix build by using correct functions
atler
atler at pld-linux.org
Sun Feb 16 14:26:23 CET 2025
commit 6e652c338220adf030be78815873a2c2f18982c6
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Feb 16 13:38:44 2025 +0100
fix build by using correct functions
build.patch | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
libtunepimp.spec | 2 ++
2 files changed, 50 insertions(+)
---
diff --git a/libtunepimp.spec b/libtunepimp.spec
index 3f081c1..70f3397 100644
--- a/libtunepimp.spec
+++ b/libtunepimp.spec
@@ -16,6 +16,7 @@ Patch0: %{name}-ltdl.patch
Patch1: %{name}-mp4v2.patch
Patch2: %{name}-gcc43.patch
Patch3: gcc44.patch
+Patch4: build.patch
URL: https://wiki.musicbrainz.org/libtunepimp
BuildRequires: autoconf >= 2.52
BuildRequires: automake
@@ -92,6 +93,7 @@ Wiązania Pythona do biblioteki libtunepimp.
%patch -P2 -p1
%patch -P3 -p1
%patch -P1 -p1
+%patch -P4 -p1
%{__sed} -i 's/ -O2//' configure.in
%{__sed} -i 's/lt_dlhandle_struct \*/lt_dlhandle/' lib/plugins.cpp
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..be6c162
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,48 @@
+--- libtunepimp-0.5.3/plugins/mp3/id3tag-2.3/file.c.orig 2006-11-18 11:51:07.000000000 +0100
++++ libtunepimp-0.5.3/plugins/mp3/id3tag-2.3/file.c 2025-02-16 13:02:21.819958859 +0100
+@@ -38,6 +38,7 @@
+
+ # include "id3tag.h"
+ # include "file.h"
++# include "frame.h"
+ # include "tag.h"
+ # include "field.h"
+ # include "fileio.h"
+@@ -125,7 +126,7 @@
+ {
+ genreframe = id3_2_3_tag_findframe(tag, "TCON", 0);
+ if (genreframe)
+- id3_2_3_tag_addref(genreframe);
++ id3_2_3_frame_addref(genreframe);
+ id3_2_3_tag_clearframes(tag);
+ }
+
+@@ -141,7 +142,7 @@
+ if (!hasGenre && genreframe)
+ {
+ id3_2_3_tag_attachframe(tag, genreframe);
+- id3_2_3_tag_delref(genreframe);
++ id3_2_3_frame_delref(genreframe);
+ }
+ }
+
+--- libtunepimp-0.5.3/plugins/mp3/id3tag-2.3/frame.c.orig 2006-11-18 11:51:07.000000000 +0100
++++ libtunepimp-0.5.3/plugins/mp3/id3tag-2.3/frame.c 2025-02-16 13:28:34.923069932 +0100
+@@ -367,7 +367,7 @@
+ goto fail;
+
+ *ptr += 4;
+- uint_size = id3_parse_uint(ptr, 4);
++ uint_size = id3_2_3_parse_uint(ptr, 4);
+ *ptr -= 4;
+ size = id3_2_3_parse_syncsafe(ptr, 4);
+ flags = id3_2_3_parse_uint(ptr, 2);
+@@ -377,7 +377,7 @@
+
+ /* fix Apple's screwed up tags */
+ if (uint_size >= 32767)
+- if (!id3_frametype_lookup(id + size, 4))
++ if (!id3_2_3_frametype_lookup(id + size, 4))
+ size = uint_size;
+
+ if (size > end - *ptr)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libtunepimp.git/commitdiff/6e652c338220adf030be78815873a2c2f18982c6
More information about the pld-cvs-commit
mailing list