pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/tme tme: workaround failures of SS2 emulation.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c987f1111ec5
branches: trunk
changeset: 459215:c987f1111ec5
user: tsutsui <tsutsui%pkgsrc.org@localhost>
date: Fri Oct 01 16:14:48 2021 +0000
description:
tme: workaround failures of SS2 emulation.
https://mail-index.netbsd.org/current-users/2021/07/11/msg041254.html
https://mail-index.netbsd.org/current-users/2021/07/12/msg041257.html
Bump PKGREVISION.
diffstat:
emulators/tme/Makefile | 4 +-
emulators/tme/distinfo | 7 +++--
emulators/tme/patches/patch-configure | 12 ++++++++++-
emulators/tme/patches/patch-configure.in | 12 ++++++++++-
emulators/tme/patches/patch-libtme_host_recode-mmap.c | 20 +++++++++++++++++++
5 files changed, 48 insertions(+), 7 deletions(-)
diffs (112 lines):
diff -r ac58a186a6ac -r c987f1111ec5 emulators/tme/Makefile
--- a/emulators/tme/Makefile Fri Oct 01 15:50:14 2021 +0000
+++ b/emulators/tme/Makefile Fri Oct 01 16:14:48 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.82 2021/05/24 19:52:11 wiz Exp $
+# $NetBSD: Makefile,v 1.83 2021/10/01 16:14:48 tsutsui Exp $
#
DISTNAME= tme-0.8
-PKGREVISION= 48
+PKGREVISION= 49
CATEGORIES= emulators
MASTER_SITES= http://csail.mit.edu/~fredette/tme/
diff -r ac58a186a6ac -r c987f1111ec5 emulators/tme/distinfo
--- a/emulators/tme/distinfo Fri Oct 01 15:50:14 2021 +0000
+++ b/emulators/tme/distinfo Fri Oct 01 16:14:48 2021 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.28 2020/08/13 06:33:59 tsutsui Exp $
+$NetBSD: distinfo,v 1.29 2021/10/01 16:14:48 tsutsui Exp $
SHA1 (tme-0.8.tar.gz) = dd4f3421c20ceed548c5328a21dbb26e80f46b9c
RMD160 (tme-0.8.tar.gz) = 6bd505c5fa7810d37f436883383c4ba655df2ded
SHA512 (tme-0.8.tar.gz) = 961ccee96d5192ff7373a401834e96d5946f3aa783bd4c8839c6b1f5fa15a768e3241972d1e5049f89b8593ff9db0e9dc2378a50e85dae680327c11bc14323e8
Size (tme-0.8.tar.gz) = 2100123 bytes
-SHA1 (patch-configure) = 53835d3d9c3f77618962d67b3a72c5d44f72bf2b
-SHA1 (patch-configure.in) = 9795ad35a16698057f01e78314b5ee215065e450
+SHA1 (patch-configure) = 75fb974a21641cf27fefd34837226367042e5d1d
+SHA1 (patch-configure.in) = 64b4717bc68fab1ece476e11e2d685b2c90aa9ac
SHA1 (patch-host_bsd_Makefile.am) = db0add22732e95b18886877a92e57e1a19d3099f
SHA1 (patch-host_bsd_Makefile.in) = 0c361aca770ec7e323cef150e0e1b29d6a442306
SHA1 (patch-host_bsd_bsd-if.c) = 929ddb1cbf3cbbc84dc9b1c8facba42032857dfa
@@ -18,6 +18,7 @@
SHA1 (patch-ic_m68k_m68k-misc.c) = a5d5f5dfdd0331d30b19815687ead49554a771f1
SHA1 (patch-ic_mm58167.c) = 1c35c599f56f6a13a9dfc85dc5154f094bd8c0d0
SHA1 (patch-ic_sparc_sparc-execute.c) = bccd0f021d3921273f61d9dddb1e93d45ff7d84c
+SHA1 (patch-libtme_host_recode-mmap.c) = 3e405f1783e17f91166539a042f67109f5632b7e
SHA1 (patch-libtme_memory-auto.sh) = b7f70df312e69d711f9ef5c99dc5244e80ea6a14
SHA1 (patch-libtme_misc.c) = 30b27fc54550555d54124af20ef746072c083695
SHA1 (patch-libtme_module.c) = 622db6788f4159b41486bd433a699de75e66d998
diff -r ac58a186a6ac -r c987f1111ec5 emulators/tme/patches/patch-configure
--- a/emulators/tme/patches/patch-configure Fri Oct 01 15:50:14 2021 +0000
+++ b/emulators/tme/patches/patch-configure Fri Oct 01 16:14:48 2021 +0000
@@ -1,9 +1,19 @@
-$NetBSD: patch-configure,v 1.1 2020/08/13 05:59:52 tsutsui Exp $
+$NetBSD: patch-configure,v 1.2 2021/10/01 16:14:48 tsutsui Exp $
+- Workaround for SS2 emulation on NetBSD/amd64.
- Fix wrong comparison.
--- configure.orig 2010-06-05 19:57:30.000000000 +0000
+++ configure
+@@ -12948,7 +12948,7 @@ echo $ECHO_N "checking for target recode
+
+ # get the host recode parts:
+ case "${target}" in
+- i[3456789]86-*-netbsd* | x86_64-*-netbsd* | i[3456789]86-*-linux*)
++ i[3456789]86-*-netbsd* | i[3456789]86-*-linux*)
+ recode_hosts="mmap x86"
+ ;;
+ *) recode_hosts= ;;
@@ -12985,7 +12985,7 @@ i[3456789]86-* | x86_64-*) misc_hosts="x
esac
{ echo "$as_me:$LINENO: result: ${misc_hosts}" >&5
diff -r ac58a186a6ac -r c987f1111ec5 emulators/tme/patches/patch-configure.in
--- a/emulators/tme/patches/patch-configure.in Fri Oct 01 15:50:14 2021 +0000
+++ b/emulators/tme/patches/patch-configure.in Fri Oct 01 16:14:48 2021 +0000
@@ -1,9 +1,19 @@
-$NetBSD: patch-configure.in,v 1.1 2020/08/13 05:59:52 tsutsui Exp $
+$NetBSD: patch-configure.in,v 1.2 2021/10/01 16:14:48 tsutsui Exp $
+- Workaround for SS2 emulation on NetBSD/amd64.
- Fix wrong comparison.
--- configure.in.orig 2010-06-05 19:56:37.000000000 +0000
+++ configure.in
+@@ -565,7 +565,7 @@ else
+
+ # get the host recode parts:
+ case "${target}" in
+- i[3456789]86-*-netbsd* | x86_64-*-netbsd* | i[3456789]86-*-linux*)
++ i[3456789]86-*-netbsd* | i[3456789]86-*-linux*)
+ recode_hosts="mmap x86"
+ ;;
+ *) recode_hosts= ;;
@@ -599,7 +599,7 @@ i[3456789]86-* | x86_64-*) misc_hosts="x
esac
changequote([, ])dnl
diff -r ac58a186a6ac -r c987f1111ec5 emulators/tme/patches/patch-libtme_host_recode-mmap.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/tme/patches/patch-libtme_host_recode-mmap.c Fri Oct 01 16:14:48 2021 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-libtme_host_recode-mmap.c,v 1.1 2021/10/01 16:14:48 tsutsui Exp $
+
+- handle PAX_MPROTEXT properly
+
+--- libtme/host/recode-mmap.c.orig 2008-07-01 02:00:53.000000000 +0000
++++ libtme/host/recode-mmap.c
+@@ -82,7 +82,12 @@ tme_recode_host_thunks_alloc(struct tme_
+ size_run,
+ (PROT_READ
+ | PROT_WRITE
+- | PROT_EXEC),
++#ifdef PROT_MPROTECT
++ | PROT_MPROTECT(PROT_EXEC)
++#else
++ | PROT_EXEC
++#endif /* PROT_MPROTECT */
++ ),
+ (MAP_SHARED
+ #ifdef MAP_ANON
+ | MAP_ANON
Home |
Main Index |
Thread Index |
Old Index