[packages/libifp] Rel 5

arekm arekm at pld-linux.org
Sun Mar 15 10:54:15 CET 2026


commit b83c76b518ba2e3c600eacc3fab7ed0f155c9d03
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 10:54:08 2026 +0100

    Rel 5

 libifp-fix-incompatible-pointer-types.patch | 31 +++++++++++++++++++++++++++++
 libifp.spec                                 |  4 +++-
 2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/libifp.spec b/libifp.spec
index 5ef6fa7..4839df1 100644
--- a/libifp.spec
+++ b/libifp.spec
@@ -2,11 +2,12 @@ Summary:	iRiver driver library
 Summary(pl.UTF-8):	Biblioteka sterownika iRiver
 Name:		libifp
 Version:	1.0.0.2
-Release:	4
+Release:	5
 License:	GPL v2
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/ifp-driver/%{name}-%{version}.tar.gz
 # Source0-md5:	d4114794b13bd32b6b767e0870df6fc4
+Patch0:		libifp-fix-incompatible-pointer-types.patch
 URL:		http://ifp-driver.sourceforge.net/libifp/
 BuildRequires:	doxygen
 BuildRequires:	libusb-compat-devel
@@ -45,6 +46,7 @@ Statyczna biblioteka libifp.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %configure \
diff --git a/libifp-fix-incompatible-pointer-types.patch b/libifp-fix-incompatible-pointer-types.patch
new file mode 100644
index 0000000..569dfae
--- /dev/null
+++ b/libifp-fix-incompatible-pointer-types.patch
@@ -0,0 +1,31 @@
+--- libifp-1.0.0.2/src/ifp_os_libusb.c.orig	2005-08-22 05:03:56.000000000 +0200
++++ libifp-1.0.0.2/src/ifp_os_libusb.c	2026-03-15 12:00:00.000000000 +0100
+@@ -20,7 +20,7 @@
+ 	char * ob, int max_o, const char * ib, int max_i)
+ {
+ 	int i=0, e=0;
+-	char const * ibb = (char const *)ib;
++	char * ibb = (char *)ib;
+ 	char * obb = (char *)ob;
+ 	size_t i_n = max_i;
+ 	size_t o_n = max_o;
+@@ -53,7 +53,7 @@
+ 	r = iconv(ICONV, &ibb, &i_n, &obb, &o_n);
+ 	if (r == (size_t)-1) {
+ 		i = -errno;
+-		ifp_err_i(i, "problem converting, i_n is %d, o_n is %d, r = %d", i_n, o_n, r);
++		ifp_err_i(i, "problem converting, i_n is %zu, o_n is %zu, r = %zu", i_n, o_n, r);
+ 		goto err2;
+ 	}
+
+--- libifp-1.0.0.2/src/userfile.c.orig	2005-08-22 05:03:56.000000000 +0200
++++ libifp-1.0.0.2/src/userfile.c	2026-03-15 12:00:00.000000000 +0100
+@@ -947,7 +947,7 @@
+ 	return i;
+ }
+
+-int file_compare_fts(const FTSENT * const*p1, const FTSENT * const*p2)
++int file_compare_fts(const FTSENT **p1, const FTSENT **p2)
+ {
+ 	if (p1 == NULL) { ifp_err("p1 shouldn't be NULL"); return 0; }
+ 	if (p2 == NULL) { ifp_err("p2 shouldn't be NULL"); return 0; }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libifp.git/commitdiff/b83c76b518ba2e3c600eacc3fab7ed0f155c9d03



More information about the pld-cvs-commit mailing list