From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AFCSHeKD8WCo+wAAgWs5BA (envelope-from ) for ; Fri, 16 Jul 2021 15:04:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cIhmGeKD8WBWKAAAB5/wlQ (envelope-from ) for ; Fri, 16 Jul 2021 13:04:34 +0000 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 D87AC283AF for ; Fri, 16 Jul 2021 15:04:33 +0200 (CEST) Received: from localhost ([::1]:41616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4NW3-0006Pe-Sw for larch@yhetil.org; Fri, 16 Jul 2021 09:04:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4NVZ-0006PM-T6 for guix-patches@gnu.org; Fri, 16 Jul 2021 09:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4NVZ-0001uJ-Ln for guix-patches@gnu.org; Fri, 16 Jul 2021 09:04:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4NVZ-0000QO-Ir for guix-patches@gnu.org; Fri, 16 Jul 2021 09:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49576] [PATCH] Add sterm Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Jul 2021 13:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: phodina Cc: 49576@debbugs.gnu.org Received: via spool by 49576-submit@debbugs.gnu.org id=B49576.16264405901574 (code B ref 49576); Fri, 16 Jul 2021 13:04:01 +0000 Received: (at 49576) by debbugs.gnu.org; 16 Jul 2021 13:03:10 +0000 Received: from localhost ([127.0.0.1]:50863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4NUk-0000PJ-9y for submit@debbugs.gnu.org; Fri, 16 Jul 2021 09:03:10 -0400 Received: from mail-oln040092254075.outbound.protection.outlook.com ([40.92.254.75]:10176 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4NUh-0000Op-8I for 49576@debbugs.gnu.org; Fri, 16 Jul 2021 09:03:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QqRGygnE12wCp1FHuzW/GxxKoibV2+cmAAYXWKUBsQ5TIaISWcH6/5vQujNA+Q64Hq41Npu6ezd2Ez3jrdoQWPguALH7kFJpO3ei3HUs3PHMgy5wgXK52OkWCF/0RmLYRAdFX/i5qOVhYpulOo0f8X1KpQXfsaiMMNVjFl8Xvdbt+DKN0KEv7VTXEoYQFavIpZ6dlIKIdO8A4LHpqEdsgLeZ21+OxdXxkFlNefXBBzsE+2aFHcS25v1SHwY7m/l8Nz963u4MYD/8c+DQOe7lAATx5HVUMUKPoarVRf/b8o4w65QGiROq1nZdUDyGb395SbucxxrKtbq2vYBqwsnFDQ== 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-SenderADCheck; bh=QALAc8l/FPsqt4jDApnaIdTwRdWFO79xHr/4mpxlKzY=; b=fSn4uTK3ZMnkw4LFLwr0HSguPHtgfe8B0ou/tGF5HdtWN+OMxz/ckanoxLNY3H6cYMOuK+57RHLqzKte9tvSE3VGjUDPMfJ2o/jHAp3QglL6BO9iH2bnIVBOsT8WYx5MeNZfzHZb1Mrzup2EFp1rKkgnylKc7/8qOJXrhg9TRLyp18UPuF8IsRIOozrrBnxo76Ttra+Jp+av2LhHIVTDUuXFFu/8M1K8ollnRLNC10yFtBNFhwNyBWKB1uY9DHc6qaZIszK6+ivw/lKrTToBEv4fvJQ7hlaYnwJ2Z7EAIvWWFqKFRFYTqkVbZbkLlme99snomVZtrGl5Uw9XV91Sqg== 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=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QALAc8l/FPsqt4jDApnaIdTwRdWFO79xHr/4mpxlKzY=; b=PRYamiVJVS7DxRtiUipt8hK/03O6jMr7VSkzxuEFCc9fRr6jyjLp+EpGQI/2NCn2VyM4khNuUni7B4itxilky0VMQ5324CQeG7GJ9+UW2ZStrFeE9scKENWbFMp1c+LhH/Mr6LniINX5sGdbx1hv4td4DaB4JmhPFatR7Cez67BTXEZts8p1UQPeAgX0BHawR6TzqeX4F3KQePP9OJBROGkmFSXPIU7B099DGXer3eJ+4iwvMcHIX2m5ZGez/4kZLKDqy1En/S9lB9aeeM0IS8aFlLPOidJgF1567Ci1h/qYaS5qFyHtGWJgHx0NG0EA6nNeEwpj3949otdgB1N69A== Received: from SG2PR06CA0180.apcprd06.prod.outlook.com (2603:1096:1:1e::34) by TY2PR06MB2863.apcprd06.prod.outlook.com (2603:1096:404:31::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22; Fri, 16 Jul 2021 13:02:57 +0000 Received: from SG2APC01FT054.eop-APC01.prod.protection.outlook.com (2603:1096:1:1e:cafe::9d) by SG2PR06CA0180.outlook.office365.com (2603:1096:1:1e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 13:02:57 +0000 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2a01:111:e400:7ebd::4d) by SG2APC01FT054.mail.protection.outlook.com (2a01:111:e400:7ebd::246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 13:02:57 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:6FE1FD60D9298A07D5E3CA410B3FDA3C94F0CB8FAC0D5761EF7F95FC0FD89B94; UpperCasedChecksum:507141F9F98326340657E0C2ADC9B0F4E1460467951C11D79944253637DA6B34; SizeAsReceived:8861; Count:47 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM ([fe80::a54b:dcbe:14cd:91e0]) by OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM ([fe80::a54b:dcbe:14cd:91e0%9]) with mapi id 15.20.4331.026; Fri, 16 Jul 2021 13:02:57 +0000 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: Date: Fri, 16 Jul 2021 21:03:15 +0800 In-Reply-To: (phodina@protonmail.com's message of "Thu, 15 Jul 2021 16:17:13 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [AYzNHyYap8ejEpXqefQrwl3YRPC9MeYuz0FbtnTfCohECZgYP1MhJNLg8jvrmuTy] X-ClientProxiedBy: HK2PR02CA0143.apcprd02.prod.outlook.com (2603:1096:202:16::27) To OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:ec::11) X-Microsoft-Original-Message-ID: <87pmvio1gs.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (240e:399:339:45f0:2f1:f5ff:fe18:6bb) by HK2PR02CA0143.apcprd02.prod.outlook.com (2603:1096:202:16::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 13:02:56 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1e48ecf0-39f7-49eb-0303-08d9485a081f X-MS-TrafficTypeDiagnostic: TY2PR06MB2863: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iwVKczNivr1EfIP2Z4flEglxq13QiHWAHSrArrYK9XQLJbdIohCZbdTWCz0qhBXMwYVXu0hpj9wt3eOc7opyrq7PAVYM2UsJaPRNwofm5TnkbqK7GHadjGv8cJK/sdlyeVU+O7wS7koSgV2Sizun8yRCPc7AUICetsCA6mIMZ+0OdcaE6rqGnfphQdAdyYJR/VSxn9kyec8CXDBYct4/5MhzKZYkyq9/CCaH8lNrFV0bhjDc4XT82mU5OPLY+e38eZ9I6HNHp3PGPY5QtoiYghJyXmzUfj9lfiGcJS48UVALzasnGPy69pAKgoc3xhV6JDz106lID6f7toRgVtbqFwDnc0qk4zjiy4+eP1B4e44iiDaS6eAqRbFKBSfNmdUzFt+WrQzEZZ0VqTri+YoH4rUlz/8iwuwDDSLob/CuNhWJwpqmnVYbY5NoI24QH7rggKlzqLxHCFxiCS+Z5MGtfJ8AEpIRoVKioPtCuraxl/I= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bgvR8e2CKvmp105N8uqnvkw6avxGimm6EIXuJsqyAuGnch5gcwqqxv69Hg1McTdLGB0/pEHev+6C4OkSyIvJOR2Lz79O9YEDA19aHiiT1+auqQxob0tMine5vjkeU6hnvu2dPepdx/GotwnqDwNflKPiSEkjxdVeeOEyB+k35uuN0ave1ocnF2Cg/nGOiTqynanBHiibfNn0Ail/JjSKVw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e48ecf0-39f7-49eb-0303-08d9485a081f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 13:02:57.3866 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT054.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR06MB2863 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 ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626440674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QALAc8l/FPsqt4jDApnaIdTwRdWFO79xHr/4mpxlKzY=; b=cjivC/25Tko6UfJJOb0rqGhKmshrWVIkIgN7XkQmPdqRJKtKjo4QnspiRahFHSLJtTVEc4 zTI/ztO1fNn/tRX9v3CDACXPPVbARHBEWgZQ0SSfR5ntcfX4xwKnf2oZPkBeAxwnBgoYi3 2NPjuIISL5CO+/WYpPDtdjFimV5OmhcFidnIPt7hjG31+yTBc+9G+6tWvfruRCtZWVd20W pqVpftTpIrKJr8J/xcR/vFNeVVM3nCQPmjhegLvYRsU32z/mRvWtsWn6rofYMSHQvvhr+v oW9IqMm32Gf2OyBtsn0mRoaFLAksmlBhLqwnwv9w/UUB000kwtchijIpWrR9ew== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1626440674; a=rsa-sha256; cv=fail; b=kADWqAQaUcknO0wcm6e+qfjjd7SBwVWHiDE9Fx6Lla0xtWv+tGrzdA3XclUBSyOQnx2NtY zMjvrYvLSniJOjYi6c5mcNmIPKwP/Tlzgkl0ZfBnfMaNDxKSZI2KZ8nCwsfxc7TyDEUIaG gVSqo1Z6QZ1leQ4LYvxbJYk+7mRDz9dOBtfbeXtV3WfKB9pRZs1H6TOO9kKoO5oBCpRf1d RofAaqu1Kh9sjpfWE0NqLyhNz686qC9bLn6gta/mQ6wjfuZ6X4d1cWmCWJhJEX2F0fM6CS 1XNVfy2AeM1XI8qujwn6rgL/aDXvq9d9J7/jPKO3S4BB6JBnCN9y7z4u+yayag== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=PRYamiVJ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=PRYamiVJ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D87AC283AF X-Spam-Score: 0.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6wBGAjppseJs Hello! phodina writes: > --- > index 4429a2b75a..a6f866cbea 100644 > --- a/gnu/packages/engineering.scm > +++ b/gnu/packages/engineering.scm > @@ -24,6 +24,7 @@ > ;;; Copyright =C2=A9 2021 qblade > ;;; Copyright =C2=A9 2021 Gerd Heber > ;;; Copyright =C2=A9 2021 Guillaume Le Vaillant > +;;; Copyright =C2=A9 2021 Petr Hodina > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -1297,6 +1298,35 @@ replacement for the OpenDWG libraries.") > (description "@code{minicom} is a serial terminal emulator.") > (license license:gpl2+))) > > +(define-public sterm > +(package > + (name "sterm") > + (version "20200306") > + (source (origin > + (method git-fetch) > + (uri > + (git-reference > + (url "https://github.com/wentasah/sterm") > + (commit version))) The indention seems wrong here, we usually use: --8<---------------cut here---------------start------------->8--- (source (origin (method git-fetch) (uri (git-reference (url "...") (commit ...))) (file-name (git-file-name name version)) (sha256 (base32 "...")))) --8<---------------cut here---------------end--------------->8--- Also a 'file-name' field is needed to get a better store directory name for the checkout. > + (sha256 > + (base32 > + "031pd8yz2bfzqbari6za1c3xcqmw94ap4vbrjzb3v6izjcrca58c")))) > + (build-system gnu-build-system) > + (arguments > + '(#:tests? #f When disable tests, we should add a comment, a simple "no tests" will do. > + #:make-flags (list "PREFIX=3D$out" "CC=3Dgcc") I think "PREFIX=3D$out" is no effect here, also instead of 'gcc' you can use 'cc-for-target' for cross-compile support, examples can be found in suckless.scm: --8<---------------cut here---------------start------------->8--- #:make-flags (list (string-append "CC=3D" ,(cc-for-target)) (string-append "PREFIX=3D" %output)) --8<---------------cut here---------------end--------------->8--- > + #:phases (modify-phases %standard-phases > + (delete 'configure) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) > + (install-file "sterm" bin) > + #t)))))) Doesn't the builtin Makefile works? It also install a man page and shell completion files. > + (synopsis "Simple serial terminal") > + (description "This is a minimalist terminal program like minicom or cu= . The only thing it does is creating a bidirectional connection between std= in/stdout and a terminal device (e.g. serial line). It can also set serial = line baudrate, manipulate DTR/RTS modem lines, send break and throttle tran= smission speed.") Please keep lines below 80 characters, and use two spaces between the two sentences. > + (home-page "https://github.com/wentasah/sterm") > + (license #f))) According to the files, the license is GPLv3+. Could you send an update patch? Thank you!