From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 IAEJEk5ngGPWUwAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 07:57:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eCnyEU5ngGNZNAEA9RJhRA (envelope-from ) for ; Fri, 25 Nov 2022 07:57:18 +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 BB72432967 for ; Fri, 25 Nov 2022 07:57:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oySe8-0007JG-BD; Fri, 25 Nov 2022 01:57:12 -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 1oySe1-0007Hc-4z for guix-patches@gnu.org; Fri, 25 Nov 2022 01:57:06 -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 1oySdz-0002iW-En for guix-patches@gnu.org; Fri, 25 Nov 2022 01:57:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oySdy-000340-Aj for guix-patches@gnu.org; Fri, 25 Nov 2022 01:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v7 07/32] gnu: Add tree-sitter-c. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Nov 2022 06:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Pierre Langlois" , <49946@debbugs.gnu.org> Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.166935939611744 (code B ref 49946); Fri, 25 Nov 2022 06:57:02 +0000 Received: (at 49946) by debbugs.gnu.org; 25 Nov 2022 06:56:36 +0000 Received: from localhost ([127.0.0.1]:33165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySdY-00033M-Dl for submit@debbugs.gnu.org; Fri, 25 Nov 2022 01:56:36 -0500 Received: from knopi.disroot.org ([178.21.23.139]:54378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySdX-00033E-3K for 49946@debbugs.gnu.org; Fri, 25 Nov 2022 01:56:35 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6D763414FD; Fri, 25 Nov 2022 07:56:34 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FwEhQtBkkj02; Fri, 25 Nov 2022 07:56:33 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669359393; bh=ShDCS7xFFRd4WcjZuOHlwrBPqDIfruE9pU5HHGCWogY=; h=Date:Subject:From:To:References:In-Reply-To:From; b=lhuYBOQq3qKSLY0s6KHgQc22CPRZkDsGiu51yoE1AdDZT76aVcW5TzHOdIKXlTcat iIBflHHzV6due7laF2z0JFSI+OKsiIwpeD7gF+ilRffJ85N8vD+arahb+/Hr377Wsr N9bYS+Pxee4jh9u4IWwr0Jq/aD9QrRbZr76PB+Zli9sv88Y4WcbL2LSYVVjnY/EV5f LmhM6v+Pnc9RETDQFcAELDOxGYsse/dv6CXWBDN4qSI1h3FcxLEE6Yr9mq3lC8wg2T 4HN1+IZdmnjWceDSNmPcOLHgflnma12pgsXTNieReWLheheP/naOiv6Nss7yLkslYs XV9cabMkfPexg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 25 Nov 2022 06:56:32 +0000 Message-Id: References: <87mtfi63ut.fsf@gmx.com> <20221125012142.22579-1-pierre.langlois@gmx.com> <20221125012142.22579-8-pierre.langlois@gmx.com> In-Reply-To: <20221125012142.22579-8-pierre.langlois@gmx.com> 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: , Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669359437; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=F2OxiNAAvSoeT3/HGQK/aT77balYnkdhBSBMHr+ManY=; b=E/dgqFk1hDfADFuRLb45PGRzLuFre01itELQFuZ11o1rnSOlzlKMBLAW3xuH7nlRVa5YOm 382hGd1MKAgs58YJR7ZyI8BIogy/AS2Vo3z288dQa5LwAJzRNaKupOBtGFib9LUnhNtl9H WRsG+hG074cyu/AyfRVb7m0R+grCVf3RIurNkF0Ylzy4JfkLYl+t5/SrRxS5DuuBz1UVhk 1QuOWPlxQm8GKGvhiltTkRrxMv8ikAv4IU4NBDb+WCMUjZGP2JXMXWlr/9rhKvw8AyCmqM 5KRcMde7dbUbfh4h+3OpNwBjDCvqpt2mhPyPsEE8A5vTlnREE5Yn7z21/THrgA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669359437; a=rsa-sha256; cv=none; b=E1RjgKY2aVevB9Qm27YYnBaFt7PM79kuIKZ1tf8508snkch3MM38/ZeeZtInpyN2a74FOu tMOWBvimdyXQW/mypmOQWx94PCVNqEemL2+eL+zzWBCh1qzp91ndIibUMuTsIuLjJRDrNw /s1zCNkDjTgtZGoeNI5fKVfg+M9ZfcPutt0+O3VwpjMcFT4/qdewh4v8zFAoaR7OlgVb5M SGbtsh+lH2xZVqQRtAwzdKBxx21Z4DokC2XiFwydGN6OxRUEwzFyYoQzC3GMhQ3gBxkGvd Tj/tZGLg7ShfYDuhZu2vY5CjhZyRRGlNdoj+q2d70poCL/HlZ7CdVEycrBO6bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=lhuYBOQq; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -3.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=lhuYBOQq; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: BB72432967 X-Spam-Score: -3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8nZsxh+P+hXe On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote: > * gnu/packages/tree-sitter.scm (tree-sitter-c): New variable. > --- a/gnu/packages/tree-sitter.scm > +++ b/gnu/packages/tree-sitter.scm > @@ -156,3 +157,35 @@ (define-public tree-sitter-cli > This package includes the @command{tree-sitter} command-line tool.") > (license license:expat))) > + > +(define tree-sitter-delete-generated-files > + '(begin > + (delete-file "binding.gyp") > + (delete-file-recursively "bindings") > + (delete-file "src/grammar.json") > + (delete-file "src/node-types.json") > + (delete-file "src/parser.c") > + (delete-file-recursively "src/tree_sitter") > + #t)) No need to outline this; just do (snippet #~(begin (for-each delete-file (list "binding.gyp" "src/grammar.json" "src/node-types.json" "src/parser.c")) (for-each delete-file-recursively (list "bindings" "src/tree_sitter")))) Shouldn't some of this deletion (namely, that of pregenerated files) be handled by tree-sitter, though? > + (build-system tree-sitter-build-system) ...I think you may have forgotten to send the patches for the tree-sitter-build-system? -- (