9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [PATH] drawterm: fix Haiku build for 32-bit x86 and application close
@ 2024-04-05 11:21 宋文武
  2024-04-07 16:21 ` Jacob Moody
  0 siblings, 1 reply; 2+ messages in thread
From: 宋文武 @ 2024-04-05 11:21 UTC (permalink / raw)
  To: 9front; +Cc: Jacob Moody

[-- Attachment #1: Type: text/plain, Size: 63 bytes --]


Hello, here are 2 small patches for the drawterm Haiku port:


[-- Attachment #2.1: Type: text/plain, Size: 309 bytes --]

from postmaster@9front:
The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Type: text/x-patch
	Content-Disposition: inline;
 filename=0001-haiku-fix-build-for-32-bit-x86-BePC.patch

[-- Attachment #2.2: 0001-haiku-fix-build-for-32-bit-x86-BePC.patch.suspect --]
[-- Type: application/octet-stream, Size: 693 bytes --]

 From 72160fda0eb16c9e19826e823e7d06ddd237bfda Mon Sep 17 00:00:00 2001
From: iyzsong <iyzsong@envs.net>
Date: Fri, 5 Apr 2024 18:50:02 +0800
Subject: [PATCH 1/2] haiku: fix build for 32-bit x86 (BePC)

---
 Make.haiku | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Make.haiku b/Make.haiku
index 707752d..542b2e4 100644
--- a/Make.haiku
+++ b/Make.haiku
@@ -17,5 +17,5 @@ TARG=drawterm
 all: default
 
 libmachdep.a:
-	arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/; s/armv[567].*/arm/; s/aarch64/arm64/'`; \
+	arch=`uname -m|sed 's/BePC/386/; s/x86_64/amd64/; s/armv[567].*/arm/; s/aarch64/arm64/'`; \
 	(cd posix-$$arch &&  make)
-- 
2.41.0



[-- Attachment #3.1: Type: text/plain, Size: 311 bytes --]

from postmaster@9front:
The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Type: text/x-patch
	Content-Disposition: inline;
 filename=0002-haiku-fix-application-close-via-ALT-Q.patch

[-- Attachment #3.2: 0002-haiku-fix-application-close-via-ALT-Q.patch.suspect --]
[-- Type: application/octet-stream, Size: 690 bytes --]

 From 646451e4a9122eca3964ff72df5df20ac8a5bd68 Mon Sep 17 00:00:00 2001
From: iyzsong <iyzsong@envs.net>
Date: Fri, 5 Apr 2024 18:54:09 +0800
Subject: [PATCH 2/2] haiku: fix application close (via ALT+Q)

---
 gui-haiku/screen.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gui-haiku/screen.cpp b/gui-haiku/screen.cpp
index 55980da..a99d83d 100644
--- a/gui-haiku/screen.cpp
+++ b/gui-haiku/screen.cpp
@@ -251,6 +251,12 @@ public:
     view->MakeFocus();
     window->Show();
   }
+
+  bool QuitRequested() override {
+    BMessage message(B_QUIT_REQUESTED);
+    window->PostMessage(&message);
+    return true;
+  }
 };
 #define sApp ((Application *)be_app)
 
-- 
2.41.0



[-- Attachment #4: Type: text/plain, Size: 10 bytes --]



Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] [PATH] drawterm: fix Haiku build for 32-bit x86 and application close
  2024-04-05 11:21 [9front] [PATH] drawterm: fix Haiku build for 32-bit x86 and application close 宋文武
@ 2024-04-07 16:21 ` Jacob Moody
  0 siblings, 0 replies; 2+ messages in thread
From: Jacob Moody @ 2024-04-07 16:21 UTC (permalink / raw)
  To: 9front

Both have been applied, thank you.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-07 16:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 11:21 [9front] [PATH] drawterm: fix Haiku build for 32-bit x86 and application close 宋文武
2024-04-07 16:21 ` Jacob Moody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).