commit 15770d85fc1a663629243ae9d275d5b476948e3b
Author: Mamoru TASAKA <mtasaka(a)fedoraproject.org>
Date: Sun Oct 13 08:46:56 2024 +0900
Fix for -Werror=incompatible-pointer-types
Fix for -Werror=implicit-function-declaration
lxdream-0.9.1-header-include.patch | 10 ++++++++++
lxdream-0.9.1-pointer-type-cast.patch | 11 +++++++++++
lxdream.spec | 12 +++++++++++-
3 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/lxdream-0.9.1-header-include.patch b/lxdream-0.9.1-header-include.patch
new file mode 100644
index 0000000..0d70ad2
--- /dev/null
+++ b/lxdream-0.9.1-header-include.patch
@@ -0,0 +1,10 @@
+--- lxdream-0.9.1/src/gdrom/gdrom.c.include 2024-10-12 22:44:53.722357545 +0900
++++ lxdream-0.9.1/src/gdrom/gdrom.c 2024-10-12 22:58:30.514235708 +0900
+@@ -20,6 +20,7 @@
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <ctype.h>
++#include <arpa/inet.h>
+ #include "gdrom/ide.h"
+ #include "gdrom/gdrom.h"
+ #include "gdrom/gddriver.h"
diff --git a/lxdream-0.9.1-pointer-type-cast.patch
b/lxdream-0.9.1-pointer-type-cast.patch
new file mode 100644
index 0000000..7e7925e
--- /dev/null
+++ b/lxdream-0.9.1-pointer-type-cast.patch
@@ -0,0 +1,11 @@
+--- lxdream-0.9.1/src/gtkui/gtk_ctrl.c.cast 2009-06-29 08:04:40.000000000 +0900
++++ lxdream-0.9.1/src/gtkui/gtk_ctrl.c 2024-10-12 22:56:06.019903467 +0900
+@@ -310,7 +310,7 @@ static gboolean maple_device_changed( Gt
+ MAPLE_VMU_HAS_NAME(maple_data[i].new_device, vmu_filename) ) {
+ maple_data[i].new_device->destroy(maple_data[i].new_device);
+ maple_data[i].new_device = NULL;
+- gtk_combo_box_set_active(maple_data[i].combo,0);
++ gtk_combo_box_set_active(GTK_COMBO_BOX(maple_data[i].combo),0);
+ }
+ }
+ MAPLE_SET_VMU_NAME(data->new_device,vmu_filename);
diff --git a/lxdream.spec b/lxdream.spec
index 53a5a8a..d7075fe 100644
--- a/lxdream.spec
+++ b/lxdream.spec
@@ -1,6 +1,6 @@
Name: lxdream
Version: 0.9.1
-Release: 25%{?dist}
+Release: 26%{?dist}
Summary: Sega Dreamcast emulator
License: GPLv2+
URL:
http://www.lxdream.org
@@ -9,6 +9,10 @@ Source0: %{name}-%{version}.tar.gz
Source1: README.fedora
Patch0: %{name}-%{version}-glib.patch
Patch1: %{name}-%{version}-implicit.patch
+# Fix -Werror=incompatible-pointer-types
+Patch2: %{name}-%{version}-pointer-type-cast.patch
+# Fix -Werror=implicit-function-declaration
+Patch3: %{name}-%{version}-header-include.patch
BuildRequires: gcc
BuildRequires: desktop-file-utils
BuildRequires: gettext
@@ -33,6 +37,8 @@ is already capable of running many demos and some games.
%setup -q
%patch -P0 -p1 -b .glib
%patch -P1 -p1 -b .implicit
+%patch -P2 -p1 -b .cast
+%patch -P3 -p1 -b .include
#Fix the desktop file
sed -i "s/Categories=Game;Emulator/Categories=Game;Emulator;/" lxdream.desktop
@@ -67,6 +73,10 @@ desktop-file-validate
$RPM_BUILD_ROOT%{_datadir}/applications/lxdream.desktop
%changelog
+* Sat Oct 12 2024 Mamoru TASAKA <mtasaka(a)fedoraproject.org> - 0.9.1-26
+- Fix for -Werror=incompatible-pointer-types
+- Fix for -Werror=implicit-function-declaration
+
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
0.9.1-25
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild