mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
167 lines
4.5 KiB
Plaintext
167 lines
4.5 KiB
Plaintext
From 2fa3acea90577370dfa72241894f2804945491d6 Mon Sep 17 00:00:00 2001
|
|
From: David Karoly <david.karoly@outlook.com>
|
|
Date: Tue, 25 Oct 2022 21:14:59 +0200
|
|
Subject: fix include sys/time.h
|
|
|
|
|
|
diff --git a/ui/qt/interface_toolbar_reader.cpp b/ui/qt/interface_toolbar_reader.cpp
|
|
index d12f747..80597f0 100644
|
|
--- a/ui/qt/interface_toolbar_reader.cpp
|
|
+++ b/ui/qt/interface_toolbar_reader.cpp
|
|
@@ -9,6 +9,7 @@
|
|
|
|
#include "config.h"
|
|
|
|
+#include <sys/time.h>
|
|
#include <sys/types.h>
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 1cb9611ac9eede57ccd630c9256f9856351f9693 Mon Sep 17 00:00:00 2001
|
|
From: David Karoly <david.karoly@outlook.com>
|
|
Date: Mon, 15 Nov 2021 10:26:33 +0000
|
|
Subject: use realpath in init_progfile_dir
|
|
|
|
|
|
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
|
|
index 065cdd3..e264576 100644
|
|
--- a/wsutil/filesystem.c
|
|
+++ b/wsutil/filesystem.c
|
|
@@ -804,6 +804,12 @@ configuration_init_posix(const char* arg0)
|
|
}
|
|
}
|
|
|
|
+ static char buffer[PATH_MAX + 1];
|
|
+ char *res = realpath(prog_pathname, buffer);
|
|
+ if (res != NULL) {
|
|
+ prog_pathname = g_strdup(buffer);
|
|
+ }
|
|
+
|
|
/*
|
|
* OK, we have what we think is the pathname
|
|
* of the program.
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 3f21dc1c820fdd50c420e3d4084661f5b14b60a5 Mon Sep 17 00:00:00 2001
|
|
From: David Karoly <david.karoly@outlook.com>
|
|
Date: Thu, 25 Nov 2021 18:41:24 +0000
|
|
Subject: adjust get_systemfile_dir for Haiku
|
|
|
|
|
|
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
|
|
index e264576..102bc17 100644
|
|
--- a/wsutil/filesystem.c
|
|
+++ b/wsutil/filesystem.c
|
|
@@ -1420,6 +1420,8 @@ get_systemfile_dir(void)
|
|
{
|
|
#ifdef _WIN32
|
|
return get_datafile_dir();
|
|
+#elif __HAIKU__
|
|
+ return "/boot/system/settings/etc";
|
|
#else
|
|
return "/etc";
|
|
#endif
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 01b6dc2f6f2e38ad611989de631a6636b08eae7d Mon Sep 17 00:00:00 2001
|
|
From: David Karoly <david.karoly@outlook.com>
|
|
Date: Tue, 25 Oct 2022 22:00:34 +0200
|
|
Subject: adjust user dirs for Haiku
|
|
|
|
|
|
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
|
|
index 102bc17..3ba8390 100644
|
|
--- a/wsutil/filesystem.c
|
|
+++ b/wsutil/filesystem.c
|
|
@@ -39,6 +39,10 @@
|
|
#endif
|
|
#include <pwd.h>
|
|
#endif /* _WIN32 */
|
|
+#ifdef __HAIKU__
|
|
+#include <FindDirectory.h>
|
|
+#include <fs_info.h>
|
|
+#endif
|
|
|
|
#include <wsutil/report_message.h>
|
|
#include <wsutil/privileges.h>
|
|
@@ -1240,6 +1244,8 @@ init_plugin_pers_dir(void)
|
|
#if defined(HAVE_PLUGINS) || defined(HAVE_LUA)
|
|
#ifdef _WIN32
|
|
plugin_pers_dir = get_persconffile_path(PLUGINS_DIR_NAME, false);
|
|
+#elif __HAIKU__
|
|
+ plugin_pers_dir = get_persconffile_path(PLUGINS_DIR_NAME, false);
|
|
#else
|
|
plugin_pers_dir = g_build_filename(g_get_home_dir(), ".local/lib",
|
|
CONFIGURATION_NAMESPACE_LOWER, PLUGINS_DIR_NAME, (char *)NULL);
|
|
@@ -1580,6 +1586,11 @@ get_persconffile_dir_no_profile(void)
|
|
*/
|
|
persconffile_dir = g_build_filename("C:", persconf_namespace, NULL);
|
|
return persconffile_dir;
|
|
+#elif __HAIKU__
|
|
+ char buffer[B_PATH_NAME_LENGTH+B_FILE_NAME_LENGTH];
|
|
+ find_directory(B_USER_SETTINGS_DIRECTORY, dev_for_path("/boot"), true, buffer, sizeof(buffer));
|
|
+ persconffile_dir = g_build_filename(buffer, "wireshark", NULL);
|
|
+ return persconffile_dir;
|
|
#else
|
|
char *xdg_path, *path;
|
|
struct passwd *pwd;
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 967126f83ac18401a8e4262a62f3ac4ca7c8dfba Mon Sep 17 00:00:00 2001
|
|
From: David Karoly <david.karoly@outlook.com>
|
|
Date: Tue, 7 Mar 2023 15:42:01 +0100
|
|
Subject: Haiku: adjust default value for INSTALL_DATADIR
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c9f844d..2e29ed0 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -289,6 +289,12 @@ if(WIN32 AND NOT USE_MSYSTEM)
|
|
set(CMAKE_INSTALL_INCLUDEDIR "include")
|
|
set(CMAKE_INSTALL_DATADIR ".")
|
|
set(CMAKE_INSTALL_DOCDIR ".")
|
|
+elseif(CMAKE_SYSTEM_NAME MATCHES "Haiku")
|
|
+ # By default INSTALL_DATADIR is set to INSTALL_DATAROOTDIR, set the
|
|
+ # proper value here.
|
|
+ set(CMAKE_INSTALL_DATADIR "data/${PROJECT_NAME}"
|
|
+ CACHE PATH "Read-only architecture-independent data"
|
|
+ )
|
|
else()
|
|
# By default INSTALL_DATADIR is set to INSTALL_DATAROOTDIR, set the
|
|
# proper value here.
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From b35c362f25fb4660b2236b7ecf4d8aa746c3191b Mon Sep 17 00:00:00 2001
|
|
From: David Karoly <david.karoly@outlook.com>
|
|
Date: Sun, 23 Apr 2023 19:18:49 +0000
|
|
Subject: deregister log writer on exit
|
|
|
|
|
|
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
|
|
index 582855f..4f97318 100644
|
|
--- a/ui/qt/main.cpp
|
|
+++ b/ui/qt/main.cpp
|
|
@@ -129,6 +129,7 @@ void exit_application(int status) {
|
|
if (wsApp) {
|
|
wsApp->quit();
|
|
}
|
|
+ qInstallMessageHandler(0);
|
|
exit(status);
|
|
}
|
|
|
|
--
|
|
2.48.1
|
|
|