Files
haikuports/www-client/dooble/patches/dooble-2025.07.18.patchset
2025-08-03 15:42:42 +00:00

107 lines
3.1 KiB
Plaintext

From 4fdf409b9c813d1e36ed4a4c882ddfdff0e2997b Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 8 Jan 2024 17:28:24 +0100
Subject: Haiku: set translations path
diff --git a/Source/dooble_main.cc b/Source/dooble_main.cc
index 03a8e0d..acc80c0 100644
--- a/Source/dooble_main.cc
+++ b/Source/dooble_main.cc
@@ -44,6 +44,10 @@ extern "C"
#if defined(Q_OS_MACOS)
#include <sys/resource.h>
#endif
+#if defined(Q_OS_HAIKU)
+#include<libgen.h>
+#include<OS.h>
+#endif
}
#ifdef Q_OS_MACOS
@@ -92,6 +96,17 @@ int main(int argc, char *argv[])
qputenv("QT_ENABLE_REGEXP_JIT", "0");
qputenv("QV4_FORCE_INTERPRETER", "1");
+#if defined(Q_OS_HAIKU)
+ char *binpath = realpath(argv[0], NULL);
+ if (binpath != NULL) {
+ char buffer[B_PATH_NAME_LENGTH + B_FILE_NAME_LENGTH];
+ strlcpy(buffer, dirname(binpath), sizeof(buffer));
+ strlcat(buffer, "/Translations", sizeof(buffer));
+ qputenv("DOOBLE_TRANSLATIONS_PATH", buffer);
+ free(binpath);
+ }
+#endif
+
QList<QUrl> urls;
QString screen_mode("");
auto attach = false;
--
2.48.1
From 9263eafbd7b1d4ba76c8b607ff061cfa1d33fda7 Mon Sep 17 00:00:00 2001
From: Ken Mays <kmays2000@gmail.com>
Date: Mon, 30 Sep 2024 06:04:16 +0001
Subject: Enable experiment features and SIGNAL compat
diff --git a/Source/dooble_main.cc b/Source/dooble_main.cc
index acc80c0..56247e1 100644
--- a/Source/dooble_main.cc
+++ b/Source/dooble_main.cc
@@ -95,6 +95,9 @@ int main(int argc, char *argv[])
{
qputenv("QT_ENABLE_REGEXP_JIT", "0");
qputenv("QV4_FORCE_INTERPRETER", "1");
+#ifdef Q_OS_HAIKU
+ qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--enable-experimental-web-platform-features");
+#endif
#if defined(Q_OS_HAIKU)
char *binpath = realpath(argv[0], NULL);
@@ -243,18 +246,18 @@ int main(int argc, char *argv[])
#endif
QList<int> list;
-#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX)
+#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX) || defined(Q_OS_HAIKU)
struct sigaction signal_action = {};
#endif
list << SIGABRT
-#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX)
+#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX) || defined(Q_OS_HAIKU)
<< SIGBUS
#endif
<< SIGFPE
<< SIGILL
<< SIGINT
-#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX)
+#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX) || defined(Q_OS_HAIKU)
<< SIGQUIT
#endif
<< SIGSEGV
@@ -262,7 +265,7 @@ int main(int argc, char *argv[])
foreach(auto const i, list)
{
-#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX)
+#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX) || defined(Q_OS_HAIKU)
memset(&signal_action, 0, sizeof(struct sigaction));
signal_action.sa_handler = signal_handler;
sigemptyset(&signal_action.sa_mask);
@@ -277,7 +280,7 @@ int main(int argc, char *argv[])
#endif
}
-#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX)
+#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_UNIX) || defined(Q_OS_HAIKU)
/*
** Ignore SIGPIPE.
*/
--
2.48.1