commit 5b0b2f6291244b1b2fee391d6578a356d716a6d7
Author: Mamoru TASAKA <mtasaka(a)fedoraproject.org>
Date: Sat Feb 1 23:43:39 2025 +0900
Support C23 strict function prototype
lxdvdrip-1.77-c23-prototype.patch | 39 +++++++++++++++++++++++++++++++++++++++
lxdvdrip.spec | 8 +++++++-
2 files changed, 46 insertions(+), 1 deletion(-)
---
diff --git a/lxdvdrip-1.77-c23-prototype.patch b/lxdvdrip-1.77-c23-prototype.patch
new file mode 100644
index 0000000..4c84b52
--- /dev/null
+++ b/lxdvdrip-1.77-c23-prototype.patch
@@ -0,0 +1,39 @@
+diff --git a/vaporize.c b/vaporize.c
+index fbdb5d9..9f6c68c 100644
+--- a/vaporize.c
++++ b/vaporize.c
+@@ -151,8 +151,8 @@ char *injections_file = NULL; // where to inject internal status
from
+ const char progname [] = "vamps"; // we're sucking bytes!
+ static int NoAudioTrack;
+ static int NoSubpTrack;
+-static int ( * ReadFun)();
+-static int ( * WriteFun)();
++static int ( * ReadFun)(void *, unsigned char *, int);
++static int ( * WriteFun)(void *, unsigned char *, int);
+ static void * Parm;
+ static jmp_buf JmpEnv;
+ static int VideoPacketSize;
+@@ -226,8 +226,8 @@ Linux!jef 2006/01/24 21:41:53
+ ------------------------------------------------------------------------------*/
+
+ int VaporizeInit( readFun, writeFun, preserveF )
+-int (* readFun)();
+-int (* writeFun)();
++int (* readFun)(void *, unsigned char *, int);
++int (* writeFun)(void *, unsigned char *, int);
+ int preserveF;
+ {
+ memset( spu_track_map, 0, sizeof(spu_track_map)); // subpicture track# translation
map
+diff --git a/vaporize.h b/vaporize.h
+index 01ed43e..fc807a8 100644
+--- a/vaporize.h
++++ b/vaporize.h
+@@ -19,7 +19,7 @@ COMMENTAIRE :
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-int VaporizeInit PROTO((int (*readFun)(), int (*writeFun)(), int preserveF ));
++int VaporizeInit PROTO((int (*readFun)(void *, unsigned char *, int), int
(*writeFun)(void *, unsigned char *, int), int preserveF ));
+ int VaporizeAudio PROTO((int audioTrack));
+ int VaporizeSubp PROTO((int subpTrack));
+ int VaporizeFactor PROTO((double factor, int dynF ));
diff --git a/lxdvdrip.spec b/lxdvdrip.spec
index cfc94e4..af2c7d3 100644
--- a/lxdvdrip.spec
+++ b/lxdvdrip.spec
@@ -1,6 +1,6 @@
Name: lxdvdrip
Version: 1.77
-Release: 21%{?dist}
+Release: 22%{?dist}
Summary: A command line tool to rip&burn a video DVD
Group: Applications/Multimedia
@@ -17,6 +17,8 @@ Patch2: lxdvdrip-1.77-header-include.patch
# Fix sigaction struct usage (-Werror=incompatible-pointer-types)
# sa_flags does not contain SA_SIGINFO, so sa_handler must be used
Patch3: lxdvdrip-1.77-sigaction-hander-type.patch
+# Support C23 strict function prototype
+Patch4: lxdvdrip-1.77-c23-prototype.patch
BuildRequires: gcc
BuildRequires: libdvdread-devel >= 4.1.3
@@ -44,6 +46,7 @@ only a single Pass Read is needed.
%patch -P1 -p0 -b .requant
%patch -P2 -p1 -b .include
%patch -P3 -p1 -b .sigaction
+%patch -P4 -p1 -b .c23
chmod 644 doc-pak/lxdvdrip.conf.*
@@ -80,6 +83,9 @@ chmod 755 $RPM_BUILD_ROOT%{_bindir}/*
%config(noreplace) %{_sysconfdir}/lxdvdrip.conf
%changelog
+* Sat Feb 01 2025 Mamoru TASAKA <mtasaka(a)fedoraproject.org> - 1.77-22
+- Support C23 strict function prototype
+
* Tue Jan 28 2025 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.77-21
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild