[packages/libgpod] Rel 14; build fix (but dotnet disabled)

arekm arekm at pld-linux.org
Sat Aug 2 22:31:07 CEST 2025


commit d2c4fa1c59c2ad305c7e8efcb4dd25b63a430224
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Aug 2 22:31:00 2025 +0200

    Rel 14; build fix (but dotnet disabled)

 build.patch  | 31 +++++++++++++++++++++++++++++++
 libgpod.spec |  7 +++++--
 2 files changed, 36 insertions(+), 2 deletions(-)
---
diff --git a/libgpod.spec b/libgpod.spec
index 5d897f0..8ed59cb 100644
--- a/libgpod.spec
+++ b/libgpod.spec
@@ -7,7 +7,7 @@
 # - mountdir perms?: %dir %{_localstatedir}/run/%{name}
 #
 # Conditional build:
-%bcond_without	dotnet	# .NET bindings
+%bcond_with	dotnet	# .NET bindings
 %bcond_without	python	# Python bindings
 
 %ifarch x32
@@ -18,7 +18,7 @@ Summary:	Shared library to access the contents of an iPod
 Summary(pl.UTF-8):	Biblioteka współdzielona do dostępu do zawartości iPodów
 Name:		libgpod
 Version:	0.8.3
-Release:	13
+Release:	14
 License:	GPL v2
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2
@@ -29,6 +29,7 @@ Patch1:		%{name}-monodir.patch
 Patch2:		mono4.patch
 Patch3:		%{name}-swig.patch
 Patch4:		%{name}-libplist.patch
+Patch5:		build.patch
 URL:		http://www.gtkpod.org/libgpod/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake
@@ -189,6 +190,7 @@ Pliki programistyczne biblioteki C#/.NET libgpod-sharp.
 %patch -P2 -p1
 %patch -P3 -p1
 %patch -P4 -p1
+%patch -P5 -p1
 
 %build
 %{__gtkdocize}
@@ -200,6 +202,7 @@ Pliki programistyczne biblioteki C#/.NET libgpod-sharp.
 %{__autoheader}
 %{__automake}
 %configure \
+	PYTHON=%{__python} \
 	--disable-silent-rules \
 	--enable-gtk-doc \
 	--enable-mono%{!?with_dotnet:=no} \
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..9870462
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,31 @@
+--- libgpod-0.8.3/src/ithumb-writer.c.org	2011-07-24 13:08:03.000000000 +0200
++++ libgpod-0.8.3/src/ithumb-writer.c	2025-08-02 22:24:53.587061652 +0200
+@@ -728,7 +728,7 @@ ithumb_writer_handle_rotation (GdkPixbuf
+   {
+       return gdk_pixbuf_rotate_simple (pixbuf, *rotation);
+   }
+-  return g_object_ref (G_OBJECT (pixbuf));
++  return GDK_PIXBUF (g_object_ref (G_OBJECT (pixbuf)));
+ }
+ 
+ /* On the iPhone, thumbnails are presented as squares in a grid.
+@@ -968,7 +968,7 @@ ithumb_writer_write_thumbnail (iThumbWri
+     else if (thumb->data_type == ITDB_THUMB_TYPE_PIXBUF)
+     {
+         Itdb_Thumb_Pixbuf *thumb_pixbuf = (Itdb_Thumb_Pixbuf *)thumb;
+-        pixbuf = g_object_ref (G_OBJECT (thumb_pixbuf->pixbuf));
++	pixbuf = GDK_PIXBUF (g_object_ref (G_OBJECT (thumb_pixbuf->pixbuf)));
+     }
+ 
+     if (pixbuf == NULL)
+--- libgpod-0.8.3/tools/generic-callout.c~	2013-07-10 15:43:42.000000000 +0200
++++ libgpod-0.8.3/tools/generic-callout.c	2025-08-02 22:27:13.134583273 +0200
+@@ -664,7 +664,7 @@ static gboolean write_sysinfo_extended (
+ }
+ 
+ 
+-static char *get_info_from_usb (usb_bus_number, usb_device_number)
++static char *get_info_from_usb (int usb_bus_number, int usb_device_number)
+ {
+ #ifdef HAVE_LIBUSB
+         return read_sysinfo_extended_from_usb (usb_bus_number,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgpod.git/commitdiff/d2c4fa1c59c2ad305c7e8efcb4dd25b63a430224



More information about the pld-cvs-commit mailing list