From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 1A24F2134F for ; Fri, 5 Apr 2024 13:23:22 +0200 (CEST) Received: from mail.envs.net ([5.199.136.28]) by 9front; Fri Apr 5 07:21:23 -0400 2024 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 2FEB138A0771; Fri, 5 Apr 2024 11:21:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1712316076; bh=T2JyBb+PGraOJxopnOrqcEshpU0adloiAA+V3Qx7PPI=; h=From:To:Cc:Subject:Date:From; b=XXrAk6EFrIzOR0eAAUASVG8u/3D85fEnJYOjVzhG7mPsUaA51ove/1JhfCH+z8Mpl OHv4RH5NREI1eUPhYWNZszsE8Jz7qA/vVGL/D7ZscMp+/U9/Zn2Nen6nv+XbMnAyGu eKd80m1yWDeN7rXmeg5oEAIDWLX3PIWPzwcqJsMlwARgkxro+3A479AZxpUyBKXe2/ tI5Xm/5oHKwyhVVL5bDGfzkrdupXNrHju838MPg5KM2xMN51dRN8LfRxkJJ+AID+Ru 1kB7Z98l07MKeUdTF+kSSKk0fW0lkzOSihKrx/4oZgPO0pM76N+sgV2xvDeipc1xhY C/WaJG7FidsP5RkvhotkW3VH3Zzwd/+NmIHdYY6n4wEo1auZMC206cAxLMskQglg5a Sfv+PuTxamx3/xNk4SebolyR2X0IVXBQ2xjCrXj9G2nfkv+4bNxeWad5HG/fzkOH7r rNTL9vSjMlivd39i973XM3xHKkbq1lz1nRgMpQhbwsSjBwH7NXmHxDfGRWtQ8Ot2HL I5n2f2xLppzfZ1LVgEV65nj+7TIf0WuGaHT0iV61vEcAeLtbe2HiTKXm6bE8VPcTdw 7oYC8amLLHKXuLsxrK+KBDwsnbo5oyC3Mt/DICQ110EUUSerjIfgSFfJPItzybOQF5 JkAv7TC4J08GpJ1rFLvL/n8I= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CpJ90lnNAb4c; Fri, 5 Apr 2024 11:21:12 +0000 (UTC) Received: from localhost (unknown [36.170.57.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Fri, 5 Apr 2024 11:21:12 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 879bdf5b; Fri, 5 Apr 2024 11:21:44 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: 9front@9front.org Cc: Jacob Moody Date: Fri, 05 Apr 2024 19:21:44 +0800 Message-ID: <87o7ao2gxj.fsf@envs.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared reduce/map base XMPP over WEB2.0 engine module Subject: [9front] [PATH] drawterm: fix Haiku build for 32-bit x86 and application close Reply-To: 9front@9front.org Precedence: bulk --=-=-= Content-Type: text/plain Hello, here are 2 small patches for the drawterm Haiku port: --=-=-= Content-Type: multipart/mixed; boundary="upas-yeyjabwerrjepvtmslfbfrxnkc" Content-Disposition: inline This is a multi-part message in MIME format. --upas-yeyjabwerrjepvtmslfbfrxnkc Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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 --upas-yeyjabwerrjepvtmslfbfrxnkc Content-Type: application/octet-stream Content-Disposition: attachment; filename="0001-haiku-fix-build-for-32-bit-x86-BePC.patch.suspect" From 72160fda0eb16c9e19826e823e7d06ddd237bfda Mon Sep 17 00:00:00 2001 From: iyzsong 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 --upas-yeyjabwerrjepvtmslfbfrxnkc-- --=-=-= Content-Type: multipart/mixed; boundary="upas-vabfequwosfjhbwlzsnmogxift" Content-Disposition: inline This is a multi-part message in MIME format. --upas-vabfequwosfjhbwlzsnmogxift Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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 --upas-vabfequwosfjhbwlzsnmogxift Content-Type: application/octet-stream Content-Disposition: attachment; filename="0002-haiku-fix-application-close-via-ALT-Q.patch.suspect" From 646451e4a9122eca3964ff72df5df20ac8a5bd68 Mon Sep 17 00:00:00 2001 From: iyzsong 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 --upas-vabfequwosfjhbwlzsnmogxift-- --=-=-= Content-Type: text/plain Thanks! --=-=-=--