Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/mozjs68 PR pkg/55255
details: https://anonhg.NetBSD.org/pkgsrc/rev/bc4e032866ec
branches: trunk
changeset: 431504:bc4e032866ec
user: rin <rin%pkgsrc.org@localhost>
date: Thu May 14 08:44:48 2020 +0000
description:
PR pkg/55255
Fix build for NetBSD/arm in the same manner as lang/mozjs60.
Bump revision.
diffstat:
lang/mozjs68/Makefile | 4 ++--
lang/mozjs68/distinfo | 4 +++-
lang/mozjs68/patches/patch-vm_JSONPrinter.cpp | 17 +++++++++++++++++
lang/mozjs68/patches/patch-vm_JSONPrinter.h | 17 +++++++++++++++++
4 files changed, 39 insertions(+), 3 deletions(-)
diffs (71 lines):
diff -r a4202331d078 -r bc4e032866ec lang/mozjs68/Makefile
--- a/lang/mozjs68/Makefile Thu May 14 08:42:22 2020 +0000
+++ b/lang/mozjs68/Makefile Thu May 14 08:44:48 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2020/04/12 08:27:58 adam Exp $
+# $NetBSD: Makefile,v 1.3 2020/05/14 08:44:48 rin Exp $
DISTNAME= mozjs68_68.6.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs68/
EXTRACT_SUFX= .tar.xz
diff -r a4202331d078 -r bc4e032866ec lang/mozjs68/distinfo
--- a/lang/mozjs68/distinfo Thu May 14 08:42:22 2020 +0000
+++ b/lang/mozjs68/distinfo Thu May 14 08:44:48 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2020/04/06 04:58:42 wiz Exp $
+$NetBSD: distinfo,v 1.2 2020/05/14 08:44:48 rin Exp $
SHA1 (mozjs68_68.6.0.orig.tar.xz) = 98eb63629e8889caa738fa15591fe8eeba73b227
RMD160 (mozjs68_68.6.0.orig.tar.xz) = 7b00f416e1e767b0595fbd7e4c26c42c83ccd7a1
@@ -6,3 +6,5 @@
Size (mozjs68_68.6.0.orig.tar.xz) = 75303520 bytes
SHA1 (patch-.._.._config_rules.mk) = cf3421d991e1cbfab4c0cdcb7b648b1388fa32d5
SHA1 (patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py) = dda670432e5673c5d28dcf6c4902d4a724e71170
+SHA1 (patch-vm_JSONPrinter.cpp) = 384f26d9602844a3a586184c8971d48a07453645
+SHA1 (patch-vm_JSONPrinter.h) = b92c335185886f79d15f2d9d348bf10e4a714c6e
diff -r a4202331d078 -r bc4e032866ec lang/mozjs68/patches/patch-vm_JSONPrinter.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs68/patches/patch-vm_JSONPrinter.cpp Thu May 14 08:44:48 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-vm_JSONPrinter.cpp,v 1.1 2020/05/14 08:44:48 rin Exp $
+
+For NetBSD/arm, size_t is unsigned long, which is neither
+uint32_t (= unsigned int) nor uint64_t (= unsigned long long).
+
+--- vm/JSONPrinter.cpp.orig 2020-05-12 17:06:38.387691368 +0900
++++ vm/JSONPrinter.cpp 2020-05-12 17:10:20.842391283 +0900
+@@ -119,7 +119,8 @@ void JSONPrinter::property(const char* n
+ out_.printf("%" PRIu64, value);
+ }
+
+-#if defined(XP_DARWIN) || defined(__OpenBSD__)
++#if defined(XP_DARWIN) || defined(__OpenBSD__) || \
++ (defined(__NetBSD__) && defined(__arm__))
+ void JSONPrinter::property(const char* name, size_t value) {
+ propertyName(name);
+ out_.printf("%zu", value);
diff -r a4202331d078 -r bc4e032866ec lang/mozjs68/patches/patch-vm_JSONPrinter.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs68/patches/patch-vm_JSONPrinter.h Thu May 14 08:44:48 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-vm_JSONPrinter.h,v 1.1 2020/05/14 08:44:48 rin Exp $
+
+For NetBSD/arm, size_t is unsigned long, which is neither
+uint32_t (= unsigned int) nor uint64_t (= unsigned long long).
+
+--- vm/JSONPrinter.h.orig 2020-05-12 17:06:42.908461670 +0900
++++ vm/JSONPrinter.h 2020-05-12 17:09:54.171126154 +0900
+@@ -45,7 +45,8 @@ class JSONPrinter {
+ void property(const char* name, uint32_t value);
+ void property(const char* name, int64_t value);
+ void property(const char* name, uint64_t value);
+-#if defined(XP_DARWIN) || defined(__OpenBSD__)
++#if defined(XP_DARWIN) || defined(__OpenBSD__) || \
++ (defined(__NetBSD__) && defined(__arm__))
+ // On OSX and OpenBSD, size_t is long unsigned, uint32_t is unsigned, and
+ // uint64_t is long long unsigned. Everywhere else, size_t matches either
+ // uint32_t or uint64_t.
Home |
Main Index |
Thread Index |
Old Index