On Wed, 2021-03-10 at 14:17 -0500, Kurt Miller wrote: > On Wed, 2021-03-10 at 16:06 +0100, Peter Hessler wrote: > > > > this builds for me on aarch64. > > > > OK > Thank you. > > I tested Peter's package on aarch64 using X11 forwarding and it appears > to be working well. There was a core file in my home dir but chrome > didn't visibly crash. > > I've also tested amd64 builds and works (also using X11 forwarding). > > I have an i386 build going as well and will report back results. >
i386 doesn't work due to the binary .text size exceeding the max supported value there. aarch64 builds and works and amd64 is also tested now. Is this okay now or do we need more testing? Index: Makefile =================================================================== RCS file: /cvs/ports/www/chromium/Makefile,v retrieving revision 1.550 diff -u -p -u -r1.550 Makefile --- Makefile 26 Feb 2021 18:20:36 -0000 1.550 +++ Makefile 11 Mar 2021 15:29:06 -0000 @@ -16,6 +16,7 @@ DPB_PROPERTIES= lonesome COMMENT= Chromium browser V= 88.0.4324.190 +REVISION= 0 DISTNAME= chromium-${V} Index: patches/patch-v8_src_base_platform_platform-posix_cc =================================================================== RCS file: /cvs/ports/www/chromium/patches/patch-v8_src_base_platform_platform-posix_cc,v retrieving revision 1.29 diff -u -p -u -r1.29 patch-v8_src_base_platform_platform-posix_cc --- patches/patch-v8_src_base_platform_platform-posix_cc 20 Jan 2021 07:28:12 -0000 1.29 +++ patches/patch-v8_src_base_platform_platform-posix_cc 11 Mar 2021 15:29:06 -0000 @@ -3,7 +3,31 @@ $OpenBSD: patch-v8_src_base_platform_pla Index: v8/src/base/platform/platform-posix.cc --- v8/src/base/platform/platform-posix.cc.orig +++ v8/src/base/platform/platform-posix.cc -@@ -464,7 +464,7 @@ bool OS::DiscardSystemPages(void* address, size_t size +@@ -266,8 +266,15 @@ void OS::SetRandomMmapSeed(int64_t seed) { + } + } + ++#if V8_OS_OPENBSD ++// Allow OpenBSD's mmap to select a random address on OpenBSD + // static + void* OS::GetRandomMmapAddr() { ++ return nullptr; ++} ++#else ++// static ++void* OS::GetRandomMmapAddr() { + uintptr_t raw_addr; + { + MutexGuard guard(rng_mutex.Pointer()); +@@ -350,6 +357,7 @@ void* OS::GetRandomMmapAddr() { + #endif + return reinterpret_cast<void*>(raw_addr); + } ++#endif + + // TODO(bbudge) Move Cygwin and Fuchsia stuff into platform-specific files. + #if !V8_OS_CYGWIN && !V8_OS_FUCHSIA +@@ -464,7 +472,7 @@ bool OS::DiscardSystemPages(void* address, size_t size // static bool OS::HasLazyCommits() { @@ -12,7 +36,7 @@ Index: v8/src/base/platform/platform-pos return true; #else // TODO(bbudge) Return true for all POSIX platforms. -@@ -1000,7 +1000,7 @@ void Thread::SetThreadLocal(LocalStorageKey key, void* +@@ -1000,7 +1008,7 @@ void Thread::SetThreadLocal(LocalStorageKey key, void* // keep this version in POSIX as most Linux-compatible derivatives will // support it. MacOS and FreeBSD are different here. #if !defined(V8_OS_FREEBSD) && !defined(V8_OS_MACOSX) && !defined(_AIX) && \