From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 12:17:25 2021 Received: (at submit) by debbugs.gnu.org; 15 Jul 2021 16:17:25 +0000 Received: from localhost ([127.0.0.1]:49550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m443A-00041h-Tn for submit@debbugs.gnu.org; Thu, 15 Jul 2021 12:17:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:59520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4438-0003zu-Lx for submit@debbugs.gnu.org; Thu, 15 Jul 2021 12:17:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4438-0007OB-Fj for guix-patches@gnu.org; Thu, 15 Jul 2021 12:17:22 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:58300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4435-00030Y-TO for guix-patches@gnu.org; Thu, 15 Jul 2021 12:17:22 -0400 Date: Thu, 15 Jul 2021 16:17:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626365834; bh=hxfO8PRjbDFA23Lpb/GqAyWMCzB+MQEgQ82OOaXmtzQ=; h=Date:To:From:Reply-To:Subject:From; b=YFonNi4EUqHsxpGrAZlj8GBFZbbcA00NOkH2TXmxPSLodKnY0TSrk/+EnaQeKeHTI 2yGKlu54pHs4fbBkTF6Gri4TLj6ZoJgay/cQgevEcDuiiOO66uTh84noJXMSiiMKTi dw6OY+xs6mHEYWRYfNKqMoIM86n6vjlGxVRkEqRE= To: "guix-patches@gnu.org" From: phodina Subject: [PATCH] Add sterm Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=51.77.79.158; envelope-from=phodina@protonmail.com; helo=mail-0201.mail-europe.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --- 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 +=09 (git-reference +=09=09(url "https://github.com/wentasah/sterm") +=09=09(commit version))) + (sha256 + (base32 + "031pd8yz2bfzqbari6za1c3xcqmw94ap4vbrjzb3v6izjcrca58c")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:make-flags (list "PREFIX=3D$out" "CC=3Dgcc") + #:phases (modify-phases %standard-phases +=09=09(delete 'configure) +=09=09(replace 'install +=09=09 (lambda* (#:key outputs #:allow-other-keys) +=09=09=09 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) +=09=09=09 (install-file "sterm" bin) +=09=09=09 #t)))))) + (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 stdin= /stdout and a terminal device (e.g. serial line). It can also set serial li= ne baudrate, manipulate DTR/RTS modem lines, send break and throttle transm= ission speed.") + (home-page "https://github.com/wentasah/sterm") + (license #f))) + (define-public harminv (package (name "harminv") -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 09:03:10 2021 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?B?5a6L5paH5q2m?= To: phodina Subject: Re: bug#49576: [PATCH] Add sterm 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49576 Cc: 49576@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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! From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 06:50:22 2021 Received: (at 49576) by debbugs.gnu.org; 17 Jul 2021 10:50:22 +0000 Received: from localhost ([127.0.0.1]:52892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4htm-0000qh-5n for submit@debbugs.gnu.org; Sat, 17 Jul 2021 06:50:22 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:52077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4hti-0000qP-KY for 49576@debbugs.gnu.org; Sat, 17 Jul 2021 06:50:20 -0400 Date: Sat, 17 Jul 2021 10:50:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626519012; bh=3ot9R7HuLYLmShRNVT/G9UYnk39NclB54T+NWyuDNj8=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=nSjuWO14pR5E7okoq4VkhZh7dkTrHGAFkhqRx98E++lsC/2sKQ4COrGra+CfyZYos x8y2e06Luy43E/hEvlCtfSgy1z+WktJbfAhVe2guAOHCQ2me3l6ZCDm+/Dhvd4U/zx jr1nGG5ODDpH7TNlCFTdlbROKoKWrPvu0nEWx4g4= To: 49576@debbugs.gnu.org From: phodina Subject: Re: bug#49576: [PATCH] Add sterm Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49576 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi iyzsong! here is the patch with the changes as you suggested. > Doesn't the builtin Makefile works? It also install a man page and > > shell completion files. Unfortunately, the Makefile tries to install the binary under /usr > 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: I made the changes as you suggested but now I get the error due to 'cc-for-= target': /gnu/store/gqp3fqgb9h5l7ibzvsnqkv6gahy3r97i-sterm-20200306-guile-builder:1:= 2534: unquote: expression not valid outside of quasiquote in form (unquote = (cc-for-target)) Could you help me fix that? Thanks --- index 4429a2b75a..4ffb6060fe 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -1297,6 +1297,36 @@ 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 +=09=09 (url "https://github.com/wentasah/sterm") +=09=09 (commit version))) +=09 (file-name (git-file-name name version)) + (sha256 + (base32 + "031pd8yz2bfzqbari6za1c3xcqmw94ap4vbrjzb3v6izjcrca58c")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; no tests + #:make-flags + (list (string-append "CC=3D" ,(cc-for-target)) + (string-append "PREFIX=3D" %output)) + #:phases + (modify-phases %standard-phases (delete 'configure)))) + (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 +stdin/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 transmission speed.") + (home-page "https://github.com/wentasah/sterm") + (license license:gpl3+))) + (define-public harminv (package (name "harminv") -- 2.31.1 =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, July 16th, 2021 at 3:03 PM, =E5=AE=8B=E6=96=87=E6=AD=A6 wrote: > Hello! > > phodina phodina@protonmail.com writes: > > > index 4429a2b75a..a6f866cbea 100644 > > > > --- a/gnu/packages/engineering.scm > > > > +++ b/gnu/packages/engineering.scm > > > > @@ -24,6 +24,7 @@ > > > > ;;; Copyright =C2=A9 2021 qblade qblade@protonmail.com > > > > ;;; Copyright =C2=A9 2021 Gerd Heber gerd.heber@gmail.com > > > > ;;; Copyright =C2=A9 2021 Guillaume Le Vaillant glv@posteo.net > > > > +;;; Copyright =C2=A9 2021 Petr Hodina phodina@protonmail.com > > > > ;;; > > > > ;;; 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) > > > > > > - =09 (let ((bin (string-append (assoc-ref outputs "out") "/bin"= ))) > > > > > > - =09 (install-file "sterm" bin) > > > > > > - =09 #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 = stdin/stdout and a terminal device (e.g. serial line). It can also set seri= al line baudrate, manipulate DTR/RTS modem lines, send break and throttle t= ransmission 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! From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 07:41:43 2021 Received: (at 49576) by debbugs.gnu.org; 17 Jul 2021 11:41:43 +0000 Received: from localhost ([127.0.0.1]:52904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ihT-0004Di-FU for submit@debbugs.gnu.org; Sat, 17 Jul 2021 07:41:43 -0400 Received: from tobias.gr ([80.241.217.52]:50310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ihR-0004DY-9s for 49576@debbugs.gnu.org; Sat, 17 Jul 2021 07:41:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=tWJYPBqYp19eo aRjYjLrNjQfQR3YcdYZDHfxtY6Qpac=; h=references:in-reply-to:subject:cc: to:from:date; d=tobias.gr; b=Xyi0CQTb4fFHcXIjjcwS7ZF0R/GwujHGovZOqBecF 76QKX6boJnzUTseCL88lNwKyd5RGQzbbcMRi5sTGaDORvKv1iqAHQg0jKrFlE4JWGpX6QC kGehhArECTHan3xcZtD2n5Wqw8koCrVSrv1FBhM7bs/VNyON4hdIurcM4y628v31wN0dti xiV+7b4dySS6fU4nDkA++q4w2kcQ0VpLc8xqZtnH1pb5OGlICJ2hSqYvZ8KYHKsfqvvEqc R/BSrOUkQbCsQ8pya0MHbNwQFr1AH/I7Rct8JDDPwb2EHMmWKutCCZhQcchecPOYGrTVeh LUQn2fP3nLHbC7MZVDNpQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 700fa48d; Sat, 17 Jul 2021 11:41:35 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 17 Jul 2021 13:41:35 +0200 From: Tobias Geerinckx-Rice To: phodina Subject: Re: [bug#49576] [PATCH] Add sterm In-Reply-To: References: Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49576 Cc: 49576@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Petr, [Hm, PREFIX=$out... Nixer? Welcome ;-] On 2021-07-17 12:50, phodina via Guix-patches via wrote: > I made the changes as you suggested but now I get the error due to > 'cc-for-target': > > /gnu/store/gqp3fqgb9h5l7ibzvsnqkv6gahy3r97i-sterm-20200306-guile-builder:1:2534: > unquote: expression not valid outside of quasiquote in form (unquote > (cc-for-target)) [...] > + (list (string-append "CC=" ,(cc-for-target)) ^ This , is the 'unquote' from the error message, and a quasiquote would be... > + `(#:tests? #f ; no tests ^ ...this. Whilst this is a regular, boring, non-Chad quote: > + '(#:tests? #f ; no tests ^ Unquote 'escapes' from one level of quoting, but only if the surrounding expression is quasiquoted. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 08:08:40 2021 Received: (at 49576) by debbugs.gnu.org; 17 Jul 2021 12:08:40 +0000 Received: from localhost ([127.0.0.1]:52916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4j7Y-0004qf-8E for submit@debbugs.gnu.org; Sat, 17 Jul 2021 08:08:40 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:42719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4j7T-0004qM-Oj for 49576@debbugs.gnu.org; Sat, 17 Jul 2021 08:08:38 -0400 Date: Sat, 17 Jul 2021 12:08:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626523709; bh=YW2gyHvovoIDGVdk+AKiiKvbH9No4lENb0DbCVc+PW0=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=vOOeeu81ewSBoGEx/HjWblD0wo6p/mZ9xFBa3q9pkD+Tx0k95tDf0Es6/7JEKsEXG n+dNJGg2Vm1METctdUMZ5bmOuZ46v0p8VQnAjd5xU3ZGoqJOaQXXqInrnJnojUr2Gt lkKjzc3JRcHfFwDLf4zFstCQAx6wjP1aJEx3g0lU= To: Tobias Geerinckx-Rice From: phodina Subject: Re: [bug#49576] [PATCH] Add sterm Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49576 Cc: 49576@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks Tobias. Now it builds without errors. Yes, I used Nix. Here's the updated patch: --- index 4429a2b75a..e0eb92967c 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -1297,6 +1297,36 @@ 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))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "031pd8yz2bfzqbari6za1c3xcqmw94ap4vbrjzb3v6izjcrca58c")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no tests + #:make-flags + (list (string-append "CC=3D" ,(cc-for-target)) + (string-append "PREFIX=3D" %output)) + #:phases + (modify-phases %standard-phases (delete 'configure)))) + (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 +stdin/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 transmission speed.") + (home-page "https://github.com/wentasah/sterm") + (license license:gpl3+))) + (define-public harminv (package (name "harminv") -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 05:42:24 2021 Received: (at 49576-done) by debbugs.gnu.org; 18 Jul 2021 09:42:24 +0000 Received: from localhost ([127.0.0.1]:55211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m53JY-0002tZ-H8 for submit@debbugs.gnu.org; Sun, 18 Jul 2021 05:42:24 -0400 Received: from mail-ty1jpn01olkn0141.outbound.protection.outlook.com ([104.47.93.141]:34977 helo=JPN01-TY1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m53JV-0002tI-Oy for 49576-done@debbugs.gnu.org; Sun, 18 Jul 2021 05:42:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F6xN8IAIkTbc6890GxQgQ1Pj9jpye2YIjizJssUeUSL5lTJezflyR0WeXVh7qcMqHv6nlJgYPC9wlUGuzwnv08mdtAAQrLNV4X2xrHNaXMw7/NsCCe3LHCpE+Qw20ljw8GsPGDw6f5IBo6NVK3X5lw2mwjEfhxgit4Sifxiki2ZjwB9JaX1LgcGM0UYw3ARVkQucC/VgMVQLF3FVWm8Ygy/thjb1WsEBFAo3YgzYjHa8/Se2nQcO3o7P35S4HsjyWQ3NuCza3CwhXBip5BVtUdAZbiIqbFJgRbira3KKT1VobP20zpvC+VLwlcqV6Skfae8NadURicxJwxTNnfCncA== 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=cnbUn1iJofrSUqF7yK90ZKyEEEmHRuIH7voZKc5KXD0=; b=KgWjL2I1FDsACGMYl9vwCd8CMaIpW7s1PxwmJQY0a1lBUtj0WjcVuQT2AV9DuVt2/9Gc+EE5w1ADx1OM5jpCOUlO3oDzYjvY1lwQfjuMIQtXc5wTHPzc/s4mnQghQ/dX+UEhKwaRihgLbZpcVGbQ1MpRghFhEv6jupFHNLVlK1Go5qMc3RweA17DpdJnCudpU3YB/lSO9joFRVQ1C/fVtAs889VWf5lvf1gBaOXqoBrY1oCfh8cgCLst9gn0Zom/FesNFdXC2YVum5hbhWfjZCNfK2Dv/sxJg8tj1uFY+Kr8O7tn8VLHvrJ/TVpwdzvsCNxOi9KGrfF5FOUtlD4DcQ== 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=cnbUn1iJofrSUqF7yK90ZKyEEEmHRuIH7voZKc5KXD0=; b=lEPPU/ML69Vh0ufKq/Uid9wEzXfhxiyANOFlFLHnRVxVVkkoGNuYKwOVpbw+0h0qjtpCF/ckZhZTQXXn2q0i2kmIc0nXQahvEOPG5UDsypAyoQCz0Uj9X6ud7rv7gkxjOynVO5pzjpiYhjahk5givx7EIXZrAGp6fnK62LuMJdEuXeyDGvvWLTzel7QIDgVNM733hqcsrOI2tI7BXRnwfZZ73+B17FXhAs1/KwoPJuzVjaGTT3Kcmq557PmB8IzkxJJJLFrpmjbzQRj7dg2+nFjJIqzRpaQZVV78qR4+sooPKStuSGNKOuFuGsw0uf6NpofFBGlQmWxp+5ZGd2++GQ== Received: from HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) by TYAPR04MB2559.apcprd04.prod.outlook.com (2603:1096:404:16::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Sun, 18 Jul 2021 09:42:14 +0000 Received: from HK2APC01FT037.eop-APC01.prod.protection.outlook.com (2603:1096:202:15:cafe::e8) by HK2PR04CA0090.outlook.office365.com (2603:1096:202:15::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Sun, 18 Jul 2021 09:42:14 +0000 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2a01:111:e400:7ebc::4d) by HK2APC01FT037.mail.protection.outlook.com (2a01:111:e400:7ebc::223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Sun, 18 Jul 2021 09:42:14 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:AD97E939217BD362D715ABF621D1DDCA2E7C794488A2ED6FB384E7295B3A8116; UpperCasedChecksum:1F6F20A0266DC85057484BEBD79A573E5FE764C6BE3FBEE63F5DD45243499B8C; SizeAsReceived:8108; Count:46 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.031; Sun, 18 Jul 2021 09:42:13 +0000 From: =?utf-8?B?5a6L5paH5q2m?= To: phodina Subject: Re: bug#49576: [PATCH] Add sterm References: Date: Sun, 18 Jul 2021 17:42:33 +0800 In-Reply-To: (phodina@protonmail.com's message of "Sat, 17 Jul 2021 12:08:27 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Content-Type: text/plain X-TMN: [PVKZN4oFAkr1NjHxLlExZ1Qbg/SFqmJ91RxZK5qRXzlAvIlhsAPoUhH/5KLlOHp4] X-ClientProxiedBy: HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) To OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:ec::11) X-Microsoft-Original-Message-ID: <87tuks3qly.fsf_-_@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (240e:399:332:9710:2f1:f5ff:fe18:6bb) by HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Sun, 18 Jul 2021 09:42:12 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 89370f66-4d69-4952-f193-08d949d05285 X-MS-TrafficTypeDiagnostic: TYAPR04MB2559: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0lWsdxkuDnF7BwZJi6CuVCRqSarWxi0y/VSOKmsUyKwzGgo93apaWb2FlpVeQr27F2Ck0X9C8ytECQnXuumnn0XvM+5l3JJEh5vl9Vd0j+pxkbu8dvzXjvFWiD5XaOPbmza9cGoUWG0VygTgP4Y/ynIfQ753pzCrlcZ6XVOc39XVF014MkgdlsJHnBz3W9vL5ZGsn2kUC4X+g1LFDXLd1tH7zX5IoNtEBWd15HysQXlmYe8oIGFgWR/QCB0VvW6eUqRrgyPFOVh0QTBpNz5ygbHbeTLZCff/z2wsWeqK8/6RHGGZ1RNd0zMScICkskEKebu6I2dc4ks1tgDRD4adUwcQQMHgyxLOZV0s1/ep5dsz/oy4WIgjhLJnJJBxA/PDyWwlpKNPfaPAMxm1Us0ZL567gsOV4s/3iKFbLf4bU0mxGERhMoTejrq/eiNkfSJ9 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: j3ci0Xh2MQrD8LgrRGUu1fLTyiT0IMsH7tDrWOaoI29bewryjLhxxTW1D/dWjJUdvKqaUbAgMMUppnU5cCpnv3VJwy9F9n+8wVy16XnssUulu3Ol5WfhcYUTtXDpZRntGanHDEGO9HZ0DHR1i/e/o6tEp5mpbfbqfW6KzSK5QTg/LTSaKHlWMmMk/9F19f4wiXfjvnklNmbHxtXu7ICJ9g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89370f66-4d69-4952-f193-08d949d05285 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2021 09:42:13.8978 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HK2APC01FT037.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: TYAPR04MB2559 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49576-done Cc: 49576-done@debbugs.gnu.org, Tobias Geerinckx-Rice X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) phodina writes: > Thanks Tobias. Now it builds without errors. > > Yes, I used Nix. > > Here's the updated patch: > [...] Pushed, thank you and Tobias! From unknown Sun Jun 15 08:50:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 15 Aug 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator