From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WAUlMmWKjWJTAAAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 03:46:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UNceMmWKjWJPegAA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 03:46:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5F69698D3 for ; Wed, 25 May 2022 03:46:13 +0200 (CEST) Received: from localhost ([::1]:51868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntg6F-00038O-Vk for larch@yhetil.org; Tue, 24 May 2022 21:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntg66-00038G-MG for guix-patches@gnu.org; Tue, 24 May 2022 21:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntg66-00026e-D9 for guix-patches@gnu.org; Tue, 24 May 2022 21:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntg66-0000Qy-8s for guix-patches@gnu.org; Tue, 24 May 2022 21:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55619] [PATCH] gnu: smlnj: Fix use of Ctrl-c in sml REPL. Resent-From: Foo Chuan Wei Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 25 May 2022 01:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55619@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16534431201607 (code B ref -1); Wed, 25 May 2022 01:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2022 01:45:20 +0000 Received: from localhost ([127.0.0.1]:53920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntg5Q-0000Pq-5R for submit@debbugs.gnu.org; Tue, 24 May 2022 21:45:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:51946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntg5L-0000Pg-8d for submit@debbugs.gnu.org; Tue, 24 May 2022 21:45:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntg5I-0002zi-Hm for guix-patches@gnu.org; Tue, 24 May 2022 21:45:14 -0400 Received: from mail-tyzapc01olkn2077.outbound.protection.outlook.com ([40.92.107.77]:2690 helo=APC01-TYZ-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntg5E-0001vj-HQ for guix-patches@gnu.org; Tue, 24 May 2022 21:45:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q6QzP+zK2q+NTKYTVc2ScXTRjzX2ADNzfmrRCWv7yCvxxzzvZ2sHbZqE+fcaVAG3XSs2AEIvPdeccJkRffb/Tg7Rez1ttcx0l8R8x4diH2KhjryL47w8j/6nqkAcECW0leXWttShDJt5O/kAcb4ZGgbGTxauT70wBDUJOkHDRUOdbyouU2p6O0ReSAEgJey6KFz3NXyUrRPxaL0eoKM0feHe3LsBg7Hw086opwv524WK2GNrt53mQsZDjXOJQohlgcIOpj/AKDdKtkunBDSOx6wMwGZilSOEBEvZKLD54u7etgqrrq8btZcBAauLsWdfpRsWxydRiIHBA8POqY0D8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q/tqM25bi0EscSULi+VoACp2rEtTF4rL2QfwCuzxtHo=; b=M2OWu+mBLsJrDXedAc96n9xGB+G9TuqIGAFun2UgGfNpqAJLoZKTLPIOfMTDTh9XCNrKaMBkq18p9Cqy5yjf3tvI5Wcgiei4EFVxlHTMt5C58OjqIrvA9q9RbGXYUHRCnbRCyygbQF2NOC2V2EC/+oNxJCfxI8CEjnNd7c7fZjze4lMl6G/PeZM1A+QZDa1CnXsawKa+AHr+tNTLt2qRjHSOJlc5TsHBPQbQL0/QM38lF72K941lbyqP4FMGD6peDE3dokfPR6TEz/BcDTRdDHqaaYV5DW1ygE4duljxkZiJhkz1etd1nPHlOW8q0qWtsXiv5dATrag0C/xENLXixQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q/tqM25bi0EscSULi+VoACp2rEtTF4rL2QfwCuzxtHo=; b=dL3E5ILZGrP3qnhDoMlHE3q7lbcvHqJIn1a8zR2J4ezpgqzzWnd2ZidADcvoonh0jf3c7/ga6Y4OkfJDWAQCYIoLCTWCfb9D6HL3bCedOzHSadOSbogGBtV3/VAueOIIwH5rFZchiBfXqh6Cif0SBQ9XvUDVN3KaqHLUXW2JAAW486KdTr7Tr9cMM94maBYrG1bkn5BnMjbPHCwLDPauWanErEGQ7YHqSz01R7gJfFYEyT6fXuzLzDUN4Wc2yUgWZK+5ssxCD7zNpne5QWDURPsgn4d1cpfde461DRpxAFWPU5FAOEYUPuTYNqZnYQLHUXQUDsaqFsxEzc/TrKEM1Q== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by TY2PR0101MB3568.apcprd01.prod.exchangelabs.com (2603:1096:404:8007::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Wed, 25 May 2022 01:45:04 +0000 Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::fc2a:6e5a:d929:f3a7]) by PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::fc2a:6e5a:d929:f3a7%6]) with mapi id 15.20.5273.023; Wed, 25 May 2022 01:45:04 +0000 Date: Wed, 25 May 2022 01:44:59 +0000 From: Foo Chuan Wei Message-ID: Mail-Followup-To: guix-patches@gnu.org Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-TMN: [aVNKVe0aeLcf7oyGci1kYOhLkutNmfqs] X-ClientProxiedBy: SG2PR06CA0188.apcprd06.prod.outlook.com (2603:1096:4:1::20) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20220525014459.rut6k23lhrvnwe4k@main> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ebf5ef70-7005-4b79-b8f8-08da3df02f22 X-MS-TrafficTypeDiagnostic: TY2PR0101MB3568:EE_ X-Microsoft-Antispam: BCL:0; X-Microso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vojVcKo6F5/5bv4TeAf83B8GcGS0Jvbqyumys9 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: ebf5ef70-7005-4b79-b8f8-08da3df02f22 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2022 01:45:03.7657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR0101MB3568 Received-SPF: pass client-ip=40.92.107.77; envelope-from=chuanwei.foo@hotmail.com; helo=APC01-TYZ-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653443173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=Q/tqM25bi0EscSULi+VoACp2rEtTF4rL2QfwCuzxtHo=; b=IbqGU/i28JaqdHWnA+OLY9pAOaXqeSyYbU92BOdfd5Z+hnEhuXfkzLIyBxOFvsmU4clfJF /QQgpIHFonSAcLk1qiLTj7n53Oy5ku6SuVGCRqV+rWPx7Og1waUjFX4RnjhTNh/g+mUO3R 8Gp5A4ac1+RybiuRRr89/1puUyDcwh4OMpmxQ/u0GncWjuCXiu7i/15aTdcBPh0ZHxapG/ nPenH+dPp1W3Gc+cHQQbZu0/oYerbj3NPExIRpsfFFv8qRhqc/YEEODbrZqoxFbFEA+bGC sy50puT+GTzr6nHN7UaQYugb3Zptdh0BIKIGtG80ps+SSpvrq3t5ZsKXUpGG5Q== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1653443173; a=rsa-sha256; cv=fail; b=kPuSzi1qfHeEWS+ESna3R9QViTTvMGB8oGZQ/u1rypJnYmwuC8OZPud0165+rD9PSG2WSM 4e1XJtOgg/kkErDKHVU2SG5jd8MQph+e8zyMxHyc0bkURHOS9/QmWDjeUkslYebzgVFHW5 NljT1HXlDq0kx3qoIecagPptMwPcPHx7buLYA/CNncJ+9EZ05s/hPOkU35F3/8btLjLblb llC7LRVNf0MyGW3gFyp/cnGbDs7f9fWAWfaqyg4R9Ss0RF5f6xVb04u+mSPTIwgsKVG50m /wn78bf3daaRIiIsL82BYaeuuYOS8GlNOMPypULzgJSU2qcaAhPJK3e+Zej7kQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=dL3E5ILZ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=hotmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=dL3E5ILZ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=hotmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5F69698D3 X-Spam-Score: 6.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: LM4SN3b0+0N9 * gnu/packages/sml.scm (smlnj): Fix use of Ctrl-c in sml REPL. --- Related mailing list thread: https://lists.gnu.org/archive/html/guix-devel/2022-05/msg00209.html ("Why does sh in the build environment ignore SIGINT and SIGQUIT?") gnu/packages/sml.scm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm index 04411c02c3..94a65961d6 100644 --- a/gnu/packages/sml.scm +++ b/gnu/packages/sml.scm @@ -175,10 +175,22 @@ function interface, and a symbolic debugger.") "sml.boot.amd64-unix/SMLNJ-BASIS/.cm/amd64-unix/basis-common.cm")) ;; Build. - (invoke "./config/install.sh" "-default" - (if (string=? "i686-linux" ,(%current-system)) - "32" - "64")) + ;; The `sml` executable built by this package somehow inherits the + ;; signal dispositions of the shell where it was built. If SIGINT + ;; is ignored in the shell, the resulting `sml` will also ignore + ;; SIGINT. This will break the use of Ctrl-c for interrupting + ;; execution in the SML/NJ REPL. + ;; Here, we use Guile's `system` procedure instead of Guix's + ;; `invoke` because `invoke` uses Guile's `system*`, which causes + ;; SIGINT and SIGQUIT to be ignored. + (let ((exit-code + (system (string-append "./config/install.sh -default " + (if (string=? "i686-linux" + ,(%current-system)) + "32" + "64"))))) + (unless (zero? exit-code) + (error (format #f "Exit code: ~a" exit-code)))) ;; Undo the binary patch. (for-each base-commit: d129d962e437fd215c5e9428fc1b26e2d72ffbda -- 2.25.1