[packages/xine-lib] correct types usage to fix build with gcc15
atler
atler at pld-linux.org
Wed Nov 26 23:24:00 CET 2025
commit 901794e210d8a570d7266bb64957636b149ed275
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Nov 26 23:23:18 2025 +0100
correct types usage to fix build with gcc15
types.patch | 22 ++++++++++++++++++++++
xine-lib.spec | 2 ++
2 files changed, 24 insertions(+)
---
diff --git a/xine-lib.spec b/xine-lib.spec
index 3046950..e0826ad 100644
--- a/xine-lib.spec
+++ b/xine-lib.spec
@@ -57,6 +57,7 @@ Patch3: ffmpeg6.patch
Patch4: binutils-2.39.patch
Patch5: %{name}-link.patch
Patch6: configure.patch
+Patch7: types.patch
URL: https://xine.sourceforge.net/
%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.22}
# for OpenGL or wayland
@@ -1100,6 +1101,7 @@ XINE - wtyczka postprocessingu oparta na libpostproc z pakietu FFmpeg.
%patch -P4 -p1
%patch -P5 -p1
%patch -P6 -p1
+%patch -P7 -p1
%build
%{__gettextize}
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..27c0283
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,22 @@
+--- xine-lib-1.2.13/src/input/input_file.c.orig 2023-01-25 17:03:17.000000000 +0100
++++ xine-lib-1.2.13/src/input/input_file.c 2025-11-26 23:16:28.182506401 +0100
+@@ -735,7 +735,7 @@
+ int num_dir_files = 0;
+ int num_norm_files = 0;
+ int num_files = -1;
+- int (*func) () = file_input_sortfiles_default;
++ int (*func) (const void*, const void*) = (int (*)(const void*, const void*))file_input_sortfiles_default;
+ int already_tried = 0;
+ int show_hidden_files;
+
+--- xine-lib-1.2.13/src/input/input_smb.c.orig 2020-06-29 23:11:48.000000000 +0200
++++ xine-lib-1.2.13/src/input/input_smb.c 2025-11-26 23:18:26.306548981 +0100
+@@ -240,7 +240,7 @@
+ const char *filename, int *nFiles) {
+
+ smb_input_class_t *this = (smb_input_class_t *) this_gen;
+- int (*func) () = _sortfiles_default;
++ int (*func) (const void*,const void*) = (int (*)(const void*, const void*))_sortfiles_default;
+ int dir;
+ int i;
+ struct smbc_dirent *pdirent;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xine-lib.git/commitdiff/901794e210d8a570d7266bb64957636b149ed275
More information about the pld-cvs-commit
mailing list