[packages/mame] - patch with missing includes

qboosh qboosh at pld-linux.org
Wed Sep 25 19:50:12 CEST 2024


commit ce617d38139fbbf531c3208464114d2f5703930c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Sep 25 19:53:11 2024 +0200

    - patch with missing includes

 mame-includes.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 mame.spec           |  2 ++
 2 files changed, 42 insertions(+)
---
diff --git a/mame.spec b/mame.spec
index d876ca9..18774cc 100644
--- a/mame.spec
+++ b/mame.spec
@@ -10,6 +10,7 @@ Group:		X11/Applications/Games
 #Source0Download: https://www.mamedev.org/release.html
 Source0:	https://github.com/mamedev/mame/archive/mame%{fver}/%{name}-%{version}.tar.gz
 # Source0-md5:	37b527a7b769b0d7d000ab512a5151ac
+Patch0:		%{name}-includes.patch
 URL:		https://www.mamedev.org/
 BuildRequires:	OpenGL-devel
 BuildRequires:	Qt5Core-devel >= 5
@@ -78,6 +79,7 @@ udowodnić wierne odtworzenie sprzętu?).
 
 %prep
 %setup -q -n %{name}-%{name}%{fver}
+%patch0 -p1
 
 %{__sed} -i -e 's/"lua"/"lua5.3"/' scripts/src/main.lua
 
diff --git a/mame-includes.patch b/mame-includes.patch
new file mode 100644
index 0000000..2146a01
--- /dev/null
+++ b/mame-includes.patch
@@ -0,0 +1,40 @@
+--- mame-mame0249/src/lib/netlist/plib/ptypes.h.orig	2022-10-27 00:12:58.000000000 +0200
++++ mame-mame0249/src/lib/netlist/plib/ptypes.h	2024-09-24 22:34:28.500092609 +0200
+@@ -10,6 +10,7 @@
+ 
+ #include "pconfig.h"
+ 
++#include <cstdint>
+ #include <limits>
+ #include <string>
+ #include <type_traits>
+--- mame-mame0249/src/osd/modules/monitor/monitor_module.h.orig	2022-10-27 00:12:58.000000000 +0200
++++ mame-mame0249/src/osd/modules/monitor/monitor_module.h	2024-09-25 06:22:41.836749799 +0200
+@@ -8,6 +8,7 @@
+ #ifndef MAME_OSD_MODULES_MONITOR_MONITORMODULE_H
+ #define MAME_OSD_MODULES_MONITOR_MONITORMODULE_H
+ 
++#include <cstdint>
+ #include <vector>
+ 
+ #include "modules/osdmodule.h"
+--- mame-mame0249/src/osd/modules/monitor/monitor_common.h.orig	2022-10-27 00:12:58.000000000 +0200
++++ mame-mame0249/src/osd/modules/monitor/monitor_common.h	2024-09-25 06:23:06.383562606 +0200
+@@ -8,6 +8,7 @@
+ #define __MONITOR_COMMON_H__
+ 
+ #include "monitor_module.h"
++#include <cstdint>
+ #include <map>
+ 
+ //============================================================
+--- mame-mame0249/src/frontend/mame/ui/slider.h.orig	2022-10-27 00:12:58.000000000 +0200
++++ mame-mame0249/src/frontend/mame/ui/slider.h	2024-09-25 06:24:44.315236300 +0200
+@@ -14,6 +14,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <functional>
+ #include <string>
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mame.git/commitdiff/ce617d38139fbbf531c3208464114d2f5703930c



More information about the pld-cvs-commit mailing list