From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YEnECmopAWQpUQAAbAwnHQ (envelope-from ) for ; Thu, 02 Mar 2023 23:55:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yG8iCmopAWQ4dwAAauVa8A (envelope-from ) for ; Thu, 02 Mar 2023 23:55:38 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 02B0641E71 for ; Thu, 2 Mar 2023 23:55:38 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=HtwvL2om; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677797738; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fnJNPXGFAL3Rvxc2jBO7W+rYms9HirkB2rSfleLtkzQ=; b=ty25fy/UfKYdAJNxDf8HPS1Q/PEUOt5hX4MyQPOMeK/Mc/oPyr7bsO8I6NLLquI7+Kk85y 1s1JcUCYqKUL/JvqhOyiY3cJ0+uXX/M0AaIg7DNRz8PRYWIFU1FvVlB2jeBr4ctI6s9els z4Punrw4KqILPeI/OaZY7xl7WF4QatJyTmmFOn4M2U+6kwT82XJrXFy4QGuohDMM93IDYG VG00rC/XtkS5LnJGN8a4x0/Saz15U+oNd4BenT2bhUkwlcs1VK2gtG6MXAY7BSaJxpA+xI wwxqGTETJOPwAx2yxtJR40fIzp69wnMtnQwnuQPNk3gNymtzpWd0MTLL36/9IQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=HtwvL2om; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677797738; a=rsa-sha256; cv=none; b=TtlRFhEBmcef2McpnCJj1/zEe4MqgOXfN7sTBM3mpnbnKMiEMZxl653g/exCFtuL3IM1hZ 5+yy/MOXqjrcay/+dlHQKvXWgdeB/arK92KjhRKMcpn6jA8PKTEpd01CVosjbwkpUOoHen ikHXdxBVPhoPRONTOcciW+gcHHhTQkGYXHmxoWcNhmavTi2//DojghWqEvTQeKnsKCE6uo HdofoKoDXRYNo3TdL3SoyzzEfUMGPrRnJwkOdkCGrU2rGKlFcnAjhPw1mZeIeUucA5xjRm /dN0seSUMBt92XXdtsQiin4a4QWNFWgP6NYi7zd8uo0c6a2bLpoq63l9zy49jA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXroQ-00015X-44; Thu, 02 Mar 2023 17:54:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXroK-00012k-VS for guix-patches@gnu.org; Thu, 02 Mar 2023 17:54:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXroK-0004nv-NI for guix-patches@gnu.org; Thu, 02 Mar 2023 17:54:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXroK-0004nv-Ge for guix-patches@gnu.org; Thu, 02 Mar 2023 17:54:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59188] [PATCH v4 03/16] gnu: node-acorn: Fix broken transpilation. Resent-From: jlicht@fsfe.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 Mar 2023 22:54:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59188@debbugs.gnu.org Cc: Jelle Licht Received: via spool by 59188-submit@debbugs.gnu.org id=B59188.167779763618328 (code B ref 59188); Thu, 02 Mar 2023 22:54:04 +0000 Received: (at 59188) by debbugs.gnu.org; 2 Mar 2023 22:53:56 +0000 Received: from localhost ([127.0.0.1]:58620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXroC-0004lT-8B for submit@debbugs.gnu.org; Thu, 02 Mar 2023 17:53:56 -0500 Received: from mail1.fsfe.org ([217.69.89.151]:55556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXroA-0004ks-N5 for 59188@debbugs.gnu.org; Thu, 02 Mar 2023 17:53:55 -0500 From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1677797633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fnJNPXGFAL3Rvxc2jBO7W+rYms9HirkB2rSfleLtkzQ=; b=HtwvL2omdCV898DXX/WsB/A1TOneB04wkXCMI4PgdOyPIMqGolUuh3Url9brgZttY7EqH0 Fcnx4FzgCL0M32BQS9NyYKZzK9cdJUe9cPEVH4Cc9COSNnrjr4RIzwPI+9jG7kovdDjocq j3wO7yHjA0/21S260zzUZsPptEstnCg= Date: Thu, 2 Mar 2023 23:53:36 +0100 Message-Id: <56d43fa5f6bb62d2d41303acd70650b64324723d.1677797608.git.jlicht@fsfe.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: X-Migadu-Spam-Score: -1.90 X-Spam-Score: -1.90 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 02B0641E71 List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: hwVpv62/3Liq From: Jelle Licht * gnu/packages/node-xyz.scm (node-acorn)[native-inputs]: Add `esbuild'. [arguments]: Replace build phase by custom `esbuild' invocations. --- (no changes since v1) gnu/packages/node-xyz.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index e3d8c7ca19..d75ccc199a 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2021 Charles ;;; Copyright © 2021 Philip McGrath ;;; Copyright © 2022 Nicolas Graves +;;; Copyright © 2023 Jelle Licht ;;; ;;; This file is part of GNU Guix. ;;; @@ -75,7 +76,30 @@ (define-public node-acorn #t)) scripts-alist))) (other other)) - pkg-meta-alist)))))))))) + pkg-meta-alist))))))) + (replace 'build + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (let ((esbuild (search-input-file (or native-inputs inputs) + "/bin/esbuild"))) + (invoke esbuild + "src/index.js" + "--outfile=dist/acorn.js" + "--format=cjs" + "--bundle" + "--platform=node") + (invoke esbuild + "src/index.js" + "--outfile=dist/acorn.mjs" + "--format=esm" + "--bundle" + "--platform=node") + (invoke esbuild + "src/bin/acorn.js" + "--outfile=dist/bin.js" + "--format=cjs" + "--platform=node"))))))) + (native-inputs + (list esbuild)) (home-page "https://github.com/acornjs/acorn/tree/master/acorn") (synopsis "Javascript-based Javascript parser") (description "Acornjs is a Javascript parser with many options and an -- 2.39.1