[packages/libsyncml] - type fixes

qboosh qboosh at pld-linux.org
Sat Sep 6 21:28:15 CEST 2025


commit 1af7fbc69d574ae9305cb7b39c8f199d5ba02d4f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 6 21:31:06 2025 +0200

    - type fixes

 libsyncml-types.patch | 20 ++++++++++++++++++++
 libsyncml.spec        |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/libsyncml.spec b/libsyncml.spec
index 31c8c9c..8763127 100644
--- a/libsyncml.spec
+++ b/libsyncml.spec
@@ -9,6 +9,7 @@ Source0:	https://downloads.sourceforge.net/libsyncml/%{name}-%{version}.tar.bz2
 # Source0-md5:	b8ce1f222cccc12acdcd6807d65c1aea
 Patch0:		wbxml.patch
 Patch1:		%{name}-openobex.patch
+Patch2:		%{name}-types.patch
 # dead
 #URL:		http://libsyncml.opensync.org/
 BuildRequires:	bluez-libs-devel
@@ -17,7 +18,7 @@ BuildRequires:	glib2-devel >= 1:2.12
 BuildRequires:	libsoup-devel >= 2.2.91
 BuildRequires:	libwbxml-devel >= 0.10.0
 BuildRequires:	libxml2-devel
-BuildRequires:	openobex-devel >= 1.3
+BuildRequires:	openobex-devel >= 1.6
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.385
 BuildRequires:	sed >= 4.0
@@ -45,6 +46,7 @@ Pliki nagłówkowe biblioteki libsyncml.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 # CHECK_FOUND resets ENABLE_UNIT_TEST to ON
 %{__sed} -i '/FIND_PACKAGE( Check )/d' CMakeLists.txt
diff --git a/libsyncml-types.patch b/libsyncml-types.patch
new file mode 100644
index 0000000..4ab20dd
--- /dev/null
+++ b/libsyncml-types.patch
@@ -0,0 +1,20 @@
+--- libsyncml-0.5.4/libsyncml/parser/sml_wbxml.c.orig	2009-06-04 11:16:56.000000000 +0200
++++ libsyncml-0.5.4/libsyncml/parser/sml_wbxml.c	2025-09-06 21:23:12.075274343 +0200
+@@ -135,7 +135,7 @@ error:
+ 	return NULL;
+ }
+ 
+-SmlBool smlWbxmlAssemblerRun(SmlXmlAssembler *assm, char **data, unsigned int *size, SmlBool *end, SmlBool final, unsigned int maxsize, SmlError **error)
++SmlBool smlWbxmlAssemblerRun(SmlXmlAssembler *assm, char **data, size_t *size, SmlBool *end, SmlBool final, unsigned int maxsize, SmlError **error)
+ {
+ 	smlTrace(TRACE_ENTRY, "%s(%p, %p, %p, %p, %i, %i, %p)", __func__, assm, data, size, end, final, maxsize, error);
+ 	CHECK_ERROR_REF
+@@ -178,7 +178,7 @@ unsigned int smlWbxmlAssemblerCheckSize(
+ 	CHECK_ERROR_REF
+ 	smlAssert(assm);
+ 	
+-	unsigned int size = 0;
++	size_t size = 0;
+ 	char *data = NULL;
+ 	char *buffer = NULL;
+ 	unsigned int buffer_size = 0;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsyncml.git/commitdiff/1af7fbc69d574ae9305cb7b39c8f199d5ba02d4f



More information about the pld-cvs-commit mailing list