commit d20a1cf886bfce82f4a4beac86eb1b53bc118999
Author: Mamoru TASAKA <mtasaka(a)fedoraproject.org>
Date: Fri Oct 11 22:21:24 2024 +0900
Patch to fix -Werror=implicit-function-declaration
Patch to fix -Werror=imcompatible-pointer-types
Patch to stop suppressing compiler warnings
lxdvdrip-1.77-header-include.patch | 24 ++++++++++++++++++++++++
lxdvdrip-1.77-sigaction-hander-type.patch | 11 +++++++++++
lxdvdrip-makefile.patch | 4 ++--
lxdvdrip.spec | 14 +++++++++++++-
4 files changed, 50 insertions(+), 3 deletions(-)
---
diff --git a/lxdvdrip-1.77-header-include.patch b/lxdvdrip-1.77-header-include.patch
new file mode 100644
index 0000000..a84bbf8
--- /dev/null
+++ b/lxdvdrip-1.77-header-include.patch
@@ -0,0 +1,24 @@
+--- lxdvdrip-1.77/dvdbackup.c.include 2011-10-06 06:24:37.000000000 +0900
++++ lxdvdrip-1.77/dvdbackup.c 2024-10-11 00:43:29.289161856 +0900
+@@ -40,6 +40,7 @@ COMMENTAIRE :
+ #include "ac.h"
+ #include "dvdcell.h"
+ #include "dvdbackup.h"
++#include "dvdcopy.h"
+ #include "mpeg2dec.h"
+ #include "badsect.h"
+ #include "vapcontext.h"
+--- lxdvdrip-1.77/systools.c.include 2011-10-06 06:24:37.000000000 +0900
++++ lxdvdrip-1.77/systools.c 2024-10-11 00:45:27.804422588 +0900
+@@ -22,10 +22,10 @@ COMMENTAIRE :
+ #include <sys/stat.h>
+ #if defined(__sun)
+ # include <sys/statvfs.h>
+-# include <sys/ioctl.h>
+ #else
+ # include <sys/statfs.h>
+ #endif
++#include <sys/ioctl.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #if defined(__sun)
diff --git a/lxdvdrip-1.77-sigaction-hander-type.patch
b/lxdvdrip-1.77-sigaction-hander-type.patch
new file mode 100644
index 0000000..87d18c9
--- /dev/null
+++ b/lxdvdrip-1.77-sigaction-hander-type.patch
@@ -0,0 +1,11 @@
+--- lxdvdrip-1.77/mbuffer/mbuffer.c.sigaction 2011-07-25 03:06:02.000000000 +0900
++++ lxdvdrip-1.77/mbuffer/mbuffer.c 2024-10-11 20:08:56.995646099 +0900
+@@ -2042,7 +2042,7 @@ int main(int argc, const char **argv)
+ }
+
+ debugmsg("checking if we have a controlling terminal...\n");
+- sig.sa_sigaction = SIG_IGN;
++ sig.sa_handler = SIG_IGN;
+ err = sigaction(SIGTTIN,&sig,0);
+ assert(err == 0);
+ fl = fcntl(STDERR_FILENO,F_GETFL);
diff --git a/lxdvdrip-makefile.patch b/lxdvdrip-makefile.patch
index d0b7595..22e446b 100644
--- a/lxdvdrip-makefile.patch
+++ b/lxdvdrip-makefile.patch
@@ -100,8 +100,8 @@
- gcc -g -O2 -c network.c -Wno-unused-result
- gcc -pthread -O2 -g -o mbuffer_lxdvdrip *o -lrt -lm
+ gcc $(CFLAGS) -c log.c -Wno-unused-result
-+ gcc $(CFLAGS) -c mbuffer.c -w
-+ gcc $(CFLAGS) -c network.c -Wno-unused-result
++ gcc $(CFLAGS) -c mbuffer.c
++ gcc $(CFLAGS) -c network.c
+ gcc -pthread $(CFLAGS) -o mbuffer_lxdvdrip *o $(LDFLAGS) -lm -lrt
if test -f log.o; then rm *.o; fi
diff --git a/lxdvdrip.spec b/lxdvdrip.spec
index 870b599..118dcfd 100644
--- a/lxdvdrip.spec
+++ b/lxdvdrip.spec
@@ -1,6 +1,6 @@
Name: lxdvdrip
Version: 1.77
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: A command line tool to rip&burn a video DVD
Group: Applications/Multimedia
@@ -12,6 +12,11 @@ Source0:
https://sourceforge.net/projects/lxdvdrip/files/lxdvdrip-%{versi
Patch0: lxdvdrip-makefile.patch
#Define code for PPC
Patch1: lxdvdrip-%{version}-requant.patch
+# Add missing include files (-Werror=implicit-function-declaration)
+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
BuildRequires: gcc
BuildRequires: libdvdread-devel >= 4.1.3
@@ -37,6 +42,8 @@ only a single Pass Read is needed.
%setup -q -n lxdvdrip
%patch -P0 -p0 -b .makefile
%patch -P1 -p0 -b .requant
+%patch -P2 -p1 -b .include
+%patch -P3 -p1 -b .sigaction
chmod 644 doc-pak/lxdvdrip.conf.*
@@ -73,6 +80,11 @@ chmod 755 $RPM_BUILD_ROOT%{_bindir}/*
%config(noreplace) %{_sysconfdir}/lxdvdrip.conf
%changelog
+* Fri Oct 11 2024 Mamoru TASAKA <mtasaka(a)fedoraproject.org> - 1.77-20
+- Patch to fix -Werror=implicit-function-declaration
+- Patch to fix -Werror=imcompatible-pointer-types
+- Patch to stop suppressing compiler warnings
+
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.77-19
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild