pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/mozjs78 mozjs78: Adapt he@'s mozjs60 powerpc patches
details: https://anonhg.NetBSD.org/pkgsrc/rev/0ed3227b6b2e
branches: trunk
changeset: 442665:0ed3227b6b2e
user: nia <nia%pkgsrc.org@localhost>
date: Sat Nov 28 10:54:55 2020 +0000
description:
mozjs78: Adapt he@'s mozjs60 powerpc patches
diffstat:
lang/mozjs78/Makefile | 7 ++++++-
lang/mozjs78/distinfo | 3 ++-
lang/mozjs78/patches/patch-jit_AtomicOperations.h | 16 ++++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diffs (58 lines):
diff -r c53fc5741431 -r 0ed3227b6b2e lang/mozjs78/Makefile
--- a/lang/mozjs78/Makefile Sat Nov 28 01:29:08 2020 +0000
+++ b/lang/mozjs78/Makefile Sat Nov 28 10:54:55 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2020/11/25 00:40:16 gutteridge Exp $
+# $NetBSD: Makefile,v 1.6 2020/11/28 10:54:55 nia Exp $
DISTNAME= mozjs78_78.4.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
@@ -40,6 +40,11 @@
CXXFLAGS+= -march=i586
.endif
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
+# 64 bit atomics
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
PKGCONFIG_OVERRIDE+= build/js.pc.in
PKGCONFIG_OVERRIDE+= ctypes/libffi/libffi.pc.in
diff -r c53fc5741431 -r 0ed3227b6b2e lang/mozjs78/distinfo
--- a/lang/mozjs78/distinfo Sat Nov 28 01:29:08 2020 +0000
+++ b/lang/mozjs78/distinfo Sat Nov 28 10:54:55 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2020/11/25 00:40:16 gutteridge Exp $
+$NetBSD: distinfo,v 1.3 2020/11/28 10:54:55 nia Exp $
SHA1 (mozjs78_78.4.0.orig.tar.xz) = b2c1c241f70310d545f8a3c05b9c8c11676e56a8
RMD160 (mozjs78_78.4.0.orig.tar.xz) = cef93b6116eff9f04beeaf3dda0a42cd811d0b18
@@ -8,6 +8,7 @@
SHA1 (patch-.._.._build_moz.configure_toolchain.configure) = 055312319a6a4e2916263baf318585b943c1ca20
SHA1 (patch-.._.._mfbt_tests_TestVariant.cpp) = e2b1aa54059a8a64ecef2bcf2807f5d8d85a89d2
SHA1 (patch-configure.in) = e8dab4a549e5cdf2e97d65b258970f9f6cc9c72c
+SHA1 (patch-jit_AtomicOperations.h) = 5e3d51f209f94e9c1b33abe965cdf4289aab65d5
SHA1 (patch-jit_ProcessExecutableMemory.cpp) = d65001c07cc9393db2dce6ff291e94d5dd76b86e
SHA1 (patch-jsfriendapi.h) = c6eea8b37d44a4b0f9ca0a325e482d01ef2c6e0f
SHA1 (patch-vm_ArrayBufferObject.cpp) = 931695e3e02ec1d6ed0f722be1059c48878cd117
diff -r c53fc5741431 -r 0ed3227b6b2e lang/mozjs78/patches/patch-jit_AtomicOperations.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs78/patches/patch-jit_AtomicOperations.h Sat Nov 28 10:54:55 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-jit_AtomicOperations.h,v 1.1 2020/11/28 10:54:55 nia Exp $
+
+C++ on NetBSD/powerpc doesn't predefine __ppc__, only __powerpc__. Compensate.
+
+--- jit/AtomicOperations.h.orig 2020-11-04 10:51:58.000000000 +0000
++++ jit/AtomicOperations.h
+@@ -391,7 +391,8 @@ inline bool AtomicOperations::isLockfree
+ #elif defined(__ppc__) || defined(__PPC__) || defined(__sparc__) || \
+ defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || \
+ defined(__PPC64LE__) || defined(__alpha__) || defined(__hppa__) || \
+- defined(__sh__) || defined(__s390__) || defined(__s390x__)
++ defined(__sh__) || defined(__s390__) || defined(__s390x__) || \
++ defined(__powerpc__)
+ # include "jit/shared/AtomicOperations-feeling-lucky.h"
+ #else
+ # error "No AtomicOperations support provided for this platform"
Home |
Main Index |
Thread Index |
Old Index