Github messages for voidlinux
 help / color / mirror / Atom feed
From: kruceter <kruceter@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] mame: update to 0249.
Date: Sun, 27 Nov 2022 12:22:45 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40796@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

There is a new pull request by kruceter against master on the void-packages repository

https://github.com/kruceter/void-packages mame
https://github.com/void-linux/void-packages/pull/40796

mame: update to 0249.
I am unable to build this package properly due to it hanging my machine in the process.

#### Testing the changes
- I tested the changes in this PR: **NO**

A patch file from https://github.com/void-linux/void-packages/pull/40796.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mame-40796.patch --]
[-- Type: text/x-diff, Size: 3477 bytes --]

From b02fb621745b5f43bbdb87106e9c592595678298 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 27 Nov 2022 13:51:09 +0300
Subject: [PATCH] mame: update to 0249.

---
 srcpkgs/mame/patches/musl-netlist.patch | 21 +++++++++++++++++----
 srcpkgs/mame/patches/pulse-sound.patch  | 12 ++++++++++++
 srcpkgs/mame/template                   |  8 ++++----
 3 files changed, 33 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/mame/patches/pulse-sound.patch

diff --git a/srcpkgs/mame/patches/musl-netlist.patch b/srcpkgs/mame/patches/musl-netlist.patch
index d87a967f806e..cb500ac7dce0 100644
--- a/srcpkgs/mame/patches/musl-netlist.patch
+++ b/srcpkgs/mame/patches/musl-netlist.patch
@@ -1,11 +1,24 @@
 --- a/src/lib/netlist/plib/pexception.cpp	2017-01-24 23:44:30.000000000 +0100
 +++ b/src/lib/netlist/plib/pexception.cpp	2017-01-25 06:48:09.658604647 +0100
-@@ -10,7 +10,7 @@
- #include "pexception.h"
- #include "pfmtlog.h"
- 
+@@ -8,7 +8,7 @@
+ #include <cfloat>
+ #include <iostream>
+
 -#if (defined(__x86_64__) || defined(__i386__)) && defined(__linux__)
 +#if (defined(__x86_64__) || defined(__i386__)) && defined(__linux__) && defined(__GLIBC__)
  #define HAS_FEENABLE_EXCEPT     (1)
  #else
  #define HAS_FEENABLE_EXCEPT     (0)
+
+https://git.alpinelinux.org/aports/commit/testing/mame/fix-musl.patch?id=7f174f79c0ccd719a6592d356d1c8db82a426a00
+
+--- a/src/lib/netlist/plib/ppmf.h
++++ b/src/lib/netlist/plib/ppmf.h
+@@ -94,6 +94,7 @@
+ #ifndef PPMF_FORCE_TYPE
+ #define PPMF_FORCE_TYPE -1
+ #endif
++#include "stddef.h"
+ 
+ namespace plib {
+ 
diff --git a/srcpkgs/mame/patches/pulse-sound.patch b/srcpkgs/mame/patches/pulse-sound.patch
new file mode 100644
index 000000000000..f4774fefa5d3
--- /dev/null
+++ b/srcpkgs/mame/patches/pulse-sound.patch
@@ -0,0 +1,12 @@
+https://git.alpinelinux.org/aports/commit/testing/mame/fix-musl.patch?id=0ca943c72056e9ce2cc8f26d9ca7797cf5d04575
+
+--- a/src/osd/modules/sound/pulse_sound.cpp
++++ b/src/osd/modules/sound/pulse_sound.cpp
+@@ -19,6 +19,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <poll.h>
++#include <signal.h>
+ 
+ #include <thread>
+ #include <pulse/pulseaudio.h>
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 93c5d5f74880..dc358bf5481a 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,24 +1,24 @@
 # Template file for 'mame'
 pkgname=mame
-version=0229
+version=0249
 revision=1
 hostmakedepends="pkg-config python3 qt5-host-tools tar xz which"
 makedepends="SDL2_ttf-devel fontconfig-devel glm libgomp-devel libjpeg-turbo-devel
  lua-devel libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
- pugixml-devel rapidjson $(vopt_if qt 'qt5-devel')"
+ pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://mamedev.org"
 distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz"
-checksum=414921771ada0804a8c7f3540e33338e8495e16a3bca78a5a2b355abafa51e6a
+checksum=93df1b954c2e6c0fe8b54b3662f642f77d7d460f42c0de0bac0b03ccb86756c4
 nodebug=yes
 replaces="sdlmame>=0 sdlmess>=0"
 
 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3"
 CXXFLAGS="$CFLAGS"
-[ "$XBPS_TARGET_LIBC" = musl ] && CXXFLAGS+=" -DBX_CRT_MUSL=1"
+[ "$XBPS_TARGET_LIBC" = "musl" ] && CXXFLAGS+=" -DBX_CRT_MUSL=1"
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc*)

             reply	other threads:[~2022-11-27 11:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-27 11:22 kruceter [this message]
2022-12-19 16:20 ` [PR PATCH] [Updated] " kruceter
2023-01-06 12:27 ` [PR PATCH] [Closed]: mame: update to 0250 kruceter
2023-01-18 22:03 ` [PR PATCH] [Updated] " kruceter
2023-01-19  2:37 ` mame: update to 0251 kruceter
2023-01-19  2:38 ` kruceter
2023-01-19  5:47 ` [PR PATCH] [Merged]: " the-maldridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40796@inbox.vuxu.org \
    --to=kruceter@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).