public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Catanzaro <mcatanzaro@gnome.org>
To: git-commits@fedoraproject.org
Subject: [rpms/webkitgtk] f44: Add patch to fix Eclipse
Date: Mon, 21 Sep 2026 20:17:10 GMT	[thread overview]
Message-ID: <179002183081.1.14084076111019103546.rpms-webkitgtk-cd4f6ad185e3@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-21 20:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179002183081.1.14084076111019103546.rpms-webkitgtk-cd4f6ad185e3@fedoraproject.org \
    --to=mcatanzaro@gnome.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox