From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cJhiNRu28mBLIQAAgWs5BA (envelope-from ) for ; Sat, 17 Jul 2021 12:51:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aAkcMRu28mC+IAAAbx9fmQ (envelope-from ) for ; Sat, 17 Jul 2021 10:51:07 +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 1267C151A9 for ; Sat, 17 Jul 2021 12:51:07 +0200 (CEST) Received: from localhost ([::1]:40470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4huU-0002r9-19 for larch@yhetil.org; Sat, 17 Jul 2021 06:51:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4huQ-0002r1-BC for guix-patches@gnu.org; Sat, 17 Jul 2021 06:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4huQ-0000to-3E for guix-patches@gnu.org; Sat, 17 Jul 2021 06:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4huP-0000rZ-VL for guix-patches@gnu.org; Sat, 17 Jul 2021 06:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49576] [PATCH] Add sterm Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Jul 2021 10:51: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: 49576@debbugs.gnu.org Received: via spool by 49576-submit@debbugs.gnu.org id=B49576.16265190223271 (code B ref 49576); Sat, 17 Jul 2021 10:51:01 +0000 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= Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626519067; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=3ot9R7HuLYLmShRNVT/G9UYnk39NclB54T+NWyuDNj8=; b=Tc0Y7ObVMeYcRcYytmMydUGTiySCwVHUIFShlMQoNVzANYfl3+s73nVzxa1arGrhR82lzY QqtjV+mDSRk59r5lKRncIYjxpXMCE0UnS/vFm17R2g+1WZvWeCPfN+4O4fhmL2hcffNv9N 35gyrPV5NdiL707TwmLCYRLqwc85ZF9D+rrg+JHxKcA1YjVT+q2rWlmbfgvdejdiXU7RRf MW6K9vzbNI8t6HY8YAH4jicUCgw/jlCICwimX8CsGyTqHHp7rjktwIzDpqXVqkVyJYBcpC nRe3J2aNL2v4EColKvLBvQXdXKxqKeXIb//jLg7CmUCZ3aGXBrhy5x8mtrA8IA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626519067; a=rsa-sha256; cv=none; b=eJdfVtX3vZ4WLCLuZHXluFEhIn1XZ+ogpf1/gjjCLEHQS1RDSUvXqWMZAkMajJyMGNLAA8 BS2FJQ2PO+gt2AQ5WF3OqBCN2qkENwUeHVweIXYCva8xrSO1uFHqAMprLeJarSPZFKpgHp TRU/Ieu6y8fSbR6qVHQoOODGA+iVg7YZVvY0iEoy7Yt5IjgF0Xe+I58/7KsrOhsDbvnwca bz5TEeZJkegNH5P/yQBf+TumSjEWMFvMLgoLydiDZkz9cLkmxfP/rRsaDyTnXY26lPjHmR 1Hv6bc3GZeEDSMOYusEbHs19P0eGPe9hPtYg7xP69jx6IVJhe2DaJ6RJXweJ2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=nSjuWO14; 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: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=nSjuWO14; dmarc=pass (policy=none) header.from=gnu.org; 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: 1267C151A9 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: zPUbcwja429q 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!