From 786b1a9e995df5c6eae89076a35992897d83a52a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 21 Nov 2021 03:36:09 +0100
Subject: Crash workaround: disabling splashscreen, FIXME


diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py
index 45feca9..e5555b2 100644
--- a/src/calibre/gui2/main.py
+++ b/src/calibre/gui2/main.py
@@ -360,7 +360,9 @@ class GuiRunner(QObject):
     def show_splash_screen(self):
         self.timed_print('Showing splash screen...')
         self.splash_screen = SplashScreen()
-        self.splash_screen.show()
+        # FIXME! This is crashing somewhere in the splashscreen code on Haiku, workaround: disable.
+        # self.splash_screen.show()
+        # FIXME! This is crashing somewhere in the splashscreen code on Haiku, workaround: disable.
         self.splash_screen.show_message(_('Starting %s: Loading books...') % __appname__)
         self.timed_print('splash screen shown')
 
-- 
2.30.2


From 3c0c35edda1ef7ca88587aec627ec8c8f512bb46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 21 Nov 2021 03:38:28 +0100
Subject: Haiku build


diff --git a/setup/build.py b/setup/build.py
index 3a5d95b..ad3b879 100644
--- a/setup/build.py
+++ b/setup/build.py
@@ -524,6 +524,7 @@ project-factory = "pyqtbuild:PyQtProject"
 
 [tool.sip.project]
 sip-files-dir = "."
+sip-include-dirs = ['{os.environ.get("BINDINGS_DIR")}']
 {abi_version}
 
 [tool.sip.bindings.pictureflow]
-- 
2.30.2

