Message ID | 87fs88uvo4.fsf@gmx.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2D96E27BBE9; Sun, 7 May 2023 14:20:20 +0100 (BST) 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,FREEMAIL_FROM,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 85CF427BBE2 for <patchwork@mira.cbaines.net>; Sun, 7 May 2023 14:20:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1pveJ1-0008QP-Gr; Sun, 07 May 2023 09:20:03 -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 <Debian-debbugs@debbugs.gnu.org>) id 1pveJ0-0008Py-3q for guix-patches@gnu.org; Sun, 07 May 2023 09:20:02 -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 <Debian-debbugs@debbugs.gnu.org>) id 1pveIz-0007CC-QJ for guix-patches@gnu.org; Sun, 07 May 2023 09:20:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pveIz-0004sJ-KL for guix-patches@gnu.org; Sun, 07 May 2023 09:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63348] [PATCH 0/4] Fix tree-sitter-cli build after 0.20.8 update. Resent-From: Pierre Langlois <pierre.langlois@gmx.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 May 2023 13:20:01 +0000 Resent-Message-ID: <handler.63348.B.168346557118684@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63348 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63348@debbugs.gnu.org Cc: Efraim Flashner <efraim@flashner.co.il> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168346557118684 (code B ref -1); Sun, 07 May 2023 13:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 May 2023 13:19:31 +0000 Received: from localhost ([127.0.0.1]:36684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1pveIU-0004rI-Gy for submit@debbugs.gnu.org; Sun, 07 May 2023 09:19:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:44382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pierre.langlois@gmx.com>) id 1pveIT-0004rA-1z for submit@debbugs.gnu.org; Sun, 07 May 2023 09:19:29 -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 <pierre.langlois@gmx.com>) id 1pveIS-0008MA-Bn for guix-patches@gnu.org; Sun, 07 May 2023 09:19:28 -0400 Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pierre.langlois@gmx.com>) id 1pveIE-00075C-5H for guix-patches@gnu.org; Sun, 07 May 2023 09:19:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1683465520; i=pierre.langlois@gmx.com; bh=9TGsuGFmiIO/dfdLHh1JhTT+jXqCZpHkolo/RPL+cQQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=nvwOIwCz2s7bkETMy+r81jEY0dcV8ddFr/YkBHeWMzbRJ/y6829UGG0ahqErxYzoZ 1qgqGrzbgh9/Rxx/qlhyVJ1IFiUjHSHkvyZRQplGjUrkgQ8n8jdcBJpt1lSggrpMlT VrK3OYA+iaCk4zY16K7544serOY/MIhIH9vlmVvp1/gUidXS59mpMP6CBAM6PSjoVu LxEx7kP5n/zS7a/hEXwIju399D5r6lSlYR1ibEqUaVCa6A6gsXhILRBGMVSplgsT/z Lbk+jFaR/hkkNh8yFffv9a/Dt0vAx0tR47zxrYXW/9EwE5kjfhM5HLKBWfCg6sqVPu NaGJJVWK9QFwQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Ml6qC-1qeZwa0pG0-00lR2o; Sun, 07 May 2023 15:18:40 +0200 User-agent: mu4e 1.10.2; emacs 28.2 From: Pierre Langlois <pierre.langlois@gmx.com> Date: Sun, 07 May 2023 14:12:02 +0100 Message-ID: <87fs88uvo4.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:+JKaPZUWArFShB9sSgD2YX507e6yme019mV7cQs/Z/xZCUpm8Or m+a+MPx2DV//PHk4xPL0LBPoGdQV4q8J0alV/nX5vn+KWO1Jy73hUDv9zcazfaiQnwEow4v tegL9mkAUWBlR1jMjWH1XWTdVaG5waPQCkouqlXdoRVutGm6E4mj+DsXOuJS1QaYgaYJp1i hHepcdB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= Received-SPF: pass client-ip=212.227.17.22; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Fix tree-sitter-cli build after 0.20.8 update.
|
|
Message
Pierre Langlois
May 7, 2023, 1:12 p.m. UTC
Hi Guix and rust-team! This series completes the 0.20.8 tree-sitter update by fixing the tree-sitter-cli package. I actually had started working on it a few weeks back, but never found the motivation to complete it until now! Sadly, to do it I've had to disable tests, with notes to re-enable them later, after the rust update. It seems that rust 1.65 is explicitely required now: https://github.com/tree-sitter/tree-sitter/pull/2167/commits/da894afef59e1aefa23470c7db7445096f8f0e65 However, luckily, it looks like only the tests are using any code that doesn't compile with 1.60. Lastly, we need a newer version of the webbrowser rust crate, but it pulls in a lot of unsupported dependencies. I see that we usually include them, but in this case, doing so forces us to update core windows-sys crates, which would cause a rebuild of librsvg :-/ It turned out to be a lot easier to just add a patch to remove android, ios and macos dependencies manually. Thanks, Pierre Pierre Langlois (4): gnu: Add rust-unindent-0.2. gnu: Update rust-tiny-http to 0.12.0. gnu: Add rust-webbrowser-0.8. gnu: tree-sitter-cli: Fix build with 0.20.8 version. gnu/local.mk | 1 + gnu/packages/crates-io.scm | 62 ++++++++++++++++--- ...ust-webbrowser-remove-unsupported-os.patch | 24 +++++++ gnu/packages/tree-sitter.scm | 20 +++++- 4 files changed, 95 insertions(+), 12 deletions(-) create mode 100644 gnu/packages/patches/rust-webbrowser-remove-unsupported-os.patch base-commit: 8b855dc1f4a3e31c002c229ad4d91525f4ce97d3
Comments
On Sun, May 07, 2023 at 02:12:02PM +0100, Pierre Langlois wrote: > Hi Guix and rust-team! > > This series completes the 0.20.8 tree-sitter update by fixing the > tree-sitter-cli package. I actually had started working on it a few > weeks back, but never found the motivation to complete it until now! > > Sadly, to do it I've had to disable tests, with notes to re-enable them > later, after the rust update. It seems that rust 1.65 is explicitely > required now: https://github.com/tree-sitter/tree-sitter/pull/2167/commits/da894afef59e1aefa23470c7db7445096f8f0e65 > However, luckily, it looks like only the tests are using any code that > doesn't compile with 1.60. On the rust-team branch, which we hope to merge Real Soon™, we have rust-1.67, so I re-enabled the tests. > Lastly, we need a newer version of the webbrowser rust crate, but it > pulls in a lot of unsupported dependencies. I see that we usually > include them, but in this case, doing so forces us to update core > windows-sys crates, which would cause a rebuild of librsvg :-/ I went to remove the patch and add in the packages, but even after all the patches on the rust-team branch we don't have rust-jni-0.21 (at least) so I punted and put your patch back in :) > It turned out to be a lot easier to just add a patch to remove android, > ios and macos dependencies manually. Indeed! I wonder about doing that with other packages which use them. > Thanks, > Pierre > > Pierre Langlois (4): > gnu: Add rust-unindent-0.2. I ended up dropping this patch since it was already in effect on the rust-team branch. > gnu: Update rust-tiny-http to 0.12.0. > gnu: Add rust-webbrowser-0.8. > gnu: tree-sitter-cli: Fix build with 0.20.8 version. These 3 went in though. Thanks! > gnu/local.mk | 1 + > gnu/packages/crates-io.scm | 62 ++++++++++++++++--- > ...ust-webbrowser-remove-unsupported-os.patch | 24 +++++++ > gnu/packages/tree-sitter.scm | 20 +++++- > 4 files changed, 95 insertions(+), 12 deletions(-) > create mode 100644 gnu/packages/patches/rust-webbrowser-remove-unsupported-os.patch > > > base-commit: 8b855dc1f4a3e31c002c229ad4d91525f4ce97d3 > -- > 2.39.2
Efraim Flashner <efraim@flashner.co.il> writes: > [[PGP Signed Part:Undecided]] > On Sun, May 07, 2023 at 02:12:02PM +0100, Pierre Langlois wrote: >> Hi Guix and rust-team! >> >> This series completes the 0.20.8 tree-sitter update by fixing the >> tree-sitter-cli package. I actually had started working on it a few >> weeks back, but never found the motivation to complete it until now! >> >> Sadly, to do it I've had to disable tests, with notes to re-enable them >> later, after the rust update. It seems that rust 1.65 is explicitely >> required now: https://github.com/tree-sitter/tree-sitter/pull/2167/commits/da894afef59e1aefa23470c7db7445096f8f0e65 >> However, luckily, it looks like only the tests are using any code that >> doesn't compile with 1.60. > > On the rust-team branch, which we hope to merge Real Soon™, we have > rust-1.67, so I re-enabled the tests. Oh happy that it just worked! I was thinking of trying it on the rust-team branch, but didn't get to yet. > >> Lastly, we need a newer version of the webbrowser rust crate, but it >> pulls in a lot of unsupported dependencies. I see that we usually >> include them, but in this case, doing so forces us to update core >> windows-sys crates, which would cause a rebuild of librsvg :-/ > > I went to remove the patch and add in the packages, but even after all > the patches on the rust-team branch we don't have rust-jni-0.21 (at > least) so I punted and put your patch back in :) > >> It turned out to be a lot easier to just add a patch to remove android, >> ios and macos dependencies manually. > > Indeed! I wonder about doing that with other packages which use them. Oh yeah, doing this made me wonder if we couldn't do this automatically, and rewrite cargo.toml files in the build system, to drop many packages like that. I wonder how well that would work. > >> Thanks, >> Pierre >> >> Pierre Langlois (4): >> gnu: Add rust-unindent-0.2. > > I ended up dropping this patch since it was already in effect on the > rust-team branch. > >> gnu: Update rust-tiny-http to 0.12.0. >> gnu: Add rust-webbrowser-0.8. >> gnu: tree-sitter-cli: Fix build with 0.20.8 version. > > These 3 went in though. Thanks! Nice, thank you! Pierre