pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/libretro-mgba emulators/libretro-mgba: Updat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/45c6ccf2d4c0
branches:  trunk
changeset: 322598:45c6ccf2d4c0
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Apr 25 12:44:23 2019 +0000

description:
emulators/libretro-mgba: Update to 0.7.1

Bugfixes:
 - GB: Fix crash when accessing SRAM if no save loaded and cartridge has no SRAM
 - GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293)
 - GB, GBA Serialize: Fix loading two states in a row
 - GBA: Fix video timing when skipping BIOS (fixes mgba.io/i/1318)
 - GBA DMA: Fix Display Start DMAs
 - GBA DMA: Fix DMA start/end timing
 - GBA DMA: Fix invalid DMA handling (fixes mgba.io/i/1301)
 - GBA Memory: Fix a few AGBPrint crashes
 - GBA Memory: Fix OOB ROM reads showing up as AGBPrint memory
 - GBA SIO: Prevent writing read-only multiplayer bits
 - GBA Video: Fix enabling layers in non-tile modes (fixes mgba.io/i/1317)
Misc:
 - GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1274)

diffstat:

 emulators/libretro-mgba/Makefile                              |   4 +-
 emulators/libretro-mgba/distinfo                              |  16 +--
 emulators/libretro-mgba/patches/patch-CMakeLists.txt          |  16 +---
 emulators/libretro-mgba/patches/patch-include_mgba-util_vfs.h |  15 ----
 emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-fd.c   |  39 -----------
 emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-fifo.c |  24 ------
 emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-mem.c  |  24 ------
 7 files changed, 10 insertions(+), 128 deletions(-)

diffs (189 lines):

diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/Makefile
--- a/emulators/libretro-mgba/Makefile  Thu Apr 25 12:44:10 2019 +0000
+++ b/emulators/libretro-mgba/Makefile  Thu Apr 25 12:44:23 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2019/01/27 17:04:16 nia Exp $
+# $NetBSD: Makefile,v 1.4 2019/04/25 12:44:23 nia Exp $
 
-DISTNAME=      libretro-mgba-0.7.0
+DISTNAME=      libretro-mgba-0.7.1
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mgba-emu/}
 GITHUB_PROJECT=        mgba
diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/distinfo
--- a/emulators/libretro-mgba/distinfo  Thu Apr 25 12:44:10 2019 +0000
+++ b/emulators/libretro-mgba/distinfo  Thu Apr 25 12:44:23 2019 +0000
@@ -1,13 +1,9 @@
-$NetBSD: distinfo,v 1.3 2019/01/27 17:04:16 nia Exp $
+$NetBSD: distinfo,v 1.4 2019/04/25 12:44:23 nia Exp $
 
-SHA1 (libretro-mgba-0.7.0.tar.gz) = d39ff87381ebb5152e9b1a3822d5a0670b659293
-RMD160 (libretro-mgba-0.7.0.tar.gz) = 87577c5d61667fe9ebe1ac0144c4f7d6e968bc31
-SHA512 (libretro-mgba-0.7.0.tar.gz) = 68eac18f6e411c60ef6c6dded0f2b293cb4831c4c6f15c4cf3bb7f8dc6a5de65000d7d904ff5bec52aef8714fae3a77d7ed7b43cbccba528cc05b56546802010
-Size (libretro-mgba-0.7.0.tar.gz) = 10767992 bytes
-SHA1 (patch-CMakeLists.txt) = 55165a347984ebac37f8d75ca180618f08b0386c
+SHA1 (libretro-mgba-0.7.1.tar.gz) = 94a6906cf4f64b61ab5d0b83804c079b4d7d5cc5
+RMD160 (libretro-mgba-0.7.1.tar.gz) = b1a42e49b7a12767e928e762d56f7ebec582b08e
+SHA512 (libretro-mgba-0.7.1.tar.gz) = 91aa66a9140e250ccd6f4790c2ed4977248bccda3b499bd48c61b01aedbdd93e947f5505dee7c30b21beb39723fc321cdbdb6953df8292a193e0fbb9161a8ae5
+Size (libretro-mgba-0.7.1.tar.gz) = 11054044 bytes
+SHA1 (patch-CMakeLists.txt) = c248f6efc67327667c409264b4e4a00720043a0e
 SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0
-SHA1 (patch-include_mgba-util_vfs.h) = 5e02a5d53623dfa5f1531d2d3269cc4e88e4530c
-SHA1 (patch-src_util_vfs_vfs-fd.c) = f544787d17d95fb234f9844f0c3eef17805a798d
-SHA1 (patch-src_util_vfs_vfs-fifo.c) = 94240338a440e3da9b41e37e8c934113aacd5904
-SHA1 (patch-src_util_vfs_vfs-mem.c) = 7b55448fa616b078eac62e80867ef6894d3be8ed
 SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21
diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/patches/patch-CMakeLists.txt
--- a/emulators/libretro-mgba/patches/patch-CMakeLists.txt      Thu Apr 25 12:44:10 2019 +0000
+++ b/emulators/libretro-mgba/patches/patch-CMakeLists.txt      Thu Apr 25 12:44:23 2019 +0000
@@ -1,14 +1,11 @@
-$NetBSD: patch-CMakeLists.txt,v 1.2 2019/01/27 17:04:16 nia Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.3 2019/04/25 12:44:23 nia Exp $
 
 Avoid checking for a C++ compiler, since C++ isn't required for a
 libretro build.
 
-vfs-dirent peeks into non-standard structures and also isn't required
-for a libretro build.
-
 Fix locale detection.
 
---- CMakeLists.txt.orig        2019-01-27 00:06:06.000000000 +0000
+--- CMakeLists.txt.orig        2019-02-25 01:33:16.000000000 +0000
 +++ CMakeLists.txt
 @@ -5,7 +5,7 @@ endif()
  if(POLICY CMP0072)
@@ -19,15 +16,6 @@
  set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries")
  if(NOT MSVC)
        set(GCC_STD "c99")
-@@ -245,7 +245,7 @@ elseif(UNIX)
-               set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
-       endif()
- 
--      list(APPEND CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-fd.c ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-dirent.c)
-+      list(APPEND CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-fd.c)
-       file(GLOB OS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/posix/*.c)
-       source_group("POSIX-specific code" FILES ${OS_SRC})
- endif()
 @@ -391,7 +391,9 @@ if(HAVE_LOCALTIME_R)
        list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R)
  endif()
diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/patches/patch-include_mgba-util_vfs.h
--- a/emulators/libretro-mgba/patches/patch-include_mgba-util_vfs.h     Thu Apr 25 12:44:10 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-include_mgba-util_vfs.h,v 1.1 2018/09/07 18:54:02 nia Exp $
-
-vfs-fd's sync implementation uses msync, which uses a non-const pointer.
-
---- include/mgba-util/vfs.h.orig       2018-04-14 20:49:19.000000000 +0000
-+++ include/mgba-util/vfs.h
-@@ -47,7 +47,7 @@ struct VFile {
-       void (*unmap)(struct VFile* vf, void* memory, size_t size);
-       void (*truncate)(struct VFile* vf, size_t size);
-       ssize_t (*size)(struct VFile* vf);
--      bool (*sync)(struct VFile* vf, const void* buffer, size_t size);
-+      bool (*sync)(struct VFile* vf, void *buffer, size_t size);
- };
- 
- struct VDirEntry {
diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-fd.c
--- a/emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-fd.c       Thu Apr 25 12:44:10 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-$NetBSD: patch-src_util_vfs_vfs-fd.c,v 1.1 2018/09/07 18:54:02 nia Exp $
-
-Define _BSD_SOURCE for futimes().
-
-msync's argument is a non-const void pointer, so don't needlessly
-convert to const then discard it.
-
---- src/util/vfs/vfs-fd.c.orig 2018-04-14 20:49:19.000000000 +0000
-+++ src/util/vfs/vfs-fd.c
-@@ -3,6 +3,11 @@
-  * This Source Code Form is subject to the terms of the Mozilla Public
-  * License, v. 2.0. If a copy of the MPL was not distributed with this
-  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-+#define _BSD_SOURCE /* futimes */
-+#ifdef __NetBSD__
-+#define _NETBSD_SOURCE /* futimes */
-+#endif
-+
- #include <mgba-util/vfs.h>
- 
- #include <fcntl.h>
-@@ -30,7 +35,7 @@ static void* _vfdMap(struct VFile* vf, s
- static void _vfdUnmap(struct VFile* vf, void* memory, size_t size);
- static void _vfdTruncate(struct VFile* vf, size_t size);
- static ssize_t _vfdSize(struct VFile* vf);
--static bool _vfdSync(struct VFile* vf, const void* buffer, size_t size);
-+static bool _vfdSync(struct VFile* vf, void* buffer, size_t size);
- 
- struct VFile* VFileOpenFD(const char* path, int flags) {
-       if (!path) {
-@@ -161,7 +166,7 @@ static ssize_t _vfdSize(struct VFile* vf
-       return stat.st_size;
- }
- 
--static bool _vfdSync(struct VFile* vf, const void* buffer, size_t size) {
-+static bool _vfdSync(struct VFile* vf, void* buffer, size_t size) {
-       UNUSED(buffer);
-       UNUSED(size);
-       struct VFileFD* vfd = (struct VFileFD*) vf;
diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-fifo.c
--- a/emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-fifo.c     Thu Apr 25 12:44:10 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_util_vfs_vfs-fifo.c,v 1.1 2018/09/07 18:54:02 nia Exp $
-
-vfs.sync's buffer pointer isn't const.
-
---- src/util/vfs/vfs-fifo.c.orig       2018-04-14 20:49:19.000000000 +0000
-+++ src/util/vfs/vfs-fifo.c
-@@ -19,7 +19,7 @@ static void* _vffMap(struct VFile* vf, s
- static void _vffUnmap(struct VFile* vf, void* memory, size_t size);
- static void _vffTruncate(struct VFile* vf, size_t size);
- static ssize_t _vffSize(struct VFile* vf);
--static bool _vffSync(struct VFile* vf, const void* buffer, size_t size);
-+static bool _vffSync(struct VFile* vf, void* buffer, size_t size);
- 
- struct VFile* VFileFIFO(struct CircleBuffer* backing) {
-       if (!backing) {
-@@ -94,7 +94,7 @@ static ssize_t _vffSize(struct VFile* vf
-       return CircleBufferSize(vff->backing);
- }
- 
--static bool _vffSync(struct VFile* vf, const void* buffer, size_t size) {
-+static bool _vffSync(struct VFile* vf, void* buffer, size_t size) {
-       UNUSED(vf);
-       UNUSED(buffer);
-       UNUSED(size);
diff -r f0da099a3482 -r 45c6ccf2d4c0 emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-mem.c
--- a/emulators/libretro-mgba/patches/patch-src_util_vfs_vfs-mem.c      Thu Apr 25 12:44:10 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_util_vfs_vfs-mem.c,v 1.1 2018/09/07 18:54:02 nia Exp $
-
-vfs.sync's buffer pointer isn't const.
-
---- src/util/vfs/vfs-mem.c.orig        2018-04-14 20:49:19.000000000 +0000
-+++ src/util/vfs/vfs-mem.c
-@@ -28,7 +28,7 @@ static void _vfmUnmap(struct VFile* vf, 
- static void _vfmTruncate(struct VFile* vf, size_t size);
- static void _vfmTruncateNoop(struct VFile* vf, size_t size);
- static ssize_t _vfmSize(struct VFile* vf);
--static bool _vfmSync(struct VFile* vf, const void* buffer, size_t size);
-+static bool _vfmSync(struct VFile* vf, void* buffer, size_t size);
- 
- struct VFile* VFileFromMemory(void* mem, size_t size) {
-       if (!mem || !size) {
-@@ -297,7 +297,7 @@ ssize_t _vfmSize(struct VFile* vf) {
-       return vfm->size;
- }
- 
--bool _vfmSync(struct VFile* vf, const void* buffer, size_t size) {
-+bool _vfmSync(struct VFile* vf, void* buffer, size_t size) {
-       UNUSED(vf);
-       UNUSED(buffer);
-       UNUSED(size);



Home | Main Index | Thread Index | Old Index