head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.10 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.8 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.6 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.6.0.4 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.2 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q3:1.4.0.20 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.18 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.16 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.14 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.12 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.10 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.8 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.6 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.4 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.2 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.3.0.20 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.18 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.16 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.14 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.12 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.10 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.8 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.6 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.2 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.4 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.2.0.14 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.12 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.10 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.8 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.6 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.4 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.2 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.1.0.26 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.24 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.20 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.18 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.16 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.14 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.12 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.10 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.8 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.6 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.4 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.2 pkgsrc-2015Q1-base:1.1; locks; strict; comment @// @; 1.6 date 2025.01.24.11.54.37; author wiz; state Exp; branches; next 1.5; commitid d1wxrHF9omEWtJGF; 1.5 date 2024.11.13.14.22.37; author wiz; state dead; branches; next 1.4; commitid 8ULNVD1Tk3S5CuxF; 1.4 date 2022.03.28.14.38.50; author tnn; state Exp; branches; next 1.3; commitid 2IXz4pOQzPHRAZxD; 1.3 date 2019.12.13.09.48.02; author mrg; state Exp; branches; next 1.2; commitid oYvSl6UAZIaKQwOB; 1.2 date 2018.01.17.19.37.33; author markd; state Exp; branches; next 1.1; commitid aGd4u4wWJDKPrgnA; 1.1 date 2014.12.30.17.23.47; author adam; state Exp; branches; next ; commitid 1jIE5UF7705yw54y; desc @@ 1.6 log @x11/qt5-qtwebkit: import qt5-qtwebkit-5.212.0.alpha4nb29 Restore by request from nia@@, set MAINTAINER to nia@@. WebKit is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework KHTML was based on Qt but during their porting efforts Apple's engineers made WebKit toolkit independent. QtWebKit is a project aiming at porting this fabulous engine back to Qt. WARNING: This release is based on an old WebKit revision with known unpatched vulnerabilities. Please use it carefully and avoid visiting untrusted websites and using it for transmission of sensitive data. @ text @$NetBSD: patch-Source_JavaScriptCore_heap_MachineStackMarker.cpp,v 1.4 2022/03/28 14:38:50 tnn Exp $ Support NetBSD on x86, arm, arm64 and mips. Support SunOS (Illumos-derived) on x86_64 --- Source/JavaScriptCore/heap/MachineStackMarker.cpp.orig 2020-03-04 17:16:37.000000000 +0000 +++ Source/JavaScriptCore/heap/MachineStackMarker.cpp @@@@ -54,6 +54,7 @@@@ #if OS(SOLARIS) #include +#include #else #include #endif @@@@ -483,7 +484,7 @@@@ size_t MachineThreads::Thread::getRegist return sizeof(CONTEXT); #elif USE(PTHREADS) pthread_attr_init(®s.attribute); -#if HAVE(PTHREAD_NP_H) || OS(NETBSD) +#if HAVE(PTHREAD_NP_H) || OS(NETBSD) || OS(SOLARIS) /* XXX this is OK for Illumos, but not Oracle */ #if !OS(OPENBSD) // e.g. on FreeBSD 5.4, neundorf@@kde.org pthread_attr_get_np(platformThread, ®s.attribute); @@@@ -665,6 +666,31 @@@@ void* MachineThreads::Thread::Registers: #error Unknown Architecture #endif +#elif OS(NETBSD) + +#if CPU(X86) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_EBP]); +#elif CPU(X86_64) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_RBP]); +#elif CPU(ARM) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_FP]); +#elif CPU(ARM64) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_X29]); +#elif CPU(MIPS) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_S8]); +#else +#error Unknown Architecture +#endif + +#elif OS(SOLARIS) +#if CPU(X86) + return reinterpret_cast((uintptr_t) regs.machineContext.gregs[REG_EBP]); +#elif CPU(X86_64) + return reinterpret_cast((uintptr_t) regs.machineContext.gregs[REG_RBP]); +#else +#error Unknown Architecture +#endif + #elif defined(__GLIBC__) // The following sequence depends on glibc's sys/ucontext.h. @@@@ -747,6 +773,31 @@@@ void* MachineThreads::Thread::Registers: #error Unknown Architecture #endif +#elif OS(NETBSD) + +#if CPU(X86) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_EIP]); +#elif CPU(X86_64) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_RIP]); +#elif CPU(ARM) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_PC]); +#elif CPU(ARM64) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_ELR]); +#elif CPU(MIPS) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_EPC]); +#else +#error Unknown Architecture +#endif + +#elif OS(SOLARIS) +#if CPU(X86) + return reinterpret_cast((uintptr_t) regs.machineContext.gregs[REG_EIP]); +#elif CPU(X86_64) + return reinterpret_cast((uintptr_t) regs.machineContext.gregs[REG_RIP]); +#else +#error Unknown Architecture +#endif + #elif defined(__GLIBC__) // The following sequence depends on glibc's sys/ucontext.h. @@@@ -838,6 +889,31 @@@@ void* MachineThreads::Thread::Registers: #error Unknown Architecture #endif +#elif OS(NETBSD) + +#if CPU(X86) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_ESI]); +#elif CPU(X86_64) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_R8]); +#elif CPU(ARM) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_R8]); +#elif CPU(ARM64) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_R4]); +#elif CPU(MIPS) + return reinterpret_cast((uintptr_t) regs.machineContext.__gregs[_REG_T4]); +#else +#error Unknown Architecture +#endif + +#elif OS(SOLARIS) +#if CPU(X86) +#error fixme +#elif CPU(X86_64) + return reinterpret_cast((uintptr_t) regs.machineContext.gregs[REG_R8]); +#else +#error Unknown Architecture +#endif + #elif defined(__GLIBC__) // The following sequence depends on glibc's sys/ucontext.h. @ 1.5 log @qt5-qtwebkit: remove Dead upstream, everyone should have (and most have) switch to qtwebengine instead. @ text @@ 1.4 log @qt5-qtwebkit: implement missing js mcontext stuff for SunOS @ text @d1 1 a1 1 $NetBSD: patch-Source_JavaScriptCore_heap_MachineStackMarker.cpp,v 1.3 2019/12/13 09:48:02 mrg Exp $ @ 1.3 log @port this to arm64, and maybe fix the other ports in the MachineStackMarker.cpp. i didn't compile i386, arm or mips with this, but it has a chance of working vs the existing freebsd-derived patch. XXX: someone extend this to all our CPUs, please. i only fixed the existing maybe claimed support. @ text @d1 1 a1 1 $NetBSD: patch-Source_JavaScriptCore_heap_MachineStackMarker.cpp,v 1.2 2018/01/17 19:37:33 markd Exp $ d4 1 d6 20 a25 3 --- Source/JavaScriptCore/heap/MachineStackMarker.cpp.orig 2019-06-26 09:25:02.000000000 -0700 +++ Source/JavaScriptCore/heap/MachineStackMarker.cpp 2019-12-12 19:40:05.519044971 -0800 @@@@ -665,6 +665,22 @@@@ d45 9 d57 1 a57 1 @@@@ -747,6 +763,22 @@@@ d77 9 d89 1 a89 1 @@@@ -838,6 +870,22 @@@@ d109 9 @ 1.2 log @qt5-qtwebkit: update to 5.212.0.alpha2 Version of qtwebkit that is being updated with webkit changes. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 Support NetBSD d5 3 a7 6 XXXX - currently only did CPU(X86_64) and guessed those values. rest are currently jsut copied from FreeBSD --- Source/JavaScriptCore/heap/MachineStackMarker.cpp.orig 2017-06-04 20:16:05.000000000 +0000 +++ Source/JavaScriptCore/heap/MachineStackMarker.cpp @@@@ -665,6 +665,22 @@@@ void* MachineThreads::Thread::Registers: d14 1 a14 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_ebp); d20 1 a20 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_gpregs.gp_x[29]); d22 1 a22 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_regs[30]); d30 1 a30 1 @@@@ -747,6 +763,22 @@@@ void* MachineThreads::Thread::Registers: d37 1 a37 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_eip); d43 1 a43 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_gpregs.gp_elr); d45 1 a45 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_pc); d53 1 a53 1 @@@@ -838,6 +870,22 @@@@ void* MachineThreads::Thread::Registers: d60 1 a60 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_esi); d66 1 a66 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_gpregs.gp_x[4]); d68 1 a68 1 + return reinterpret_cast((uintptr_t) regs.machineContext.mc_regs[12]); @ 1.1 log @Changes 5.4.0: Chromium-based browser engine Qt WebEngine Qt WebView for showing web content using the native OS web engine on mobile Full support on Qt for Windows Store Apps, including WinRT and Windows Phone 8.1 Improved Compliance with iOS 8 and Xcode 6 Improved OS X 10.10 ‘Yosemite’ support and new Mac AppStore signing High-DPI support for Windows and OS X Dynamic GL switching between OpenGL and ANGLE on Windows Mix OpenGL and Qt Quick with QOpenGLWidget Android Look-and-Feel for Qt Quick Controls Qt Creator 3.3 with new Qt Quick Designer Bluetooth now supports BlueZ5 with tech preview on Bluetooth LE @ text @d1 1 a1 1 $NetBSD: patch-qtwebkit_Source_JavaScriptCore_heap_MachineStackMarker.cpp,v 1.1 2013/12/13 14:38:35 ryoon Exp $ d3 1 a3 1 * Add Solaris/SunOS support d5 4 a8 1 --- Source/JavaScriptCore/heap/MachineStackMarker.cpp.orig 2013-11-27 01:01:49.000000000 +0000 d10 3 a12 2 @@@@ -20,6 +20,9 @@@@ */ d14 14 a27 3 #include "config.h" +#if OS(SOLARIS) +#undef _FILE_OFFSET_BITS d29 2 a30 1 #include "MachineStackMarker.h" d32 3 a34 14 #include "ConservativeRoots.h" @@@@ -49,6 +52,10 @@@@ #include #if OS(SOLARIS) +#include +#include +#include +#include #include #else #include @@@@ -317,6 +324,7 @@@@ typedef pthread_attr_t PlatformThreadReg #error Need a thread register struct for this platform d37 14 a50 8 +#if !OS(SOLARIS) static size_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegisters& regs) { #if OS(DARWIN) @@@@ -383,6 +391,7 @@@@ static size_t getPlatformThreadRegisters #error Need a way to get thread registers on this platform #endif } d52 2 d55 3 a57 3 static inline void* otherThreadStackPointer(const PlatformThreadRegisters& regs) { @@@@ -446,6 +455,7 @@@@ static inline void* otherThreadStackPoin a58 1 } d60 14 a73 8 +#if !OS(SOLARIS) static void freePlatformThreadRegisters(PlatformThreadRegisters& regs) { #if USE(PTHREADS) && !OS(WINDOWS) && !OS(DARWIN) && !OS(QNX) @@@@ -454,20 +464,36 @@@@ static void freePlatformThreadRegisters( UNUSED_PARAM(regs); #endif } a74 23 void MachineThreads::gatherFromOtherThread(ConservativeRoots& conservativeRoots, Thread* thread) { +#if OS(SOLARIS) + struct lwpstatus lwp; + char procfile[64]; + int fd; + snprintf(procfile, 64, "/proc/self/lwp/%u/lwpstatus", thread->platformThread); + fd = open(procfile, O_RDONLY, 0); + if (fd == -1) { + fprintf(stderr, "%s: %s\n", procfile, strerror(errno)); + abort(); + } + pread(fd, &lwp, sizeof(lwp), 0); + close(fd); + void* stackPointer = (void*)lwp.pr_reg[REG_SP]; +#else PlatformThreadRegisters regs; size_t regSize = getPlatformThreadRegisters(thread->platformThread, regs); conservativeRoots.add(static_cast(®s), static_cast(reinterpret_cast(®s) + regSize)); void* stackPointer = otherThreadStackPointer(regs); d76 1 a76 8 + freePlatformThreadRegisters(regs); +#endif void* stackBase = thread->stackBase; swapIfBackwards(stackPointer, stackBase); conservativeRoots.add(stackPointer, stackBase); - - freePlatformThreadRegisters(regs); } d78 1 a78 1 void MachineThreads::gatherConservativeRoots(ConservativeRoots& conservativeRoots, void* stackCurrent) @