From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YKBGJwYYEWTySAAASxT56A (envelope-from ) for ; Wed, 15 Mar 2023 01:57:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YC10JgYYEWTWoAAAG6o9tA (envelope-from ) for ; Wed, 15 Mar 2023 01:57:42 +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 6833D9E32 for ; Wed, 15 Mar 2023 01:57:42 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=GKKZhrgX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678841862; 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=fNEZ4yUkBc5yP13Ko72GbnmGkJL6+YrT/j+sVsnm+7A=; b=GWlO27lQuCbJK3xGPrybZgXwQc9HsfVtjzBNTVJ+tqCUFWGH8gTmnmK+PcOrp43iFopkp3 oj/zSmyUswQLVRqZm9DEsDH1vF4L1y6HhH0Ed+zhbxedqI50UUH4TcQIhx9RTN0ELZT9P2 lzuqZ0RaplEx6BVcUKZ/4z4WLV8/8uygeZrELZB8BGkjVPUxEHH69ll9P9LNRtecM7C4KD yIEAMEPq0Uu6BIycUG2q75v6VU575DGtg8PuXpg0FMGworEVaSGU/ZrLorU+T4MfiGLmyO sNyezrKtovm3Z2I66hn97EujuTYcyxTq/CGaLyC2j1FP098rgDdpkRyrQkGQCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021100501 header.b=GKKZhrgX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678841862; a=rsa-sha256; cv=none; b=ZMyxsJNGmiK4HmA9w8JoDv6kLmSGwupWWYjn5QmmgIQbLjXhpqx8qiGQB9SqNQio7anfYY zsWs6X61pY4tDU6LaegixqzwgxmfYtKuetDX+7SaWdE0w7y1SZ9hOzAfLXuZbP2cAvweUz l+/39aK3rPIDQeDNuIRrfeZJp7O04O48pExpPM6yl4VOB6qH6Hrey3Q+LK4zCpclHcczTG tNqH8Mgxly2ANqzz3J9OaY1LlMW54AArBfv2bq8ZKq2lKD7skfGqdmVP9B0Ailm2W8rx4Y s8jTBy6XgrBlbb+tC5q6AOwXh/nXjSszYNkgrOd6VS29yROte9Vd9G7qW+7iug== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcFR0-00081Z-Pm; Tue, 14 Mar 2023 20:56:06 -0400 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 1pcFQy-0007zi-T6 for guix-patches@gnu.org; Tue, 14 Mar 2023 20:56:05 -0400 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 1pcFQx-00074c-Q5 for guix-patches@gnu.org; Tue, 14 Mar 2023 20:56:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcFQx-00027w-MY for guix-patches@gnu.org; Tue, 14 Mar 2023 20:56:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#59188] [PATCH v5 04/17] gnu: node-acorn: Fix broken transpilation. Resent-From: jlicht@fsfe.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Mar 2023 00:56:03 +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.16788417498018 (code B ref 59188); Wed, 15 Mar 2023 00:56:03 +0000 Received: (at 59188) by debbugs.gnu.org; 15 Mar 2023 00:55:49 +0000 Received: from localhost ([127.0.0.1]:38752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcFQi-00025E-Ey for submit@debbugs.gnu.org; Tue, 14 Mar 2023 20:55:48 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:54854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcFQZ-00023R-6D for 59188@debbugs.gnu.org; Tue, 14 Mar 2023 20:55:39 -0400 From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1678841738; 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=fNEZ4yUkBc5yP13Ko72GbnmGkJL6+YrT/j+sVsnm+7A=; b=GKKZhrgXuqHiQhHoIv9jWTJ7Zm4BrmUy3+XFllJgoAaG8iUxMRdUObtrsNQPNHEnGtcTtD yaQLEDLPu2yv22ynuOCuom3CFJzTNfEIPgABR2Ano8T4gi9DdpJPvIIhEVfZ1Ugwg1v6ra iMauUk33ZFBl8kPNO3WpYRRjDkW390I= Date: Wed, 15 Mar 2023 01:55:19 +0100 Message-Id: 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-Queue-Id: 6833D9E32 X-Spam-Score: -2.53 X-Migadu-Spam-Score: -2.53 X-Migadu-Scanner: scn0.migadu.com 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: 8rothw7GKrSQ 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.2