public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/webkitgtk] f44: Add patch to fix Eclipse
@ 2026-09-21 20:17 Michael Catanzaro
0 siblings, 0 replies; only message in thread
From: Michael Catanzaro @ 2026-09-21 20:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/webkitgtk
Branch : f44
Commit : cd4f6ad185e3ef936fc35f61936b0add148c940e
Author : Michael Catanzaro <mcatanzaro@gnome.org>
Date : 2026-09-21T15:16:58-05:00
Stats : +52/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/webkitgtk/c/cd4f6ad185e3ef936fc35f61936b0add148c940e?branch=f44
Log:
Add patch to fix Eclipse
---
diff --git a/main-thread.patch b/main-thread.patch
new file mode 100644
index 0000000..32d0e22
--- /dev/null
+++ b/main-thread.patch
@@ -0,0 +1,49 @@
+From aac2926f5181bf2a263de7b7ba57b74e884048d8 Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mcatanzaro@gnome.org>
+Date: Mon, 21 Sep 2026 14:52:21 -0500
+Subject: [PATCH] Cherry-pick 317619@main (cfcd0f4acc3a).
+ https://bugs.webkit.org/show_bug.cgi?id=322394
+
+REGRESSION(317619@main): RELEASE_ASSERT in initializeMainThread aborts Eclipse/SWT applications
+https://bugs.webkit.org/show_bug.cgi?id=322394
+
+Reviewed by NOBODY (OOPS!).
+
+Revert 317619@main to unbreak Eclipse.
+---
+ Source/WTF/wtf/Threading.cpp | 4 ++--
+ Source/WTF/wtf/posix/ThreadingPOSIX.cpp | 2 --
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/Source/WTF/wtf/Threading.cpp b/Source/WTF/wtf/Threading.cpp
+index 7249ada7d7b3..5aa27b3566e8 100644
+--- a/Source/WTF/wtf/Threading.cpp
++++ b/Source/WTF/wtf/Threading.cpp
+@@ -133,9 +133,9 @@ static std::optional<size_t> NODELETE stackSize(ThreadType threadType)
+ #endif
+ }
+
+-#if PLATFORM(COCOA) || OS(LINUX)
++#if PLATFORM(COCOA)
+ // uid 1 is reserved for the main thread, assigned in Thread::initializeCurrentTLS
+-// when current thread is detected as main thread. ++s_uid yields >= 2 for every non-main thread.
++// when pthread_main_np() returns true. ++s_uid yields >= 2 for every non-main thread.
+ std::atomic<uint32_t> ThreadLike::s_uid { 1 };
+ #else
+ // On platforms without a way to detect the main thread before initializeMainThread()
+diff --git a/Source/WTF/wtf/posix/ThreadingPOSIX.cpp b/Source/WTF/wtf/posix/ThreadingPOSIX.cpp
+index 9ea11e2d270e..792034446d92 100644
+--- a/Source/WTF/wtf/posix/ThreadingPOSIX.cpp
++++ b/Source/WTF/wtf/posix/ThreadingPOSIX.cpp
+@@ -457,8 +457,6 @@ Thread& Thread::initializeCurrentTLS()
+ WTF::initialize();
+ #if PLATFORM(COCOA)
+ Ref thread = adoptRef(*new Thread(SchedulingPolicy::Other, pthread_main_np() ? IsMain::Yes : IsMain::No));
+-#elif OS(LINUX)
+- Ref thread = adoptRef(*new Thread(SchedulingPolicy::Other, getpid() == static_cast<pid_t>(syscall(SYS_gettid)) ? IsMain::Yes : IsMain::No));
+ #else
+ Ref thread = adoptRef(*new Thread(SchedulingPolicy::Other));
+ #endif
+--
+2.55.0
+
diff --git a/webkitgtk.spec b/webkitgtk.spec
index 1dc1ae3..d8327bb 100644
--- a/webkitgtk.spec
+++ b/webkitgtk.spec
@@ -60,6 +60,9 @@ Source2: webkitgtk-keys.gpg
# https://bugs.webkit.org/show_bug.cgi?id=312677
Patch: skia-s390x.patch
+# https://bugs.webkit.org/show_bug.cgi?id=322394
+Patch: main-thread.patch
+
BuildRequires: bison
BuildRequires: bubblewrap
BuildRequires: clang
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-21 20:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 20:17 [rpms/webkitgtk] f44: Add patch to fix Eclipse Michael Catanzaro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox