summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2025-06-20 20:57:37 +0200
committerJan Beich <jbeich@FreeBSD.org>2025-06-20 22:02:53 +0200
commit2976009ae22a764b66a0def72f6765896a3d3937 (patch)
treeadd04cddaa4bbffb969d28e3774a73087e62b02e
parentx11-wm/theseus-ship: unbreak after 5871ae6a0942 (diff)
x11-toolkits/como: unbreak Wayland after 8dc860e74057
After `gainRealTime()` was expanded `return` changed semantic, aborting startup instead of skipping realtime priority. Reported by: jsm (via upstream bug)
-rw-r--r--x11-toolkits/como/Makefile2
-rw-r--r--x11-toolkits/como/files/patch-como_base_wayland_app__singleton.h17
-rw-r--r--x11-wm/theseus-ship/Makefile4
3 files changed, 11 insertions, 12 deletions
diff --git a/x11-toolkits/como/Makefile b/x11-toolkits/como/Makefile
index 750032c3bccb..cdd7da660962 100644
--- a/x11-toolkits/como/Makefile
+++ b/x11-toolkits/como/Makefile
@@ -1,7 +1,7 @@
PORTNAME= como
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-toolkits
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
diff --git a/x11-toolkits/como/files/patch-como_base_wayland_app__singleton.h b/x11-toolkits/como/files/patch-como_base_wayland_app__singleton.h
index 409f16e33d6e..d8da4bb4a97b 100644
--- a/x11-toolkits/como/files/patch-como_base_wayland_app__singleton.h
+++ b/x11-toolkits/como/files/patch-como_base_wayland_app__singleton.h
@@ -4,7 +4,7 @@
--- como/base/wayland/app_singleton.h.orig 2024-02-27 13:02:31 UTC
+++ como/base/wayland/app_singleton.h
-@@ -19,12 +19,17 @@ class app_singleton : public base::app_singleton (publ
+@@ -19,12 +19,16 @@ class app_singleton : public base::app_singleton (publ
setenv("QT_QPA_PLATFORM", "wayland-org.kde.kwin.qpa", true);
setenv("KWIN_FORCE_OWN_QPA", "1", true);
@@ -14,14 +14,13 @@
sp.sched_priority = minPriority;
- sched_setscheduler(0, SCHED_RR | SCHED_RESET_ON_FORK, &sp);
-#endif
-+ if (pthread_setschedparam(pthread_self(), SCHED_RR, &sp))
-+ return;
-+
-+ pthread_atfork(NULL, NULL, []() {
-+ sched_param sp;
-+ sp.sched_priority = 0;
-+ pthread_setschedparam(pthread_self(), SCHED_OTHER, &sp);
-+ });
++ if (!pthread_setschedparam(pthread_self(), SCHED_RR, &sp)) {
++ pthread_atfork(NULL, NULL, []() {
++ sched_param sp;
++ sp.sched_priority = 0;
++ pthread_setschedparam(pthread_self(), SCHED_OTHER, &sp);
++ });
++ }
qapp = std::make_unique<QApplication>(argc, argv);
prepare_qapp();
diff --git a/x11-wm/theseus-ship/Makefile b/x11-wm/theseus-ship/Makefile
index 0c03a7652cce..ce87cbd891ea 100644
--- a/x11-wm/theseus-ship/Makefile
+++ b/x11-wm/theseus-ship/Makefile
@@ -1,8 +1,8 @@
PORTNAME= theseus-ship
DISTVERSIONPREFIX= v
DISTVERSION= 6.2.0
-PORTREVISION= 2
-CATEGORIES= x11-wm # wayland: https://github.com/winft/theseus-ship/issues/9
+PORTREVISION= 3
+CATEGORIES= x11-wm wayland
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 01030427325c.patch:-p1 # https://github.com/winft/theseus-ship/pull/17