From patchwork Mon Dec 13 06:00:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35156 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 35BDD27BBEA; Mon, 13 Dec 2021 06:03:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8C79527BBE9 for ; Mon, 13 Dec 2021 06:03:16 +0000 (GMT) Received: from localhost ([::1]:39424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweQd-0000ph-Ku for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:03:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQQ-0000o2-Jr for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQQ-00074F-AV for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQQ-0002RD-70 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 01/45] gnu: node: Avoid duplicating build phases. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753479220 (code B ref 51838); Mon, 13 Dec 2021 06:03:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:02:27 +0000 Received: from localhost ([127.0.0.1]:53679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwePq-0002Oe-Es for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:26 -0500 Received: from mail-ua1-f49.google.com ([209.85.222.49]:39725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwePo-0002OR-Ma for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:25 -0500 Received: by mail-ua1-f49.google.com with SMTP id i6so27290313uae.6 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KH4RQSW2Vl/+hSZ71LTsM4xePvjwFAevZ9cxlfrinCQ=; b=epdTGtFKodUCbiaUAIG3/UEftiYqjs20zX1g1EJQ9VLRvb/MA/Nlyej4ngml2q7mYP YXxjFZXiny1azlfHx1C82xLp2/Pnroz9kl6mWxiGSa31+amjyYzgNjXHwpSX9AEnltyw pYqFkC9XWLgSeLNS0RAj7far7+7CGru+z7/Plj2nxhHMv8a8rygbmqThoj9AT2scAiaa +V/AwJ0+ZKMtdNTmY5/YMtzNO1ajgyN5cNkkumiFmAwT8yfqNqX5Y6717gf8fy2Qso/M FuHndST4OPHsHv9VToiJ/iqvV9cQ0PFK7BKyhDjUJW03pqrPGCSJlNZMCBRVwfD80AW4 bRrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KH4RQSW2Vl/+hSZ71LTsM4xePvjwFAevZ9cxlfrinCQ=; b=cBo4zxy4TeEIpBhIDfjyaO13SAq+vrA17UQUL/NlMuCUL17aACyRH8K/xdLfyBqjYG 69dO84/qjTqvDN3DozLzdC5kNbmkq377kFqdVZ30GBUgVHgM/kkHWOFoCmGRxlA+h4c6 Ul4g6r3JHUceRb2FRSO1T7gEwxK1jem/FeEUdWVQ/kNHkKBrB6jG/uDHqFPr1SGPNBSq lpYGHia34Bl734+s6TUqQ552cDNvQN+pJd2O2s3WG4FyVITOLTYFHGqPZhYthiitX7dU AWw4K3yqFRZgwS6f8ZCIbvwD7wpTLDDTZCIEqO0JkYivNiwBQaCv0Zk0pGidmqZb0Exl a8/w== X-Gm-Message-State: AOAM531Nyqr0b2qj3P5TTZvtO68DXgrTSuDdF/Tw9u43XRcoCtSPSh+u kdvO8sp0LqWYXNDSxkV4g+6BBYrqNV03MWvp4UY= X-Google-Smtp-Source: ABdhPJwJMxIIbSojcStIh5zpJF8/LXaGtnJCBASC5Pghb+Z5fk3GfuPA4OUSuEnDI7ZUXl/gmDFLig== X-Received: by 2002:ab0:7784:: with SMTP id x4mr39592518uar.143.1639375338996; Sun, 12 Dec 2021 22:02:18 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id 92sm3901425uav.9.2021.12.12.22.02.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:18 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:23 -0500 Message-Id: <20211213060107.129223-2-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node.scm (node)[arguments]: Split 'patch-files phase into 'patch-hardcoded-program-references and 'delete-problematic-tests. Adapt 'patch-hardcoded-program-references and 'configure to work unmodified on node-lts, but don't try to share 'delete-problematic-tests, because those details seem to change too much between node versions. (node, node-lts)[inputs]: Use bash-minimal rather than bash. (node-lts)[arguments]: Inherit 'patch-hardcoded-program-references, and 'configure phases from the bootstrap node. Remove the 'patch-files phase, keeping its remaining non-inherited work in a new 'replace-llhttp-sources phase. --- gnu/packages/node.scm | 105 +++++++++++++----------------------------- 1 file changed, 32 insertions(+), 73 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index dccf871d2c..7ebbbc3060 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2020, 2021 Pierre Langlois ;;; Copyright © 2020 Ricardo Wurmus ;;; Copyright © 2021 Simon Tournier +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -105,14 +106,22 @@ (define-public node #:test-target "test-ci-js" #:phases (modify-phases %standard-phases - (add-before 'configure 'patch-files + (add-before 'configure 'patch-hardcoded-program-references (lambda* (#:key inputs #:allow-other-keys) + ;; Fix hardcoded /bin/sh references. - (substitute* '("lib/child_process.js" - "lib/internal/v8_prof_polyfill.js" - "test/parallel/test-child-process-spawnsync-shell.js" - "test/parallel/test-stdio-closed.js" - "test/sequential/test-child-process-emfile.js") + (substitute* + (let ((common + '("lib/child_process.js" + "lib/internal/v8_prof_polyfill.js" + "test/parallel/test-child-process-spawnsync-shell.js" + "test/parallel/test-stdio-closed.js" + "test/sequential/test-child-process-emfile.js")) + ;; not in bootstap node: + (sigxfsz "test/parallel/test-fs-write-sigxfsz.js")) + (if (file-exists? sigxfsz) + (cons sigxfsz common) + common)) (("'/bin/sh'") (string-append "'" (assoc-ref inputs "bash") "/bin/sh'"))) @@ -122,7 +131,10 @@ (define-public node "test/parallel/test-child-process-exec-env.js") (("'/usr/bin/env'") (string-append "'" (assoc-ref inputs "coreutils") - "/bin/env'"))) + "/bin/env'"))))) + (add-after 'patch-hardcoded-program-references + 'delete-problematic-tests + (lambda* (#:key inputs #:allow-other-keys) ;; FIXME: These tests fail in the build container, but they don't ;; seem to be indicative of real problems in practice. @@ -217,9 +229,13 @@ (define-public node (setenv "CXX" ,(cxx-for-target)) (setenv "PKG_CONFIG" ,(pkg-config-for-target)) (apply invoke - (string-append (assoc-ref (or native-inputs inputs) - "python") - "/bin/python") + (let ((python + (string-append (assoc-ref (or native-inputs inputs) + "python") + "/bin/python"))) + (if (file-exists? python) + python + (string-append python "3"))) "configure" flags)))) (add-after 'patch-shebangs 'patch-npm-shebang (lambda* (#:key outputs #:allow-other-keys) @@ -256,7 +272,7 @@ (define-public node (variable "NODE_PATH") (files '("lib/node_modules"))))) (inputs - `(("bash" ,bash) + `(("bash" ,bash-minimal) ("coreutils" ,coreutils) ("c-ares" ,c-ares) ("http-parser" ,http-parser) @@ -712,66 +728,8 @@ (define-public node-lts libuv "/lib:" zlib "/lib" "'],")))))) - (replace 'configure - ;; Node's configure script is actually a python script, so we can't - ;; run it with bash. - (lambda* (#:key outputs (configure-flags '()) native-inputs inputs - #:allow-other-keys) - (let* ((prefix (assoc-ref outputs "out")) - (xflags ,(if (%current-target-system) - `'("--cross-compiling" - ,(string-append - "--dest-cpu=" - (match (%current-target-system) - ((? (cut string-prefix? "arm" <>)) - "arm") - ((? (cut string-prefix? "aarch64" <>)) - "arm64") - ((? (cut string-prefix? "i686" <>)) - "ia32") - ((? (cut string-prefix? "x86_64" <>)) - "x64") - ((? (cut string-prefix? "powerpc64" <>)) - "ppc64") - (_ "unsupported")))) - ''())) - (flags (cons - (string-append "--prefix=" prefix) - (append xflags configure-flags)))) - (format #t "build directory: ~s~%" (getcwd)) - (format #t "configure flags: ~s~%" flags) - ;; Node's configure script expects the CC environment variable to - ;; be set. - (setenv "CC_host" "gcc") - (setenv "CXX_host" "g++") - (setenv "CC" ,(cc-for-target)) - (setenv "CXX" ,(cxx-for-target)) - (setenv "PKG_CONFIG" ,(pkg-config-for-target)) - (apply invoke - (string-append (assoc-ref (or native-inputs inputs) - "python") - "/bin/python3") - "configure" flags)))) - (replace 'patch-files + (replace 'delete-problematic-tests (lambda* (#:key inputs #:allow-other-keys) - ;; Fix hardcoded /bin/sh references. - (substitute* '("lib/child_process.js" - "lib/internal/v8_prof_polyfill.js" - "test/parallel/test-child-process-spawnsync-shell.js" - "test/parallel/test-fs-write-sigxfsz.js" - "test/parallel/test-stdio-closed.js" - "test/sequential/test-child-process-emfile.js") - (("'/bin/sh'") - (string-append "'" (assoc-ref inputs "bash") "/bin/sh'"))) - - ;; Fix hardcoded /usr/bin/env references. - (substitute* '("test/parallel/test-child-process-default-options.js" - "test/parallel/test-child-process-env.js" - "test/parallel/test-child-process-exec-env.js") - (("'/usr/bin/env'") - (string-append "'" (assoc-ref inputs "coreutils") - "/bin/env'"))) - ;; FIXME: These tests fail in the build container, but they don't ;; seem to be indicative of real problems in practice. (for-each delete-file @@ -810,8 +768,9 @@ (define-public node-lts ;; TODO: Regenerate certs instead. (for-each delete-file '("test/parallel/test-tls-passphrase.js" - "test/parallel/test-tls-server-verify.js")) - + "test/parallel/test-tls-server-verify.js")))) + (add-after 'delete-problematic-tests 'replace-llhttp-sources + (lambda* (#:key inputs #:allow-other-keys) ;; Replace pre-generated llhttp sources (let ((llhttp (assoc-ref inputs "llhttp"))) (copy-file (string-append llhttp "/src/llhttp.c") @@ -838,7 +797,7 @@ (define-public node-lts ("python" ,python) ("util-linux" ,util-linux))) (inputs - `(("bash" ,bash) + `(("bash" ,bash-minimal) ("coreutils" ,coreutils) ("c-ares" ,c-ares-for-node) ("icu4c" ,icu4c-67) From patchwork Mon Dec 13 06:00:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35157 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4ED8D27BBEB; Mon, 13 Dec 2021 06:03:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9C86E27BBE9 for ; Mon, 13 Dec 2021 06:03:29 +0000 (GMT) Received: from localhost ([::1]:40026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweQq-0001GX-IM for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:03:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQR-0000oZ-0Y for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQQ-00074X-NE for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQQ-0002RK-JT for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 02/45] gnu: node: Update to 10.24.1 for bootstrapping. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753559248 (code B ref 51838); Mon, 13 Dec 2021 06:03:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:02:35 +0000 Received: from localhost ([127.0.0.1]:53682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwePy-0002P3-V5 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:35 -0500 Received: from mail-ua1-f54.google.com ([209.85.222.54]:33305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwePx-0002On-BG for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:33 -0500 Received: by mail-ua1-f54.google.com with SMTP id a14so27419950uak.0 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t5y3hwK9L6+eQR1y3VE4Cmi8oUepPqWpd78oyUMVhug=; b=fIpa4vhwBsppirv3UhnnTnDTrkPHLPwMdAk8smK0mRI+fUqDRVwDUeqe6m6yFtBl3v Y2yGH6f+/eulAZ1Yllvu1p2V7ZFohPeMFQbKzVwaFaLh6M7lV4BQFz14ctrMts0lyKKQ jCXFnXoQfVf64ezpq9e+yzZ5kzNt5BUf3lx0PFW1uD/PtgOe7Ggopgeni5A0QzS13Q5L TYFio4kZCGdeeSyySx7ZWMH48DTe+iiWL2OK9G2W/F6KEbLYSujP0Za3YF0mBQHUenLT Q+d2QMV1zJKCKFZNvHo4PN9/IdZ3IPmOJkaYUBlrpiTm6p1sE8FTXKW8zraKVkquV7qZ r8WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t5y3hwK9L6+eQR1y3VE4Cmi8oUepPqWpd78oyUMVhug=; b=QTxbMAk93pGULwrUuYESMUr53mYBR0Bib4NBAUkbVjkrZHMiUb87yjmqJ4kdIxvGu9 j59q5npEBzR1dqh7rECP9pH99pYW1jULrM0syBriDWV7Tbc6nUhogTYbiISjtH4Ju+13 wnMbJRUTPmn5vLKNnMltazlycJzIf8xFe/Z+ei/OYadR2y1mZwVr+AfRzI2EVbA+DE/8 YxIB/9ytN3v5WCWwrVJTr+BecOPvfaJkw2ZuQl9xtVX5q1b4JuDH6dwGVOLBLUsh6YHG SpDYphE+RsispiIgIsuesS1ZAAEmGU8qHNQGawfnRcdr6sWkEoqQlzbEyIbelXMwWmMc /Kkg== X-Gm-Message-State: AOAM53244lBqmY/gkGFIdW2z0bLCAgE0twK/p2kXwXxG5CTXDYGNwyez KXGwJv9Q/+4utDmrPtYrkwfl7Q7cXrrL0DYXSWs= X-Google-Smtp-Source: ABdhPJwEadnolf+HIQLIkLa6uX4h1702+NNoTy/brijjc8DNwq7JgUPgCPBE9gSqyFD1ojR/Mg/1eA== X-Received: by 2002:a05:6130:424:: with SMTP id ba36mr39865890uab.1.1639375347832; Sun, 12 Dec 2021 22:02:27 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id r13sm3688336vkl.13.2021.12.12.22.02.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:27 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:24 -0500 Message-Id: <20211213060107.129223-3-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node.scm (node): Update to 10.24.1. --- gnu/packages/node.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 7ebbbc3060..71b66774a6 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -57,14 +57,14 @@ (define-module (gnu packages node) (define-public node (package (name "node") - (version "10.24.0") + (version "10.24.1") (source (origin (method url-fetch) (uri (string-append "https://nodejs.org/dist/v" version "/node-v" version ".tar.xz")) (sha256 (base32 - "1k1srdis23782hnd1ymgczs78x9gqhv77v0am7yb54gqcspp70hm")) + "032801kg24j04xmf09m0vxzlcz86sv21s24lv9l4cfv08k1c4byp")) (modules '((guix build utils))) (snippet `(begin From patchwork Mon Dec 13 06:00:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35159 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 42A1F27BBEA; Mon, 13 Dec 2021 06:03:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C61B527BBE9 for ; Mon, 13 Dec 2021 06:03:41 +0000 (GMT) Received: from localhost ([::1]:40666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweR2-0001h9-V5 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:03:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQR-0000p1-Dd for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQR-00074h-4k for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQR-0002RS-1C for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 03/45] gnu: node: Patch shebangs in node_modules. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753609267 (code B ref 51838); Mon, 13 Dec 2021 06:03:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:02:40 +0000 Received: from localhost ([127.0.0.1]:53685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQ4-0002PN-65 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:40 -0500 Received: from mail-ua1-f51.google.com ([209.85.222.51]:45927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQ1-0002Ou-CL for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:37 -0500 Received: by mail-ua1-f51.google.com with SMTP id ay21so27247095uab.12 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vNLOSTWhsUvYl4zbQmT0Z6mwdgkAqlBATEO6lq8SgZA=; b=AIjqCNjFjedGguEGy2DVpLiUL9xlRvB9So1RPvSW+nzATkEhun3nRw2PWY1fb8xx6o /wBroCefZ1EpVcN7hkbTgZxCyxxgqipkYRuI8FPr5btdEnyHeDsCjOAyLe1oog5vwmMT YlKYACnNr7+EYzVs5cWN2YTtdp9hsRsw0uONnhTazLMH/rFpcIWOf+tG/PHd+u98iXG/ G7+F9g1eqH+/fOb2sbIxb38viSBkpg9gVRiH0oNsDf0WkDKXtSJlOsNQLn98sXHfGbM4 U/gsm6taIC6U8dknfvUeD6BjL1+4aPf3lXADJyHITpIilCi0OQ0bLlc4xYoX2GbNQTgT gdbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vNLOSTWhsUvYl4zbQmT0Z6mwdgkAqlBATEO6lq8SgZA=; b=V5GQAOaZj9W8Is4ujIZ8fotQIMkvtWW2jashpmjsv0MjZE0HGlK8afLajeQ51+jJkC OdAJvfKjFcf2skCeli5lSm3XY7sfn6zS98nuY9sz2xsUSzotOe7dHO1j/G2qRIwH4Q0R gyqH6jVqrEoZMfRA6I2nY3rZfWeWnvXvG+7OOkKcvRD8CBXovBUoEZBJPf6bbe5TFbKZ 0iLhxGNjletI9odOQBstbpl7JNECXc1JBKk5MSedftK1VkCz8Wwht6Fy4P65ITehXsuH 1kR32sjhtKYjFlHZzrmU0KhrTi3iEsS8nmBxz5UWF8/xuaAyC4+o759gQz7qYu7/D+hR ppoQ== X-Gm-Message-State: AOAM533iKtcv8oof2agKtmmYFOpGZMtG0DuQ6Y/tYuFnknNiJiTOkc9l K6mycMi7//tYlyY8jFmmFWuD/1Y62QOhm40A7SY= X-Google-Smtp-Source: ABdhPJxoOkGgXGSN8HzjeYXZiVyv/RTkGszKCrU/UOMCPsPbjsNwYTlHFlsFS4w+Exl9i92h2iIKJA== X-Received: by 2002:ab0:7041:: with SMTP id v1mr39840971ual.95.1639375351924; Sun, 12 Dec 2021 22:02:31 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id o128sm3561495vsc.7.2021.12.12.22.02.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:31 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:25 -0500 Message-Id: <20211213060107.129223-4-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node.scm (node)[arguments]: Replace 'patch-npm-shebang and 'patch-node-shebang with a new 'patch-nested-shebangs that also handles node-gyp and other shebangs under "/lib/node_modules". [inputs]: Add Python for node-gyp as "python-for-target". (node-lts)[inputs]: Likewise. (libnode)[arguments]: Adjust to delete 'patch-nested-shebangs rather than 'patch-npm-shebang and 'patch-node-shebang. --- gnu/packages/node.scm | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 71b66774a6..a57a74fb81 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -237,21 +237,20 @@ (define-public node python (string-append python "3"))) "configure" flags)))) - (add-after 'patch-shebangs 'patch-npm-shebang - (lambda* (#:key outputs #:allow-other-keys) - (let* ((bindir (string-append (assoc-ref outputs "out") - "/bin")) - (npm (string-append bindir "/npm")) - (target (readlink npm))) - (with-directory-excursion bindir - (patch-shebang target (list bindir)))))) - (add-after 'install 'patch-node-shebang - (lambda* (#:key outputs #:allow-other-keys) - (let* ((bindir (string-append (assoc-ref outputs "out") - "/bin")) - (npx (readlink (string-append bindir "/npx")))) - (with-directory-excursion bindir - (patch-shebang npx (list bindir))))))))) + (add-after 'patch-shebangs 'patch-nested-shebangs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((prefix (assoc-ref outputs "out")) + (path (map (lambda (dir) + (string-append dir "/bin")) + (list prefix + (assoc-ref inputs "python-for-target"))))) + (for-each + (lambda (file) + (patch-shebang file path)) + (find-files (string-append prefix "/lib/node_modules") + (lambda (file stat) + (executable-file? file)) + #:stat lstat)))))))) (native-inputs `(;; Runtime dependencies for binaries used as a bootstrap. ("c-ares" ,c-ares) @@ -274,6 +273,7 @@ (define-public node (inputs `(("bash" ,bash-minimal) ("coreutils" ,coreutils) + ("python-for-target" ,python-wrapper) ;; for node-gyp (supports python3) ("c-ares" ,c-ares) ("http-parser" ,http-parser) ("icu4c" ,icu4c) @@ -799,6 +799,7 @@ (define-public node-lts (inputs `(("bash" ,bash-minimal) ("coreutils" ,coreutils) + ("python-for-target" ,python-wrapper) ;; for node-gyp (supports python3) ("c-ares" ,c-ares-for-node) ("icu4c" ,icu4c-67) ("libuv" ,libuv-for-node) @@ -817,5 +818,4 @@ (define-public libnode `(cons* "--shared" "--without-npm" ,flags)) ((#:phases phases '%standard-phases) `(modify-phases ,phases - (delete 'patch-npm-shebang) - (delete 'patch-node-shebang))))))) + (delete 'patch-nested-shebangs))))))) From patchwork Mon Dec 13 06:00:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35158 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B72C527BBE9; Mon, 13 Dec 2021 06:03:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9A92C27BBEA for ; Mon, 13 Dec 2021 06:03:30 +0000 (GMT) Received: from localhost ([::1]:40084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweQr-0001J5-IN for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:03:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQR-0000pd-S5 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQR-00074p-IV for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQR-0002RZ-F0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 04/45] gnu: node: Add an npmrc file to set nodedir. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753659283 (code B ref 51838); Mon, 13 Dec 2021 06:03:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:02:45 +0000 Received: from localhost ([127.0.0.1]:53688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQ8-0002Pf-LI for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:44 -0500 Received: from mail-ua1-f45.google.com ([209.85.222.45]:35738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQ5-0002PE-GD for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:42 -0500 Received: by mail-ua1-f45.google.com with SMTP id l24so27361166uak.2 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oMJBdwZ4+Xn21yGOr6RykspdCfJ7NdoBqQsI1LH/rLk=; b=WdOp41oMYvsBwTUTW2LNrgHvGiXZBSKg29/mSB5WHhHNB/+6UaXDSpWeFYx9BQJcTs 93lnKEy9iw722yKG5ppWaYS7kpOihMkGatKIV6io6F3vBO7bPmBrqqXlF4907NunBFae jpqPwfKV2vFP4tQ6AIg6WUvCgeIL0nQl/jByEDmkkuSuPnxoRQZepyzklWgIH+fFjGrV cMZKRZtWQSvh/2FYNASQFZlfov5nb57E3hia2+5O4YOfLFshdSOoXYtFs75L9ZwsHpUt Fo56y4i7ZnNQ07N8UcfnSSR4LRdrNp9dnbtJ0g0Cnv+0Mde13mLeFVh/tKPt/ISDhLHO bAAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oMJBdwZ4+Xn21yGOr6RykspdCfJ7NdoBqQsI1LH/rLk=; b=7fUS09Gjm8GtJzywJY4AIEGKnM9CgEhf0MBG3igBGXrXIwjHo0lLt03XHcf7wxlgnd N0zNX58SxlG/1OYnJpWBVPLYFXnDLTTko+aEfvrVf9EgDK3R/KGanM/Vhaq1Sb2ENc5Q z+SsHWVRiW4usNWie8d+Dx8mshoUe2AtcWEBUfmh+Vxp3yO75ouxxIMfELFcQ7kk8Nk1 c4BcaiK8IDQwjJu8j4N4FD5pqeVJMXYeQ1Q4WPwlKSZiDrs9RT8KWJ7gKTzO7bBszOaR ZzuKQO9x6b/B2arb1KBeVVhcDQLCuZlvfqQPqPgEhShWyxIavpjUZ6uh6jHw9NPUQ92v /NIA== X-Gm-Message-State: AOAM532D4uIQ3cAhwGD5/6wMAnacNIyRip65tQKwofnqqx3aDrzNdyK9 lMKCTvpA/HYKCd35xCqdg/NsQWxwWyN08Hgoi58= X-Google-Smtp-Source: ABdhPJwraxH+4DXzcohl/mBEuYq7EBQPUpo2Rj1xBxZxtCjGl5veq6ltZuD+fr1vIUxfQlbKUF5jhw== X-Received: by 2002:a67:1ac1:: with SMTP id a184mr24057470vsa.22.1639375355970; Sun, 12 Dec 2021 22:02:35 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id 92sm3759120uar.19.2021.12.12.22.02.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:35 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:26 -0500 Message-Id: <20211213060107.129223-5-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node.scm (node, node-lts)[arguments]: Add a phase 'install-npmrc to create a "built-in" npmrc file that configures "nodedir" to point to the output store path. (libnode)[arguments]: Delete the 'install-npmrc phase. --- gnu/packages/node.scm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index a57a74fb81..346cbd488d 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -250,7 +250,24 @@ (define-public node (find-files (string-append prefix "/lib/node_modules") (lambda (file stat) (executable-file? file)) - #:stat lstat)))))))) + #:stat lstat))))) + (add-after 'install 'install-npmrc + ;; Note: programs like node-gyp only receive these values if + ;; they are started via `npm` or `npx`. + ;; See: https://github.com/nodejs/node-gyp#npm-configuration + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-output-to-file + ;; Use the config file "primarily for distribution + ;; maintainers" rather than "{prefix}/etc/npmrc", + ;; especially because node-build-system uses --prefix + ;; to install things to their store paths: + (string-append out "/lib/node_modules/npm/npmrc") + (lambda () + ;; Tell npm (mostly node-gyp) where to find our + ;; installed headers so it doesn't try to + ;; download them from the internet: + (format #t "nodedir=~a\n" out))))))))) (native-inputs `(;; Runtime dependencies for binaries used as a bootstrap. ("c-ares" ,c-ares) @@ -818,4 +835,5 @@ (define-public libnode `(cons* "--shared" "--without-npm" ,flags)) ((#:phases phases '%standard-phases) `(modify-phases ,phases + (delete 'install-npmrc) (delete 'patch-nested-shebangs))))))) From patchwork Mon Dec 13 06:00:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35160 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 38D1327BBEA; Mon, 13 Dec 2021 06:03:43 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 024AC27BBE9 for ; Mon, 13 Dec 2021 06:03:43 +0000 (GMT) Received: from localhost ([::1]:40728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweR4-0001jc-4x for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:03:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQS-0000qy-A5 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQS-000753-0m for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQR-0002Rg-Ra for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 05/45] guix: node-build-system: Add delete-lockfiles phase. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753699301 (code B ref 51838); Mon, 13 Dec 2021 06:03:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:02:49 +0000 Received: from localhost ([127.0.0.1]:53691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQC-0002Px-Tp for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:49 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:34612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQ9-0002PO-GR for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:46 -0500 Received: by mail-ua1-f47.google.com with SMTP id n6so27363453uak.1 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UqCWz+02IeHqBG76t8ha9dj85wQjLagMgL0iihmBPRc=; b=faFcURG4TQlSAGOUnyB6KLqF0ghBt1qh6ARSUssJYZJv93s5KGtplKVfjLFih4sK+Y I+cz1HWPwSUbEf8r2q0FVIHSOdNTzpplvWXqyyCZ6mcZ2zXEvCqSh/0p7ETDcKojHWCI 94AnRww9m/w/ZImpyrNCjIVlmVeakgvSf1mySYt7PHUXNUwd2Qoc0EKf8qYs7uSWxHfV 5K1tkGnM3r9DnFuE/OIU4dg4xN1qZJ17ybW0+PdMT7XvlHZNtNqo47M+lHp69WRAFRvP Obe9bWDIiCor6byjbIJjLkZRCI6hYEgHMNpHIuYWDApDDqnx6e0JS3JHW28Ph8Ko9b/m eweA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UqCWz+02IeHqBG76t8ha9dj85wQjLagMgL0iihmBPRc=; b=c5OTw80yMsYVAOa87ouUC3nSuy7z335zKCvM+SO53WwyNFIezsbTuKKirQUXgiJF4G RZz0IpyAoDabOqJzS7XjG1H/8DsRFZClB7A8izBu33MVUOQLNvXP1sF7muwFXNT44a9v hVjX0Dp2YLLV7P7ZooQ85uZe5aHRbMOUofLOc2eE4Dwc5mkwJ3fNfFfrcm1ic7qwiZSU BoAl1mZpYo7t8hDPyoV1bPCpefcnICo+A4kFptN4ZkN1WxqSTFftAhTrwIfxhH0BVUL7 0cnr99KHUulrJx/EJAHOvJ+9ak8lGhQzgwI5ZTNI2uv26k740rcVfb3Oc4kDpBOpx7gE vCdA== X-Gm-Message-State: AOAM531QX1pdY+8WNHePl6FInWTGnwZwEx0IJP3yOxC+8g5pVCI9QioR FGdANk2fYyEoHnEPy8dj77I21F8ZlqClnKC3BQ4= X-Google-Smtp-Source: ABdhPJzitM2Gbw7Tf8C7cqQXKV8/u0QsT267thwQQDhtIrB8yWLTrqUU5jdswTZnpyG6J4F8co69zQ== X-Received: by 2002:a67:5fc6:: with SMTP id t189mr24690800vsb.79.1639375360050; Sun, 12 Dec 2021 22:02:40 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id a26sm3819330vko.54.2021.12.12.22.02.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:39 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:27 -0500 Message-Id: <20211213060107.129223-6-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/build/node-build-system.scm (delete-lockfiles): New function. Remove 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they exist. Because these files specify both exact dependency versions and integrity hashes, they only cause problems for Guix. (%standard-phases): Add 'delete-lockfiles' after 'patch-dependencies'. --- guix/build/node-build-system.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index 70a367618e..dcaa719f40 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -96,6 +96,17 @@ (define (resolve-dependencies package-meta meta-key) (write-json package-meta out)))) #t) +(define* (delete-lockfiles #:key inputs #:allow-other-keys) + "Delete 'package-lock.json', 'yarn.lock', and 'npm-shrinkwrap.json', if they +exist." + (for-each (lambda (pth) + (when (file-exists? pth) + (delete-file pth))) + '("package-lock.json" + "yarn.lock" + "npm-shrinkwrap.json")) + #t) + (define* (configure #:key outputs inputs #:allow-other-keys) (let ((npm (string-append (assoc-ref inputs "node") "/bin/npm"))) (invoke npm "--offline" "--ignore-scripts" "install") @@ -146,6 +157,7 @@ (define %standard-phases (modify-phases gnu:%standard-phases (add-after 'unpack 'set-home set-home) (add-before 'configure 'patch-dependencies patch-dependencies) + (add-after 'patch-dependencies 'delete-lockfiles delete-lockfiles) (replace 'configure configure) (replace 'build build) (replace 'check check) From patchwork Mon Dec 13 06:00:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35164 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8719427BBEA; Mon, 13 Dec 2021 06:04:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5376927BBE9 for ; Mon, 13 Dec 2021 06:04:36 +0000 (GMT) Received: from localhost ([::1]:42252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRv-0002rN-CY for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQS-0000rk-Mx for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42161) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQS-00075A-CT for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQS-0002Ro-9U for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 06/45] guix: node-build-system: Refactor patch-dependencies phase. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753739318 (code B ref 51838); Mon, 13 Dec 2021 06:03:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:02:53 +0000 Received: from localhost ([127.0.0.1]:53694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQH-0002QE-5Y for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:53 -0500 Received: from mail-vk1-f178.google.com ([209.85.221.178]:41765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQD-0002Pe-JB for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:49 -0500 Received: by mail-vk1-f178.google.com with SMTP id 188so9696857vku.8 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HgDhxkred0qxyTO/DMBSW0NymNIb0O6DOenE65nfmIE=; b=BMfcTiQwSy8CAjCEbDDIIDu6WYZP/cbh0QB3hHxjJQoDkfBZlNEu5CawAALNvpVV/c R7N750ZKm282Uk3HjfBay/huDLTEV+n8+oGXzzbISGuWvXKFtSZasfVx7SUzfIS2gVpI RTYUTfYYLKdAq0DiM9/4DQS6AuoHgM29/UP+9ELx3kQTszfqow2m+GvCDOTdv/OA/O2g f5ojJ+yeriFvX7esi3R1LR+R+A1DByCP4n0aXLxY734w4ZuOJYbYM/6K6vv7K2b/ISGp 8o7YGxG7Reflf+WWXnuBT7FTCWhitxqRJNwQ/4fD5kEoFlrAD/9Jx3yOtDgW7XrKda5H MWaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HgDhxkred0qxyTO/DMBSW0NymNIb0O6DOenE65nfmIE=; b=pwLYiOhdTZZhIf099U05C/bt/AhW7JHGoC5+HZ/Fl9JE2ySFCp1Gm/zJnJZQgBxKnY OZPcWYNt0EpIw4pfIE3wcHoWht6CTHXWHnUyQv+CZ52RiixRixoxF9BrWMRbnZG/4ee8 LbARzCoCoFDLHZQMZMjljlKnmpJ/Jb+grmi5MCU+CCSIc7dSIuwdgSKVpKcbyIk+7051 3Bp1tD65RQPQ9CRDVtosiJ248G1BhmTWyA/pofavJxihdNGszidvvgYS6vJCXDYU0rni oC6K1zYJJFymRcqRFeSCkVsC+U60LS0+vZmKHgHk67ZtkabzbxKeYUUuz6EQfg/BhD2g 4lYQ== X-Gm-Message-State: AOAM5317sbDVM4mYBEEiE7x+UZNEhneLPbcEzUW1faUud+A8N8jmC0Wb c9IdpjzVW4GwpLEmYfUxOn1dt5CLyGnLbcWT+/c= X-Google-Smtp-Source: ABdhPJzyrfU43zsbzNMpoz7yiYuZXVX1G2n4WuGhlqUOvlPYpxFcqa+6V8PgWqn5N0P/7QKA5yEf/A== X-Received: by 2002:a1f:3f4f:: with SMTP id m76mr30825007vka.1.1639375364018; Sun, 12 Dec 2021 22:02:44 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id r13sm3688391vkl.13.2021.12.12.22.02.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:43 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:28 -0500 Message-Id: <20211213060107.129223-7-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/build/node-build-system.scm (patch-dependencies): Strictly follow the linearity rules for `assoc-set!` and friends. Clarify the types of the arguments to and return value from the internal helper function `resolve-dependencies`. --- guix/build/node-build-system.scm | 53 ++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index dcaa719f40..b74e593838 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -73,26 +73,45 @@ (define* (patch-dependencies #:key inputs #:allow-other-keys) (define index (index-modules (map cdr inputs))) - (define (resolve-dependencies package-meta meta-key) - (fold (lambda (key+value acc) - (match key+value - ('@ acc) - ((key . value) (acons key (hash-ref index key value) acc)))) - '() - (or (assoc-ref package-meta meta-key) '()))) + (define (resolve-dependencies meta-alist meta-key) + ;; Given: + ;; - The alist from "package.json", with the '@ unwrapped + ;; - A string key, like "dependencies" + ;; Returns: an alist (without a wrapping '@) like the entry in + ;; meta-alist for meta-key, but with dependencies supplied + ;; by Guix packages mapped to the absolute store paths to use. + (match (assoc-ref meta-alist meta-key) + (#f + '()) + (('@ . orig-deps) + (fold (match-lambda* + (((key . value) acc) + (acons key (hash-ref index key value) acc))) + '() + orig-deps)))) (with-atomic-file-replacement "package.json" (lambda (in out) - (let ((package-meta (read-json in))) - (assoc-set! package-meta "dependencies" - (append - '(@) - (resolve-dependencies package-meta "dependencies") - (resolve-dependencies package-meta "peerDependencies"))) - (assoc-set! package-meta "devDependencies" - (append - '(@) - (resolve-dependencies package-meta "devDependencies"))) + ;; It is unsafe to rely on 'assoc-set!' to update an + ;; existing assosciation list variable: + ;; see 'info "(guile)Adding or Setting Alist Entries"'. + (let* ((package-meta (read-json in)) + (alist (match package-meta + ((@ . alist) alist))) + (alist + (assoc-set! + alist "dependencies" + (append + '(@) + (resolve-dependencies alist "dependencies") + (resolve-dependencies alist "peerDependencies")))) + (alist + (assoc-set! + alist "devDependencies" + (append + '(@) + (resolve-dependencies alist "devDependencies")))) + (package-meta (cons '@ alist))) (write-json package-meta out)))) #t) From patchwork Mon Dec 13 06:00:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35172 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3781527BBE9; Mon, 13 Dec 2021 06:05:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 34A6727BBEB for ; Mon, 13 Dec 2021 06:05:41 +0000 (GMT) Received: from localhost ([::1]:43934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweSy-00047s-Aw for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQT-0000th-Ga for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQT-00075W-7I for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQT-0002S3-24 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 07/45] guix: node-build-system: Add #:absent-dependencies argument. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753809350 (code B ref 51838); Mon, 13 Dec 2021 06:03:05 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:00 +0000 Received: from localhost ([127.0.0.1]:53700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQO-0002Qf-3D for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:00 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:34626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQH-0002Pw-HR for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:58 -0500 Received: by mail-ua1-f47.google.com with SMTP id n6so27363793uak.1 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1mbu81k4yDaew4+7r6xEYK266/gywq2rhdqVXPIlqZ4=; b=gDzar9Ez1n4TvxsuJX3nqDCWc5jD3ZfosenEnhWTlHhqHwHWOuV4ek3Z51TKn5/gBn MrPUO7mkWbsJIVaZnxhSsxrjXNUtOtWY4n7G1sLUc4eBANkvV04ovnexuUKhoF79lJRd 0a3neIa4T1m07Gq1mBSAydXUnRWqZHg1g3fHdWJPcpyfdhWlSmqjlPgO9J7uDlml/3iW o1AkZMZrrfJrxKPXv+BAAPvn7RoUGnD83Jy9+8/SdkVEkzaG5cWZ1nTa9e+j+oYXZXBQ 7sFYYKgkGqalXt4c93SpKleiI4xTStO5MgBIYoKiTkb/BzDh2YFXejeBOum6fZJTUTFg Gimw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1mbu81k4yDaew4+7r6xEYK266/gywq2rhdqVXPIlqZ4=; b=nR1DcgGxtK89p56R8iyryPVtFBO0CCgxe64QNvU8bB5MaanBe1TTAOTwCLNKaSfyKT 9zIL0p7/pAy+fScES4YH+1bgqiSnRzqDPUVMT1fauQEVl5lLJJPXA9CJtr3S0ely4KRx BG6gX24iXiKelvnjRQPuj2Ztzf5VwUsZd0Xh4F5OepNO/2t5l0OdqibgeSj3KGGxhV5O TvEtDPSru6anxkBMW6i9rJvqOLJki3zqxggHbanD4azmlt0ZLTu98yEysVbLRX2UIM8F JAeDX6UzkbMGaYQjAWscsb/vjdYNv8OYs6/ISJCe8hEBRD2nzw66cu32JYUsgi05C5ZQ ufCA== X-Gm-Message-State: AOAM530mYjfxdED4AtB32sqxctwEBdcHLzXMZBYK4OT4AGF2LgCLBQ9j 2iJnc7yU/09lYvDGcd8ummTUyk+WL1YWcpwWMrg= X-Google-Smtp-Source: ABdhPJzYfFYbFw7gfrdHfGco6lII2f9UlTutL13mTwPG5rDHsTd4twhhYARkFEzSWGanXFASgLvAHw== X-Received: by 2002:a67:6187:: with SMTP id v129mr25741160vsb.68.1639375368066; Sun, 12 Dec 2021 22:02:48 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id bj50sm3721776vkb.7.2021.12.12.22.02.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:47 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:29 -0500 Message-Id: <20211213060107.129223-8-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/build-system/node.scm (lower, node-build): Add optional argument #:absent-dependencies with default of ''(). Pass it on to the build-side code. * guix/build/node-build-system.scm (patch-dependencies): Respect the #:absent-dependencies argument, removing specified npm packages from the "dependencies" or "devDependencies" tables in "package.json". --- guix/build-system/node.scm | 19 ++++++++++++++++++- guix/build/node-build-system.scm | 7 +++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/guix/build-system/node.scm b/guix/build-system/node.scm index 98f63f87ef..4f437f9c0d 100644 --- a/guix/build-system/node.scm +++ b/guix/build-system/node.scm @@ -44,6 +44,7 @@ (define (default-node) (define* (lower name #:key source inputs native-inputs outputs system target (node (default-node)) + (absent-dependencies ''()) #:allow-other-keys #:rest arguments) "Return a bag for NAME." @@ -73,6 +74,7 @@ (define* (node-build store name inputs (tests? #t) (phases '(@ (guix build node-build-system) %standard-phases)) + (absent-dependencies ''()) (outputs '("out")) (search-paths '()) (system (%current-system)) @@ -80,7 +82,21 @@ (define* (node-build store name inputs (imported-modules %node-build-system-modules) (modules '((guix build node-build-system) (guix build utils)))) - "Build SOURCE using NODE and INPUTS." + "Build SOURCE using NODE and INPUTS. + +The builder will remove Node.js packages listed in ABSENT-DEPENCENCIES from +the 'package.json' file's 'dependencies' and 'devDependencies' tables. This +mechanism can be used both avoid dependencies we don't want (e.g. optional +features that would increase closure size) and to work around dependencies +that haven't been packaged for Guix yet (e.g. test utilities)." + ;; Before #:absent-dependencies existed, this scenario was often handled by + ;; deleting the 'configure phase. Using #:absent-dependencies, instead, + ;; retains the check that no dependencies are silently missing and other + ;; actions performed by 'npm install', such as building native + ;; addons. Having an explicit list of absent dependencies in the package + ;; definition should also facilitate future maintenence: for example, if we + ;; add a package for a test framework, it should be easy to find all the + ;; other packages that use it and enable their tests. (define builder `(begin (use-modules ,@modules) @@ -94,6 +110,7 @@ (define builder #:test-target ,test-target #:tests? ,tests? #:phases ,phases + #:absent-dependencies ,absent-dependencies #:outputs %outputs #:search-paths ',(map search-path-specification->sexp search-paths) diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index b74e593838..892104b6d2 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -69,7 +69,8 @@ (define (list-modules directory) input-paths) index)) -(define* (patch-dependencies #:key inputs #:allow-other-keys) +(define* (patch-dependencies #:key inputs absent-dependencies + #:allow-other-keys) (define index (index-modules (map cdr inputs))) @@ -86,7 +87,9 @@ (define (resolve-dependencies meta-alist meta-key) (('@ . orig-deps) (fold (match-lambda* (((key . value) acc) - (acons key (hash-ref index key value) acc))) + (if (member key absent-dependencies) + acc + (acons key (hash-ref index key value) acc)))) '() orig-deps)))) From patchwork Mon Dec 13 06:00:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35168 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6A2BD27BBE9; Mon, 13 Dec 2021 06:05:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4505C27BBE9 for ; Mon, 13 Dec 2021 06:05:24 +0000 (GMT) Received: from localhost ([::1]:43164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweSh-0003U8-Bc for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweQT-0000sb-37 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweQS-00075L-PS for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweQS-0002Rw-MG for guix-patches@gnu.org; Mon, 13 Dec 2021 01:03:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 08/45] gnu: node-semver-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:03:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753809344 (code B ref 51838); Mon, 13 Dec 2021 06:03:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:00 +0000 Received: from localhost ([127.0.0.1]:53698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQN-0002Qc-GU for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:00 -0500 Received: from mail-vk1-f178.google.com ([209.85.221.178]:38692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQL-0002QC-GM for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:02:57 -0500 Received: by mail-vk1-f178.google.com with SMTP id s17so9713911vka.5 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1f8aPPdjsmYmcQIaUGLxzt8qhco5oJFUuLRzHQ2b+70=; b=dsIRVfcrqk/nOsY5Rp+Rvaaw9fOn/cd7HGo4CkeGIKuG5EmpI1F1crYU9miWN0ECpa gLF1vSTxPp6VIwnueWz2xbl3y2CtmJFWM+deshjTgGP5gzLcgAcyV56S9Df+5KzosgeB 8+DvGjlOJCoDXH7iEWYZJQ6YLHXzNToC+e09WIHViPB4nTeOES6auVL/KEU25xvz53G6 8KaK5gAZ07urL/Pq0t5mWTeH+T0QyUKzv/Kxn4moBCTLVNiSNw1X90JDWSPc4Q8+u67a fj5JWk/ERR8yYMjtiUFhcook7AXIlhcXwBEAuVWOki44eQP5U5kFOB7oL0LEihJ+mp8Q BzLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1f8aPPdjsmYmcQIaUGLxzt8qhco5oJFUuLRzHQ2b+70=; b=6IIHQ+HodhsMqMzDvuanCmO5Lr9dQf1YTIy6QCLi8FSL2dUZbTHvo0gq9c68ntcyL0 eqPmloyaA3eAavf82TfJoRtKu243ynK0kTtuASMTkVXxbPiGAZ5m13eG4WHVori4rK3L Sjk46ykJv96D8jQJczz/Hz7S2bDGsZsqmbXZxkKFxxlY2eZmUOR6A/vDPypDXlyTS9l0 y1CVmp1EBqNVj4wQ6It6Gc5TQ8b+qyUcwhM6xc8YIgL5YEJ9ntiamWXkCJSs3AhFzk0V 1pQW41LxTsfT1CTMuz84MFEqoePIvqWV+wTdjvmTlnHpVHgKl+Vy+tFnNQM+84wTp4EO WJKg== X-Gm-Message-State: AOAM531pIyhCSc585+/nRc6JYMiTGUDWp/0Y9oVDKv2X19hyLuzSGuH6 vcBDpPsUgjgI7EuUNuV38QijnvmwaKKFOCAIYqI= X-Google-Smtp-Source: ABdhPJzwpQAoKCIsJMxx3Ib7J30FJhdAuzli6XiLd6R45/ftqtt0mgmLdXNrSv7tayTJH49I68wHzw== X-Received: by 2002:a05:6122:7d4:: with SMTP id l20mr30994894vkr.26.1639375372086; Sun, 12 Dec 2021 22:02:52 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id x142sm3661885vsx.15.2021.12.12.22.02.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:51 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:30 -0500 Message-Id: <20211213060107.129223-9-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-semver-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 346cbd488d..0c33c6906e 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -333,9 +333,8 @@ (define-public node-semver-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + #:absent-dependencies + '("tap"))) (home-page "https://github.com/npm/node-semver") (properties '((hidden? . #t))) (synopsis "Parses semantic versions strings") From patchwork Mon Dec 13 06:00:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35176 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 69E6427BBEA; Mon, 13 Dec 2021 06:06:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1C47027BBE9 for ; Mon, 13 Dec 2021 06:06:01 +0000 (GMT) Received: from localhost ([::1]:44864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTH-0004mQ-AX for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRO-0002LZ-Tx for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRO-0007I7-KC for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRO-0002WN-GG for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 09/45] gnu: node-ms-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753889460 (code B ref 51838); Mon, 13 Dec 2021 06:04:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:08 +0000 Received: from localhost ([127.0.0.1]:53713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQW-0002SU-FM for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:08 -0500 Received: from mail-vk1-f172.google.com ([209.85.221.172]:39767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQP-0002QO-MT for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:01 -0500 Received: by mail-vk1-f172.google.com with SMTP id 84so9691844vkc.6 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yhICGqTTw+Y+wRTHopl2MiRNk4Dxx5M8+snFSYgx/ik=; b=OhKszhti6b7u+ZLjubz+vdkrISjJ1rkFwEYVKTcJb4Xn2BV+NIzImaI6pHzUbN0vX2 Od5aUwlREW5JSwncdLU2qP+aWMmxfSd+4XD1tZzVm3pNKkX4HgXak6X6DYMESmTbjuPr 7mR55BYx3hTeScSlvEhJn3tfe0Ga1uYqQ/LqBz1p/dQG10UtR3mGrisLCgNFeIdoXVNY /MycGzawwwexXjv1Lrwy8XuRcvdxqRbkNxVruqBIpCE92DscGXa/vgaj2xv51YJ2KKpv 9smWTG8gLJJQ7zz5zNd3sX5BDHO1Vgd6FTfNVYZcvX1zHuUhZEcNgJ12e2uBhawO64qU t2Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yhICGqTTw+Y+wRTHopl2MiRNk4Dxx5M8+snFSYgx/ik=; b=3Ek5BLFXU6hiXfeacAxP3ZoYBkUAobA5gTQTa1Uw8dAxkkNemttfS5A0uaD66XR3YP cP+p4Ake+DQh3G3lGCf2g4qFxyAVgriGqX/2VhD1Le546oHR6UyhaH1aO4dYdhLvdLiM 7Tgohy1asvds/TGO3TxV6B8dPzxoxSwuYV89CGjvaB+XXJCQs743Y8fKMWrOjTIWVzuo QyAHOXuSFUhbxPpz7zbSux2MNWdKg4NrSTThAu27Oy+cpmU1hEIrXaIaLiQXIlkz9Wz7 GTTSPrTibIHrPHO0wnzAsHG9ip3F3ErewPXxBqe90Ur/J7niNhzIlD/VJdF4FSutQNtw EOQA== X-Gm-Message-State: AOAM533+XIjq6zZJl3CPTfC/jTZXc8QE+uhctapO6nJxS/xL2QLbvEnA ygfRhteE53hoz/cv2Fyuh+wz+rxIGWeW0x51gjo= X-Google-Smtp-Source: ABdhPJwNomHoBfp1uw/7q+hzLookxG+80NkU5gqwowebI11UGrUUM7xl0FiCh8vS0qHOGgN3kg8MbA== X-Received: by 2002:a1f:450a:: with SMTP id s10mr30069192vka.29.1639375376150; Sun, 12 Dec 2021 22:02:56 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id f188sm3632394vsc.16.2021.12.12.22.02.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:02:55 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:31 -0500 Message-Id: <20211213060107.129223-10-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-ms-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 0c33c6906e..f2dfa1476b 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -361,9 +361,12 @@ (define-public node-ms-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + #:absent-dependencies + `("eslint" + "expect.js" + "husky" + "lint-staged" + "mocha"))) (home-page "https://github.com/zeit/ms#readme") (properties '((hidden? . #t))) (synopsis "Tiny millisecond conversion utility") From patchwork Mon Dec 13 06:00:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35161 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 60CAF27BBEB; Mon, 13 Dec 2021 06:04:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1FBB227BBE9 for ; Mon, 13 Dec 2021 06:04:19 +0000 (GMT) Received: from localhost ([::1]:41622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRe-0002OO-5O for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRP-0002M8-C5 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRP-0007IE-2g for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRO-0002WU-Uh for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 10/45] gnu: node-binary-search-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753899466 (code B ref 51838); Mon, 13 Dec 2021 06:04:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:09 +0000 Received: from localhost ([127.0.0.1]:53715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQW-0002SX-OV for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:09 -0500 Received: from mail-ua1-f41.google.com ([209.85.222.41]:46629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQT-0002Qq-L2 for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:06 -0500 Received: by mail-ua1-f41.google.com with SMTP id 30so27277679uag.13 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/MrWqKoFSLDTMazBvKhwa1p7KphQcIOcNbJiJkAVEc8=; b=DWo2CKmXUGcbKTI6GPkFn6inVRdJvkFKIrt32zSEM4JGX2NTisPF74jpCVSMEOjknS RKWMJSnOvAnSPccUiexGK9MLKUhZYf6IVDeUrVeQfXVFqmOxuODtlaWlnLuYCWP5Yk3Q cvIZr0PGMtf2emNVwZjdIko4W9upoP6NEUKVZuzCbAaTeof5tT7PqDP7huB9K8kQezpN 6OhFKzpEbFFAFGTofnOyT0YnmiRTNIo7UsCnDFa9ShafCZfA/u5wODUQ+cdJd4Fz5oM9 9cDkM4GEyH1fv1o/ZSHSO5ZZBZNin4RdlBsEwdTwfA88auLRrUXUTi8lERYDiAA2ZS4U 9uIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/MrWqKoFSLDTMazBvKhwa1p7KphQcIOcNbJiJkAVEc8=; b=x0blkxXRFp/GvDYIVsbzr6g0frb+kVMPdOjNhdLIkv8UXT+MDt2rs+FLUdO3teOdrm eGiW6EMRRvHTNcvsgyKVHYlf3pVkBDXSk+ChD3d1opk50kJQDoQgO1JlwT8i9T/cVd/B T3vUd4QhkHaxiVfsFz5WScRy9dE9QF7E86dYOE2J07fnS5Y5ifxsGnAsN8/ptDWQaMfb EzctJqLyfV0BSImsEanf/Dxa0zMIKkDl2xsaXLnnqfHRxuKLuvxFP7vQsYNhgpJdrWAE wHubO7mIAt0pkop4JsS/4nHxZ0kYGPgFgJmDHziRbiCnlQu9PHn3lVpMUaz0hGaqqNJw Wi0g== X-Gm-Message-State: AOAM533yG841sNJoeSRloSrMEG4xZQkHbf7xvSmq9oajeVlA5R2G2jSt mz8JrTRw0QARZIZBe5utoOHsU1wPzY/gDl4JER4= X-Google-Smtp-Source: ABdhPJxCRWYADXMAp/PAxhItOMzBChAQDsdys4dcpwDApT1lNjMYZFPE9Kby3H1Wc/pEn6hGNGwvFA== X-Received: by 2002:ab0:3d85:: with SMTP id l5mr40661808uac.55.1639375380185; Sun, 12 Dec 2021 22:03:00 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id h22sm4675606vsu.0.2021.12.12.22.02.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:00 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:32 -0500 Message-Id: <20211213060107.129223-11-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-binary-search-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index f2dfa1476b..b9f6e181b6 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -392,9 +392,9 @@ (define-public node-binary-search-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + #:absent-dependencies + `("chai" + "mocha"))) (home-page "https://github.com/darkskyapp/binary-search#readme") (properties '((hidden? . #t))) (synopsis "Tiny binary search function with comparators") From patchwork Mon Dec 13 06:00:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35167 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7A06E27BBE9; Mon, 13 Dec 2021 06:04:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AA5A927BBEB for ; Mon, 13 Dec 2021 06:04:38 +0000 (GMT) Received: from localhost ([::1]:42408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRx-0002zF-N2 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRP-0002Md-PV for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRP-0007IO-El for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRP-0002Wd-Ae for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 11/45] gnu: node-debug-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753969502 (code B ref 51838); Mon, 13 Dec 2021 06:04:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:16 +0000 Received: from localhost ([127.0.0.1]:53719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQe-0002TA-1X for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:16 -0500 Received: from mail-ua1-f53.google.com ([209.85.222.53]:33376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQX-0002Rv-M7 for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:09 -0500 Received: by mail-ua1-f53.google.com with SMTP id a14so27421810uak.0 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WM0EsvCBO3UU28HkqzXuK59SRN4irpKqdF4+dGSBnvo=; b=koH8GzFUQjZm8/K9rMIPFBapJQdp9E3AGS3aCe/j+BQwnOWiWng0XNGuLEnTUNpMmE zYHC4ALe327g743nOepNBJGoaysQLSH9l+15YlJ0AD2gdF2hL4wfhRoptk4lbdn76dBK /ZLNWvsGXfimjZCtkuWapnYGDePGKnvXLjRxJLJi+4moBY+Rp4HCV4/7rjTb/eHhsl0W R8NKEJb8baU8/nd0iykBgzKhPmWsAEdqwazwGzB0mLLtNjZPcjvRx+eJnoPDZOdqtEbp 6Y4NfzmuK1kwBQ/XiUtmgoY/HDo6GuDgCW/knT2yfo9xB1MIVsZCi5KVSnaURsPejzLp AgzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WM0EsvCBO3UU28HkqzXuK59SRN4irpKqdF4+dGSBnvo=; b=u6wL2n3xItDwlMiq3togFHfWC16hJ8HgskhZCQ8JNlmG7eIhJXl0YP9/NmdygkIuwb E1KHSPu4iqt2Ot86gm1em6CCQWBvfo/KyYBzKdnXF3TjMyfKfmgMmm8deQ3WECYwuBBs +nyHzErhvrr+monfuLzpchnJ8/2mfrzXzzmj6imWxcgHusR8T3uUvBXB7GwaaFRfed0Q XY/gBHkLM2wmQTP6wWUXw3HQElI1lfQ4pghEDgdLUGyML3kJ7VH+8LYC+I1jRZwCVywO ubT57zanTeFJIjFQ+WsEkxVj02j6OoyBUUnEnUNEe3tNsyP7cnqgF3y0rY/4z5fchrhR WRUQ== X-Gm-Message-State: AOAM530rURlc2G9cSLJ/j/K5fLJTlgrkWkdXiCHpfaSNGkAyYEI4kcX6 s25N5lRYQyox3EgWZQm4pm1s0HqqSNHmC1g4/Fg= X-Google-Smtp-Source: ABdhPJw7ixMCvXXHfuflyt63PPiVmldstUyjq9gf2Dp9X/87eAXL/gz4M2YpEuRJG9YHgrqLhwAhDA== X-Received: by 2002:ab0:6905:: with SMTP id b5mr39585214uas.43.1639375384258; Sun, 12 Dec 2021 22:03:04 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id y7sm3849776uac.3.2021.12.12.22.03.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:04 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:33 -0500 Message-Id: <20211213060107.129223-12-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-debug-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index b9f6e181b6..b605442f64 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -419,9 +419,18 @@ (define-public node-debug-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + #:absent-dependencies + `("brfs" + "browserify" + "coveralls" + "istanbul" + "karma" + "karma-browserify" + "karma-chrome-launcher" + "karma-mocha" + "mocha" + "mocha-lcov-reporter" + "xo"))) (inputs `(("node-ms" ,node-ms-bootstrap))) (home-page "https://github.com/visionmedia/debug#readme") (properties '((hidden? . #t))) From patchwork Mon Dec 13 06:00:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35169 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 49DC527BBEA; Mon, 13 Dec 2021 06:05:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1D38727BBE9 for ; Mon, 13 Dec 2021 06:05:26 +0000 (GMT) Received: from localhost ([::1]:43272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweSj-0003aw-5A for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRQ-0002N7-5D for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRP-0007IW-SA for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRP-0002Wk-Me for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 12/45] gnu: node-llparse-builder-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393753969508 (code B ref 51838); Mon, 13 Dec 2021 06:04:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:16 +0000 Received: from localhost ([127.0.0.1]:53721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQe-0002TD-By for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:16 -0500 Received: from mail-ua1-f51.google.com ([209.85.222.51]:43576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQb-0002SV-OD for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:14 -0500 Received: by mail-ua1-f51.google.com with SMTP id n9so8330410uaq.10 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LyVwJpwISXXW6rVC4F8JBijLrOiqq7StVdltVt6nMho=; b=Gh+hiH4Eb+jX8J57v7Sou81RrrzfzLfiA+JfGkRCa0Wag2BXGv8/qVG0C8rPHANJUX nGDN8q7qXxSduTJQ9Z5x0jwEkgDOwyTicNhQEprGp4ahw5+DufcpTPuBtDmHs+AO2fmA B4jHL6Wb5pvWhi82WpOn1BoOwBmRHxrW7ryRQiXzmEw/J/LwJ6OXecexFa4nOQofZNjr IyV8AdLNVoJWu0eZiZGtLoHrnh5ODYCG+7fLIyk24X14X+oMP5P12nujHuoJ9NYPqACz xv8lKTMN725xZW5r+7viaTcNu2wh8l4QUBfFBVHpvL7S3u0s6QneY6CURjH9OxxIEPyw lHtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LyVwJpwISXXW6rVC4F8JBijLrOiqq7StVdltVt6nMho=; b=uBaOtxvCJ5KEP9VgpaLWiyR5OjahhJdF7wUyAnzmsP7/xLf7j1MtV0e5hEtlKcCU+2 ZkqQO0oQtcNIZ6pNcHLVI5L8GZDFYVSMsUfq1xVd5msLhTJscDcdy29uaqSoCPmCz1Z0 33oRLahbglDrVbU32YIV0Y4VorS4HcasvDz+yuw2iWYraimIAKmJC6t3/+x3g8qD95mV tpzbIP+3iRjI0qgHItLR84jY3Kx2rjyeuk5kBqHWkxxn/KJLtdXVk/2EIjzYlbVzx3nf yFnp9WUAawjdOedkGBgVp6YK7sX6gKLwTIB+/4f0GaJN+1EQhUgCsyOyZDuv4QVq8F5M Q43A== X-Gm-Message-State: AOAM530nykXnIqqBcjmDnyVG23cN7Ouzuhq6ewHek/+mf1Bi/qrYbWOS HngrVQL99QWdoquX2yH75JNDUGaK7UdHvab7WsA= X-Google-Smtp-Source: ABdhPJx2Xuo9Ce/V5oduJUs9wtOOUQyR5YWS+vucNH/xdXwXz9YDEiUXJFnSN1/P/rsdl01gP5ol5A== X-Received: by 2002:a67:2f10:: with SMTP id v16mr26927741vsv.82.1639375388314; Sun, 12 Dec 2021 22:03:08 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id e7sm3725170vkn.20.2021.12.12.22.03.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:08 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:34 -0500 Message-Id: <20211213060107.129223-13-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-llparse-builder-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index b605442f64..2dddea8239 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -482,9 +482,15 @@ (define-public node-llparse-builder-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f + #:absent-dependencies + `("@types/mocha" + "@types/node" + "mocha" + "ts-node" + "tslint" + "typescript") #:phases (modify-phases %standard-phases - (delete 'configure) (replace 'build (lambda* (#:key inputs #:allow-other-keys) (let ((esbuild (string-append (assoc-ref inputs "esbuild") From patchwork Mon Dec 13 06:00:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35162 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id ADE0E27BBE9; Mon, 13 Dec 2021 06:04:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5133A27BBEA for ; Mon, 13 Dec 2021 06:04:19 +0000 (GMT) Received: from localhost ([::1]:41662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRe-0002Qp-E9 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRQ-0002Nm-HW for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRQ-0007Ic-88 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRQ-0002Wr-4R for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 13/45] gnu: node-llparse-frontend-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754049535 (code B ref 51838); Mon, 13 Dec 2021 06:04:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:24 +0000 Received: from localhost ([127.0.0.1]:53725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQl-0002Th-Lm for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:23 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:35809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQf-0002T1-R0 for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:18 -0500 Received: by mail-ua1-f47.google.com with SMTP id l24so27363025uak.2 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A836ZUa7L7rkz7iFou6IjCkeZSvUHbDC/2w5O9gXTjE=; b=R/db6ostz3dbxrMFkso7QAdhyBhYFmY3Y5EVW3zhbgbjc+I8PAdpCS9tvk9vjvGiJ4 JKu4gJUVvKYZsXfwMOGCVHJRC1Jnh3MVdpRZW3n0uksDpzv4L4/XASS0sIdq4tcts1Kj 89OKSZ22F7ILqnP5V15zAogCq5h4EdpgReOV5T+vteCWd5xfWlH/wNo8y7SIJgz0HJXQ SEvwAMe4r4OTl06o45E04/wEa6sRXit2kv+iVLTtFefh2T6J1KrHLkxS3ox4CLJUQs4p k4mfWAwUApcJd+5xsFt3FEZBax6dF8kYJ4s6mlfFp/GXuuyjgPLU6HaZR8RMmPffq+wK dq8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A836ZUa7L7rkz7iFou6IjCkeZSvUHbDC/2w5O9gXTjE=; b=7lmB4jDnIOXD/xwHCVj3FSF5qu5nj6NUMuMpUcLeH2iRZc2dCcBGFO2P6CkysDjprL /zKGLxJBp5vH64m6dwm1WRLdzNC6zqmtk7UphdNk2DHon2d3e3tlmpTTGwicQ6wVx5wp dMIL5H5OVxV7D0tcoLjjDsVUy/COVOkiszw2rnSn+DaX52FoVNmArSwd8NukXd6HK5Hz kiEJT7CyMqQPrfReuQq2e+Pbt64GTyTflHYrsieIqNa+SwTcUZs3Alxdbw8dD/mDQQcx U4HcDRKCmyhk86+DwGxqs0J1baHo2ibMatb1VWajH5kpMg84rvEM60t7iqY7b8IzptLE Bb5A== X-Gm-Message-State: AOAM530XhB/y0gJCtSXEH6MR5zZjnXGUymfSn3k/y806jovsaS2NNbSW Ipshv3gnvvrNwYFtXg5MqRm5Ykh58Ndf5XIg5p4= X-Google-Smtp-Source: ABdhPJxzM5OGcuF1RbIrUNrL7//OofiIag0JoBCVfCKR29pl3g3m/RGKsRZL64JC1ElcjC6Xmh6QlQ== X-Received: by 2002:a67:6ac5:: with SMTP id f188mr24853690vsc.61.1639375392420; Sun, 12 Dec 2021 22:03:12 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id i56sm3741647vkr.25.2021.12.12.22.03.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:12 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:35 -0500 Message-Id: <20211213060107.129223-14-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-llparse-frontend-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 2dddea8239..c429495955 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -544,9 +544,16 @@ (define-public node-llparse-frontend-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f + #:absent-dependencies + `("@types/debug" + "@types/mocha" + "@types/node" + "mocha" + "ts-node" + "tslint" + "typescript") #:phases (modify-phases %standard-phases - (delete 'configure) (replace 'build (lambda* (#:key inputs #:allow-other-keys) (let ((esbuild (string-append (assoc-ref inputs "esbuild") From patchwork Mon Dec 13 06:00:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35163 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1417F27BBE9; Mon, 13 Dec 2021 06:04:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C303927BBEB for ; Mon, 13 Dec 2021 06:04:19 +0000 (GMT) Received: from localhost ([::1]:41644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRe-0002Pd-S7 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRQ-0002ON-Um for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRQ-0007Io-L2 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRQ-0002Wz-HT for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 14/45] gnu: node-llparse-bootstrap: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754059546 (code B ref 51838); Mon, 13 Dec 2021 06:04:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:25 +0000 Received: from localhost ([127.0.0.1]:53727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQm-0002Tk-Vm for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:25 -0500 Received: from mail-vk1-f182.google.com ([209.85.221.182]:38712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQk-0002TP-0p for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:22 -0500 Received: by mail-vk1-f182.google.com with SMTP id s17so9714327vka.5 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sp5DRCNwcn7OO7zmtYhhnOaCtTnS5EzyIUQWK+DL8wY=; b=j0jXIRbePtPHnA376bVpR3OlTInE4ICSU93eNEoZ6zHvwund5eog5Q9XU4dtdxRGrH 8JsRHMzsjWeF7NBSu3EImEwlhU3RPvbqt0y5bhszUoCuSOiWfLNc0WM9+/wa74cqzSJA kDqLLnSUQRPq3Mzqdbrm+E7p4ifz2GuhWpvJzwYLtKFcMOfZFE/X0MrBANIeWje0fLIl m0SJd7RkODXc2cdaSQ7jMaJNWiH31WpfjVWsIA1LWdtmSp3SkhYEb6TE1SGAWQx01sDw BhB1zguUiCWOkItYnsbB+p+wg560dpyqCUTCuG04EJ6DH723UviljptslnIF1u3sf0Iv 2OnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sp5DRCNwcn7OO7zmtYhhnOaCtTnS5EzyIUQWK+DL8wY=; b=dU7MnqTO53qjpE/TqCxtKbnLJFBGut4KchdBemBnepG82tgUzdI14WcX490a2uHF8d 6B63lDWyi4s10PiJ8poHOXs4bq/RtPnZ/Jnin+nONT7i1KyN75AydcHql6Si79htdttk hFaEApZ7v4R2ZmUO7baJtdVwAfPHrudrxRW8XnAVVCmEDm2HUHWLubWtRQvDANZZgYNp tz07u6hfbtYbwtQQpPsks3OhkOQouLaLDqLH/kFy9k2hy9x+5xW39LjF5fn5XVq9qBLJ O7ySSN85BN3zXNlcuaACj4eHFqaibtuyPy2am/cpa1lpeNvUyyPEROwkwWANKzv7+49V evUQ== X-Gm-Message-State: AOAM5335V3pp133Y6A5bip+LcmkD8MCeyMI8u6G+i1uX2RpuBg3lD/aQ DwuxJgUWiT1fq1XuBNQ7fTtX/uyZIH7O+GlaKr8= X-Google-Smtp-Source: ABdhPJzn69PmHrlPmigzNDEbUTII9VEA+vak9zAXLnp2ofGXwQGFiJwo2CacPXQQylOAJPu9p6Rt0A== X-Received: by 2002:a1f:fcc6:: with SMTP id a189mr29731493vki.31.1639375396566; Sun, 12 Dec 2021 22:03:16 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id w17sm3980316uar.18.2021.12.12.22.03.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:16 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:36 -0500 Message-Id: <20211213060107.129223-15-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node.scm (node-llparse-bootstrap)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index c429495955..2baa382cd9 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -606,9 +606,18 @@ (define-public node-llparse-bootstrap (arguments `(#:node ,node-bootstrap #:tests? #f + #:absent-dependencies + `("@types/debug" + "@types/mocha" + "@types/node" + "esm" + "llparse-test-fixture" + "mocha" + "ts-node" + "tslint" + "typescript") #:phases (modify-phases %standard-phases - (delete 'configure) (replace 'build (lambda* (#:key inputs #:allow-other-keys) (let ((esbuild (string-append (assoc-ref inputs "esbuild") From patchwork Mon Dec 13 06:00:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35166 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3858C27BBE9; Mon, 13 Dec 2021 06:04:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8FAA827BBEA for ; Mon, 13 Dec 2021 06:04:38 +0000 (GMT) Received: from localhost ([::1]:42460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRx-00031R-Gy for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRR-0002PA-E3 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRR-0007Iy-4l for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRQ-0002X6-VS for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 15/45] gnu: node-semver: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754119570 (code B ref 51838); Mon, 13 Dec 2021 06:04:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:31 +0000 Received: from localhost ([127.0.0.1]:53731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQt-0002UH-A8 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:31 -0500 Received: from mail-ua1-f42.google.com ([209.85.222.42]:41860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQo-0002TZ-8I for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:26 -0500 Received: by mail-ua1-f42.google.com with SMTP id p37so27295667uae.8 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mbCEzsxFXNzbUn/m9lxyQ344wUbhcRY3RF9r5hsXjyM=; b=KtFzKVRrhIDo/2rQQUC37S71gla8DhEK4nk8f50b0D3Ylke+7DeRyp1I3ImdNwyHC3 W6jaYJUCgofSlcrlG04xN9WDx7rH4nCd8jMX410xBteRK6O8r47+i6b7KaDxWXIgKp7h jdQd3YhRKzGJMhbPgy29t5yQJBlkc6G45IQXx1rbdmPCG428IFUtcIObeNAEDnvF9u4p KFOb+UEFqlWKPn3nN/F2H+qI8RyKYIeAPIAHRW99zjWCqLwV6NB15WD/qdJ2vs8tpiZo gk7TxZCveO5rqmJm5KFwvT3+mFzPwwhgmDuXWWvQX8wfcfGG4DPNV/5Ln2AH4DM5LZSP 1HXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mbCEzsxFXNzbUn/m9lxyQ344wUbhcRY3RF9r5hsXjyM=; b=VsRIgcrKbwosFXF/qgA0unm1e7QH9+8ZXxnz0yLajeGkodyTjVm8ovbZf3PGqSCAsh v4Xhf4MDmxVggznlc/PP/7UnlErMPqz8JWcbC9aOJZWYhkSMQ3PXekuNgVgQA24XEO44 FZy/lRxwzu98SPI/lSz2p9/WIn5TZuaTZL7iWXTEEvGGeV19raDFFcasKwY5ML8pzlRy XgDAhtu9yQkVBs1TUducaOJeLUQGky0MTpJbnPguaevz3hNIchS6ACPaACbMnsBaj7no jevs1cTS8Il+58hAczEeR7/tQ47FHNZuJMkQ4SPsmj1r4mvI0eT+2pvWAXmf0UNTcauo G/xw== X-Gm-Message-State: AOAM53095ad2DxcTqbzHjFWphScNzR2kutSwUoV7qUDOIKvKRxUmeE8H ZZ4rT2lSgQZrB2fehcKD6Yayebg4No6UKZCHqKM= X-Google-Smtp-Source: ABdhPJx/KZGwZnQ1RaVBBv51yOeG8rrJGR5qoJUyUiqpd67242KrB4iBWdUgHR0LWqmsGcNVt+VLlA== X-Received: by 2002:a67:33d1:: with SMTP id z200mr26296604vsz.1.1639375400769; Sun, 12 Dec 2021 22:03:20 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id s2sm4065519uap.7.2021.12.12.22.03.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:20 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:37 -0500 Message-Id: <20211213060107.129223-16-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node-xyz.scm (node-semver)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node-xyz.scm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 98c611f227..93a033d33e 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -289,11 +289,10 @@ (define-public node-semver "06biknqb05r9xsmcflm3ygh50pjvdk84x6r79w43kmck4fn3qn5p")))) (build-system node-build-system) (arguments - '(#:tests? #f ; FIXME: Tests depend on node-tap - #:phases - (modify-phases %standard-phases - ;; The only dependency to check for is tap, which we don't have. - (delete 'configure)))) + '(#:absent-dependencies + '("tap") + ;; FIXME: Tests depend on node-tap + #:tests? #f)) (home-page "https://github.com/npm/node-semver") (synopsis "Parses semantic versions strings") (description From patchwork Mon Dec 13 06:00:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35170 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3995427BBEA; Mon, 13 Dec 2021 06:05:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0AEDC27BBE9 for ; Mon, 13 Dec 2021 06:05:27 +0000 (GMT) Received: from localhost ([::1]:43260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweSk-0003ad-46 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRR-0002PN-Pi for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRR-0007J4-GK for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRR-0002XE-CU for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 16/45] gnu: node-wrappy: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754119576 (code B ref 51838); Mon, 13 Dec 2021 06:04:05 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:31 +0000 Received: from localhost ([127.0.0.1]:53733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQt-0002UJ-H9 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:31 -0500 Received: from mail-ua1-f42.google.com ([209.85.222.42]:38745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQs-0002Tu-7u for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:30 -0500 Received: by mail-ua1-f42.google.com with SMTP id w23so27321886uao.5 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rrgarsOG5qrDPqpcA3pfUfNYrtqtmYBYYCZ4jb/3Z+8=; b=jgS73BPwppUDuRmkOoxDIV3Clui/m93xjXKA+0UB1u0fh5mzj+KYKsXSORKsfDmXCg a6WWeZwLlcDFYNPdrQ3cbruqaTognOu4ztwJJIAi2quPx8/xpJcf6unH7fu5YvizVt4Y n7zVjLr3DSFSLq6m0mrAN+3ta0uhnGfVUwJ4P+W8nUmv5iGKEUX8NKEKd/WK44nrKRFN RvzyvBhjC28NSmhlwMWd7hAe5cZm/BtTa1fRGbjii/RoqXQWl+BnMq+t9DdXFaKyq2HB L5xB4uGoS845RyzWd6x+/LIFIuskSsiUIpfG2ieFUBOaaHFbk2NT0ut7cBKOCDXn+wsN VYwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rrgarsOG5qrDPqpcA3pfUfNYrtqtmYBYYCZ4jb/3Z+8=; b=TrQ04Rf20xFBZuA8jE6JX0XQWFYS5BzezEmyJa+V239V8Y4uLr8BRIY7v5jzCZDKLG 0s7qjhadkkOaKlhSmrc98HbAA8w3O4XHHMZPWx3ZcB/4cy4AbHdqzo+cJdQCnREB2zdl liMHXyKLzqvAIvi4xeuHld8vNeBxLO/Jl89McwxloYkFV0xWrisgb8i4uDSUq+kkF5Y0 j8lblIUBGeLH0ZfURctWdh6c89u7PJMQyaJQ/qQGsj4YWDO+hb0Erq5UBho+fKEptRmE tYIaYlzyIQ7rKvrSddhh8pdBF196OiVDAToRUL/3+LCHnLG5eX1FV3cR7uUHvvwwZgxy kR0Q== X-Gm-Message-State: AOAM532RGDUJx9E0vVlw+0eUH35VM/A1jplKf9mQTb+rKvRTj7JdIG07 kNEABvfzVKAh/q6KkK7zsHoHTV93AH2XIZf2FmE= X-Google-Smtp-Source: ABdhPJwVH0/GpMYeMYrEAm01klUzuJHHsaSLS5MpJEtRR4ApFm7Adltyf28HnJvK27WhX/YsjJrlDw== X-Received: by 2002:ab0:3349:: with SMTP id h9mr39553963uap.111.1639375404883; Sun, 12 Dec 2021 22:03:24 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id w22sm3768576vsk.11.2021.12.12.22.03.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:24 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:38 -0500 Message-Id: <20211213060107.129223-17-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node-xyz.scm (node-wrappy)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node-xyz.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 93a033d33e..77577cb315 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -316,10 +316,8 @@ (define-public node-wrappy (build-system node-build-system) (arguments '(#:tests? #f ; FIXME: Tests depend on node-tap - #:phases - (modify-phases %standard-phases - ;; The only dependency to check for is tap, which we don't have. - (delete 'configure)))) + #:absent-dependencies + '("tap"))) (home-page "https://github.com/npm/wrappy") (synopsis "Callback wrapping utility") (description "@code{wrappy} is a utility for Node.js to wrap callbacks.") From patchwork Mon Dec 13 06:00:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35173 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E8E4727BBE9; Mon, 13 Dec 2021 06:05:43 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 66B3F27BBEA for ; Mon, 13 Dec 2021 06:05:43 +0000 (GMT) Received: from localhost ([::1]:44076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweT0-0004Dv-D6 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRS-0002Pz-7X for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRR-0007JB-UB for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRR-0002XL-Ph for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 17/45] gnu: node-once: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754219606 (code B ref 51838); Mon, 13 Dec 2021 06:04:05 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:41 +0000 Received: from localhost ([127.0.0.1]:53737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweR2-0002Ur-Ot for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:40 -0500 Received: from mail-ua1-f44.google.com ([209.85.222.44]:40958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweQw-0002U9-FA for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:35 -0500 Received: by mail-ua1-f44.google.com with SMTP id y5so27305343ual.7 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Zv0Max/Z0M9eGARhkXdFbG7nRPnZrOIPjGOnHvaOK6E=; b=Uo9e/McxwdvXgSGEqv7gl8OYf9AgJY1V7AFFh78/10h6Eb6LGFZzd1o0PPnW1PjmE4 ZXj2FvAZSZE2Y5bQa4Y5uSed8TdB2Dggf8xr1NmveIDTW7I8KoBGcKLZL/R+RbeQ3tt9 wCGAFkKt6LKt/bFV0/BFmfFhvl0juxBaE8r0aVvKb7Uag+HtMIUzJYNv0Q5hosJ1FwhK 1uEvHtfdwwBTy4AqDr1OrCXyL6+B3Z3A31cFo51yu88ujMkl+oCGkQZP6szQH5apwkvb 3AAguVuwdz5DeYJxlzh0N4s9iPrCh/8nWQJUgMXDHy0tdU+I6EE2yxXIa/AZvyZHdD/5 vryw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zv0Max/Z0M9eGARhkXdFbG7nRPnZrOIPjGOnHvaOK6E=; b=BKA5NjkF1WWXCfUe8+A10kiBH/sg6lV17m5RY2YhvSME57m7rtEpLmLqkuM2XgP+mI rpshUreO34Jtz8HnBQ0hgXX1og6dOG3pAmBk41D7fNZiVD8cMvJLkOngqNubK6iEtN7z RHNEHLothceLfZuJQVZZB+OO606T5xwBhVWGpjOiwp4lz0JrR8prtnQ/lijn0WDxso83 k+JWQUbFYe7hlWrAJUAe7ue09cn66gweK2GxvjK7HigXpQIr7CnUxAYGKZCQgKfFC965 iKEgoWzpsveRJFwfy4AElNxZYYVk8MUIc2koNaRLohzr7Mpcw0+0QftL7PKE7MuMAuyb qXgA== X-Gm-Message-State: AOAM533nCb/24xEsDBg3HOOv9BQYFAPRK6X95j6/ZssDjlTTL6ujJJa/ ddWhHS7HM856TRE0XifzX+TBJ0koeUBZG0lRsfk= X-Google-Smtp-Source: ABdhPJxzSRmxldUpeETVRE9rNO0ufYRbDduxTsVSD2DNg8QsTyFs1FQPjTBp/u1GB4jPZqHvs+/rbg== X-Received: by 2002:ab0:1d10:: with SMTP id j16mr39584248uak.40.1639375408923; Sun, 12 Dec 2021 22:03:28 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id t132sm3685208vkb.19.2021.12.12.22.03.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:28 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:39 -0500 Message-Id: <20211213060107.129223-18-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node-xyz.scm (node-once)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node-xyz.scm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 77577cb315..eb071320cd 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -338,13 +338,10 @@ (define-public node-once "1z8dcbf28dqdcp4wb0c53wrs90a07nkrax2c9kk26dsk1dhrnxav")))) (build-system node-build-system) (arguments - '(#:tests? #f ; FIXME: tests depend on node-tap - #:phases - (modify-phases %standard-phases - ;; The default configure phase fails due to tap being missing, as we do - ;; not have tap packaged yet. It is used only for tests. This package - ;; still works as a dependency of node-glob and node-inflight. - (delete 'configure)))) + '(#:absent-dependencies + '("tap") + ;; FIXME: Tests depend on node-tap + #:tests? #f)) (inputs `(("node-wrappy" ,node-wrappy))) (home-page "https://github.com/isaacs/once") From patchwork Mon Dec 13 06:00:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35180 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7834E27BBE9; Mon, 13 Dec 2021 06:06:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2669827BBEA for ; Mon, 13 Dec 2021 06:06:24 +0000 (GMT) Received: from localhost ([::1]:45690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTf-0005MD-8y for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRT-0002S1-1G for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRS-0007JJ-Ja for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRS-0002XZ-8Y for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 18/45] gnu: node-irc-colors: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754219612 (code B ref 51838); Mon, 13 Dec 2021 06:04:06 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:41 +0000 Received: from localhost ([127.0.0.1]:53739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweR3-0002Ut-1W for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:41 -0500 Received: from mail-ua1-f53.google.com ([209.85.222.53]:36421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweR0-0002UX-AW for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:38 -0500 Received: by mail-ua1-f53.google.com with SMTP id r15so27347859uao.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ojMLjz/jyFKXXb+hBPomTkZw3w967K/vtlSskEGKkIE=; b=NWQdAC6qzIfMM8xseKmsJC7uiiCdWSLGfHLxGbqezdE2Eb/c+jkapi/L7i+gz1PqyG YgxvftPCQO99gOgSAramqeD3eXfFbRsewNH0vySSfrIS9s+mtQiOk04XhBrhNDZciUPe s/jGpF1edMY/iuB/0cC3yT+z1mzDraMn8ItpOxEDZE10ANyCeVJkVQaPUZnGhfXIByce XYIHEvN5Di9CtZ+jZysc+FEpX+DTtYwYnAZ0Vr2RvRkeRSkeslbORrsxtoTPcMmzZzhM +s/BVwQbHuecudhSs6d1juMvMBO+WR8qXD8hOHzmOCk49JWZ5M6AGtHDsnWeE5W+PdoW BgWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ojMLjz/jyFKXXb+hBPomTkZw3w967K/vtlSskEGKkIE=; b=ET8lFKJ6vAhFIJ+7561M0vEWXMF1y9AOtvyqr2SxNG9bUShzupdAx/L2uWHUFykYEG Zvc4gboWYWeePWSKLChtLPbjOIXV4jMgaxOoV9ltZF+zdUSBX6Yklv3MhFWCcYfSsYV8 jiwdSdNMESnzzk2Sw7zXmiP5HXeFtES6Gaxvz2O0fApgqQHFWTL0+Uu4QIDzgYbnZSXQ 2OlTa5tK0WZsaq0gqTiryBqnaDDr6rR3h/aF/2bse8UYI/azUe64GAOpO21YNoUsfEgt kfkemG1TJ6gYJC+RkveBZ33qD7TqyDb2WTd6jRY06CM8/M2sbatkPdw/5rguwy/8kERr Dk1A== X-Gm-Message-State: AOAM533QoV+AOuGP7Wm+OeF/8El1wAqBSRr0kyxscCZEAy7p6ggAuUbf mRvsg9YveYehs+rweRfMcX3jcC2IwF8hVEvtw/g= X-Google-Smtp-Source: ABdhPJyJD3pQFxvMNVm8uMUSFl3VkocXXX36J/daGwq4JdZWqyhyjz1Bai+CCSN5MM0XRmrrJRuyZw== X-Received: by 2002:a67:1985:: with SMTP id 127mr25706657vsz.34.1639375412980; Sun, 12 Dec 2021 22:03:32 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id x142sm3662093vsx.15.2021.12.12.22.03.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:32 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:40 -0500 Message-Id: <20211213060107.129223-19-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node-xyz.scm (node-irc-colors)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node-xyz.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index eb071320cd..9646c14243 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -367,12 +367,10 @@ (define-public node-irc-colors "0q3y34rbnlc55jcakmdxkicwazyvyph9r6gaf6hi8k7wj2nfwfli")))) (build-system node-build-system) (arguments - '(#:tests? #f ; FIXME: tests depend on node-istanbul - #:phases - (modify-phases %standard-phases - ;; The default configure phase fails due to various packages - ;; being missing, as we don't have them packaged yet. - (delete 'configure)))) + '(#:absent-dependencies + `("istanbul" + "vows") + #:tests? #f)) (home-page "https://github.com/fent/irc-colors.js") (synopsis "Node.js module providing color and formatting for IRC") (description "@code{node-irc-colors} is a Node.js module that From patchwork Mon Dec 13 06:00:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35184 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 452F527BBE9; Mon, 13 Dec 2021 06:07:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CCA3527BBEA for ; Mon, 13 Dec 2021 06:07:28 +0000 (GMT) Received: from localhost ([::1]:46568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweUh-000625-VN for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:07:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRT-0002SK-4X for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRS-0007JP-PP for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRS-0002Xm-Lk for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 19/45] gnu: node-irc: Use #:absent-dependencies. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754299640 (code B ref 51838); Mon, 13 Dec 2021 06:04:06 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:49 +0000 Received: from localhost ([127.0.0.1]:53743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRA-0002VN-A6 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:49 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:41901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweR4-0002Uh-Ao for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:42 -0500 Received: by mail-ua1-f47.google.com with SMTP id p37so27296528uae.8 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=feDGPCoF9k7nqW0jkPTEDiu1HOZFsAcDjCrWloKVQvk=; b=M8K8qYopLxAJvI8/L71N8B0jjDvorXRdaTDmp0fbHQnZCuyE2jBqeiHpeGC6YSq7FE j0hg1eGCFKjo/cDH3hrIS63/OkI4pRrGA0nUvDOL+IN9nCUc1c5fLvYPBjHNbwtkruMd JxFO1L9uPLsbzIHGid4t+cq9onL6yeaOVL3LcQOloPon2bQQadLEZZ3lGL2UWDT5npNc 0NJOt/c1714ozI8BxvA7gqNJsOHX56bhCU428jkYxbRyfBLJCVyUjlSCWjnuXbxl3FBZ 3Ckgb0/Bz/tlM1QXBFYDrlvjgvlRGOMEEQa6715KcobS0e8lfOGonR71V2RsLVXMG+Ev 7jLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=feDGPCoF9k7nqW0jkPTEDiu1HOZFsAcDjCrWloKVQvk=; b=1qFa3TVYYkOo2eBZ4UUqBxVgVtH4xj9TD6ClLC3i/Q8KVNpWowdgjcrvucu1ewY7ao ZpiHuFijnU9UhWe74q8QqMD4VPJ/l3AAWARzINy/oTBsRlpzkqbcNEBB8UMP1ExLM1WN Bc81KYBRrgDa2SxSJNfQnCgGg4sztGJGDVazpTK0mspntENa0zKZzuqQHw1agIbwRqKL QIfgLMZ3XQZVBtfxG8Dnq6A8n/479Z7wwXq2jJuCzjRJOdVFlvmEQAaOjcF/BdXLgJ1l jsAO2ApBwPWcfEg/PfkSqW989U44/3z0ifcEbgxdd1itsah5yfBazHsS31Zf7+uvZrd7 4Ezw== X-Gm-Message-State: AOAM532Zi6ansgKumvksIKJA9BSCZTLtqMXS3zrLVLAl3cOTfwki34kE 4bMhRoTDHdfUFEWDQ8x31z6wrxWqCWfO3xGST/w= X-Google-Smtp-Source: ABdhPJyk64TxxJyebN8M9g++MsY8Kc2d+Hqfk31L0fx7jvl5eHwY0/ZpL0BcrVbuWLvc4vrQ71MlNQ== X-Received: by 2002:a67:f8c2:: with SMTP id c2mr26283635vsp.62.1639375416999; Sun, 12 Dec 2021 22:03:36 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id n10sm3582264uaj.20.2021.12.12.22.03.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:36 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:41 -0500 Message-Id: <20211213060107.129223-20-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches gnu/packages/node-xyz.scm (node-irc)[arguments]: Add `#:absent-dependencies`. Stop deleting the `'configure` phase. --- gnu/packages/node-xyz.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 9646c14243..998d0a9a90 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -394,12 +394,12 @@ (define-public node-irc "1ln4qfx20jbwg4cp8lp0vf27m5281z2sz16d15xd6150n26cbi4x")))) (build-system node-build-system) (arguments - '(#:tests? #f ; FIXME: tests depend on node-faucet - #:phases - (modify-phases %standard-phases - ;; The default configure phase fails due to various packages - ;; being missing, as we don't have them packaged yet. - (delete 'configure)))) + '(#:absent-dependencies + `("ansi-color" + "faucet" + "jscs" + "tape") + #:tests? #f)) (inputs `(("node-irc-colors" ,node-irc-colors))) (home-page "https://github.com/martynsmith/node-irc") From patchwork Mon Dec 13 06:00:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35174 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2F45327BBE9; Mon, 13 Dec 2021 06:05:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 799D427BBEB for ; Mon, 13 Dec 2021 06:05:43 +0000 (GMT) Received: from localhost ([::1]:44204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweT0-0004J8-JT for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRU-0002U2-GG for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRT-0007Jj-6B for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRT-0002Xt-1n for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 20/45] guix: node-build-system: Add implicit libuv input. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754299646 (code B ref 51838); Mon, 13 Dec 2021 06:04:07 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:49 +0000 Received: from localhost ([127.0.0.1]:53745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRB-0002VR-6B for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:49 -0500 Received: from mail-vk1-f175.google.com ([209.85.221.175]:33685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweR8-0002V5-PZ for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:47 -0500 Received: by mail-vk1-f175.google.com with SMTP id h1so9734281vkh.0 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Snc6DwrRiD/cOxhQ9nOOo8DfqibULx1Ev/pz6Q2mgSA=; b=iRyQhP1GepTLjuoO2Vq6LxEQiKzZC/o9/TmXcY6/GrU23pYRWGhV/83n4NmM6HIhb8 eef8IgZASzX6mmxA97jnNh0K9XAMIsI/7eVQS+noibf4zN1nDkXoZPG5OGnpdXkkAOgz R06fG8Jk51oPTNgHur4b4LExn45M0MlHxppUPxIOKmP+08y4PtAw5mhaDFwSr730ZLUZ qIqaRkpZLKLEt4Gl/w8XOb9K3oH2Ula+OWSTB/Ga6FYtcPKHjgz/lOF8n0T1WuLpZaxV lM/S6bTiD1RC2rkuZES/P8zaaFs5ebIorzOTHsqdO8m9qxcvndWNeLT+NsVdq4Qoqd+R IUmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Snc6DwrRiD/cOxhQ9nOOo8DfqibULx1Ev/pz6Q2mgSA=; b=LNk2pWRjT4vwIwRvo9Jmd/rf352xxwkzvAJT4cNaIeTwK72tqVArYI211R9lI+pvPd t6jAIpwuhHXGPFsqlhyasVy7qzlk7VdQH69EIol3UhdSE5AGmqXYXO9n7Ih4nAbMyhJJ 39CoWkf49FJH2nF76Q+zGN6rI/9W6VnnE9TsWZ5pUnw2jPgjNXLbSIbrWT1fylrPcBTD gvFP87rXoFy8+7jKXXDObs2LqYRYBuS/NLI1Q7T2CNjcT/GiMvMSMR5yy0XERH7JhpoH Yizl3q3XGEv9ONway28iMFtsuF4zg8KhgfXSsbDpDi2gE8o5b60UVVO7hZmXxmLufAkb V+uA== X-Gm-Message-State: AOAM532r2VheF7gb9eANonInh7CuoB+oc7fddldkybSnMfSe6VXtoOe4 UOqEmO7zcvDUxUET9bdy1qIT6V5sB2FFiENYpv4= X-Google-Smtp-Source: ABdhPJzUcyZZzD2lJh/JgWLK+R36KKneYo7VwIan9IRIGpjW1Xir8PftNnDAfY1ACG50Wc52FXX8UA== X-Received: by 2002:a1f:e1c7:: with SMTP id y190mr29894328vkg.31.1639375421360; Sun, 12 Dec 2021 22:03:41 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id o7sm3760116vkl.41.2021.12.12.22.03.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:41 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:42 -0500 Message-Id: <20211213060107.129223-21-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/build-system/node.scm (lower): Add the version of libuv used as an input to the #:node package as an additional implicit input, so that packages needing libuv always get the correct version. --- guix/build-system/node.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/guix/build-system/node.scm b/guix/build-system/node.scm index 4f437f9c0d..179da65ee8 100644 --- a/guix/build-system/node.scm +++ b/guix/build-system/node.scm @@ -1,6 +1,8 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Jelle Licht ;;; Copyright © 2019 Timothy Sample +;;; Copyright © 2021 Pierre Langlois +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,10 +61,15 @@ (define private-keywords `(("source" ,source)) '()) ,@inputs - ;; Keep the standard inputs of 'gnu-build-system'. ,@(standard-packages))) (build-inputs `(("node" ,node) + ;; Many packages with native addons need + ;; libuv headers. The libuv version must + ;; be exactly the same as for the node + ;; package we are adding implicitly, + ;; so we take care of adding libuv, too. + ("libuv" ,@(assoc-ref (package-inputs node) "libuv")) ,@native-inputs)) (outputs outputs) (build node-build) From patchwork Mon Dec 13 06:00:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35165 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F385A27BBEC; Mon, 13 Dec 2021 06:04:38 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3E91927BBE9 for ; Mon, 13 Dec 2021 06:04:38 +0000 (GMT) Received: from localhost ([::1]:42450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweRx-000316-9w for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:04:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweRU-0002V0-W6 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweRU-0007KD-KL for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweRT-0002Y1-GK for guix-patches@gnu.org; Mon, 13 Dec 2021 01:04:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 21/45] guix: node-build-system: Add avoid-node-gyp-rebuild phase. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:04:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754369677 (code B ref 51838); Mon, 13 Dec 2021 06:04:07 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:03:56 +0000 Received: from localhost ([127.0.0.1]:53749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRI-0002W0-GP for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:56 -0500 Received: from mail-ua1-f52.google.com ([209.85.222.52]:40489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRC-0002VF-UN for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:51 -0500 Received: by mail-ua1-f52.google.com with SMTP id y5so27306279ual.7 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=teAJKTWNnkKR3SVaIcZCGsnlAr4obIHoNhyOOMkV1fc=; b=Bg5y8/GRfd8s9qcM1HVavO1W5Ec69q5DIAjzC1p89p1sdXgVsqM598OKEySIKNCxJa VSggd3yKPFVMqqNmLC1UroU4v2BbLFjApApVI5soA469vLEnFekcfRIzYi2iPTCwEDNX kZc/dVv7m421lyUZsE6dsfkRfCYAQchmF1ty7Qgi4gkLL+s2UVHgpfsPzOxutJijRdfJ hfboCZmnhsXMixEJMTcRfLVfkit6ZEJBM++yeXc3nCY1ahpAdwquNLBOVmMJkyDRHvJr F9Amz6XXZtapo2DnmOdPQ6UbgNIy5QrcyhtH9EoD3x9qwok8vOMVWCrcRmEWKEvNeDTe dL2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=teAJKTWNnkKR3SVaIcZCGsnlAr4obIHoNhyOOMkV1fc=; b=4ErhIGRquJ9juilHRY8lZVY7IqIPOKSreIndP0yL74PU9ywUOCD5s2eL4lvsn641Ac aSLZfbtyFXUWyajvgqNJln5y0HJjVqsBII8oYG29Qxe1hHvRFZEbn/qD7+eGdDSX8ITs V9TecsO+ZIgICFSgCVl/XWsfQk8KeeaXuH9PO6MYHoB+GsgfpEhqK3wpXeAkzuOck4l8 BBulz2U9rEsHJ2Kc4TQEOj6MhzmSNaSHYMKuIkE+fSMKusNXxHeNm2qfLU5iDlvd0Iiq yx2qkuWgVOZbOu2fK3acSj28PIOdFoDgmCmTCLd4XRe3Xb8wPDPtxnQ5gnKjm7mZu+VG oQ6w== X-Gm-Message-State: AOAM533P1OUgEaQroVqndS+zhC8QP9EXVJkqw2AVWfsYIaCqs3TkNHai ZUaX5u8Hb6FAWpjpeb22CrfMVfRigQN5KaJ+xlE= X-Google-Smtp-Source: ABdhPJx3yJv2WvlvI3pGHKZTv4Tun13hUuhgCfKaUel0mA9Xql3pmUTCkVVNXP3b6Gjz/CN9dFlacg== X-Received: by 2002:a67:b103:: with SMTP id w3mr26364496vsl.84.1639375425392; Sun, 12 Dec 2021 22:03:45 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id t11sm3708225vkt.34.2021.12.12.22.03.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:45 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:43 -0500 Message-Id: <20211213060107.129223-22-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/build/node-build-system.scm (avoid-node-gyp-rebuild): New function. Override the default install script for packages with native addons to prevent it from attempting to write to the store when such packages are used. (%standard-phases): Add 'avoid-node-gyp-rebuild' after 'install'. --- guix/build/node-build-system.scm | 59 +++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/guix/build/node-build-system.scm b/guix/build/node-build-system.scm index 892104b6d2..f9ca515d58 100644 --- a/guix/build/node-build-system.scm +++ b/guix/build/node-build-system.scm @@ -175,6 +175,62 @@ (define* (install #:key outputs inputs #:allow-other-keys) "install" "../package.tgz") #t)) +(define* (avoid-node-gyp-rebuild #:key outputs #:allow-other-keys) + "Adjust the installed 'package.json' to remove an 'install' script that +would try to run 'node-gyp rebuild'." + ;; We want to take advantage of `npm install`'s automatic support for + ;; building native addons with node-gyp: in particular, it helps us avoid + ;; hard-coding the specifics of how npm's internal copy of node-gyp is + ;; currently packaged. However, the mechanism by which the automatic support + ;; is implemented causes problems for us. + ;; + ;; If a package contains a 'binding.gyp' file and does not define an + ;; 'install' or 'preinstall' script, 'npm install' runs a default install + ;; script consisting of 'node-gyp rebuild'. In our 'install' phase, this + ;; implicit 'install' script, if it is applicable, is explicitly added to + ;; the "package.json" file. However, if another Guix package were to use a + ;; Node.js package with such an 'install' script, the dependent package's + ;; build process would fail, because 'node-gyp rebuild' would try to write + ;; to the store. + ;; + ;; Here, if the installed "package.json" defines scripts.install as + ;; "node-gyp rebuild", we replace it with a no-op. Importantly, deleting the + ;; install script definition would not be enough, because the default + ;; install script would cause the same problem. + ;; + ;; For further details, see: + ;; - https://docs.npmjs.com/cli/v8/configuring-npm/package-json#default-values + ;; - https://docs.npmjs.com/cli/v8/using-npm/scripts#best-practices + (let* ((package.json (string-append + (assoc-ref outputs "out") + "/lib/node_modules/" + (match (call-with-input-file "package.json" read-json) + (('@ . alist) + (assoc-ref alist "name"))) + "/package.json")) + (meta-alist (match (call-with-input-file package.json read-json) + (('@ . alist) + alist))) + (scripts-alist (match (assoc-ref meta-alist "scripts") + (('@ . alist) + alist) + (#f + #f)))) + (when (and scripts-alist + (equal? "node-gyp rebuild" (assoc-ref scripts-alist "install"))) + (call-with-output-file package.json + (lambda (out) + (write-json + (cons '@ (assoc-set! + meta-alist + "scripts" + (cons '@ (assoc-set! + scripts-alist + "install" + "echo Guix: avoiding node-gyp rebuild")))) + out)))) + #t)) + (define %standard-phases (modify-phases gnu:%standard-phases (add-after 'unpack 'set-home set-home) @@ -184,7 +240,8 @@ (define %standard-phases (replace 'build build) (replace 'check check) (add-before 'install 'repack repack) - (replace 'install install))) + (replace 'install install) + (add-after 'install 'avoid-node-gyp-rebuild avoid-node-gyp-rebuild))) (define* (node-build #:key inputs (phases %standard-phases) #:allow-other-keys #:rest args) From patchwork Mon Dec 13 06:00:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35177 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C9D5727BBEB; Mon, 13 Dec 2021 06:06:04 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4E77627BBEA for ; Mon, 13 Dec 2021 06:06:04 +0000 (GMT) Received: from localhost ([::1]:44926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTL-0004p8-8L for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSM-0003c2-87 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSL-0007Xi-Vh for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSL-0002cW-Q0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 22/45] gnu: Add node-inherits. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754529828 (code B ref 51838); Mon, 13 Dec 2021 06:05:01 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:12 +0000 Received: from localhost ([127.0.0.1]:53751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRI-0002W2-Sc for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:11 -0500 Received: from mail-ua1-f48.google.com ([209.85.222.48]:46732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRG-0002Ve-TE for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:03:55 -0500 Received: by mail-ua1-f48.google.com with SMTP id 30so27280137uag.13 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TkzUiJnNGw9ur1c48y1bhJnpwmx0e71utk5vh1CJDY4=; b=HSNlTljnKMukpzA/KCPXPa7PFbwcRMmgQVUxUe022yOmseUzr8tZFXmuqbfLC1V12R 6lg1spXj9HY/D8V3U0weUa+qk8Ol5Coe588ViKhUvJVEXOOVPROoAu6fztbdGh1g7iYP S67I/X1cvAIFPm/tihhKUn91vf9vaZNFGxDcQ+Lbi+0m8NAhWL0AHogVC4zIzZ0W9qF4 dTPqrUbJUoygTF1nwXaMU9dxQinrT5xk4066vluQ378iYr3xLCWlnGFGhE8Iezih9ABw 4m/NmdwzTT9OfYVYydkk3+/ual/6803fN/VfUzXIZfauiLo5pPbnRD7Jg0h5Wq3qtB5k lxCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TkzUiJnNGw9ur1c48y1bhJnpwmx0e71utk5vh1CJDY4=; b=L8UyU/F7HO4Y93hwK1UTKYCSF5kcFnqbvy15sd++oHwzDuA/Cwn4dxGrCubr06WdwN ySpO6XiJWuFnCeXqyr7EI7PD8HOW95gk+rTV0Oh95Gtb5PAvGkhhQ2ZNHse5HsxzMcIt K4rtn3enWMyg8ddxo1juPKVqNSIZZHWsxSg891zqEV2Vp4S1g9A7DJxl+FhwgKA+4oYN kePNpuYSiFVv/1x5TluMNUwEqoXNtCko6EaPdmf6Gl3lukjxfY5gnFngSh4N1ofpuoXG zD+ZjUJT7GzaI0uQsiTx29rEdeUEUi/LMV8sJ6Cd8MHaznvJM4StnvEliJc7Vfucq1rO 0RAQ== X-Gm-Message-State: AOAM5304vI8SssDz1nGsnDGqr8SsWg49XrkVc29drL84ng8bKbtA3lvN w1rqgwzmYr4fz315EKijB9bVj+/iu0ZcwvU+8xc= X-Google-Smtp-Source: ABdhPJwPbIlKKRqDe7u+ACgpCjYKLYn6Z5ofoWBAEGQtWQ/AMz4Vp7P0XqQgLPHEov2qv+oRjgBf3g== X-Received: by 2002:a67:301:: with SMTP id 1mr27106404vsd.11.1639375429443; Sun, 12 Dec 2021 22:03:49 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id u145sm3902941vsu.25.2021.12.12.22.03.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:49 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:44 -0500 Message-Id: <20211213060107.129223-23-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-inherits): New variable. --- gnu/packages/node-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 998d0a9a90..9d8bf27852 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2021 Noisytoot ;;; Copyright © 2021 Charles +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -352,6 +353,35 @@ (define-public node-once if desired.") (license license:isc))) +(define-public node-inherits + (package + (name "node-inherits") + (version "2.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/isaacs/inherits") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cpsr5yqwkxpbbbbl0rwk4mcby6zbx841k2zb4c3gb1579i5wq9p")))) + (build-system node-build-system) + (arguments + '(#:absent-dependencies + '("tap") + ;; FIXME: Tests depend on node-tap + #:tests? #f)) + (home-page + "https://github.com/isaacs/inherits") + (synopsis + "Browser-friendly inheritance Node.js") + (description + "Browser-friendly inheritance fully compatible with standard Node.js +@code{inherits()}.") + (license license:isc))) + (define-public node-irc-colors (package (name "node-irc-colors") From patchwork Mon Dec 13 06:00:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35186 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B654827BBEA; Mon, 13 Dec 2021 06:07:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7F1E027BBE9 for ; Mon, 13 Dec 2021 06:07:30 +0000 (GMT) Received: from localhost ([::1]:46678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweUj-00066r-Lo for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:07:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSN-0003cS-Bs for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSM-0007Xo-FR for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSM-0002cj-AU for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 23/45] gnu: Add node-safe-buffer. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754529835 (code B ref 51838); Mon, 13 Dec 2021 06:05:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:12 +0000 Received: from localhost ([127.0.0.1]:53770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRX-0002YU-VJ for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:12 -0500 Received: from mail-ua1-f52.google.com ([209.85.222.52]:37620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRK-0002Vp-VP for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:05 -0500 Received: by mail-ua1-f52.google.com with SMTP id o1so27339177uap.4 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pLwK59KfKzSeilA++Kp0Cllh4FKRX2jv0tBtW2Jiti8=; b=UfTS7zUlS/2Pc673gAcfWbAskAFjeMbNFfeOCDJOd0h8VWTxIM3geuAl6tSbgXZ/B2 tPCU0E1JMX5PPqD+2DscxN4QFAu9CYOZmqudTAtBtgvn7BVL0iEziIR0r7o1JV5A8Ucr T8kG2hdCrHZzS3SKzp235xUKvLzfEaPSAtPcRB2R/IjOP9zy2so2F9oLm7oue7QTPjaW XNcgfpXpycMAJ45j2amOoXJZ9k9ujxxCRtrsRF8yJL6TePT6oDtrSpv3gtcXjlOMNlzx B8uCwqoakupA+eO9PDJiKnFoxHjYMhDFFSQLuntC6CFQHhd4TEeGqRqIThj4FwRyrHU1 GCkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pLwK59KfKzSeilA++Kp0Cllh4FKRX2jv0tBtW2Jiti8=; b=6jOdgMyXcIyA1pJEz3ItMc9A50xmM88S/LkNn+6aJwCIPG/7WJMat0LZokFHhJwMb9 b0pD8WC+CSeiymxqPn/wQtNFwzZ2msh60hwapMPIHDuaGHoDwyX8DQOtxgwqrey6dZeO MhCYDM+FM+CayWiqleCgWN64prTz22lBIZYKTvzLdp4pX9qu9niqruQrYZ/FtIX2kr9j EnEYbkRSbPCkh0lk1Jp2bFk5sXW1GfDwSW+BDwm9IYD89y1r5k3ztqnONvsJ/lv9025K K0LanpWbk5Phm7Q9D7BKt/TidBjbN4Qop2P0ymuLra5PC17DcKo7Sa4Qc657PMUTQY+0 npjg== X-Gm-Message-State: AOAM530ihVqitfrLjlpmBop7pwFNcSWv84yBI4IufsxZ2TPTEQIkouK4 skBNk4gL7ACInvYGP1178DUQbhZWi7hsM+kVR8w= X-Google-Smtp-Source: ABdhPJycjGIPqNuw8ICQwEEsVgUvjq1lAJbFiXf/NblFTt7D1lw+UG3Elg02WvW5EKAfcTituEyXMQ== X-Received: by 2002:a05:6102:c10:: with SMTP id x16mr26676457vss.38.1639375433541; Sun, 12 Dec 2021 22:03:53 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id z188sm3564743vsz.12.2021.12.12.22.03.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:53 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:45 -0500 Message-Id: <20211213060107.129223-24-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-safe-buffer): New variable. --- gnu/packages/node-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 9d8bf27852..6dff0ddba5 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -382,6 +382,34 @@ (define-public node-inherits @code{inherits()}.") (license license:isc))) +(define-public node-safe-buffer + (package + (name "node-safe-buffer") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/feross/safe-buffer") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0r26m0nl41h90ihnl2xf0cqs6z9z7jb87dl5j8yqb7887r9jlbpi")))) + (build-system node-build-system) + (arguments + '(#:absent-dependencies + '("tape" + "standard") + #:tests? #f)) + (home-page + "https://github.com/feross/safe-buffer") + (synopsis "Safer Node.js Buffer API") + (description "A safe drop-in replacement the Node.js @code{Buffer} API +that works in all versions of Node.js, using the built-in implementation when +available.") + (license license:expat))) + (define-public node-irc-colors (package (name "node-irc-colors") From patchwork Mon Dec 13 06:00:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35175 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6444027BBEA; Mon, 13 Dec 2021 06:05:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2B26E27BBE9 for ; Mon, 13 Dec 2021 06:05:46 +0000 (GMT) Received: from localhost ([::1]:44240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweT3-0004KS-7n for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSN-0003cT-C8 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSM-0007Xr-T2 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSM-0002cq-Ns for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 24/45] gnu: Add node-string-decoder. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754529842 (code B ref 51838); Mon, 13 Dec 2021 06:05:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:12 +0000 Received: from localhost ([127.0.0.1]:53772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRY-0002Ya-AI for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:12 -0500 Received: from mail-ua1-f53.google.com ([209.85.222.53]:46755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRP-0002W9-3J for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:06 -0500 Received: by mail-ua1-f53.google.com with SMTP id 30so27280603uag.13 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h92M6cwNYqgQ6JGJIf9VzYOMEG4L/N3bg93emHyzF0U=; b=TT08wPizUddzL17GiqDxW6z8Dg8IyskJL9tM9UYUrGVXMfHa9dg4bZCfEkXONlxycV sDrZe9sEAH40i80X5vi5rgPP4yWzVE9MyIjfduY4RVNp66HeyrG8JxshFwB0QJqisZFH TBN/FxdNwWkjeKXcZYzUn7ZTPL0B8iGQlEcHnCwbfGlsO96c3IPI5xynRAVyjDL2Vp9b oh2P1X7KWKBM2bXqFuAV/55PBIyWNP4dpQpzuvtS4LKIHZT0OA2e8x+6trszJwwx+Whs ylpfvnv5gDGntny5YXJkj77N/Hn2RbLVQicFNp8LD0dhimrlpXxdubTVxYqjVYXafYLO 7SlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=h92M6cwNYqgQ6JGJIf9VzYOMEG4L/N3bg93emHyzF0U=; b=cNM3UCywMyrQBo5LsBrgLaDh7pne/ftJwOKUSMf1pm3mT9zT6ficp393YScXY8X2D9 QnnPGSkiA2/Q2e1KyTvaHg4m4trHN1hKi7CsNZr3MdstmnqHL/tWqMZyqlLijZh/PcZR gdM6DVHGEQQIwQuBfLc6LCzrM4vSwGn7doXYX4Hc0e7dOyeDtISQzr9R7dwlbG4Uf30x yNvYHB56MgvMMr2PO5o+/BJAuQXqt3GHqJAySwhHvvml4Sm+4uP2j8u7qOov8lbfY09U SrlXgfiHysa10f8Z7gUaZ4VxSs7r35M1dIgY6RQsiUzyxCFoRoNfKNBIdUqehO19MGLf uL/w== X-Gm-Message-State: AOAM530d52ncxFesnNlj/7dgeOqPw3TOJYJ5P8MEAl9J5BUjWsFSAwjw am7RiqgRi1/8nAdlgeqLTKwb35Iolg9T914KSiQ= X-Google-Smtp-Source: ABdhPJy24SbGtsDu5kGnmhTLhzgcWZ2hBVyPu0Ucnyiof830vrqFdx5/zHHERClFt3djxRbpGDQduA== X-Received: by 2002:a05:6102:945:: with SMTP id a5mr24983703vsi.87.1639375437685; Sun, 12 Dec 2021 22:03:57 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id v7sm3838423uaj.13.2021.12.12.22.03.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:03:57 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:46 -0500 Message-Id: <20211213060107.129223-25-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-string-decoder): New variable. --- gnu/packages/node-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 6dff0ddba5..c6cce64f7d 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -410,6 +410,40 @@ (define-public node-safe-buffer available.") (license license:expat))) +(define-public node-string-decoder + (package + (name "node-string-decoder") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nodejs/string_decoder") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0xxvyya9fl9rlkqwmxzqzbz4rdr3jgw4vf37hff7cgscxkhg266k")))) + (build-system node-build-system) + (arguments + '(#:absent-dependencies + '("tap" + "core-util-is" + "babel-polyfill") + ;; FIXME: Tests depend on node-tap + #:tests? #f)) + (inputs + `(("node-safe-buffer" ,node-safe-buffer) + ("node-inherits" ,node-inherits))) + (home-page + "https://github.com/nodejs/string_decoder") + (synopsis + "Node.js core @code{string_decoder} for userland") + (description + "This package is a mirror of the @code{string_decoder} implementation in +Node-core.") + (license license:expat))) + (define-public node-irc-colors (package (name "node-irc-colors") From patchwork Mon Dec 13 06:00:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35182 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 24AED27BBEA; Mon, 13 Dec 2021 06:06:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D226327BBE9 for ; Mon, 13 Dec 2021 06:06:26 +0000 (GMT) Received: from localhost ([::1]:45798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTh-0005RB-TK for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSN-0003cY-LN for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSN-0007Y7-CF for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSN-0002cy-7w for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 25/45] gnu: Add node-readable-stream. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754539849 (code B ref 51838); Mon, 13 Dec 2021 06:05:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:13 +0000 Received: from localhost ([127.0.0.1]:53774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRY-0002Yh-Kw for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:12 -0500 Received: from mail-ua1-f44.google.com ([209.85.222.44]:36473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRT-0002WL-5L for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:10 -0500 Received: by mail-ua1-f44.google.com with SMTP id r15so27349415uao.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RWVeazkP2j3GU7pQskCDix0dS4jhUU4VJh2ldcV7US8=; b=ftbC1wyXshSlCFI8yOb2UjjEvK2PT3WlB0TAKQuQYuoeLA22RlvM4jnDz9BJfY2CCa dTm1+XY0REC/qw7t+LsnDG5NANqfH7+O2tbEhNP9V3w/9JryNTv2Vruslb7+2dO4b2Un Gg2Tt0ReJ0cHWedWZm+39KZ8gFuXvtviMPJeQUV4qg57I2Pzn9S6xPPmLovGRP/8RuZH dSq1THjCukVhS9cZoi21DbKpskQWp//pqNsWCwngy24IN5cirUrEpkOZYHI0EJRWa5yt DLTePmo8l7bG7OUrBv1IaD0YuNFPykY0OEDexSSZaj3nJD7V10R20wzNWOINDxp5QIZd KyvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RWVeazkP2j3GU7pQskCDix0dS4jhUU4VJh2ldcV7US8=; b=PW4KHW03CNs3bNDqGuK50n37GN9c45rtiJYx5V01GEQiYfGIZbGvWGafPUkXfdY2al Fk9YCV/c9kQbrYq2sthk1GGdRh8SyFWfiu56JzbvLGs/NIrM/4uzRjPZBS7KDCvF2S9O Tgsm7qWo37pe13tPQNemQQev+C3yLP1SzHCghX5fdehZAKInr795Vwkk6nDdG46ih2GB esODznr20w2dEHVmKYrFeNSh5Q9TudzbkN73eKU2GjpRbY5LhsfPo6ooC9XWvIFd99/D w/tbay/RuzJGBV8VgfBH6ucHVOMdLXa6tOzBTtK+suDJTuIHHmGQMx80epUVUQZLpLMW U7Eg== X-Gm-Message-State: AOAM530HyAqp9Z20vxlLNoyGOIbmhilE9i8t8uV/oIyKMh/4xRMe4og2 oGZZATO+T1YEm1NWacJEIlzCDji6TRhdcMXqEaA= X-Google-Smtp-Source: ABdhPJwMpUnOQAse5C9YiomIXNVjZDIfRuYbmXKcfJT6ymEVmlTLVwL6/5txwQs9moR5mEqFwniDmg== X-Received: by 2002:ab0:6f4f:: with SMTP id r15mr40019800uat.17.1639375441826; Sun, 12 Dec 2021 22:04:01 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id v16sm4013309uap.12.2021.12.12.22.04.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:01 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:47 -0500 Message-Id: <20211213060107.129223-26-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-readable-stream): New variable. --- gnu/packages/node-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index c6cce64f7d..3e06413908 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -444,6 +444,60 @@ (define-public node-string-decoder Node-core.") (license license:expat))) +(define-public node-readable-stream + (package + (name "node-readable-stream") + (version "3.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nodejs/readable-stream") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ybl4cdgsm9c5jq3xq8s01201jk8w0yakh63hlclsfbcdfqhd9ri")))) + (build-system node-build-system) + (arguments + `(#:absent-dependencies + `("@babel/cli" + "@babel/core" + "@babel/polyfill" + "@babel/preset-env" + "airtap" + "assert" + "bl" + "deep-strict-equal" + "events.once" + "glob" + "gunzip-maybe" + "hyperquest" + "lolex" + "nyc" + "pump" + "rimraf" + "tap" + "tape" + "tar-fs" + "util-promisify") + #:tests? #f)) + (inputs + `(("node-util-deprecate" ,node-util-deprecate) + ("node-string-decoder" ,node-string-decoder) + ("node-inherits" ,node-inherits))) + (home-page + "https://github.com/nodejs/readable-stream") + (synopsis + "Node.js core streams for userland") + (description + "This package is a mirror of the streams implementations in Node.js. + +If you want to guarantee a stable streams base, regardless of what version of +Node you (or the users of your libraries) are using, use +@code{readable-stream} only and avoid the @code{stream} module in Node-core.") + (license license:expat))) + (define-public node-irc-colors (package (name "node-irc-colors") From patchwork Mon Dec 13 06:00:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36163 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B1F6F27BBEA; Mon, 13 Dec 2021 06:08:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 32C4727BBE9 for ; Mon, 13 Dec 2021 06:08:29 +0000 (GMT) Received: from localhost ([::1]:47984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVg-00071r-9R for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSO-0003cb-Tg for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSO-0007Yf-KY for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSO-0002dL-F1 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 26/45] gnu: Add node-nan. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754809927 (code B ref 51838); Mon, 13 Dec 2021 06:05:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:40 +0000 Received: from localhost ([127.0.0.1]:53783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRk-0002Zc-Qk for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:39 -0500 Received: from mail-ua1-f54.google.com ([209.85.222.54]:36491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRX-0002XY-Ai for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:20 -0500 Received: by mail-ua1-f54.google.com with SMTP id r15so27349631uao.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qj8jqvL8bD3SfwI3+xb/HfqVrKnenR1IhyjzHtHz2FQ=; b=jlqGfHJA/bIDfOcUjGRr25FdtF75cHWy2OS0jHkHv4oa9DXLDhXPwtn2Zz51pB6Rcd 3gXJYblRswADb8sDAxPV3ZpvjZQN64EBfqGTxRge9t3RYFpds2GnqbK8jNUyuZXhudl6 v95hdDNMqJlCWcU3ryeUxoCRf496Kna9gGG/+MMlsjxr3sEwSwC8/5BU0vg8+QmY26zL jESac2efY1p2+xG7wygTe3obP+XjCvc0B5MC51ubiJKBxf3P4Wkkk1vI7QUUNWH2pF0G G2YfsSBZREBmfeVrC2wHfY8Rj1zBNv2W3Y5Y+8+9hdzdvHV4yui2rsB5CVWPk2CkisDX QjUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qj8jqvL8bD3SfwI3+xb/HfqVrKnenR1IhyjzHtHz2FQ=; b=mkUDBFBtCh6xJFaWhoyd7JCVXtaNFsW13TdMGmVLjCPEnpgfzrBTH9jjdN8Wo033mm mZno75xpdVFYNgKLiHXnyUtsotCJZH944N3NElODJ8CxMoNGzw4nPRyDhdY01f+msa9Z ee4NFsV++VjCWgWaf/OEG0y7q1N0n3T4cXmly4NW1Z5KupYudikIDPsSXGIsk0Yc6JqD UM9eYgfMQEc2hNWfuBZvNxuST3jB+KyPs1TCYKWGmKO+1mHumlMjL3IYfzi+11aCrO9R 15ywl/XT0xM1HDzojirt53aCrmandET0p5WLJY2tbA7RqkdmZ5oPgJuv4J39wvkyPS66 R5BQ== X-Gm-Message-State: AOAM530nFa0n8mLZgcUJLO6XDet3UyRWR0dFS0A5yx5EOAVuSWK0wMga hza/gVp0HfGK4Dj81zI5RTqzfiO0Mq+nAzG9y0k= X-Google-Smtp-Source: ABdhPJzW7AE6bUd9SKA6lfcWGj/KM0F4LXXOmBGGRDcfpnQNHlLhUc/XlimYdU67XqU3eE0214C69g== X-Received: by 2002:a67:de12:: with SMTP id q18mr26432290vsk.17.1639375445936; Sun, 12 Dec 2021 22:04:05 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id h10sm3571911vsl.34.2021.12.12.22.04.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:05 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:48 -0500 Message-Id: <20211213060107.129223-27-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-nan): New variable. --- gnu/packages/node-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3e06413908..43cf9fe660 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -553,3 +553,42 @@ (define-public node-irc (description "@code{node-irc} is an IRC client library for Node.js. It has functions for joining, parting, talking, and many other IRC commands.") (license license:gpl3+))) + +(define-public node-nan + (package + (name "node-nan") + (version "2.15.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nodejs/nan") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18xslh9va5ld872scrp5y4251ax9s3c6qh0lnl1200lpzbsxy7yd")))) + (build-system node-build-system) + (arguments + `(#:absent-dependencies + '("bindings" + "commander" + "glob" + "request" + "node-gyp" ;; would be needed for tests + "tap" + "xtend") + ;; tests need tap and other dependencies + #:tests? #f)) + (inputs + `(("readable-stream" ,node-readable-stream))) + (home-page "https://github.com/nodejs/nan") + (synopsis "Native Abstractions for Node.js") + (description "Native Abstractions for Node.js (``NaN'') provides a header +file filled with macro and utility goodness for making add-on development for +Node.js easier across versions. The goal of this project is to store all logic +necessary to develop native Node.js addons without having to inspect +@code{NODE_MODULE_VERSION} and get yourself into a macro-tangle. + +This project also contains some helper utilities that make addon development a +bit more pleasant.") + (license license:expat))) From patchwork Mon Dec 13 06:00:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35188 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3906E27BBEA; Mon, 13 Dec 2021 06:08:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B292A27BBE9 for ; Mon, 13 Dec 2021 06:07:59 +0000 (GMT) Received: from localhost ([::1]:47344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVC-0006aC-TB for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:07:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSO-0003cZ-2x for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSN-0007YQ-Q8 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSN-0002d6-L6 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 27/45] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754609881 (code B ref 51838); Mon, 13 Dec 2021 06:05:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:20 +0000 Received: from localhost ([127.0.0.1]:53778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRg-0002ZA-01 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:20 -0500 Received: from mail-vk1-f179.google.com ([209.85.221.179]:44937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRb-0002YK-IT for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:16 -0500 Received: by mail-vk1-f179.google.com with SMTP id u68so9670550vke.11 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HXFMkUR7Pv8RG2WEXK66tg3oqCcv90+SKVcWp5dT+Wc=; b=e9oEESlJuMsWWza3ucZdrgS6+wS5vM5YhjR0hIJ+Wh2sRaXEk6ruB+NHPEYPgYEm4z 0KQEelM1Roe+Qu4t3sTI/R5U8P5JHCk6BPOlkzd6KCnFieZCoG2U+GaJoyPA8LNVink7 AhiRIUnM7CGYqe8hgPfSgKj6s355EZJg4IVRU9wjGoznpjz91pX37sOcopild6OptSEJ 7tTInCaEgWwcbgJhASezBzXpAXyyVPzO3eVkSRd7v4q6aEeEOCO6eMVzl14y4ANLQ99n 7TsR93GIrFDwHl/O3GF5Sgjx7+MmvsG70Y4KxZe7GPwVt+9mcRGYCfGbLqfQT80gwyxS V89A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HXFMkUR7Pv8RG2WEXK66tg3oqCcv90+SKVcWp5dT+Wc=; b=ua2wmh+Q2Axs4QcZEmp8RM/zb7JdAtXyrUrLottHIboRFiy8otBe61YRj8uwK/ctV8 1w1QdKxeLIMupF+CkChg9vwtxIHkN/TS91fHqqx0HSnvxIlERDruWSkJmxogIsdpQf2H zYVR7xrsbCt3wTrUy6CWY7whXVFCxTxWkUek0ujz3CNm80F28T6SdSC91vMypdSBWyUw HEAh6I3EY1H9oR96NYqSzEKynTeOvosykvCOqZ0DGK6dg2+s68UqIF6fiR08oQWpoT5P rp1vHYNWnr/a6NaM2QDPTel2g7XDapfBg08D38YkfKTpxB4YmT6BMqS4bHokauuTGTHW cQDQ== X-Gm-Message-State: AOAM531T8H6D/4QI1IjtWF0VhkPzQFEbYN9Hf0CoAKK1Nrrg+1nIosz3 dkefRiP7YWEVLYChPgBKIke1efqFraE5U/sguxA= X-Google-Smtp-Source: ABdhPJyWhLMRKkS+1bmuEdL94xvSKiRw4C6R9AlHBqyTe5FhU2/NkFZCpIbGpoWu9TBMBhu1m75Egg== X-Received: by 2002:a05:6122:130d:: with SMTP id e13mr30056496vkp.6.1639375450074; Sun, 12 Dec 2021 22:04:10 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id 17sm3937938uaq.10.2021.12.12.22.04.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:09 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:49 -0500 Message-Id: <20211213060107.129223-28-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/zwave.scm (node-openzwave-shared): New variable. --- gnu/packages/zwave.scm | 69 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm index 2019ec32df..feecf51e9c 100644 --- a/gnu/packages/zwave.scm +++ b/gnu/packages/zwave.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Ludovic Courtès +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,11 +22,14 @@ (define-module (gnu packages zwave) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix git-download) #:use-module (guix build-system gnu) + #:use-module (guix build-system node) #:use-module (gnu packages) #:use-module (gnu packages base) + #:use-module (gnu packages node-xyz) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages perl) + #:use-module (gnu packages python) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xml)) @@ -88,3 +92,68 @@ (define-public open-zwave and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol.") (license license:lgpl3+))) + +(define-public node-openzwave-shared + (package + (name "node-openzwave-shared") + (version "1.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenZWave/node-openzwave-shared") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1bqqy12dzqj05j9wsh50dmn84dddmhz0gjzvd3y20z4hpy1v8rsc")))) + (inputs + `(("open-zwave" ,open-zwave) + ("node-nan" ,node-nan))) + (native-inputs + `(("which" ,which) + ("python" ,python) + ("pkg-config" ,pkg-config))) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + ;; For some reason, `npm install` doesn't build + ;; the addon automatically, so we do it explicitly here. + ;; We go through `npx` so the npmrc file sets the + ;; configuration up properly. + (lambda* (#:key inputs #:allow-other-keys) + (define node-dir + (assoc-ref inputs "node")) + (invoke (string-append node-dir "/bin/npx") + "--call" + (string-append + node-dir + "/lib/node_modules/npm/bin/node-gyp-bin/node-gyp" + " " + "rebuild"))))))) + (home-page "https://github.com/OpenZWave/node-openzwave-shared") + (synopsis "Node.js bindings for OpenZWave") + (description + "With the @code{node-openzwave-shared} package, you can easily control +and manage your Z-Wave devices (lights, dimmers, blinds, you name it) from +within Node.js applications. This library also supports secure +devices (e.g. door locks) that require encryption. All widely used Node.js +versions are supported with the help of @code{node-nan}. + +This library is currently able to: +@itemize @bullet +@item +scan a Z-Wave network and report on connected devices; +@item +write values to Z-Wave nodes; +@item +monitor the network for changes; +@item +heal nodes and/or the network; and +@item +perform management tasks: add or remove nodes, replace failed nodes, +manage their group associations, etc. +@end itemize") + (license license:isc))) From patchwork Mon Dec 13 06:00:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35178 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0B84D27BBEA; Mon, 13 Dec 2021 06:06:05 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 21D9727BBE9 for ; Mon, 13 Dec 2021 06:06:04 +0000 (GMT) Received: from localhost ([::1]:44928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTL-0004pE-7n for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSO-0003ca-FL for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSO-0007YZ-77 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSO-0002dE-2Z for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 28/45] gnu: Add node-addon-api. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754649899 (code B ref 51838); Mon, 13 Dec 2021 06:05:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:24 +0000 Received: from localhost ([127.0.0.1]:53781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRk-0002Za-Fp for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:24 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:45612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRf-0002Yy-Kt for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:19 -0500 Received: by mail-ua1-f47.google.com with SMTP id ay21so27252175uab.12 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I1oJY3wEWEJBJRIbnxgfEGPFrQ9yStZqSgBvISDkYWo=; b=ejaUuQp9wO2+fOIirJ+p8aEpiifDPseFeQZsIBimkXTCNylWM5TOQjSGnTBrzmiqRi uRiIZ4uWxR8Y/clDf8Y7CWhzIHA1NrbQH9BwW7JuOqBTpEwcCH0WulIg9vJIZ5/9Odv/ nCHftE18ZGYpTgMVyI/1A6FveFdV7SCEoDekjrP3VdqvFQG3cSFUCwJn+YHtxo97QyCP XmjFVlC/oDBX39LjCm4x7LpzkFju0LY595vgrRdWE6HjNuMEbrSEE57fAtDrEBgpKUwj c/xzNQnt4skz5g3FNRgvY3w523u8K/P8x3dpsi+uxEV8JqXsPya4ohiyUBDIODQaUiIk lkdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I1oJY3wEWEJBJRIbnxgfEGPFrQ9yStZqSgBvISDkYWo=; b=5Z3qQ82oELJ1qAiUPl4cnvuV3le815SR4Hrs/IvKDHB0ji3PIWmgO4MP0tOXDO4WTV QgKr9NKRQJ6/rOnZYGJt7eFbCb7fU5nn47atmbKvx0F+ZDqxj7m3nblB9Ei/Qfc3sGg3 7JUwDV19aGmUuAklft1uhecgDEEN2R3mhfOtXRl6f3SyPEOyXo+xRU8u2oQ2f042wwNR mvN98T//KsvLUkSabrjrb9QDhxysZdS+X4P1wl/ImzX0wV/i8ukPWTBUAhYE+RSERN0j eDBGE1px8y1+EtdeCfHcNfuYIMFGCBB+clBgjNLOtdr9aS1caCYdkE8spJcSOUvjCAqG XSwQ== X-Gm-Message-State: AOAM530XuMGNnbwA7MWD6XtfmASsGJ8LbjJqgg49pVZVOdXZGGxxegOE QnuUW0lYYHLkVi2ybXT+jUL3iVDDVHYGP4+5ouE= X-Google-Smtp-Source: ABdhPJw/XMDkon/nrs+5unoLGoNXmAU1sQgUAWD9xmd1OhXO4Asl/Fp6iKarlKz/8rX/kTdYPcNclg== X-Received: by 2002:ab0:378b:: with SMTP id d11mr39304941uav.61.1639375454266; Sun, 12 Dec 2021 22:04:14 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id j145sm3716404vke.47.2021.12.12.22.04.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:14 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:50 -0500 Message-Id: <20211213060107.129223-29-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-addon-api): New variable. --- gnu/packages/node-xyz.scm | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 43cf9fe660..c7bc660134 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -22,6 +22,9 @@ (define-module (gnu packages node-xyz) #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages sqlite) + #:use-module (gnu packages python) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system node)) @@ -592,3 +595,63 @@ (define-public node-nan This project also contains some helper utilities that make addon development a bit more pleasant.") (license license:expat))) + +(define-public node-addon-api + (package + (name "node-addon-api") + (version "4.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nodejs/node-addon-api") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bhvfi2m9nxfz418s619914vmidcnrzbjv6l9nid476c3zlpazch")))) + (inputs + `(("python" ,python) + ("node-safe-buffer" ,node-safe-buffer))) + (build-system node-build-system) + (arguments + `(#:absent-dependencies + `("benchmark" + "bindings" + "clang-format" + "eslint" + "eslint-config-semistandard" + "eslint-config-standard" + "eslint-plugin-import" + "eslint-plugin-node" + "eslint-plugin-promise" + "fs-extra" + "path" + "pre-commit") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'skip-js-tests + ;; We can't run the js-based tests, + ;; but we can still do the C++ parts + (lambda args + (substitute* "package.json" + (("\"test\": \"node test\"") + "\"test\": \"echo stopping after pretest on Guix\""))))))) + (home-page "https://github.com/nodejs/node-addon-api") + (synopsis "Node.js API (Node-API) header-only C++ wrappers") + (description "This module contains header-only C++ wrapper classes which +simplify the use of the C based Node-API provided by Node.js when using C++. +It provides a C++ object model and exception handling semantics with low +overhead. + +Node-API is an ABI stable C interface provided by Node.js for building native +addons. It is intended to insulate native addons from changes in the +underlying JavaScript engine and allow modules compiled for one version to run +on later versions of Node.js without recompilation. The @code{node-addon-api} +module, which is not part of Node.js, preserves the benefits of the Node-API +as it consists only of inline code that depends only on the stable API +provided by Node-API. + +It is important to remember that @emph{other} Node.js interfaces such as +@code{libuv} (included in a project via @code{#include }) are not +ABI-stable across Node.js major versions.") + (license license:expat))) From patchwork Mon Dec 13 06:00:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35179 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3DA6A27BBE9; Mon, 13 Dec 2021 06:06:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9BFF127BBEA for ; Mon, 13 Dec 2021 06:06:08 +0000 (GMT) Received: from localhost ([::1]:45130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTP-0004yX-NQ for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSR-0003el-DA for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSP-0007ZB-I5 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSP-0002dc-BZ for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 29/45] gnu: Add node-sqlite3. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16393754959996 (code B ref 51838); Mon, 13 Dec 2021 06:05:05 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:55 +0000 Received: from localhost ([127.0.0.1]:53788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRz-0002a3-VY for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:55 -0500 Received: from mail-ua1-f54.google.com ([209.85.222.54]:45627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRj-0002Z7-QN for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:24 -0500 Received: by mail-ua1-f54.google.com with SMTP id ay21so27252382uab.12 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4QlSe+2vPMDGTufcnOYGxZK20Lpc6crlgOBa5eFV5z4=; b=ELcx9hEyutAB1wHbWzyzTxR9N1oBQIqzkyBt5/jIT9odoG9hzK2RnJl9QH9FmWw8hL xZ1EwtxUJKvKBRxG0nP5Hw4nuNRjduZKZHJBOoRn4DWoiymjErn488n919k05Z3xWLTu XKPgA0wWPNfOty4PbA07+N8m1WNgE93x+QbT5ePYBEN/LMiEwOlD9/5P3eALX4d6xhvd +9ZLeV1Q9U1zJXOuiHr3AevpuDc0FcvMGxL5MpoKKAh7i47pgo4kMwwGClEwxj9f7NlV kVu71OUsaPhpa/PkcvNpSwdNkJik8mwhlRkne0PNu7SQ3FA/SfnpWi3j6c5jSzHb4mN/ dQ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4QlSe+2vPMDGTufcnOYGxZK20Lpc6crlgOBa5eFV5z4=; b=IuIMc1W9HtCaaoCAzV3B65wApxXwaQXDV3iuh4IyoBOZ21fjUFF9jJV+CbLQnfvs6P AR41au3BIVDIkMiab+t4DQC0NgwyiIxyeW2vE8ncUrcCxKB2pfYpCaEe5xctTb+gkPV3 dLLcUEfYCd5wrlnv87xVVUeTBiwt+rg8xq0NEvj/m6MU8mLcokEAKIOHvJq0qvwA4Fab VL+sFSMN6yaui3+K+uusUl7xnDlRmh7e7D9YV1FuD78OrQ4qgiYecFRf3KgOODIuWzBj 4QowHkKg8HMvoEr73OuT3+EWFm7y+tGD4nAyrNmItKuuMWtZ0tpdTamtRvG64sgWOAXu gYyA== X-Gm-Message-State: AOAM532ejvnG8Z2wGj6Ga9N1PDXpYPcTh6g4xzSp2uAEdq4KU3wPKixo Kx8/D79P9xFK8Deb2Bg8LLoHQhUiMiBGzz+7buQ= X-Google-Smtp-Source: ABdhPJy+Ts/lrPhHTOiu0Q1WSKYXB0wXlHQ7GCSIBoDsg/e1EEXiu/jza/gNYXJXkpN+8M4+CYssYw== X-Received: by 2002:a67:e44e:: with SMTP id n14mr25859999vsm.55.1639375458411; Sun, 12 Dec 2021 22:04:18 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id e13sm3694595vkd.21.2021.12.12.22.04.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:18 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:51 -0500 Message-Id: <20211213060107.129223-30-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-sqlite3): New variable. --- gnu/packages/node-xyz.scm | 132 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index c7bc660134..d1bb236186 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -655,3 +655,135 @@ (define-public node-addon-api @code{libuv} (included in a project via @code{#include }) are not ABI-stable across Node.js major versions.") (license license:expat))) + +(define-public node-sqlite3 + (package + (name "node-sqlite3") + (version "5.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mapbox/node-sqlite3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sbbzzli282nxyfha10zx0k5m8hdp0sf3ipl59khjb7wm449j86h")) + (snippet + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + ;; unbundle sqlite + (for-each delete-file-recursively + (find-files "deps" + (lambda (pth stat) + (gzip-file? pth))))))))) + (inputs + `(("node-addon-api" ,node-addon-api) + ("python" ,python) + ("sqlite" ,sqlite))) + (build-system node-build-system) + (arguments + `(#:tests? + #f ; FIXME: tests depend on node-mocha + #:modules + ((guix build node-build-system) + (guix build json) + (srfi srfi-1) + (ice-9 match) + (guix build utils)) + #:absent-dependencies + `(;; Normally, this is "built" using @mapbox/node-pre-gyp, + ;; which publishes or downloads pre-built binaries + ;; or falls back to building from source. + ;; Here, we patch out all of that and just build directly. + ;; It would be better to patch a version of @mapbox/node-pre-gyp + ;; that always builds from source, as Debian does, + ;; but there are a number of dependencies that need + ;; to be packaged or removed. + "@mapbox/node-pre-gyp" + "node-pre-gyp" ;; deprecated name still used in some places + "aws-sdk" + "@mapbox/cloudfriend" + ;; Confusingly, this is only a dependency because of + ;; @mapbox/node-pre-gyp: with that removed, + ;; npm will use its own copy: + "node-gyp" + ;; These we'd like, we just don't have them yet: + "eslint" + "mocha") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'npm-config-sqlite + ;; We need this step even if we do replace @mapbox/node-pre-gyp + ;; because the package expects to build its bundled sqlite + (lambda* (#:key inputs #:allow-other-keys) + (setenv "npm_config_sqlite" (assoc-ref inputs "sqlite")))) + (add-after 'install 'patch-binding-path + ;; We replace a file that dynamic searches for the addon using + ;; node-pre-gyp (which we don't have) with a version that + ;; simply uses the path to the addon we built directly. + ;; The exact path is supposed to depend on things like the + ;; architecture and napi_build_version, so, to avoid having + ;; hard-code the details accurately, we do this after the addon + ;; has been built so we can just find where it ended up. + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion + (string-append (assoc-ref outputs "out") + "/lib/node_modules/sqlite3/lib") + (match (find-files "binding" "\\.node$") + ((rel-path) + (with-atomic-file-replacement "sqlite3-binding.js" + (lambda (in out) + (format out "var binding = require('./~a');\n" rel-path) + (display "module.exports = exports = binding;\n" out)))))))) + (add-after 'patch-dependencies 'avoid-node-pre-gyp + (lambda args + ;; We need to patch .npmignore before the 'repack phase + ;; so that the built addon is installed with in the package. + ;; (Upstream assumes node-pre-gyp will download a pre-built + ;; version when this package is installed.) + (substitute* ".npmignore" + (("lib/binding") + "#lib/binding # <- patched for Guix")) + ;; We need to remove the install script from "package.json", + ;; as it would try to use node-pre-gyp and would block the + ;; automatic building performed by `npm install`. + (with-atomic-file-replacement "package.json" + (lambda (in out) + (let* ((js (read-json in)) + (alist (match js + (('@ . alist) alist))) + (scripts-alist (match (assoc-ref alist "scripts") + (('@ . alist) alist))) + (scripts-alist + ;; install script would use node-pre-gyp + (assoc-remove! scripts-alist "install")) + (alist + (assoc-set! alist "scripts" (cons '@ scripts-alist))) + (binary-alist (match (assoc-ref alist "binary") + (('@ . alist) alist))) + (js (cons '@ alist))) + ;; When it builds from source, node-pre-gyp supplies + ;; module_name and module_path based on the entries under + ;; "binary" from "package.json", so this package's + ;; "binding.gyp" doesn't define them. Thus, we also need + ;; to supply them. The GYP_DEFINES environment variable + ;; turns out to be the easiest way to make sure they are + ;; propagated from npm to node-gyp to gyp. + (setenv "GYP_DEFINES" + (string-append + "module_name=" + (assoc-ref binary-alist "module_name") + " " + "module_path=" + (assoc-ref binary-alist "module_path"))) + (write-json js + out))))))))) + (home-page "https://github.com/mapbox/node-sqlite3") + (synopsis "Asynchronous, non-blocking SQLite3 bindings for Node.js") + (description + "The Node.js add-on @code{node-sqlite3} provides a set of a asynchronous, +non-blocking bindings for SQLite3, written in modern C++ and tested for memory +leaks.") + (license license:bsd-3))) From patchwork Mon Dec 13 06:00:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35171 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C8D7A27BBEA; Mon, 13 Dec 2021 06:05:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 09B1C27BBE9 for ; Mon, 13 Dec 2021 06:05:31 +0000 (GMT) Received: from localhost ([::1]:43434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweSo-0003k0-6w for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:05:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSP-0003dv-CG for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSP-0007Yo-1Y for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSO-0002dS-T8 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 30/45] gnu: Add node-file-uri-to-path. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937549510003 (code B ref 51838); Mon, 13 Dec 2021 06:05:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:55 +0000 Received: from localhost ([127.0.0.1]:53794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSF-0002b7-Am for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:55 -0500 Received: from mail-vk1-f179.google.com ([209.85.221.179]:44944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRn-0002ZS-Un for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:40 -0500 Received: by mail-vk1-f179.google.com with SMTP id u68so9670746vke.11 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wuTOYhWFuCzBnnewEXtbvxybDm7Hg+tS8zFvFoCfClg=; b=RjDXsV0N2UhzEG2A+Y7cZ3DHfhVdlWgnWjZfXhSBqsLrpU6lJKsOmwg7+NWdb6DBnr AkyN5m0pLKXSq65CjZYLS+h4TGvRR9w6TMR2Fm/eAwvxv8r4ixcTPB+wwS2Vx7rkTeoN OttlaRjFHmW5ZnSWhWxv0s1vVVc/+JeA+Xv/HnAsg64e0l9OaMYUt3RPc8foyAylkHKZ RkG5fff3veZT6Ttan6su4N/yojEbiDKXsgIk6KeLg3RUFdJbSNw+lEClKnvG0KopmtK4 lKP6TQWebxvCYH7PV/LcvhsKKEkBnpCNdsZBaLExnqPVeApRQ56SRcQMhzY37Gch+nA+ lRRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wuTOYhWFuCzBnnewEXtbvxybDm7Hg+tS8zFvFoCfClg=; b=dIiFZBV3TQs93jHTOYQZAznCzopbK8Ys/cou43gew4LRp3DFAhe4W4cgaDT/0ndtrL 2uO5IYFZDhc5Kis0dD18kwMWyW7u1cD4Oxc5221cNH1OtW/8HMLwvHpzDyYhzD7K/9DK d2Kvey6RcFR1IWzfQMsvviZpzKHekRL+W0VV5Ba0QjwfnMpD/z15J0GN9/sDF0DX1UD7 BCoDFnaHRZNm8vaaolS1EjcKOwu7cxGjrSAIb94GWeE4d6j+Lj/GY0MbnTcVI+jCX+po zAqdJog1xlElgT3XJqA1bWcpqBr9ciudDQJtBJ8uf6Hp0fJ8Hl2/SrJXvOporyBKAesj vIuw== X-Gm-Message-State: AOAM533EzTe4/uvXrc+kIy9uWKrG5sf+1jAPKwI3SPknkHqvaTuK/Ohh TeH5FRQ7rxw8wffXmjl+o73p+LAWyUreIrZQYfc= X-Google-Smtp-Source: ABdhPJw56Ddj6Fmpp8YyeqtWUyzNzf1sW4EijBuLAfbpQUkzOWajSC1asVeATnaU7PT0xoqRpXfnWA== X-Received: by 2002:a05:6122:1782:: with SMTP id o2mr30373226vkf.3.1639375462566; Sun, 12 Dec 2021 22:04:22 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id j15sm3703933vsj.32.2021.12.12.22.04.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:22 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:52 -0500 Message-Id: <20211213060107.129223-31-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-file-uri-to-path): New variable. --- gnu/packages/node-xyz.scm | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index d1bb236186..bdfe71a1f3 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -24,6 +24,7 @@ (define-module (gnu packages node-xyz) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages sqlite) #:use-module (gnu packages python) + #:use-module (gnu packages web) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix git-download) @@ -787,3 +788,57 @@ (define-public node-sqlite3 non-blocking bindings for SQLite3, written in modern C++ and tested for memory leaks.") (license license:bsd-3))) + +(define-public node-file-uri-to-path + (package + (name "node-file-uri-to-path") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TooTallNate/file-uri-to-path") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08l779az44czm12xdhgcrnzpqw34s59hbrlfphs7g9y2k26drqav")))) + (native-inputs + `(("esbuild" ,esbuild))) + (build-system node-build-system) + (arguments + `(#:absent-dependencies + `("@types/mocha" + "@types/node" + "@typescript-eslint/eslint-plugin" + "@typescript-eslint/parser" + "cpy-cli" + "eslint" + "eslint-config-airbnb" + "eslint-config-prettier" + "eslint-import-resolver-typescript" + "eslint-plugin-import" + "eslint-plugin-jsx-a11y" + "eslint-plugin-react" + "mocha" + "rimraf" + "typescript") + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (copy-recursively "src" "dist") + (invoke (string-append + (assoc-ref (or native-inputs inputs) "esbuild") + "/bin/esbuild") + "dist/index.ts" + "--outfile=dist/src/index.js" + "--format=cjs" + "--sourcemap" + "--platform=node")))) + #:tests? #f)) + (home-page "https://github.com/TooTallNate/file-uri-to-path") + (synopsis "Convert a @code{file:} URI to a file path") + (description "This package provides a function to convert a @code{file:} +URI to a file path. It accepts a @code{file:} URI and returns a file path +suitable for use with the @code{fs} module functions.") + (license license:expat))) From patchwork Mon Dec 13 06:00:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35185 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id ABFDF27BBE9; Mon, 13 Dec 2021 06:07:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EC15B27BBEB for ; Mon, 13 Dec 2021 06:07:28 +0000 (GMT) Received: from localhost ([::1]:46584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweUi-00062k-1S for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:07:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSR-0003ek-Ce for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSQ-0007ZG-3r for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSP-0002dp-VT for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 31/45] gnu: Add node-bindings. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937549610010 (code B ref 51838); Mon, 13 Dec 2021 06:05:05 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:56 +0000 Received: from localhost ([127.0.0.1]:53796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSF-0002bI-Od for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:56 -0500 Received: from mail-vk1-f175.google.com ([209.85.221.175]:36507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRr-0002Zk-Sz for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:40 -0500 Received: by mail-vk1-f175.google.com with SMTP id b192so9718732vkf.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/6Xhi4KFgYER1BuQweWzYcvvzBS2NiabqGoGq9oQsjY=; b=kI17OpUzFO/JyNh7Z6KDDn3x8bO9RQy5+QkCEBlr9WOePYZUNzH99Z8wyxKiOeOPna 5j189thZ+ODZppijK1OHDORtdfT66BC8mtKQZ7zQMgHmUTTYy+COutURG4J3Fjj+nDGT enhnKQxagKym+lPdc0UvaJ3UxU1WAz+OhIGQYqcTL7+WNEQ55BO1f0pL1cd4KuP4ZCr9 JwF8GbU0EfF5qDaoPwBhr+wu0eBs1Q15j270CxmH7dGTda78ruESHhbjgGXaBjFUfcd9 lFY+8vuuuWbEFd65/d5CqI4U0SsHviKTMd9KS+VqFbCjkYJYyLhTtSUUxBrmTN8lSy0m qpKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/6Xhi4KFgYER1BuQweWzYcvvzBS2NiabqGoGq9oQsjY=; b=Td8UV4AUSjDHO8zQECKeuPoYEUfw+eDiLGIZkutEpYMXqB9Ua3+4h8Xa6Msu4ubcGE zTk0YUL4VYhz7wnJ4gEVnOjgv2kuSedgVUPCNFbJUUPT7oE1pqMpErZ5KK3ZEt6vgMnA LO6evrMtkk0aPeqOTVSTt8Tbp/5tNtvXp6NV1ouL2EMmVFwfeLo/dnCKoJ/lcqTSg6Tk /co2ejC048QhSu377rsRW4N5m+k7KHMTj3OkN78l+v693/4xYJKwUrZE8MI7JPvEZvte hbAeQ2iCOgPE34nb3HQeqqzYAuenzvT6w52nLm1cNzI2EWmVDpmwWL/6DGmp5+AGvybJ vnYA== X-Gm-Message-State: AOAM53314mEKxk/M41Q+BE1OMpz9CwMfuax3gSvq38J4JmyfvnU09EzT r0nuNXFihUBSf3i4IEDjzY36YIA2dJgrdfj+puE= X-Google-Smtp-Source: ABdhPJz1x4Guo8tYzIZoI4ndIiqnmTYYDhg7oXDztb1MTIaxshRu7wqh8SjPm3RxzonMzKaIlmrQDA== X-Received: by 2002:a05:6122:2005:: with SMTP id l5mr30465590vkd.4.1639375466565; Sun, 12 Dec 2021 22:04:26 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id b13sm3771494vkn.38.2021.12.12.22.04.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:26 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:53 -0500 Message-Id: <20211213060107.129223-32-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-bindings): New variable. --- gnu/packages/node-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index bdfe71a1f3..021bc81403 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -842,3 +842,29 @@ (define-public node-file-uri-to-path URI to a file path. It accepts a @code{file:} URI and returns a file path suitable for use with the @code{fs} module functions.") (license license:expat))) + +(define-public node-bindings + (package + (name "node-bindings") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TooTallNate/node-bindings") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "100gp6kpjvd4j1dqnp0sbjr1hqx5mz7r61q9qy527jyhk9mj47wk")))) + (inputs + `(("node-file-uri-to-path" ,node-file-uri-to-path))) + (build-system node-build-system) + (arguments + ;; there are no tests + `(#:tests? #f)) + (home-page "https://github.com/TooTallNate/node-bindings") + (synopsis "Help for loading your native module's @code{.node} file") + (description "This is a helper module for authors of Node.js native addon +modules. It is basically the ``swiss army knife'' of @code{require()}ing your +native module's @code{.node} file.") + (license license:expat))) From patchwork Mon Dec 13 06:00:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35189 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 69D4227BBEA; Mon, 13 Dec 2021 06:08:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2D8A927BBE9 for ; Mon, 13 Dec 2021 06:08:02 +0000 (GMT) Received: from localhost ([::1]:47402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVF-0006cW-9I for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSS-0003eu-1t for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSR-0007a8-Pu for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSR-0002eK-KM for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 32/45] gnu: Add node-segfault-handler. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937549910048 (code B ref 51838); Mon, 13 Dec 2021 06:05:07 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:59 +0000 Received: from localhost ([127.0.0.1]:53805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSJ-0002bt-AJ for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:59 -0500 Received: from mail-vk1-f174.google.com ([209.85.221.174]:33716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRw-0002Zr-0t for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:54 -0500 Received: by mail-vk1-f174.google.com with SMTP id h1so9735040vkh.0 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GsoQQebLlBzr7ablElkGa+Js4eAh4ZVd1bbBbcYAa80=; b=f+COxHvbATUlWrNQaXN3T7giukMgKahT/78Nvp4dhRZYMZgzV8yxKX5nUcyVqTx/Mv sY1wK6MDfXmhbMcXbxwrPO6nnfiKu7HaDicuKV8fzQ09PA04RpQzjjHFFU9Mw9vAxOo7 OGdk4C6AtTRm88XtxmTW02BUrErfIKyVuF2YjO4Yd41p4NC0Wf+GFxP9s6me/bDXqo9Q l0YepzAF3Q+lGf6KbRnnjJgrDAca3lZy5LkIAwIuzG8x1GTHdqM0r4dY5gLGOVyO1l+7 TnKWHEPULGK9zbK7VrOszBULMErUvvlnELRquV8ulb3X28ro41e2ZOY6371paiwN8nkG jUAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GsoQQebLlBzr7ablElkGa+Js4eAh4ZVd1bbBbcYAa80=; b=6x4OEo7cQ07He695pENaaD88rLJN/nbJr4S9WGQdwfxO6lfaKd5ISrC1klSvcNheWj GHllxGZDR8Lv3J6/GGll0b+CAlp6dAAJgHSqa3pl7csE4Cd8iFVAfq1fTk2BpJjJ6SrW R5dui2hm00WnPBewxjbozgtv43WQkN0wHZGV3JY9FjX0t3TyIcfYQ+gYri6jO7eEk1nc CBSFeiL4HHD+ckXcki+ORHEYPgSujJXNBuhK1fEjD/LT4LAxcVoZbFABH7DUmOk1o9B2 wVCmtOs1e9k5k6AWFP+CqAdokMO59N1VnL4ty7nAwHzjL350+T9uXO5jFl9zEh5Te+03 v3VQ== X-Gm-Message-State: AOAM531/muhVTpPz+5fhG5yqt3AOe6B6usoauSe69JNlVwejYKFO06Z9 wt/EYjqJsHLGazjv4WnlMgqBEv6AM7aq6F7bJEI= X-Google-Smtp-Source: ABdhPJxbxG+U967+K3KFCpbT2+wpgyYqxBBqfFRK/ObsHk43EBKXhfiUIjU83DquldlnSyGlfBq7Tw== X-Received: by 2002:a05:6122:894:: with SMTP id 20mr30092439vkf.23.1639375470609; Sun, 12 Dec 2021 22:04:30 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id b11sm3446356vsp.6.2021.12.12.22.04.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:30 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:54 -0500 Message-Id: <20211213060107.129223-33-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-segfault-handler): New variable. --- gnu/packages/node-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 021bc81403..b63cd46fdd 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -868,3 +868,33 @@ (define-public node-bindings modules. It is basically the ``swiss army knife'' of @code{require()}ing your native module's @code{.node} file.") (license license:expat))) + +(define-public node-segfault-handler + (package + (name "node-segfault-handler") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ddopson/node-segfault-handler") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07nbw35wvrr18kmh8f388v4k5mpjgyy0260bx0xzjdv795i3xvfv")))) + (native-inputs + `(("python" ,python))) + (inputs + `(("node-bindings" ,node-bindings) + ("node-nan" ,node-nan))) + (build-system node-build-system) + (arguments + ;; there are no tests + `(#:tests? #f)) + (home-page "https://github.com/ddopson/node-segfault-handler") + (synopsis "Catches @code{SIGSEGV} and prints diagnostic information") + (description "This package is a tool for debugging Node.js C/C++ native +code modules and getting stack traces when things go wrong. If a +@code{SIGSEGV} signal is raised, the module will print a native stack trace to +both @code{STDERR} and to a timestamped file.") + (license license:bsd-3))) From patchwork Mon Dec 13 06:00:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35190 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AAB2D27BBEC; Mon, 13 Dec 2021 06:08:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 36D4627BBEA for ; Mon, 13 Dec 2021 06:08:29 +0000 (GMT) Received: from localhost ([::1]:47970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVg-00071Q-9A for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweST-0003g1-A6 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSS-0007aI-6O for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSS-0002eR-0r for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 33/45] gnu: Add node-ms. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937550010055 (code B ref 51838); Mon, 13 Dec 2021 06:05:07 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:00 +0000 Received: from localhost ([127.0.0.1]:53807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSJ-0002c1-KR for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:00 -0500 Received: from mail-ua1-f49.google.com ([209.85.222.49]:43752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweRz-0002Zv-V1 for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:55 -0500 Received: by mail-ua1-f49.google.com with SMTP id n9so8334876uaq.10 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Po03U5hKCH+O6vSfkBqyiv3/aJnr/Byyr90CAG35pOk=; b=g6zEU6YG2jZhjyAhP1bK5Kg9Q/Cn0o9cp7L8bDkUyv4uM9wqUNJ0My5Glr7vpbayz7 Wr3EAfIbyF7fMcxZ80U6lR8M415VgcJgeGbEh3Bt9stWlUB+6rsQteFtsQQjfmsYSEae jUQNB6yxJqfRSPN9dSr9cxN0laxr++YohQ6ZOzm9nAuPgTE8n1m86rfIsK/zBGoBwS0k eDZ5nl+TC/YFmc5NzW+zu5dFZxbdylRzJTKEQ35FYUo6M1sznVKe2j9DySkrPLB1EIP1 nmuTyaC2SQCnOTIig0Dhim+PHLVsRE5DVTHHQ1aY4wg89139n0nrfVoTvAflJfZjBLce I74A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Po03U5hKCH+O6vSfkBqyiv3/aJnr/Byyr90CAG35pOk=; b=IthYs3VbHfE4KEHD5E0IWAgwGDFEKjcRlaWF0DsqkJvA8TIVHo17TO/sSXoA+yFkH0 aQfMKvja30XSRqwgpcgOVrP2Kjy5E3NCFnTxZP8Uzmc6wEEYygfHbEc3AobrufH2Uv4C JdPwEkoAAxMJ1rsgcjK8l70B9mV7ZLQY1ebtFyUFf4Ab9/eMKrFxbxaaCK43S3ir/eJH 0SfFP/rw8pGRX9vf4QvNoqB9P/4PalmpciTtJHNFTvCqrANidRZe80ZFTCs48koV93l+ Msjjl4o2/8mV5DIomi+j8ht6pYhVy+WBhBa5n3+QGGSi2iWnG2rCkcu3N8+wSjmOQtHv mD4w== X-Gm-Message-State: AOAM530Ty/O+HNK9XNQwH3hhqSMWy9ITQghaAmj9irEuO9K/gh7Lon5e /Ww1IJd06X+jUcE+VB7ubWg9+jCFULwKFl13RjQ= X-Google-Smtp-Source: ABdhPJx3C5VhVgp5eRvktD56GvzfijZnqu1R6Z9tLUzq7RwY9PGAxSmpjtCVar5AUQqPQpXpDcUe8Q== X-Received: by 2002:a67:fa12:: with SMTP id i18mr25098637vsq.49.1639375474601; Sun, 12 Dec 2021 22:04:34 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id i7sm3721139vkh.24.2021.12.12.22.04.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:34 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:55 -0500 Message-Id: <20211213060107.129223-34-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-ms): New variable. --- gnu/packages/node-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index b63cd46fdd..82ac537133 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -898,3 +898,46 @@ (define-public node-segfault-handler @code{SIGSEGV} signal is raised, the module will print a native stack trace to both @code{STDERR} and to a timestamped file.") (license license:bsd-3))) + +(define-public node-ms + (package + (name "node-ms") + (version "2.1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vercel/ms") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1l74kmmwffmzdz38lli0v5mdb9p9jmsjxpb48ncknqw2n74cgf08")))) + (build-system node-build-system) + (arguments + `(#:absent-dependencies + `("eslint" + "expect.js" + "husky" + "lint-staged" + "mocha" + "prettier") + #:tests? #f)) + (home-page "https://github.com/vercel/ms") + (synopsis "Tiny millisecond conversion utility") + (description "Use this package to easily convert various time formats to +milliseconds. + +Features: +@itemize @bullet +@item +Works both in Node.js and in the browser. +@item +If a number is supplied to @code{ms}, a string with a unit is returned. +@item +If a string that contains the number is supplied, it returns it as a +number (e.g. it returns @code{100} for @code{'100'}). +@item +If you pass a string with a number and a valid unit, the number of +equivalent milliseconds is returned. +@end itemize") + (license license:expat))) From patchwork Mon Dec 13 06:00:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35183 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 23C5427BBEA; Mon, 13 Dec 2021 06:06:56 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DB91227BBE9 for ; Mon, 13 Dec 2021 06:06:55 +0000 (GMT) Received: from localhost ([::1]:46048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweUA-0005c6-QR for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSR-0003em-D2 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSQ-0007ZH-Ge for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSQ-0002dw-BX for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 34/45] gnu: Add node-debug. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937549610018 (code B ref 51838); Mon, 13 Dec 2021 06:05:06 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:56 +0000 Received: from localhost ([127.0.0.1]:53799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSG-0002bP-3c for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:56 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:36541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweS3-0002a0-St for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:44 -0500 Received: by mail-ua1-f47.google.com with SMTP id r15so27350994uao.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e0AuYnxbhshMPYQONvciTF84/2mq59N4FQ8rklVmWuo=; b=e3aBSK2TuhFCOjXa/iLdcycy9YRKvVJOudgu0lLXBHdiF7vhqxrDtt55IhA6sGfZZt Cvatw0aNe1Nul6kuPsjLKVZXMCfIOKTHIFv7i77dCBnCGb66g3L9VXq/hizJ9Pg/RQm5 6wjVu6tcjYnV8aCeyuo5H0zWa7Z1f2jsqZfDJHZfca1I/DR9VxJAZERlNivPP0597hTz ZF7z9WLqvGWmYrQw49O92RSXn57+8KR+ysXGc7QKfcQjiYcgtewxzmfobWBzF407pEZo bSU8+ozLWXqEojzjE2hbudgYjzHPndxB1jDio+XN54lxVr1ZJIecNayF7/IXDNma+3jO ANGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e0AuYnxbhshMPYQONvciTF84/2mq59N4FQ8rklVmWuo=; b=DWu4Ne1g96SuQzQNxJ+ji2cH9yq6XmNjgLwAVh3ItJ/VjxsUcld0EshfuvCh5Px4Oa mnUmg8q2MS1TDCClRUWKufArRQm97GjHmmRVPj4IlzeL4VFsJ2Y5WzFQJx0rBnZds5T8 Ele4nBNZirdiziR2nLSXsXL4YKZsNhYs7KVRqFk0qwyh5w01+XFk1mQM0LWkZSrB56fO nUKtm5llscEMw71/GUKM7JK6lVg+kfQCDlKyvsNLQqpdTBMBYgkPyo3uwW8n+umld5WA +OoNJN6pxbR3AGBA6CYaBtpaGLs+2bajX5zwJ/YIkmGrTwTM8jx6h+jAl9qmQ7w+EAzx +fvg== X-Gm-Message-State: AOAM530UOxB3c8ET0/AxMN9g/10macV1A42okizcGuiA3WNIzz6viHA0 Xr7tCb5MS+GkfkMIWLYbze/R0xDvUokErb1Hguk= X-Google-Smtp-Source: ABdhPJzEAEB1nzwpqMzg2KN//9t7GNY4ir4mNGAiw9/LOabrZchdCDTvmFgzSphlJBtNFH4blMAY4Q== X-Received: by 2002:a05:6102:2274:: with SMTP id v20mr26495380vsd.40.1639375478576; Sun, 12 Dec 2021 22:04:38 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id p46sm4012368uad.16.2021.12.12.22.04.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:38 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:56 -0500 Message-Id: <20211213060107.129223-35-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-debug): New variable. --- gnu/packages/node-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 82ac537133..782c66e160 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -941,3 +941,45 @@ (define-public node-ms equivalent milliseconds is returned. @end itemize") (license license:expat))) + +(define-public node-debug + (package + (name "node-debug") + (version "4.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/debug-js/debug") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ji0dmdl2xkgxqxvd6xjy7k3mmknmhvqjgc40vyly9ka1mpf20vb")))) + (inputs + `(("node-ms" ,node-ms))) + (build-system node-build-system) + (arguments + `(#:absent-dependencies + `("brfs" + "browserify" + "coveralls" + "istanbul" + "karma" + "karma-browserify" + "karma-chrome-launcher" + "karma-mocha" + "mocha" + "mocha-lcov-reporter" + "xo" + "supports-color") + #:tests? #f)) + (home-page "https://github.com/debug-js/debug") + (synopsis "Lightweight debugging utility for Node.js and the browser") + (description "A tiny JavaScript debugging utility modelled after Node.js +core's debugging technique. orks in Node.js and web browsers. + +The @code{debug} module exposes a function; simply pass this function the name +of your module, and it will return a decorated version of @code{console.error} +for you to pass debug statements to. This will allow you to toggle the debug +output for different parts of your module as well as the module as a whole.") + (license license:expat))) From patchwork Mon Dec 13 06:00:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35187 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A847227BBEA; Mon, 13 Dec 2021 06:07:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 67D6327BBE9 for ; Mon, 13 Dec 2021 06:07:59 +0000 (GMT) Received: from localhost ([::1]:47338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVC-0006ZQ-Hf for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:07:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSR-0003ep-E0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSQ-0007ZI-Vz for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSQ-0002e4-P0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 35/45] gnu: Add node-serialport-binding-abstract. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937549710024 (code B ref 51838); Mon, 13 Dec 2021 06:05:06 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:57 +0000 Received: from localhost ([127.0.0.1]:53801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSG-0002bZ-GY for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:56 -0500 Received: from mail-vk1-f177.google.com ([209.85.221.177]:45804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweS8-0002aQ-2b for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:48 -0500 Received: by mail-vk1-f177.google.com with SMTP id m19so9678266vko.12 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vnfbjzUbHCstanzoBzAR9i1wdpF3nySyMNt7HoLHw2c=; b=HRkiVVphKfVd49ov6Dm6t9QObEUQ5ZEdEuhFRbGLMMWNYX8VcW8/M9AHBY5IOzZm4r DkLpHyRNPJEhH2xTiUIJBY74y5qSzhNcy/9QPNm3NEnzKRASbAV65P++L+u/gbJReoL7 f/paq+0n3I3ycHj0gl9HlgehxgLgrb1Tzs/9yywYsMt8vK+vuGgadft9ugs+mwCN66pA Bj7eJ95TGsuLnPCtgIA2Cb7K6H2pRzJ0STC3pBdi1kK8RML0gX+PnfQylM+l68zmqaet GRFbIis7M4gJ37aorjAr76MQOcMrPN/8UvE7wB0aDYcaf1S3a0pXInqatcnqia1LmWoU McXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vnfbjzUbHCstanzoBzAR9i1wdpF3nySyMNt7HoLHw2c=; b=gk4Ek/9dpk6XhuANjuxcN4Xwq3moCUoQ14/VoRY4Ff4mZBG4vfq/O6nGX1qWNYSeiY R2rR9fR5/UiIdFIPMUbW5P3Wsay3oJnYoKGw+xFsdN/upMamZYCiEDO7Jn4K2LxeDOVu o4POmYmYUzqpr/gzmqCCOmqHSeeCAFeBm+Eq1sc4U8EyVJZEDLaGA2aIp5uPTORD489c NmjRVnRUyvoxj0FLa8QRrbIZ9bSiqIv2XHSQkZoI7HQnpZVX8KHcnWAI3NtcQXV4hKz5 /p+aDyc5uHZE0Tf9Lh59rvMlAgDc5kMzB/oTTxS51Xm7Ex0+mdrsWvY3VfzwGFbq8sir hJzQ== X-Gm-Message-State: AOAM530jit7MDqqbG75mui6FoyswovEUPkWm48obBsnrskWQv6jWm7cE mWXDPzEbg2/to88OGmip2xzmqUrN4DmbZqn5ulQ= X-Google-Smtp-Source: ABdhPJwZSdR2onDd66WC69SXzeIKxriBOMUYtkMtNUn4/quGES+tZ8ImScjGjs0cdZN7RUmezdRjSg== X-Received: by 2002:a1f:ee07:: with SMTP id m7mr29925325vkh.27.1639375482628; Sun, 12 Dec 2021 22:04:42 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id j15sm3704041vsj.32.2021.12.12.22.04.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:42 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:57 -0500 Message-Id: <20211213060107.129223-36-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-binding-abstract): New variable. --- gnu/packages/node-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 782c66e160..d821790ecb 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -983,3 +983,37 @@ (define-public node-debug for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.") (license license:expat))) + +(define-public node-serialport-binding-abstract + (package + (name "node-serialport-binding-abstract") + (version "9.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/serialport/node-serialport") + (commit "v9.2.7"))) + (file-name (git-file-name "serialport-monorepo" version)) + (sha256 + (base32 "0x7zm59a5ff5yygjyw15xs3r5m3rb8av1yfrh4snn44mrwq87yg8")))) + (inputs + `(("node-debug" ,node-debug))) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/binding-abstract")))) + #:tests? #f)) + (home-page "https://serialport.io") + (synopsis "Abstract base class for Node SerialPort bindings") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +This package provides the @code{AbstractBinding} class, the base for all Node +SerialPort bindings. You wouldn't use this class directly, but instead extend +it to make a new binding for a different platform or underling technology.") + (license license:expat))) From patchwork Mon Dec 13 06:00:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35181 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0C22F27BBEA; Mon, 13 Dec 2021 06:06:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C8B5A27BBE9 for ; Mon, 13 Dec 2021 06:06:25 +0000 (GMT) Received: from localhost ([::1]:45754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweTg-0005PV-Tg for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:06:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweSR-0003et-PX for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSR-0007Zw-Gg for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSR-0002eB-7k for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 36/45] gnu: Add node-serialport-parser-delimiter. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937549910040 (code B ref 51838); Mon, 13 Dec 2021 06:05:07 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:04:59 +0000 Received: from localhost ([127.0.0.1]:53803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSI-0002bq-VY for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:59 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:43772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSC-0002aa-0Y for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:52 -0500 Received: by mail-ua1-f47.google.com with SMTP id n9so8335399uaq.10 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FDG2I7aDnM1yPbSTw1bniogNXgwAhacbqIfXmXqdAC4=; b=EDZgXWLU3+m6QUcUm3+Y7tI54x1nYTfUZiojjI5+MiEz7sdJkc3zHuMd4P2k/CPxL+ MA1QhyCWw631Jj8z6E+YDpG3UFCpncQ3r6o0SrGsMGpW4i1zjFrHvIB+PK5c9hIIyl0o aApkQk2PSJVL7Qx7UPHAhOvztpNbdX2cb1lU6Av2GbWMntwFQKJ0IQUpaiYsNMX0M8bw UdrTjXDZstasCA3/pWvPFpdDamY8mmS3mI6P1DQ6X40bi1usuOawV+47mMLXDAaE+caY Y+mlqAB9WRVciSc/7ar6Qah39B3PZTqKv8P5YDUj88YveUWLxNEfEgn/KVkKehkvaz7u dpGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FDG2I7aDnM1yPbSTw1bniogNXgwAhacbqIfXmXqdAC4=; b=QiI+7zSX5M+LQcRFq9RU+d3+NW2cyZE4APJZNZGB/I1SP6RnaktJVnaY5RU55fu5Td eetwNWxMOiK4NsAFJm5Xr6I/sqKZyZSsPmhDg4mJUZVXKImY8r4anLTglm3tlfUviEJ6 vnWEhtSS1xqerMVgs6LjfZxSJxYQX0K+fg6MVi4FvEyPAOduOvFl0CaD5Jf2dA/Z5PNx rBJaH6y6DKXqcB1kmIdVVhrK9O36QMrgBMPJoefCrlnT4BbzhkTG3kc5/WB9FyhihgF2 pI9zGreS5HKbIL0BN2baaiPj7wcN01UuHXMzvlUB+gIKw/LpayRGfDt8vBmZF5rMRVoV efdA== X-Gm-Message-State: AOAM530bTq7yQfVFsK1z3EiNS4WuN2ZSo1jOCCvYFepHmcbb3M7sqRRs qhSp/GRcNWxOLkp1QLcRvvruW3f+VknulwW1ly0= X-Google-Smtp-Source: ABdhPJwvI2tvm6yewK7uzsmMeIC4Ux3SzwhqrGQruRuV9hIWhxKP3ycKX4EScXQwlu5sclimV5SCxQ== X-Received: by 2002:a67:df90:: with SMTP id x16mr25369442vsk.52.1639375486649; Sun, 12 Dec 2021 22:04:46 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id j15sm3964894vsp.8.2021.12.12.22.04.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:46 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:58 -0500 Message-Id: <20211213060107.129223-37-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-delimiter): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index d821790ecb..4e69fd146f 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1017,3 +1017,25 @@ (define-public node-serialport-binding-abstract SerialPort bindings. You wouldn't use this class directly, but instead extend it to make a new binding for a different platform or underling technology.") (license license:expat))) + +(define-public node-serialport-parser-delimiter + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-delimiter") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-delimiter")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to split data on a delimiter") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{Delimiter}, a parser that emits data +each time a specified byte sequence is received."))) From patchwork Mon Dec 13 06:00:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35192 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5215B27BBEA; Mon, 13 Dec 2021 06:08:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1B5A327BBE9 for ; Mon, 13 Dec 2021 06:08:42 +0000 (GMT) Received: from localhost ([::1]:48590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVt-0007S1-5L for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweST-0003fz-9W for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSS-0007aM-Iy for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSS-0002eY-Di for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 37/45] gnu: Add node-serialport-parser-readling. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937550010062 (code B ref 51838); Mon, 13 Dec 2021 06:05:08 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:00 +0000 Received: from localhost ([127.0.0.1]:53810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSK-0002c8-6V for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:00 -0500 Received: from mail-vk1-f174.google.com ([209.85.221.174]:36527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSG-0002am-0s for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:57 -0500 Received: by mail-vk1-f174.google.com with SMTP id b192so9719212vkf.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ba+tsJOVlqWy5oRYwOXFKh+Lk78JBhg3ybvcimvcfGg=; b=CaJf/7dEgQLCMyaXXExVQN/GUMu2mGXEV+zf4lPUR0TWd2CYZgKmD0RprMWkQmYQuF 8yXF8Rf+QUpkW/EvO1PlhfS3ALWK0mljKCuVE3AkDji5TUORC829cX5Wa4vx5fZze1n4 KU9ExGYFgfUWnb8/acgtPadBzC2UfxQxxkbtpDB3fB4EXVmfCtSytG4slN2oyg+fuX2L 23dNEtnfNIJIn+Na/NPNwU/4EPnRu2qw7WaZwgspjS+1AdVykodl4PWZZzJfz3MZwbc2 igvJmup2sHZTGj3sdkHpMdifDVb5krnx6Fx7iH/gMIVLEXY8yrSPjbIqVpk2VrK7i082 0kjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ba+tsJOVlqWy5oRYwOXFKh+Lk78JBhg3ybvcimvcfGg=; b=xbS7FzVWkmtA+Hz6FYGPTEenzU84eFBbdeLUj/Oj2QqOFRa/RYu4zpzI9jo1rkTNEQ l5m2geWZ0N+fVOKNe/0Wisx46j6Z6f9CDo+51rxvUw5WohZXhSbAmGm9qA5TXg2E9nLq cpUC3C26jcVZQDjGn38v+SlJ17RcX0eHG07bPH7hHd5VWoO9w7/wDl31emQoiTVcnfJU cOV7XHI21ss7KY7OY6vVX9JnQlaKjuwiOGouk2Yz/QocIM97qe0R4EI8J0g07jkWXPMu 6OwmohZZeTk+dSzlc91eBY1Y6qNgAcUThCYtxKr0hLLOOTL5LCH8ZaTkkDJ7jRfoQMAP 8uxw== X-Gm-Message-State: AOAM5309xL//RJ6gEisS4859TwJSXUvpzItO9EuBaGfS79b5KSpa+VVN ff75ccRyQYNcknZL8RagXxP9UOJRitYaaA7TfcI= X-Google-Smtp-Source: ABdhPJytlqzd2jB5IbPYc7NDHAiw+e6BRzGpFJM/1MSdBTtNLTaKwE7BW0fyWNzsYPAOTXy8d5uOdA== X-Received: by 2002:a1f:3094:: with SMTP id w142mr29390003vkw.7.1639375490723; Sun, 12 Dec 2021 22:04:50 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id s10sm3881018vkf.9.2021.12.12.22.04.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:50 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:59 -0500 Message-Id: <20211213060107.129223-38-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-readline): New variable. --- gnu/packages/node-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 4e69fd146f..873e0f9a39 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1039,3 +1039,27 @@ (define-public node-serialport-parser-delimiter Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Delimiter}, a parser that emits data each time a specified byte sequence is received."))) + +(define-public node-serialport-parser-readline + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-readline") + (version "9.2.4") + (inputs + `(("node-serialport-parser-delimiter" + ,node-serialport-parser-delimiter))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-readline")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to split data on newlines") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{Readline}, a parser that emits data +after a (configurable) newline delimiter is received."))) From patchwork Mon Dec 13 06:01:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35193 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id ED60127BBEA; Mon, 13 Dec 2021 06:08:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7ECA227BBE9 for ; Mon, 13 Dec 2021 06:08:42 +0000 (GMT) Received: from localhost ([::1]:48596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVt-0007SH-LH for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTK-0005HG-MZ for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTK-000823-74 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTK-0002hU-2R for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 38/45] gnu: Add node-serialport-bindings. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937551610250 (code B ref 51838); Mon, 13 Dec 2021 06:06:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:16 +0000 Received: from localhost ([127.0.0.1]:53831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSZ-0002fE-Kp for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:16 -0500 Received: from mail-ua1-f51.google.com ([209.85.222.51]:42633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSK-0002b3-0n for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:02 -0500 Received: by mail-ua1-f51.google.com with SMTP id t13so27289072uad.9 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8oER+gIbu7c1NWgvvO8xEY5e/UgWsdRQk4z4YK3kxwU=; b=XNl0dNdTIa/FpJ6cQmTvLkxBKSgC53N8fm4i6g8p3WGrMTWS81blw+uvrlxz2K1Sgv ymYDhAC/ADDQxpebPXgglNZGM1Q9ZTQt5nTUS/9szIryh+weEJXG2VinmkH4H4xT0MnS dp5SX9A1sJb2W4pSkipSjEBpL6jRzQi6VtJTuKkkXCMdLbRegUvhCwyuHIxPkQgOxzCY w+pSaPqCakttC/8Zbr4UklQRCiW+M84+1r+f3pkK4+mivVdUWm/m6ejab6PvSNEj2oSQ G4qb+bXfxCLPSj+VltCETjdovhdJiOSLqWNebRsm+lUi4OP+yOyHwBQ8YhnSXbAy9r17 CqTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8oER+gIbu7c1NWgvvO8xEY5e/UgWsdRQk4z4YK3kxwU=; b=Hu8BX2Y2hlpqMAzdOf+hyq9haC4VxkwYS1yTMqYBQ959THwwKC0edjMxrPPKElgV4b EDJLsFU7AhIdH8fKEOsTyGV52fEEmXKMU9X06bMKffAqDa8TW9bfVKTxJKVLCRu+C2hd yh0+r8SEIYAQO0Q1Y2Mf6Psc72f7U6kBk9VC6J0OuBcCBsDC2L9aGhIjWCR5W8ln5A5B aqQpV36gfGVSInPm+roZZe3WFeztDye7/vBSCxquF9xHBLhL06M8l3V6aRozoDXJox+L 6+RIk7NyhinrAWjgJGtq6RJYqSimeWL6YKkVp1n0hfiTQ7Ta9FhE2Oi1UAwD2XvPHkt8 E6ng== X-Gm-Message-State: AOAM5332xDxsRMlYwxyvqbnZAXvoaFSEAhKJ5W+7fhcko+uOa1rTpdG9 p5v1meCN2fQzdycWFJzrPuNmZ9YBmtgwWBT6qUs= X-Google-Smtp-Source: ABdhPJx17lJPiFEByEFtcnV9ied58zZ1rKuNFd2+VKtiPetKNwPXDn3amx0bos05jVp6o1KhnJenow== X-Received: by 2002:ab0:6c44:: with SMTP id q4mr41230298uas.72.1639375494689; Sun, 12 Dec 2021 22:04:54 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id y7sm3850520uac.3.2021.12.12.22.04.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:54 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:00 -0500 Message-Id: <20211213060107.129223-39-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-bindings): New variable. --- gnu/packages/node-xyz.scm | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 873e0f9a39..9ee33c7402 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1063,3 +1063,59 @@ (define-public node-serialport-parser-readline Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Readline}, a parser that emits data after a (configurable) newline delimiter is received."))) + +(define-public node-serialport-bindings + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-bindings") + (version "9.2.7") + (native-inputs + `(("python" ,python))) + (inputs + `(("node-nan" ,node-nan) + ("node-bindings" ,node-bindings) + ("node-serialport-binding-abstract" ,node-serialport-binding-abstract) + ("node-serialport-parser-readline" ,node-serialport-parser-readline) + ("node-debug" ,node-debug))) + (arguments + `(#:absent-dependencies + `("prebuild-install" + ;; devDependencies + "@serialport/binding-mock" + "node-abi") + #:modules + ((guix build node-build-system) + (guix build json) + (srfi srfi-1) + (ice-9 match) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/bindings"))) + (add-after 'chdir 'avoid-prebuild-install + (lambda args + (with-atomic-file-replacement "package.json" + (lambda (in out) + (match (read-json in) + (('@ . meta-alist) + (match (assoc-ref meta-alist "scripts") + (('@ . scripts-alist) + (write-json + (cons '@ (assoc-set! + meta-alist + "scripts" + (cons '@ (assoc-remove! scripts-alist + "install")))) + out)))))))))) + #:tests? #f)) + (synopsis "Abstract base class for Node SerialPort bindings") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +This package provides the @code{Binding} class, which uses a native addon to +talk to the underlying system. You never have to use @code{Binding} objects +directly. There is also a @code{MockBinding} available (but not yet packaged +for Guix) to assist with testing."))) From patchwork Mon Dec 13 06:01:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35195 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0314E27BBEA; Mon, 13 Dec 2021 06:08:56 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BB24727BBE9 for ; Mon, 13 Dec 2021 06:08:55 +0000 (GMT) Received: from localhost ([::1]:49282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweW6-0007we-RO for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTK-0005Hf-Tg for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTK-00082C-JS for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTK-0002hb-ER for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 39/45] gnu: Add node-serialport-parser-regex. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937551610258 (code B ref 51838); Mon, 13 Dec 2021 06:06:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:16 +0000 Received: from localhost ([127.0.0.1]:53833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSa-0002fH-BC for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:16 -0500 Received: from mail-ua1-f41.google.com ([209.85.222.41]:45017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSO-0002br-6N for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:05 -0500 Received: by mail-ua1-f41.google.com with SMTP id p2so27273768uad.11 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Sa7KN+RS0TgVULAtzfR/iGqMlrOG/3LR5CYFAV/deQc=; b=ddmcLe6POLHpFtjv9wzljEAm1AUhX0IFCJvzmQHNpnLCz4E04xjtBV08SfS5Wy5dvL b4TArYkv/LGQvNcBdROuT/Nepc2dXK+s4ZQdHLiNSe3m4RT0fm05ihvOphs4hPc3gda5 /Fa7xYVw0jsTUsPMQvQOVDuIGfA4FJjy84jrdRvCH05XkpeemWDT5VP0T1mE77taeOFT WuT3XeT9F6NFobSw7WgDoag4WgAbQcX8Cr7GkSkeIdBBHcRqcBhS94u+QusMPkqd/0lN /qT5VF40iNgwHooyXpQjUd7B5rDS6XBu7guKJos1m+rIX8nIl7UKC19ZubUMasAtD5ME /C+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Sa7KN+RS0TgVULAtzfR/iGqMlrOG/3LR5CYFAV/deQc=; b=R8q327GYfbb0MG0BVTTMXkbdtNDf0aCf23ul3iZ8LoDzQpR1W2Y6PiRMYLKye4Bof6 lhdF1wfoWGVc1Q3oWx9B34gwzZk612g/u2d5zzKHJSdIRg0suGXU+gNdl0JUzyi+L/++ 1aB2QgE5DI4twYkqe3kxf/C1NNtQGXgiQT2K+MG50fkEh3Im9+rV2u710ROTzrUFNAkd H+oFR/9v6z3skiBtLlIOXUYRUoZFScO1b676krqNNffY9QpckOSpesUKYLG0K3obmAKI qqWHywWqkNfvBysT5OgH7LuNkYWXMWuzsIfhwIAjj17D22TNO46wamaJu7b5NU5i8hfA P7gg== X-Gm-Message-State: AOAM533f0wt55izQ1tbAlvWTHglGtYB3ainnf+F/GFm4h8pjIFh8n69F ZS1EtV/OtnevdVcoSkKbjF5II6mVRKSnUJi2syM= X-Google-Smtp-Source: ABdhPJzdKfYSCmYpnYAa87HXoy4/l3OqHKsxUk5cvDX+TPVAGo1pa3ocufuaJOLpzZKVEBNIN2+DiA== X-Received: by 2002:a05:6102:953:: with SMTP id a19mr25147161vsi.28.1639375498791; Sun, 12 Dec 2021 22:04:58 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id b10sm3884569uad.8.2021.12.12.22.04.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:58 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:01 -0500 Message-Id: <20211213060107.129223-40-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-regex): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 9ee33c7402..f8c6cce95c 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1119,3 +1119,25 @@ (define-public node-serialport-bindings talk to the underlying system. You never have to use @code{Binding} objects directly. There is also a @code{MockBinding} available (but not yet packaged for Guix) to assist with testing."))) + +(define-public node-serialport-parser-regex + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-regex") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-regex")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to split data on a regular expression") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{Regex}, a parser that uses a regular +expression to split the incoming text."))) From patchwork Mon Dec 13 06:01:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35197 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 01E1C27BBEA; Mon, 13 Dec 2021 06:09:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BE2D627BBE9 for ; Mon, 13 Dec 2021 06:09:45 +0000 (GMT) Received: from localhost ([::1]:49706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweWu-0008FU-V2 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:09:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTL-0005Iw-C0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTL-00082J-0P for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTK-0002hi-RZ for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 40/45] gnu: Add node-serialport-parser-ready. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937551710270 (code B ref 51838); Mon, 13 Dec 2021 06:06:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:17 +0000 Received: from localhost ([127.0.0.1]:53836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSa-0002fP-Lm for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:17 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:34376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSS-0002cz-9V for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: by mail-ua1-f47.google.com with SMTP id n6so27370268uak.1 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZiJjluInYMQG+WQpbcc5jFp6ZaJO44WYhIQJR2MUaCo=; b=XNVGFNgqQtui6D5wn7K/oHlh5Alkj8Rs9JnrVYuXnphK5plW5taO7hVWL5WFGYQaiJ X5ymMzs+PuFwSKPgxV0o8hx4Tr2TCmXMP2wftgqRCGQpTgCUaUHFWBrAuh1lKcHcMqPS /qzLp5C53x+AGDbu2ZV34dOxn8y9e+2FQY0GSywdoAZiPDO67bq+simibCkXmQkyQbrj Oe+qCBSjCZymeI/aJe+vROLSuwmjeuGSQEyR4Ggx8rpEPKqgCXeAIdMsHQWUAY+Oeirq 2ZXGwiZVsYzV2CD22K9lxmq61EzqG4j9yUqSemlsYCJI9LhNAv2n9o+xjCDt6DXCyXbn 42iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZiJjluInYMQG+WQpbcc5jFp6ZaJO44WYhIQJR2MUaCo=; b=VBSzTE003gw0yCxJqwiHRstJ+xt67elJHOmKrYcygUsC3f/HyTON45dHNC/UDla3gF 4SrHgr2T/Obx4MAMU6jyiYRxGwexAsUzzZGw1YFF68N/pFkagNohdU1WvOxQV6eohYi6 fBxxJ3UgwpTFyibMO47lKOEza2+qy6LGBRSbW6+T1uyYT9mn6xb1bMEIl8SdBem6lB+4 XCY00VS+GfvVjelptfRCRxi6YnPv7yU3xCPVwZgla0tqk3iUYThSdDzFJLYbR0sTMHFB JgR/Eexbi3a+OH5uyL52z8yjcF9vzqI6/vQFcgPtiIabHtz43Rblp8ZcpXQF+y929b75 nPJg== X-Gm-Message-State: AOAM530RTJYFOjngkSGQedS1zn8nK7h5AqQ0Aeht+Lt9jD70lk4WaISl BvbW7OmXsU7e+Hm/Xp0+XQ3PGGjdCy9Pxrdl5ag= X-Google-Smtp-Source: ABdhPJxRLAZzBRjJFnqIYAtGvnf5Q/+TJKWcXsZJG3iQ/dfEeYy3noDMcyWH7ZZL8IX54rv+Uo5Q3A== X-Received: by 2002:ab0:2696:: with SMTP id t22mr39267732uao.13.1639375502916; Sun, 12 Dec 2021 22:05:02 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id bk3sm3719792vkb.33.2021.12.12.22.05.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:02 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:02 -0500 Message-Id: <20211213060107.129223-41-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-ready): New variable. --- gnu/packages/node-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index f8c6cce95c..8cc4efeed8 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1141,3 +1141,26 @@ (define-public node-serialport-parser-regex Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Regex}, a parser that uses a regular expression to split the incoming text."))) + +(define-public node-serialport-parser-ready + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-ready") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-ready")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to wait for specified byte sequence") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{Ready}, a parser that waits for a +specified sequence of ``ready'' bytes before emitting a ready event and +emitting data events."))) From patchwork Mon Dec 13 06:01:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35199 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7EB5B27BBEA; Mon, 13 Dec 2021 06:10:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 42E1D27BBE9 for ; Mon, 13 Dec 2021 06:10:12 +0000 (GMT) Received: from localhost ([::1]:50840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweXL-0000dK-Eq for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:10:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005Lu-OA for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTL-00082S-D9 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTL-0002hq-7r for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 41/45] gnu: Add node-serialport-parser-inter-byte-timeout. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937551710278 (code B ref 51838); Mon, 13 Dec 2021 06:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:17 +0000 Received: from localhost ([127.0.0.1]:53838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSb-0002fb-6c for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:17 -0500 Received: from mail-ua1-f46.google.com ([209.85.222.46]:40643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSW-0002eE-DU for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:12 -0500 Received: by mail-ua1-f46.google.com with SMTP id y5so27310296ual.7 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oFXS/pGuc7TKdS6r+PpnoFih9hoe079OTUnr3NmtDPg=; b=hDuNClny8J63K0AFQwdsNNrOMLdVxHEIF25uLAgr/ZhikPnUS52Ywc9wk8e8Lj1kBg A8k+LGDO4p/NGDTHxafyASBDLxLs7W42vpGQqbc4lfR15dMDhk7SF/ui4TdIzHmlAv06 qZutECC84NnjfZ7hQkCL2ZNn6EXpXVtKA1Ty7t19DKo9N/7YnmEjPCm6T44aHFSHBNnp i5S78uaYAnZHjOFvpIXc2kp29Le/VJH0ibDeZagKn3zmMW2CKRto8CPdk6yg6HrHrZpS 3dilig3tcfGrcLNwl/MO9P1yS2NRCYOi3FA/i2zSLP1zCaOxg9jB5/m9RCp4+ZSIrNVZ iqaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oFXS/pGuc7TKdS6r+PpnoFih9hoe079OTUnr3NmtDPg=; b=DDYD2XVrWXSlNx0vGrIYd0BHdvLErtn9yjMHCke7mky42CkJiifWpQ2gfwZmLGL6jm vgasSr0eqg6iwKUChs+Ubi5MJjYMkXJSoYPU9n8u+cGawqBxAqzUG3Aqw76qPc13iim3 vF5fLa+hLHp59LSJjO/vRRO/d2zQPsmv7SRwR9CrVJPuZ7f/yEwHDkwtKodUso623C5i HfE8LEFNbJk/agrksOaeqiEazwKUME6u1U9mXRKTYQf85IYAoVJrp5iDEpkqbDwUqeDb PWNRZ1VYPFndBxTDNjWOCUGIHG6ymR1tXbwOo5+GHqCZ8S+dqx2ezZwbkAgnutije2h5 qBnA== X-Gm-Message-State: AOAM530OxI1GvEB3jtsNsr6b361CJZwa1y1058ZtoA6U3F0zqETAKRjS yQ8+I+oE0LfHdQZax33WTlGvKobXnxbpiMRwvjI= X-Google-Smtp-Source: ABdhPJxvZvaHRezfb/vbIPaK0xi/l3hsfKUTmBAkMOHjkA66Kwqb/iFz3wJUecsHuAz28XmtkvNEog== X-Received: by 2002:a67:6f04:: with SMTP id k4mr25780635vsc.27.1639375507004; Sun, 12 Dec 2021 22:05:07 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id 66sm4183916uao.0.2021.12.12.22.05.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:06 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:03 -0500 Message-Id: <20211213060107.129223-42-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-inter-byte-timeout): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 8cc4efeed8..3df6c37584 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1164,3 +1164,25 @@ (define-public node-serialport-parser-ready messages. This package provides @code{Ready}, a parser that waits for a specified sequence of ``ready'' bytes before emitting a ready event and emitting data events."))) + +(define-public node-serialport-parser-inter-byte-timeout + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-inter-byte-timeout") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-inter-byte-timeout")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to detect pauses in data") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{InterByteTimeout}, a parser that emits +data if there is a pause between packets for the specified amount of time."))) From patchwork Mon Dec 13 06:01:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35198 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2DCD527BBEA; Mon, 13 Dec 2021 06:09:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EC6E027BBE9 for ; Mon, 13 Dec 2021 06:09:58 +0000 (GMT) Received: from localhost ([::1]:50296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweX8-0000GW-3X for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:09:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005Kt-4s for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTL-00082p-QC for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTL-0002hx-KB for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 42/45] gnu: Add node-serialport-parser-cctalk. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937553210315 (code B ref 51838); Mon, 13 Dec 2021 06:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:32 +0000 Received: from localhost ([127.0.0.1]:53843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSp-0002gE-Gr for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:32 -0500 Received: from mail-ua1-f44.google.com ([209.85.222.44]:34388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSa-0002f0-Ao for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:16 -0500 Received: by mail-ua1-f44.google.com with SMTP id n6so27370661uak.1 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jp7BnZc6mfgPF1aMGomE1uqg6O8UhC3Uq/AN+wWmN30=; b=V+rhW5ab8kVvRKr/DrOuAc9JLojMMShCUe7rnvF/iHCj4jhz28zGiZoqaUNVnqxRcX smQ3rJX8NQE4WI929M+ahvbDixeozqLXjdP2XAkbsCfwnF/8dlIi7nYM2E/EoUe/Clsh FZjyTySbpz3jG8IazCrBrgxjm7UNPNBYbvicRzvWm6aVITTboSSINRBaYdyORtwpUPk7 3qj0FWKK9si9zW9xle26WKgOIT0gFsb5kyhGS1F2B4lmHjZyDcMS5dn1ateRJEcECVbJ uy4VORX6tq/HJ6kzYOz5ENavrAhatuaPRdfalDOig3NiwTbu/MWA2S+kdtSvH/PMnIcj c6eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jp7BnZc6mfgPF1aMGomE1uqg6O8UhC3Uq/AN+wWmN30=; b=cMNMY2pcKB8OhYBAaxRD0CZPCBeX0NdzmKbg6HLBKEIi8dlqV6EmmJ/l9Wk+wxCFLN WMDG9DKO0HQ0yc9JT/09A/mqZx6caD6DOgUNEIM7L16nEWoUB025naGZvXGCreyXMjzH 9jtoWFqB3I22fBo4RowuBStLu/vbOBwaJZeBPh6ZfH3gsUZze488cFatUMQ9wZ9EZGQ/ e/bmogNSPlUT8mLs/1+qX+Hv/siwTnSY67GvF1AG53TbdMmia+TisQczBFi0iHUOFS91 rbtqs2N56KAv8tDVluwrgpD9pacdbaSvOjyA+v2mzFF+xaOBzRRSFaSVhUuHFiCvWCw+ jrmA== X-Gm-Message-State: AOAM533adZ/+Q6e8B+ICaiOFsfNeEjpPnJ8KW25oPFD47b2F8NT7aN/d mSTsRjefT7RV18jbvUaaf+fRkhC9nf2JCGbfTak= X-Google-Smtp-Source: ABdhPJzBSnFlAGKdLHyPR15+V5Axd1KIh7nJS6r/c8HjLA27e61bJY5r04PvYNAvejA6gwVaTpv4yA== X-Received: by 2002:ab0:74c1:: with SMTP id f1mr39321884uaq.109.1639375510994; Sun, 12 Dec 2021 22:05:10 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id bj50sm3722301vkb.7.2021.12.12.22.05.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:10 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:04 -0500 Message-Id: <20211213060107.129223-43-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-cctalk): New variable. --- gnu/packages/node-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3df6c37584..00d5cb7665 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1186,3 +1186,26 @@ (define-public node-serialport-parser-inter-byte-timeout Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{InterByteTimeout}, a parser that emits data if there is a pause between packets for the specified amount of time."))) + +(define-public node-serialport-parser-cctalk + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-cctalk") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-cctalk")))) + #:tests? #f)) + (synopsis "Node SerialPort parser for the ccTalk protocol") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{CCTalk}, which emits packets for the +ccTalk protocol (an open standard for currency detectors) as they are +received."))) From patchwork Mon Dec 13 06:01:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35191 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4790927BBEA; Mon, 13 Dec 2021 06:08:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 11E1027BBE9 for ; Mon, 13 Dec 2021 06:08:32 +0000 (GMT) Received: from localhost ([::1]:48114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVj-00077s-46 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005Ll-JW for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTM-000833-8D for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTM-0002i4-11 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 43/45] gnu: Add node-serialport-parser-byte-length. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937553210326 (code B ref 51838); Mon, 13 Dec 2021 06:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:32 +0000 Received: from localhost ([127.0.0.1]:53845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSq-0002gI-84 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:32 -0500 Received: from mail-vk1-f182.google.com ([209.85.221.182]:43770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSe-0002fB-Dj for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:20 -0500 Received: by mail-vk1-f182.google.com with SMTP id f7so9712796vkf.10 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=udke9hVIQSW5Hp1V5aM32MWM0oG37/1g2sNRR/89uuU=; b=ehaHEs1Yo4MfjkTrmVaSQzRJEHBeSPosuHXNkpoKoZA7vc1n5vXMzB2zcIBHHB8o6N KCxauh9srA2Ig/9d7f94cBkcfiaXXmE29Ic46mO5lsNC4/XPRw6LjAiiuu7cJaK7dZVp 2j6PQQgWFpp6bZ2mjhRHCD41pK1P+p8xr12/MnhqdAyPzjmIr0qZZcIlMBAe75u2hams a0cNJSip7povWFYWKbQ5JbMFSfBFfzYA7t8kGyP50wwTaVe+usmDoLni3AbYNKoyEu77 jIQNobBwbdLQuEKdNvPTtFLurt2yCuaC84iR0OLYBGv+5B8PnSsvnrz9LniMXEzgdn70 EU6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=udke9hVIQSW5Hp1V5aM32MWM0oG37/1g2sNRR/89uuU=; b=AKT8SNX9427wVf7hBhylBJqiABKnYkV66WAhqdOgzGCis67lsJFYsvfIC5ysEZg0sM 2WbXQj9tqlwCMRFCOKNubkK/10aFnwoYSlVmv+zVA24MFZIVurUaYVjkXyzH9ZLtePQx Mcl1kc4cFNTDtZO8j34C+JRLofyghignG+uX9ep6xrr0YnKxTzMq96N1GM3B8yRbnrgP uoL0GZY0ovV/iLBrDvMYbBd36MQJbQ/MYbbwlmXxRl2qJDmuwnjkGgQ55OTdpdbYIlc+ 1hjbyb5BTSc0T72Z1gJDUdYQLdMZpkmuHBtgYJ1xpQS88beDg5S9RFfrJRft5DPzj3kB xn9A== X-Gm-Message-State: AOAM530JO2unZyRBhGk7zSkVskWlKrlIzOIKytbwcfBGy5VNHzSmMpkt 1QxqsMeTGTPm2+mAYtFrSfin1zc4d/WI0HZizCQ= X-Google-Smtp-Source: ABdhPJxsPslEcMQdXPebRuefrU/OBfk/0qMrcMWJ7QLRmzXRseLYLRlZs14VTL9/izdo+0nGQ0a+Bg== X-Received: by 2002:a1f:9f04:: with SMTP id i4mr28906401vke.33.1639375515036; Sun, 12 Dec 2021 22:05:15 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id o7sm3760536vkl.41.2021.12.12.22.05.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:14 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:05 -0500 Message-Id: <20211213060107.129223-44-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-byte-length): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 00d5cb7665..3a4d155b02 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1209,3 +1209,25 @@ (define-public node-serialport-parser-cctalk messages. This package provides @code{CCTalk}, which emits packets for the ccTalk protocol (an open standard for currency detectors) as they are received."))) + +(define-public node-serialport-parser-byte-length + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-byte-length") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-byte-length")))) + #:tests? #f)) + (synopsis "Node SerialPort parser for fixed-length buffers") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{ByteLength}, a parser that emits data +as a buffer every time a specified number of bytes are received."))) From patchwork Mon Dec 13 06:01:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35194 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4D36827BBEA; Mon, 13 Dec 2021 06:08:45 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 160C727BBE9 for ; Mon, 13 Dec 2021 06:08:45 +0000 (GMT) Received: from localhost ([::1]:48714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVw-0007XN-79 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005MM-UI for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTM-00083G-Ib for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTM-0002iC-DZ for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 44/45] gnu: Add node-serialport-stream. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937553310333 (code B ref 51838); Mon, 13 Dec 2021 06:06:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:33 +0000 Received: from localhost ([127.0.0.1]:53847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSq-0002gV-QA for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:33 -0500 Received: from mail-ua1-f43.google.com ([209.85.222.43]:39575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSi-0002fq-Gq for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:24 -0500 Received: by mail-ua1-f43.google.com with SMTP id i6so27299577uae.6 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=klMSCld2txBYfd9z2tw2McgEXAtJN8Za0v6/7p+14xc=; b=kkogEC0svPAwnL8zTp2EL8lzNspmxnxnU37BmqSXS6c6ddPvu6/QwtiRi0Bh5IOBVg sD0Xkq+If2eY7Wg/YMpaqZtFnALZbWT8QzSFfPWfa8Om5Ebsg/GjXIBVAqLJiD6b99kg b3L1p/R8XknZ0BEIq69gNd9Nx0zuFeqKmBsfEcWTUTb1/iMGJVqnrj6rtyjIRePRKYrG js5jz0h4kqTay9cikIPGTeJxeEn5mYE5doc85iml3wm5u86NKf/P1xs/Qz47YOUhCyc9 HXRDkQz6tZP82eXSoWcfRQ5SJ7tHPpWgWiAMWSE1QfY2k8odD9/CWkQjYtpXbYkRhWQ8 RgmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=klMSCld2txBYfd9z2tw2McgEXAtJN8Za0v6/7p+14xc=; b=8KcwNj6piSm3iPPiWY57CEc8DEC7DHUIvdYloFXlbbNCka/7eQe7xrxTJqTFk0aMwb P4/rmveZ55ZCAcquX/iqaRxwgOAxS3ggD+1EupDX4NABbW/b0MAtxy4IBs+QYl3OQfNp jXnRybxcV3Kw9hjIMiS75seOIfGbxIgf/cqxvZC95Auqa/MORDniARPWWpGhAQitn3l1 G33tbABSjWeqI88bFfno+AhVtPKf6RWSLe2XelUec4eFdnLmT7m5qqY5hqAKXt4KHNjZ 1qfDYMkqKF3XjXUgll8Rowdk2mVz7Qda19tnjiZxq85yEnwLkRcFXbT262EkwK3BMJ2M 60Bw== X-Gm-Message-State: AOAM533CbTwUaWSMt3GtPKvA7Icy7dTJZKsujq/rOMOZ9fbghnfxDC2w Q+WeHm15q8Jjx7503/ZMNzPD4anLs7RfePwaxME= X-Google-Smtp-Source: ABdhPJymunzTpAM3d7UZR/jnC99EX236fg/qw6CsCfdC4nMt3TrnIInRhT4/jZrF8FayFW6sXAG58Q== X-Received: by 2002:a67:db13:: with SMTP id z19mr25887900vsj.4.1639375519096; Sun, 12 Dec 2021 22:05:19 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id i1sm3697637vkn.55.2021.12.12.22.05.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:18 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:06 -0500 Message-Id: <20211213060107.129223-45-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-stream): New variable. --- gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3a4d155b02..271082ce5b 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1231,3 +1231,30 @@ (define-public node-serialport-parser-byte-length Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{ByteLength}, a parser that emits data as a buffer every time a specified number of bytes are received."))) + +(define-public node-serialport-stream + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-stream") + (version "9.2.4") + (inputs + `(("node-debug" ,node-debug))) + (arguments + `(#:absent-dependencies + `(;; devDependencies + "@serialport/binding-mock") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/stream")))) + #:tests? #f)) + (synopsis "Node.js stream interface for Node SerialPort") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +This package provides an interface for using Node SerialPort bindings via the +Node.js Stream API. The stream is a duplex stream, allowing for reading and +writing. It has additional methods for managing the SerialPort +connection."))) From patchwork Mon Dec 13 06:01:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35196 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7466427BBEA; Mon, 13 Dec 2021 06:08:56 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3A5FC27BBE9 for ; Mon, 13 Dec 2021 06:08:56 +0000 (GMT) Received: from localhost ([::1]:49314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweW7-0007y0-Df for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTN-0005NR-9x for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTM-00083X-Uk for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTM-0002iJ-Q0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 45/45] gnu: Add node-serialport. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937554310354 (code B ref 51838); Mon, 13 Dec 2021 06:06:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:43 +0000 Received: from localhost ([127.0.0.1]:53849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweT0-0002gv-8j for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:43 -0500 Received: from mail-vk1-f173.google.com ([209.85.221.173]:39878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSm-0002g0-Fs for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:32 -0500 Received: by mail-vk1-f173.google.com with SMTP id 84so9694341vkc.6 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Uj8l1PwC5yonT22mdkT7rXciKsL3hh51MxZpTdJB9d0=; b=Hab3bwd2B9mUzV0rQ8iDXqDBKMvRRT4U2yscWIKBKlsTtQNkE7yAO4jWDBySfVCjog qPCGAU5VvEfXL5jjDzw1zsR2wAIenJ5J5eg9CuKJTgApHAgowl34Cb0Cm6unKRIXIf+u mV+81CKWG1BpxAQnTehrd0pZIiFZtkn1j6pYI9PNjIVfsHslivl2U59npPxAejusyxyi lW5kSgGzIJaXLewY7868ixrMbAjRcCLD5MqWOgI83Y3wWOgEhhOyeVujReYEvF/rf+tu NgzG2/53QoDTcEcIfTB3P1VZki7HXZdBebnc+CuIaJtQApQTBFnIQ/mNhzWLa3OgStZW jQ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Uj8l1PwC5yonT22mdkT7rXciKsL3hh51MxZpTdJB9d0=; b=AiYlpgUtDaVpN6U0CD02xbq6wbH2PTp6+19I8kzCxMTnn7X5/SimuiAr5MVbFt+0lW UvUXQU2t0i+zMccq2Ly+lqLA/vmTd7Tla5ERu0odsd6AdkzC3ihuQYQtFQRR5zws568j 6jzs7g7h6uEK1q/jcJqvNOqL8FHWyo/bXZ9TpE5/noqeU1mtTpwAfqX5WWsmH9HM6YCd GQ1H7HqCEEz6jfvWeClkM9DYvGKbDPjgQWhtvUave7qkQfzBmG2yZpYPZwBCaRwBVr/z trvPASRh267Q0EBvQuw+i5MEXg75jXyoyfKqADp2Cpzp9fWx/IyOULzrCeCYMP0nZc9T KXLw== X-Gm-Message-State: AOAM531fiEtghYa/jQYPWw0GQvGIwRpwRW6dSHO3cXrY12ghwpEcDyAu R2zagYhmEaMs00W3MWpuegEah162QxNeE+MBAF0= X-Google-Smtp-Source: ABdhPJwpi6aJV10FomoR4bN0zzXVoX51ufDL1hlpBOdJKBuCrAwCTqKSAYYoocNpbLnGPZIjzvFdyA== X-Received: by 2002:ac5:c183:: with SMTP id z3mr30257065vkb.20.1639375523101; Sun, 12 Dec 2021 22:05:23 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id x142sm3662660vsx.15.2021.12.12.22.05.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:22 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:07 -0500 Message-Id: <20211213060107.129223-46-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport): New variable. --- gnu/packages/node-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 271082ce5b..92e16f2dc6 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1258,3 +1258,36 @@ (define-public node-serialport-stream Node.js Stream API. The stream is a duplex stream, allowing for reading and writing. It has additional methods for managing the SerialPort connection."))) + +(define-public node-serialport + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport") + (version "9.2.7") + (inputs + `(("node-serialport-bindings" ,node-serialport-bindings) + ("node-serialport-parser-delimiter" ,node-serialport-parser-delimiter) + ("node-serialport-parser-readline" ,node-serialport-parser-readline) + ("node-serialport-parser-regex" ,node-serialport-parser-regex) + ("node-serialport-parser-ready" ,node-serialport-parser-ready) + ("node-serialport-parser-inter-byte-timeout" + ,node-serialport-parser-inter-byte-timeout) + ("node-serialport-parser-cctalk" ,node-serialport-parser-cctalk) + ("node-serialport-parser-byte-length" + ,node-serialport-parser-byte-length) + ("node-serialport-stream" ,node-serialport-stream) + ("node-debug" ,node-debug))) + (arguments + `(#:absent-dependencies + `("@serialport/binding-mock") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/serialport")))) + #:tests? #f)) + (synopsis "Node.js package to access serial ports") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. This package is the recommended entry point for most +projects. It combines a high-level Node.js stream interface with a useful +default set of parsers and bindings.")))