pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/55255: pkgsrc/lang/mozjs60:earmv6hf/v7hf: Nursery.cpp/Statistics.cpp error: call of overloaded 'property
The following reply was made to PR pkg/55255; it has been noted by GNATS.
From: Jun Ebihara <jun%soum.co.jp@localhost>
To: gnats-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost
Cc:
Subject: Re: pkg/55255: pkgsrc/lang/mozjs60:earmv6hf/v7hf:
Nursery.cpp/Statistics.cpp error: call of overloaded 'property
Date: Tue, 12 May 2020 20:51:19 +0900 (JST)
From: gnats-admin%netbsd.org@localhost
Subject: Re: pkg/55255: pkgsrc/lang/mozjs60:earmv6hf/v7hf: Nursery.cpp/Statistics.cpp error: call of overloaded 'property
Date: Tue, 12 May 2020 06:40:00 +0000 (UTC)
Rin Okuyama adviced me,
NetBSD/arm32 size_t is unsigned long,nor uint32_t/uint64_t.
Thanx!
https://twitter.com/LabDrunker/status/1260121040191012864
http://www.netbsd.org/~rin/mozjs60_arm.patch
--- js/src/vm/JSONPrinter.orig 2020-05-12 17:06:38.387691368 +0900
+++ js/src/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);
--- js/src/vm/JSONPrinter.h.orig 2020-05-12 17:06:42.908461670 +0900
+++ js/src/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