pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/pearpc Update to 0.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46d54036c392
branches:  trunk
changeset: 377440:46d54036c392
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat Mar 17 01:27:55 2018 +0000

description:
Update to 0.5

* Use c++03 to fix build.
* ppc binary is not PaX MPROTECT safe.

Changelog:
version 0.5 (released 13. July 2011):
        - slightly better code for lmw/stmw opcodes
        - use "GNU as" instead of nasm
        - use -mdynamic-no-pic on *darwin
        - fixed some strict-aliasing problems
        - JITC: AMD64 support
        - compiles with gcc 4.3, 4.4, 4.5

diffstat:

 emulators/pearpc/Makefile                                             |  11 ++++--
 emulators/pearpc/distinfo                                             |  15 ++++----
 emulators/pearpc/patches/patch-ag                                     |   8 ++--
 emulators/pearpc/patches/patch-ah                                     |  13 -------
 emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc |  17 ++++++++++
 emulators/pearpc/patches/patch-src_system_types.h                     |  13 -------
 6 files changed, 35 insertions(+), 42 deletions(-)

diffs (132 lines):

diff -r 43ec9ece735d -r 46d54036c392 emulators/pearpc/Makefile
--- a/emulators/pearpc/Makefile Sat Mar 17 01:22:53 2018 +0000
+++ b/emulators/pearpc/Makefile Sat Mar 17 01:27:55 2018 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2015/04/25 14:20:46 tnn Exp $
+# $NetBSD: Makefile,v 1.20 2018/03/17 01:27:55 ryoon Exp $
 
-DISTNAME=              pearpc-0.4
-PKGREVISION=           3
+DISTNAME=              pearpc-0.5
 CATEGORIES=            emulators
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=pearpc/}
 EXTRACT_SUFX=          .tar.bz2
@@ -11,7 +10,9 @@
 COMMENT=               PowerPC emulator
 
 GNU_CONFIGURE=         yes
-USE_LANGUAGES=         c c++
+USE_LANGUAGES=         c c++03
+
+BUILDLINK_TRANSFORM+=  rm:-Wall
 
 EGDIR=                 ${PREFIX}/share/examples/${PKGBASE}
 CONF_FILES=            ${EGDIR}/ppccfg.example ${PKG_SYSCONFDIR}/ppccfg.conf
@@ -27,6 +28,8 @@
 
 INSTALLATION_DIRS=     share/${PKGBASE} ${EGDIR} bin
 
+NOT_PAX_MPROTECT_SAFE+=        share/pearpc/ppc
+
 do-install:
        ${SED}  -e "s,@PREFIX@,${PREFIX}," \
                -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR}," \
diff -r 43ec9ece735d -r 46d54036c392 emulators/pearpc/distinfo
--- a/emulators/pearpc/distinfo Sat Mar 17 01:22:53 2018 +0000
+++ b/emulators/pearpc/distinfo Sat Mar 17 01:27:55 2018 +0000
@@ -1,16 +1,15 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 20:31:01 agc Exp $
+$NetBSD: distinfo,v 1.11 2018/03/17 01:27:55 ryoon Exp $
 
-SHA1 (pearpc-0.4.tar.bz2) = 1cfa4f19f9a1de73c209a38d8fda174c0ebe6ad5
-RMD160 (pearpc-0.4.tar.bz2) = 84c831b3ede69721d0fa48d71a30ee0e7ec512fc
-SHA512 (pearpc-0.4.tar.bz2) = 03b1c189ddeb16edbfa8cc5485543a329e2c34102701c8c9ac78ccb8b962f8cbb90e208939c6bf6b526970d77f3a07f16344d415a50d189612cf5f76d4ac6483
-Size (pearpc-0.4.tar.bz2) = 687776 bytes
+SHA1 (pearpc-0.5.tar.bz2) = 17c5ec69f0139d5a5ce02186a3c990040f45f343
+RMD160 (pearpc-0.5.tar.bz2) = 5f2cd819c21a2cd69465737cf873fc7f00c59188
+SHA512 (pearpc-0.5.tar.bz2) = 26fdc238e846bb52394c6a6e59c8b391b916c464a0e906bf0fb1007401eac3d278b5e4ca1f4f85238ea15f15b4ca731e0dcf5835c5ff189ac9307b98f3f3ab21
+Size (pearpc-0.5.tar.bz2) = 800380 bytes
 SHA1 (patch-aa) = bfb350b83e10c8862b978ee0a1cb02db841576ea
 SHA1 (patch-ab) = c8724e43d99476d5ccae8d8782dc8bf9705743ae
 SHA1 (patch-ac) = e6b52cf368391fe6d09722a6ba99e5b3933c5b03
 SHA1 (patch-ad) = 5932a40320c7783c8379d2af7f6d98a42707ff1b
 SHA1 (patch-ae) = 53dfb9a705296085bc1cdf707b9c491b0a2a4030
 SHA1 (patch-af) = dd2b1c23ab00313be04ca144fbceb3416b1d7d8f
-SHA1 (patch-ag) = 8ec459446fd666b99345d4a8963bcf47e35b0435
-SHA1 (patch-ah) = 0ba6c0f72f3fe382aa07bf2304813417ce2fd6f9
+SHA1 (patch-ag) = 2f7d50f5be1f72fb0902d1fd44c1fd0ff44439a8
+SHA1 (patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc) = 9827762237ea18a18d3e4105479db58c5638fe80
 SHA1 (patch-src_cpu_mem.h) = cb21242ef53e72e0f75fc8ea6119ebad3d08b2e9
-SHA1 (patch-src_system_types.h) = 90cce88a9936616901e43a5c21cb5db11e9ce2da
diff -r 43ec9ece735d -r 46d54036c392 emulators/pearpc/patches/patch-ag
--- a/emulators/pearpc/patches/patch-ag Sat Mar 17 01:22:53 2018 +0000
+++ b/emulators/pearpc/patches/patch-ag Sat Mar 17 01:27:55 2018 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-ag,v 1.1 2006/01/12 20:57:25 joerg Exp $
+$NetBSD: patch-ag,v 1.2 2018/03/17 01:27:55 ryoon Exp $
 
---- configure.orig     2006-01-12 20:37:05.000000000 +0000
+--- configure.orig     2011-07-12 21:21:49.000000000 +0000
 +++ configure
-@@ -1934,7 +1934,7 @@ linux* | gnu* | k*bsd*-gnu)
- echo "${ECHO_T}*** GNU, building POSIX version. we need pthread and rt." >&6
+@@ -3154,7 +3154,7 @@ $as_echo "*** GNU, building POSIX versio
+       PPC_CXXFLAGS="$PPC_CXXFLAGS -pthread"
        PPC_LDADD="$PPC_LDADD -lpthread -lrt"
  ;;
 -freebsd*)
diff -r 43ec9ece735d -r 46d54036c392 emulators/pearpc/patches/patch-ah
--- a/emulators/pearpc/patches/patch-ah Sat Mar 17 01:22:53 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2007/11/13 18:01:58 joerg Exp $
-
---- src/tools/crc32.cc.orig    2007-11-13 17:40:47.000000000 +0100
-+++ src/tools/crc32.cc
-@@ -106,7 +106,7 @@ uint32 ether_crc(size_t len, const byte 
-     uint32  crc = 0xffffffff;   // preload shift register, per CRC-32 spec
- 
- #ifdef RUN_FASTER
--    for (; (((uint32)p)&0x03)!=0 && len>0; len--)
-+    for (; (((uintptr_t)p)&0x03)!=0 && len>0; len--)
-         DO_CRC(*p++);           // will execute if *p is not dword aligned
-     for (; len>=sizeof(uint32); p += sizeof(uint32), len -= sizeof(uint32)) {
-         uint32 data = *(uint32*)p;
diff -r 43ec9ece735d -r 46d54036c392 emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/pearpc/patches/patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc     Sat Mar 17 01:27:55 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_cpu_cpu__jitc__x86__64_ppc__mmu.cc,v 1.1 2018/03/17 01:27:55 ryoon Exp $
+
+* Support platforms that does not define MAP_32BIT, for example NetBSD.
+
+--- src/cpu/cpu_jitc_x86_64/ppc_mmu.cc.orig    2011-07-12 20:57:24.000000000 +0000
++++ src/cpu/cpu_jitc_x86_64/ppc_mmu.cc
+@@ -37,6 +37,10 @@
+ byte *gMemory = NULL;
+ uint32 gMemorySize;
+ 
++#ifndef MAP_32BIT
++#define MAP_32BIT 0
++#endif
++
+ #undef TLB
+ 
+ static int ppc_pte_protection[] = {
diff -r 43ec9ece735d -r 46d54036c392 emulators/pearpc/patches/patch-src_system_types.h
--- a/emulators/pearpc/patches/patch-src_system_types.h Sat Mar 17 01:22:53 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_system_types.h,v 1.1 2015/03/31 15:25:22 joerg Exp $
-
---- src/system/types.h.orig    2015-03-26 10:25:25.000000000 +0000
-+++ src/system/types.h
-@@ -42,7 +42,7 @@
- #ifdef __GNUC__
- 
-       // FIXME: configure
--#     ifndef __ppc__
-+#     ifdef __i386__
- #             define FASTCALL __attribute__((regparm (3)))
- #     else
- #             define FASTCALL



Home | Main Index | Thread Index | Old Index