head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.4 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.2 pkgsrc-2025Q4-base:1.1; locks; strict; comment @// @; 1.1 date 2025.10.25.14.45.27; author tsutsui; state Exp; branches; next ; commitid vNMgVXg1AlfvCXfG; desc @@ 1.1 log @webkit-gtk: try to make this builds on NetBSD/earmv7hf{,eb}. - handle size_t == unsigned long on ILP32 cases (NetBSD/arm and powerpc) - handle not only __ARMEL__ but also __ARMEB__ properly - fix build errors in case of ARM_NEON && !ENABLE_UNIFIED_BUILDS - set UNLIMIT_RESOURCES for large C++ source files - disable -O2 and Unified builds on NetBSD/arm with gcc 10.x (for netbsd-10) XXX: Builds on NetBSD/earmv7hfeb still fail due to "virtual memory exhausted: Cannot allocate memory" errors on compiling WebCore/DerivedSources/JSDOMWindow.cpp (generated ~1.5MB C++ source file) on 1GB Raspberry Pi 3B. No visible regression on NetBSD/amd64 10.1 builds. @ text @$NetBSD$ - fix build errors on NetBSD/arm where size_t == unsigned long --- Source/JavaScriptCore/API/glib/JSCOptions.cpp.orig 2022-06-30 09:49:25.102854500 +0000 +++ Source/JavaScriptCore/API/glib/JSCOptions.cpp @@@@ -73,7 +73,8 @@@@ static void valueToGValue(int32_t value, g_value_set_int(gValue, value); } -#if CPU(ADDRESS64) +#if CPU(ADDRESS64) || OS(DARWIN) || \ + (defined(__NetBSD__) && (defined(__arm__) || defined(__powerpc__))) static bool valueFromGValue(const GValue* gValue, unsigned& value) { value = g_value_get_uint(gValue); @@@@ -542,7 +543,8 @@@@ static JSCOptionType jscOptionsType(int) return JSC_OPTION_INT; } -#if CPU(ADDRESS64) +#if CPU(ADDRESS64) || OS(DARWIN) || \ + (defined(__NetBSD__) && (defined(__arm__) || defined(__powerpc__))) static JSCOptionType jscOptionsType(unsigned) { return JSC_OPTION_UINT; @