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)))