Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mame: update to 0262.
@ 2024-02-01 19:40 ypsvlq
  2024-02-01 20:41 ` [PR PATCH] [Updated] " ypsvlq
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ypsvlq @ 2024-02-01 19:40 UTC (permalink / raw)
  To: ml

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

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

https://github.com/ypsvlq/void-packages mame
https://github.com/void-linux/void-packages/pull/48481

mame: update to 0262.
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 5319b99cc5ab9ec866e733f95c84022a7bf9cd89 Mon Sep 17 00:00:00 2001
From: Elaine Gibson <ypsvlq@gmail.com>
Date: Thu, 1 Feb 2024 19:33:55 +0000
Subject: [PATCH] mame: update to 0262.

---
 srcpkgs/mame/template | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 84580d6cafa30..a59f9a4720b53 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,10 +1,10 @@
 # Template file for 'mame'
 pkgname=mame
-version=0251
-revision=3
+version=0262
+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
+ libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
  pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
@@ -12,12 +12,10 @@ 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=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
+checksum=64e482f3dd13be4e91c5dfa076fb7a71f450f2879118c6ae452b0037b661aaae
 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"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -33,7 +31,7 @@ build_options_default="qt"
 _options="REGENIE=1 TARGETOS=linux NOWERROR=1 OPENMP=1 OPTIMIZE=3
  TOOLS=1 LTO=0 USE_SYSTEM_LIB_ASIO=0 USE_SYSTEM_LIB_EXPAT=1
  USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1
- USE_SYSTEM_LIB_LUA=0 USE_SYSTEM_LIB_SQLITE3=1
+ USE_SYSTEM_LIB_SQLITE3=1
  USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_PORTAUDIO=1
  USE_SYSTEM_LIB_UTF8PROC=1 USE_SYSTEM_LIB_GLM=1
  USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PUGIXML=1"
@@ -64,8 +62,6 @@ fi
 #_options+=" TARGET=mame SUBTARGET=tiny VERBOSE=1"
 
 do_configure() {
-	# When linking mame expects liblua.so but we have liblua5.3.so
-	ln -sf liblua5.3.so ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 	if [ "${CROSS_BUILD}" ]; then
 		case "$XBPS_TARGET_MACHINE" in
 			i686*|x86_64*) ;;
@@ -131,6 +127,4 @@ do_install() {
 	for f in artwork bgfx docs hash hlsl keymaps plugins samples; do
 		vcopy ${f} usr/share/${pkgname}
 	done
-	# Remove temporary liblua.so symlink
-	rm -f ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] mame: update to 0262.
  2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
@ 2024-02-01 20:41 ` ypsvlq
  2024-02-02 11:17 ` ypsvlq
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ypsvlq @ 2024-02-01 20:41 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by ypsvlq against master on the void-packages repository

https://github.com/ypsvlq/void-packages mame
https://github.com/void-linux/void-packages/pull/48481

mame: update to 0262.
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From d9f6ac68dbd25d68ce5a7881f26f2e56e979ccc8 Mon Sep 17 00:00:00 2001
From: Elaine Gibson <ypsvlq@gmail.com>
Date: Thu, 1 Feb 2024 19:33:55 +0000
Subject: [PATCH] mame: update to 0262.

---
 srcpkgs/mame/patches/musl-bx.patch | 32 ++++++++++++++++++++++++++++++
 srcpkgs/mame/template              | 18 ++++++-----------
 2 files changed, 38 insertions(+), 12 deletions(-)
 create mode 100644 srcpkgs/mame/patches/musl-bx.patch

diff --git a/srcpkgs/mame/patches/musl-bx.patch b/srcpkgs/mame/patches/musl-bx.patch
new file mode 100644
index 0000000000000..662826175ddd9
--- /dev/null
+++ b/srcpkgs/mame/patches/musl-bx.patch
@@ -0,0 +1,32 @@
+diff --git a/3rdparty/bx/include/bx/platform.h.orig b/3rdparty/bx/include/bx/platform.h
+index f14f9b680bf..ea82d7f32a3 100644
+--- a/3rdparty/bx/include/bx/platform.h.orig
++++ b/3rdparty/bx/include/bx/platform.h
+@@ -37,6 +37,10 @@
+ #define BX_CRT_MSVC   0
+ #define BX_CRT_NEWLIB 0
+ 
++#ifndef BX_CRT_MUSL
++#	define BX_CRT_MUSL 1
++#endif // BX_CRT_MUSL
++
+ #ifndef BX_CRT_NONE
+ #	define BX_CRT_NONE 0
+ #endif // BX_CRT_NONE
+@@ -255,6 +259,7 @@
+ 	&& !BX_CRT_LIBCXX \
+ 	&& !BX_CRT_MINGW  \
+ 	&& !BX_CRT_MSVC   \
++	&& !BX_CRT_MUSL   \
+ 	&& !BX_CRT_NEWLIB
+ #		undef  BX_CRT_NONE
+ #		define BX_CRT_NONE 1
+@@ -432,6 +437,8 @@
+ #	define BX_CRT_NAME "Clang C Library"
+ #elif BX_CRT_NEWLIB
+ #	define BX_CRT_NAME "Newlib"
++#elif BX_CRT_MUSL
++#	define BX_CRT_NAME "musl libc"
+ #elif BX_CRT_NONE
+ #	define BX_CRT_NAME "None"
+ #else
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 84580d6cafa30..b1bc6174c34fd 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,10 +1,10 @@
 # Template file for 'mame'
 pkgname=mame
-version=0251
-revision=3
+version=0262
+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
+ libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
  pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
@@ -12,13 +12,11 @@ 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=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
+checksum=64e482f3dd13be4e91c5dfa076fb7a71f450f2879118c6ae452b0037b661aaae
 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*)
@@ -33,7 +31,7 @@ build_options_default="qt"
 _options="REGENIE=1 TARGETOS=linux NOWERROR=1 OPENMP=1 OPTIMIZE=3
  TOOLS=1 LTO=0 USE_SYSTEM_LIB_ASIO=0 USE_SYSTEM_LIB_EXPAT=1
  USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1
- USE_SYSTEM_LIB_LUA=0 USE_SYSTEM_LIB_SQLITE3=1
+ USE_SYSTEM_LIB_SQLITE3=1
  USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_PORTAUDIO=1
  USE_SYSTEM_LIB_UTF8PROC=1 USE_SYSTEM_LIB_GLM=1
  USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PUGIXML=1"
@@ -64,8 +62,6 @@ fi
 #_options+=" TARGET=mame SUBTARGET=tiny VERBOSE=1"
 
 do_configure() {
-	# When linking mame expects liblua.so but we have liblua5.3.so
-	ln -sf liblua5.3.so ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 	if [ "${CROSS_BUILD}" ]; then
 		case "$XBPS_TARGET_MACHINE" in
 			i686*|x86_64*) ;;
@@ -131,6 +127,4 @@ do_install() {
 	for f in artwork bgfx docs hash hlsl keymaps plugins samples; do
 		vcopy ${f} usr/share/${pkgname}
 	done
-	# Remove temporary liblua.so symlink
-	rm -f ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] mame: update to 0262.
  2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
  2024-02-01 20:41 ` [PR PATCH] [Updated] " ypsvlq
@ 2024-02-02 11:17 ` ypsvlq
  2024-02-02 14:53 ` ypsvlq
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ypsvlq @ 2024-02-02 11:17 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by ypsvlq against master on the void-packages repository

https://github.com/ypsvlq/void-packages mame
https://github.com/void-linux/void-packages/pull/48481

mame: update to 0262.
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From bcc0736569c82cf77a303cf394dcaded05f1e5c1 Mon Sep 17 00:00:00 2001
From: Elaine Gibson <ypsvlq@gmail.com>
Date: Thu, 1 Feb 2024 19:33:55 +0000
Subject: [PATCH] mame: update to 0262.

---
 srcpkgs/mame/patches/musl-bx.patch | 32 ++++++++++++++++++++++++++++++
 srcpkgs/mame/template              | 19 ++++++++----------
 2 files changed, 40 insertions(+), 11 deletions(-)
 create mode 100644 srcpkgs/mame/patches/musl-bx.patch

diff --git a/srcpkgs/mame/patches/musl-bx.patch b/srcpkgs/mame/patches/musl-bx.patch
new file mode 100644
index 0000000000000..662826175ddd9
--- /dev/null
+++ b/srcpkgs/mame/patches/musl-bx.patch
@@ -0,0 +1,32 @@
+diff --git a/3rdparty/bx/include/bx/platform.h.orig b/3rdparty/bx/include/bx/platform.h
+index f14f9b680bf..ea82d7f32a3 100644
+--- a/3rdparty/bx/include/bx/platform.h.orig
++++ b/3rdparty/bx/include/bx/platform.h
+@@ -37,6 +37,10 @@
+ #define BX_CRT_MSVC   0
+ #define BX_CRT_NEWLIB 0
+ 
++#ifndef BX_CRT_MUSL
++#	define BX_CRT_MUSL 1
++#endif // BX_CRT_MUSL
++
+ #ifndef BX_CRT_NONE
+ #	define BX_CRT_NONE 0
+ #endif // BX_CRT_NONE
+@@ -255,6 +259,7 @@
+ 	&& !BX_CRT_LIBCXX \
+ 	&& !BX_CRT_MINGW  \
+ 	&& !BX_CRT_MSVC   \
++	&& !BX_CRT_MUSL   \
+ 	&& !BX_CRT_NEWLIB
+ #		undef  BX_CRT_NONE
+ #		define BX_CRT_NONE 1
+@@ -432,6 +437,8 @@
+ #	define BX_CRT_NAME "Clang C Library"
+ #elif BX_CRT_NEWLIB
+ #	define BX_CRT_NAME "Newlib"
++#elif BX_CRT_MUSL
++#	define BX_CRT_NAME "musl libc"
+ #elif BX_CRT_NONE
+ #	define BX_CRT_NAME "None"
+ #else
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 84580d6cafa30..3ced431ae8730 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,10 +1,10 @@
 # Template file for 'mame'
 pkgname=mame
-version=0251
-revision=3
+version=0262
+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
+ libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
  pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
@@ -12,12 +12,10 @@ 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=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
+checksum=64e482f3dd13be4e91c5dfa076fb7a71f450f2879118c6ae452b0037b661aaae
 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"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -25,6 +23,9 @@ case "$XBPS_TARGET_MACHINE" in
 		CFLAGS+=" -mlong-double-64"
 		CXXFLAGS+=" -mlong-double-64"
 		;;
+	armv[67]*)
+		LDFLAGS+=" -Wl,--long-plt"
+		;;
 esac
 
 build_options="qt"
@@ -33,7 +34,7 @@ build_options_default="qt"
 _options="REGENIE=1 TARGETOS=linux NOWERROR=1 OPENMP=1 OPTIMIZE=3
  TOOLS=1 LTO=0 USE_SYSTEM_LIB_ASIO=0 USE_SYSTEM_LIB_EXPAT=1
  USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1
- USE_SYSTEM_LIB_LUA=0 USE_SYSTEM_LIB_SQLITE3=1
+ USE_SYSTEM_LIB_SQLITE3=1
  USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_PORTAUDIO=1
  USE_SYSTEM_LIB_UTF8PROC=1 USE_SYSTEM_LIB_GLM=1
  USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PUGIXML=1"
@@ -64,8 +65,6 @@ fi
 #_options+=" TARGET=mame SUBTARGET=tiny VERBOSE=1"
 
 do_configure() {
-	# When linking mame expects liblua.so but we have liblua5.3.so
-	ln -sf liblua5.3.so ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 	if [ "${CROSS_BUILD}" ]; then
 		case "$XBPS_TARGET_MACHINE" in
 			i686*|x86_64*) ;;
@@ -131,6 +130,4 @@ do_install() {
 	for f in artwork bgfx docs hash hlsl keymaps plugins samples; do
 		vcopy ${f} usr/share/${pkgname}
 	done
-	# Remove temporary liblua.so symlink
-	rm -f ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] mame: update to 0262.
  2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
  2024-02-01 20:41 ` [PR PATCH] [Updated] " ypsvlq
  2024-02-02 11:17 ` ypsvlq
@ 2024-02-02 14:53 ` ypsvlq
  2024-02-13 17:43 ` ypsvlq
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ypsvlq @ 2024-02-02 14:53 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by ypsvlq against master on the void-packages repository

https://github.com/ypsvlq/void-packages mame
https://github.com/void-linux/void-packages/pull/48481

mame: update to 0262.
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 6a17cb18332028994a1779a49fb4f42137e17b6c Mon Sep 17 00:00:00 2001
From: Elaine Gibson <ypsvlq@gmail.com>
Date: Thu, 1 Feb 2024 19:33:55 +0000
Subject: [PATCH] mame: update to 0262.

---
 srcpkgs/mame/patches/musl-bx.patch            | 32 +++++++++++++++++++
 srcpkgs/mame/patches/musl-netlist.patch       | 13 --------
 srcpkgs/mame/patches/musl-time_t.patch        | 10 ------
 .../mame/patches/pagesize-name-clash.patch    | 10 ------
 srcpkgs/mame/template                         | 19 +++++------
 5 files changed, 40 insertions(+), 44 deletions(-)
 create mode 100644 srcpkgs/mame/patches/musl-bx.patch
 delete mode 100644 srcpkgs/mame/patches/musl-time_t.patch
 delete mode 100644 srcpkgs/mame/patches/pagesize-name-clash.patch

diff --git a/srcpkgs/mame/patches/musl-bx.patch b/srcpkgs/mame/patches/musl-bx.patch
new file mode 100644
index 0000000000000..3fce8fbb668a5
--- /dev/null
+++ b/srcpkgs/mame/patches/musl-bx.patch
@@ -0,0 +1,32 @@
+diff --git a/3rdparty/bx/include/bx/platform.h b/3rdparty/bx/include/bx/platform.h
+index f14f9b68..ea82d7f3 100644
+--- a/3rdparty/bx/include/bx/platform.h
++++ b/3rdparty/bx/include/bx/platform.h
+@@ -37,6 +37,10 @@
+ #define BX_CRT_MSVC   0
+ #define BX_CRT_NEWLIB 0
+ 
++#ifndef BX_CRT_MUSL
++#	define BX_CRT_MUSL 1
++#endif // BX_CRT_MUSL
++
+ #ifndef BX_CRT_NONE
+ #	define BX_CRT_NONE 0
+ #endif // BX_CRT_NONE
+@@ -255,6 +259,7 @@
+ 	&& !BX_CRT_LIBCXX \
+ 	&& !BX_CRT_MINGW  \
+ 	&& !BX_CRT_MSVC   \
++	&& !BX_CRT_MUSL   \
+ 	&& !BX_CRT_NEWLIB
+ #		undef  BX_CRT_NONE
+ #		define BX_CRT_NONE 1
+@@ -432,6 +437,8 @@
+ #	define BX_CRT_NAME "Clang C Library"
+ #elif BX_CRT_NEWLIB
+ #	define BX_CRT_NAME "Newlib"
++#elif BX_CRT_MUSL
++#	define BX_CRT_NAME "musl libc"
+ #elif BX_CRT_NONE
+ #	define BX_CRT_NAME "None"
+ #else
diff --git a/srcpkgs/mame/patches/musl-netlist.patch b/srcpkgs/mame/patches/musl-netlist.patch
index cb500ac7dce01..d02c1bb63cd7a 100644
--- a/srcpkgs/mame/patches/musl-netlist.patch
+++ b/srcpkgs/mame/patches/musl-netlist.patch
@@ -9,16 +9,3 @@
  #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/musl-time_t.patch b/srcpkgs/mame/patches/musl-time_t.patch
deleted file mode 100644
index 0066c7366aafe..0000000000000
--- a/srcpkgs/mame/patches/musl-time_t.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/3rdparty/bx/include/bx/bx.h	2017-12-27 02:45:37.000000000 +0100
-+++ b/3rdparty/bx/include/bx/bx.h	2017-12-28 10:58:30.254932880 +0100
-@@ -11,6 +11,7 @@
- #include <stdint.h> // uint32_t
- #include <stdlib.h> // size_t
- #include <stddef.h> // ptrdiff_t
-+#include <time.h>   // time_t
- 
- #include "platform.h"
- #include "config.h"
diff --git a/srcpkgs/mame/patches/pagesize-name-clash.patch b/srcpkgs/mame/patches/pagesize-name-clash.patch
deleted file mode 100644
index 08b5939f11ccd..0000000000000
--- a/srcpkgs/mame/patches/pagesize-name-clash.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/lib/netlist/plib/palloc.h	2020-06-26 07:55:07.000000000 +0200
-+++ b/src/lib/netlist/plib/palloc.h	2020-06-27 17:37:11.920172697 +0200
-@@ -16,6 +16,7 @@
- 
- #include <algorithm>
- #include <cstddef>      // for std::max_align_t (usually long long)
-+#undef PAGESIZE	// for PAGESIZE
- #include <memory>
- #include <type_traits>
- #include <utility>
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 84580d6cafa30..3ced431ae8730 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,10 +1,10 @@
 # Template file for 'mame'
 pkgname=mame
-version=0251
-revision=3
+version=0262
+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
+ libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
  pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
@@ -12,12 +12,10 @@ 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=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
+checksum=64e482f3dd13be4e91c5dfa076fb7a71f450f2879118c6ae452b0037b661aaae
 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"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -25,6 +23,9 @@ case "$XBPS_TARGET_MACHINE" in
 		CFLAGS+=" -mlong-double-64"
 		CXXFLAGS+=" -mlong-double-64"
 		;;
+	armv[67]*)
+		LDFLAGS+=" -Wl,--long-plt"
+		;;
 esac
 
 build_options="qt"
@@ -33,7 +34,7 @@ build_options_default="qt"
 _options="REGENIE=1 TARGETOS=linux NOWERROR=1 OPENMP=1 OPTIMIZE=3
  TOOLS=1 LTO=0 USE_SYSTEM_LIB_ASIO=0 USE_SYSTEM_LIB_EXPAT=1
  USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1
- USE_SYSTEM_LIB_LUA=0 USE_SYSTEM_LIB_SQLITE3=1
+ USE_SYSTEM_LIB_SQLITE3=1
  USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_PORTAUDIO=1
  USE_SYSTEM_LIB_UTF8PROC=1 USE_SYSTEM_LIB_GLM=1
  USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PUGIXML=1"
@@ -64,8 +65,6 @@ fi
 #_options+=" TARGET=mame SUBTARGET=tiny VERBOSE=1"
 
 do_configure() {
-	# When linking mame expects liblua.so but we have liblua5.3.so
-	ln -sf liblua5.3.so ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 	if [ "${CROSS_BUILD}" ]; then
 		case "$XBPS_TARGET_MACHINE" in
 			i686*|x86_64*) ;;
@@ -131,6 +130,4 @@ do_install() {
 	for f in artwork bgfx docs hash hlsl keymaps plugins samples; do
 		vcopy ${f} usr/share/${pkgname}
 	done
-	# Remove temporary liblua.so symlink
-	rm -f ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] mame: update to 0262.
  2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
                   ` (2 preceding siblings ...)
  2024-02-02 14:53 ` ypsvlq
@ 2024-02-13 17:43 ` ypsvlq
  2024-02-13 17:50 ` ypsvlq
  2024-02-15  3:46 ` [PR PATCH] [Merged]: " classabbyamp
  5 siblings, 0 replies; 7+ messages in thread
From: ypsvlq @ 2024-02-13 17:43 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by ypsvlq against master on the void-packages repository

https://github.com/ypsvlq/void-packages mame
https://github.com/void-linux/void-packages/pull/48481

mame: update to 0262.
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 7d175fdf53224250ff692ade5762b79fb7294b92 Mon Sep 17 00:00:00 2001
From: Elaine Gibson <ypsvlq@gmail.com>
Date: Thu, 1 Feb 2024 19:33:55 +0000
Subject: [PATCH] mame: update to 0262.

[ci skip]
---
 srcpkgs/mame/patches/musl-bx.patch            | 35 +++++++++++++++++++
 srcpkgs/mame/patches/musl-netlist.patch       | 13 -------
 srcpkgs/mame/patches/musl-time_t.patch        | 10 ------
 .../mame/patches/pagesize-name-clash.patch    | 10 ------
 srcpkgs/mame/template                         | 19 +++++-----
 5 files changed, 43 insertions(+), 44 deletions(-)
 create mode 100644 srcpkgs/mame/patches/musl-bx.patch
 delete mode 100644 srcpkgs/mame/patches/musl-time_t.patch
 delete mode 100644 srcpkgs/mame/patches/pagesize-name-clash.patch

diff --git a/srcpkgs/mame/patches/musl-bx.patch b/srcpkgs/mame/patches/musl-bx.patch
new file mode 100644
index 0000000000000..48a55965590a4
--- /dev/null
+++ b/srcpkgs/mame/patches/musl-bx.patch
@@ -0,0 +1,35 @@
+restores musl support which was removed upstream
+https://github.com/bkaradzic/bx/commit/d7ecac17060ab8cf765b21e55a762aa4855dfdb1
+
+diff --git a/3rdparty/bx/include/bx/platform.h b/3rdparty/bx/include/bx/platform.h
+index f14f9b68..ea82d7f3 100644
+--- a/3rdparty/bx/include/bx/platform.h
++++ b/3rdparty/bx/include/bx/platform.h
+@@ -37,6 +37,10 @@
+ #define BX_CRT_MSVC   0
+ #define BX_CRT_NEWLIB 0
+ 
++#ifndef BX_CRT_MUSL
++#	define BX_CRT_MUSL 1
++#endif // BX_CRT_MUSL
++
+ #ifndef BX_CRT_NONE
+ #	define BX_CRT_NONE 0
+ #endif // BX_CRT_NONE
+@@ -255,6 +259,7 @@
+ 	&& !BX_CRT_LIBCXX \
+ 	&& !BX_CRT_MINGW  \
+ 	&& !BX_CRT_MSVC   \
++	&& !BX_CRT_MUSL   \
+ 	&& !BX_CRT_NEWLIB
+ #		undef  BX_CRT_NONE
+ #		define BX_CRT_NONE 1
+@@ -432,6 +437,8 @@
+ #	define BX_CRT_NAME "Clang C Library"
+ #elif BX_CRT_NEWLIB
+ #	define BX_CRT_NAME "Newlib"
++#elif BX_CRT_MUSL
++#	define BX_CRT_NAME "musl libc"
+ #elif BX_CRT_NONE
+ #	define BX_CRT_NAME "None"
+ #else
diff --git a/srcpkgs/mame/patches/musl-netlist.patch b/srcpkgs/mame/patches/musl-netlist.patch
index cb500ac7dce01..d02c1bb63cd7a 100644
--- a/srcpkgs/mame/patches/musl-netlist.patch
+++ b/srcpkgs/mame/patches/musl-netlist.patch
@@ -9,16 +9,3 @@
  #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/musl-time_t.patch b/srcpkgs/mame/patches/musl-time_t.patch
deleted file mode 100644
index 0066c7366aafe..0000000000000
--- a/srcpkgs/mame/patches/musl-time_t.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/3rdparty/bx/include/bx/bx.h	2017-12-27 02:45:37.000000000 +0100
-+++ b/3rdparty/bx/include/bx/bx.h	2017-12-28 10:58:30.254932880 +0100
-@@ -11,6 +11,7 @@
- #include <stdint.h> // uint32_t
- #include <stdlib.h> // size_t
- #include <stddef.h> // ptrdiff_t
-+#include <time.h>   // time_t
- 
- #include "platform.h"
- #include "config.h"
diff --git a/srcpkgs/mame/patches/pagesize-name-clash.patch b/srcpkgs/mame/patches/pagesize-name-clash.patch
deleted file mode 100644
index 08b5939f11ccd..0000000000000
--- a/srcpkgs/mame/patches/pagesize-name-clash.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/lib/netlist/plib/palloc.h	2020-06-26 07:55:07.000000000 +0200
-+++ b/src/lib/netlist/plib/palloc.h	2020-06-27 17:37:11.920172697 +0200
-@@ -16,6 +16,7 @@
- 
- #include <algorithm>
- #include <cstddef>      // for std::max_align_t (usually long long)
-+#undef PAGESIZE	// for PAGESIZE
- #include <memory>
- #include <type_traits>
- #include <utility>
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 84580d6cafa30..3ced431ae8730 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,10 +1,10 @@
 # Template file for 'mame'
 pkgname=mame
-version=0251
-revision=3
+version=0262
+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
+ libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
  pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
@@ -12,12 +12,10 @@ 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=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
+checksum=64e482f3dd13be4e91c5dfa076fb7a71f450f2879118c6ae452b0037b661aaae
 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"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -25,6 +23,9 @@ case "$XBPS_TARGET_MACHINE" in
 		CFLAGS+=" -mlong-double-64"
 		CXXFLAGS+=" -mlong-double-64"
 		;;
+	armv[67]*)
+		LDFLAGS+=" -Wl,--long-plt"
+		;;
 esac
 
 build_options="qt"
@@ -33,7 +34,7 @@ build_options_default="qt"
 _options="REGENIE=1 TARGETOS=linux NOWERROR=1 OPENMP=1 OPTIMIZE=3
  TOOLS=1 LTO=0 USE_SYSTEM_LIB_ASIO=0 USE_SYSTEM_LIB_EXPAT=1
  USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1
- USE_SYSTEM_LIB_LUA=0 USE_SYSTEM_LIB_SQLITE3=1
+ USE_SYSTEM_LIB_SQLITE3=1
  USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_PORTAUDIO=1
  USE_SYSTEM_LIB_UTF8PROC=1 USE_SYSTEM_LIB_GLM=1
  USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PUGIXML=1"
@@ -64,8 +65,6 @@ fi
 #_options+=" TARGET=mame SUBTARGET=tiny VERBOSE=1"
 
 do_configure() {
-	# When linking mame expects liblua.so but we have liblua5.3.so
-	ln -sf liblua5.3.so ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 	if [ "${CROSS_BUILD}" ]; then
 		case "$XBPS_TARGET_MACHINE" in
 			i686*|x86_64*) ;;
@@ -131,6 +130,4 @@ do_install() {
 	for f in artwork bgfx docs hash hlsl keymaps plugins samples; do
 		vcopy ${f} usr/share/${pkgname}
 	done
-	# Remove temporary liblua.so symlink
-	rm -f ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Updated] mame: update to 0262.
  2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
                   ` (3 preceding siblings ...)
  2024-02-13 17:43 ` ypsvlq
@ 2024-02-13 17:50 ` ypsvlq
  2024-02-15  3:46 ` [PR PATCH] [Merged]: " classabbyamp
  5 siblings, 0 replies; 7+ messages in thread
From: ypsvlq @ 2024-02-13 17:50 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by ypsvlq against master on the void-packages repository

https://github.com/ypsvlq/void-packages mame
https://github.com/void-linux/void-packages/pull/48481

mame: update to 0262.
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 55d4974aa104cfa7e6fa3e64c6dad7376ddce0fc Mon Sep 17 00:00:00 2001
From: Elaine Gibson <ypsvlq@gmail.com>
Date: Thu, 1 Feb 2024 19:33:55 +0000
Subject: [PATCH] mame: update to 0262.

---
 srcpkgs/mame/patches/musl-bx.patch            | 35 +++++++++++++++++++
 srcpkgs/mame/patches/musl-netlist.patch       | 13 -------
 srcpkgs/mame/patches/musl-time_t.patch        | 10 ------
 .../mame/patches/pagesize-name-clash.patch    | 10 ------
 srcpkgs/mame/template                         | 19 +++++-----
 5 files changed, 43 insertions(+), 44 deletions(-)
 create mode 100644 srcpkgs/mame/patches/musl-bx.patch
 delete mode 100644 srcpkgs/mame/patches/musl-time_t.patch
 delete mode 100644 srcpkgs/mame/patches/pagesize-name-clash.patch

diff --git a/srcpkgs/mame/patches/musl-bx.patch b/srcpkgs/mame/patches/musl-bx.patch
new file mode 100644
index 0000000000000..25ffa10140906
--- /dev/null
+++ b/srcpkgs/mame/patches/musl-bx.patch
@@ -0,0 +1,35 @@
+Restores musl support which was removed upstream:
+https://github.com/bkaradzic/bx/commit/d7ecac17060ab8cf765b21e55a762aa4855dfdb1
+
+diff --git a/3rdparty/bx/include/bx/platform.h b/3rdparty/bx/include/bx/platform.h
+index f14f9b68..ea82d7f3 100644
+--- a/3rdparty/bx/include/bx/platform.h
++++ b/3rdparty/bx/include/bx/platform.h
+@@ -37,6 +37,10 @@
+ #define BX_CRT_MSVC   0
+ #define BX_CRT_NEWLIB 0
+ 
++#ifndef BX_CRT_MUSL
++#	define BX_CRT_MUSL 1
++#endif // BX_CRT_MUSL
++
+ #ifndef BX_CRT_NONE
+ #	define BX_CRT_NONE 0
+ #endif // BX_CRT_NONE
+@@ -255,6 +259,7 @@
+ 	&& !BX_CRT_LIBCXX \
+ 	&& !BX_CRT_MINGW  \
+ 	&& !BX_CRT_MSVC   \
++	&& !BX_CRT_MUSL   \
+ 	&& !BX_CRT_NEWLIB
+ #		undef  BX_CRT_NONE
+ #		define BX_CRT_NONE 1
+@@ -432,6 +437,8 @@
+ #	define BX_CRT_NAME "Clang C Library"
+ #elif BX_CRT_NEWLIB
+ #	define BX_CRT_NAME "Newlib"
++#elif BX_CRT_MUSL
++#	define BX_CRT_NAME "musl libc"
+ #elif BX_CRT_NONE
+ #	define BX_CRT_NAME "None"
+ #else
diff --git a/srcpkgs/mame/patches/musl-netlist.patch b/srcpkgs/mame/patches/musl-netlist.patch
index cb500ac7dce01..d02c1bb63cd7a 100644
--- a/srcpkgs/mame/patches/musl-netlist.patch
+++ b/srcpkgs/mame/patches/musl-netlist.patch
@@ -9,16 +9,3 @@
  #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/musl-time_t.patch b/srcpkgs/mame/patches/musl-time_t.patch
deleted file mode 100644
index 0066c7366aafe..0000000000000
--- a/srcpkgs/mame/patches/musl-time_t.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/3rdparty/bx/include/bx/bx.h	2017-12-27 02:45:37.000000000 +0100
-+++ b/3rdparty/bx/include/bx/bx.h	2017-12-28 10:58:30.254932880 +0100
-@@ -11,6 +11,7 @@
- #include <stdint.h> // uint32_t
- #include <stdlib.h> // size_t
- #include <stddef.h> // ptrdiff_t
-+#include <time.h>   // time_t
- 
- #include "platform.h"
- #include "config.h"
diff --git a/srcpkgs/mame/patches/pagesize-name-clash.patch b/srcpkgs/mame/patches/pagesize-name-clash.patch
deleted file mode 100644
index 08b5939f11ccd..0000000000000
--- a/srcpkgs/mame/patches/pagesize-name-clash.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/lib/netlist/plib/palloc.h	2020-06-26 07:55:07.000000000 +0200
-+++ b/src/lib/netlist/plib/palloc.h	2020-06-27 17:37:11.920172697 +0200
-@@ -16,6 +16,7 @@
- 
- #include <algorithm>
- #include <cstddef>      // for std::max_align_t (usually long long)
-+#undef PAGESIZE	// for PAGESIZE
- #include <memory>
- #include <type_traits>
- #include <utility>
diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template
index 84580d6cafa30..3ced431ae8730 100644
--- a/srcpkgs/mame/template
+++ b/srcpkgs/mame/template
@@ -1,10 +1,10 @@
 # Template file for 'mame'
 pkgname=mame
-version=0251
-revision=3
+version=0262
+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
+ libutf8proc-devel libuv-devel portaudio-devel portmidi-devel
  pugixml-devel rapidjson libXinerama-devel $(vopt_if qt 'qt5-devel')"
 depends="liberation-fonts-ttf"
 short_desc="Multiple Arcade Machine Emulator"
@@ -12,12 +12,10 @@ 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=6d97db4ebfb269b1eb0e530444495a50d3961d0a60bce13e11dc88bbebb2fbc1
+checksum=64e482f3dd13be4e91c5dfa076fb7a71f450f2879118c6ae452b0037b661aaae
 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"
 
 case "$XBPS_TARGET_MACHINE" in
@@ -25,6 +23,9 @@ case "$XBPS_TARGET_MACHINE" in
 		CFLAGS+=" -mlong-double-64"
 		CXXFLAGS+=" -mlong-double-64"
 		;;
+	armv[67]*)
+		LDFLAGS+=" -Wl,--long-plt"
+		;;
 esac
 
 build_options="qt"
@@ -33,7 +34,7 @@ build_options_default="qt"
 _options="REGENIE=1 TARGETOS=linux NOWERROR=1 OPENMP=1 OPTIMIZE=3
  TOOLS=1 LTO=0 USE_SYSTEM_LIB_ASIO=0 USE_SYSTEM_LIB_EXPAT=1
  USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1
- USE_SYSTEM_LIB_LUA=0 USE_SYSTEM_LIB_SQLITE3=1
+ USE_SYSTEM_LIB_SQLITE3=1
  USE_SYSTEM_LIB_PORTMIDI=1 USE_SYSTEM_LIB_PORTAUDIO=1
  USE_SYSTEM_LIB_UTF8PROC=1 USE_SYSTEM_LIB_GLM=1
  USE_SYSTEM_LIB_RAPIDJSON=1 USE_SYSTEM_LIB_PUGIXML=1"
@@ -64,8 +65,6 @@ fi
 #_options+=" TARGET=mame SUBTARGET=tiny VERBOSE=1"
 
 do_configure() {
-	# When linking mame expects liblua.so but we have liblua5.3.so
-	ln -sf liblua5.3.so ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 	if [ "${CROSS_BUILD}" ]; then
 		case "$XBPS_TARGET_MACHINE" in
 			i686*|x86_64*) ;;
@@ -131,6 +130,4 @@ do_install() {
 	for f in artwork bgfx docs hash hlsl keymaps plugins samples; do
 		vcopy ${f} usr/share/${pkgname}
 	done
-	# Remove temporary liblua.so symlink
-	rm -f ${XBPS_CROSS_BASE}/usr/lib/liblua.so
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Merged]: mame: update to 0262.
  2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
                   ` (4 preceding siblings ...)
  2024-02-13 17:50 ` ypsvlq
@ 2024-02-15  3:46 ` classabbyamp
  5 siblings, 0 replies; 7+ messages in thread
From: classabbyamp @ 2024-02-15  3:46 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

mame: update to 0262.
https://github.com/void-linux/void-packages/pull/48481

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-15  3:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-01 19:40 [PR PATCH] mame: update to 0262 ypsvlq
2024-02-01 20:41 ` [PR PATCH] [Updated] " ypsvlq
2024-02-02 11:17 ` ypsvlq
2024-02-02 14:53 ` ypsvlq
2024-02-13 17:43 ` ypsvlq
2024-02-13 17:50 ` ypsvlq
2024-02-15  3:46 ` [PR PATCH] [Merged]: " classabbyamp

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).