From unknown Wed Jun 18 00:14:20 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#78754 <78754@debbugs.gnu.org>
To: bug#78754 <78754@debbugs.gnu.org>
Subject: Status: Tree-sitter started versioning their shared library filenames
Reply-To: bug#78754 <78754@debbugs.gnu.org>
Date: Wed, 18 Jun 2025 07:14:20 +0000
retitle 78754 Tree-sitter started versioning their shared library filenames
reassign 78754 emacs
submitter 78754 Peter Oliver
severity 78754 normal
thanks
From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 10 14:52:48 2025
Received: (at submit) by debbugs.gnu.org; 10 Jun 2025 18:52:48 +0000
Received: from localhost ([127.0.0.1]:39559 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uP45V-0008Qw-QR
for submit@debbugs.gnu.org; Tue, 10 Jun 2025 14:52:47 -0400
Received: from lists.gnu.org ([2001:470:142::17]:42532)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from )
id 1uP45R-0008OY-6M
for submit@debbugs.gnu.org; Tue, 10 Jun 2025 14:52:42 -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 1uP45G-0000y8-77
for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2025 14:52:30 -0400
Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1uP45D-00087l-27
for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2025 14:52:29 -0400
Received: by mail-wr1-x42b.google.com with SMTP id
ffacd0b85a97d-3a4ef2c2ef3so4749075f8f.2
for ; Tue, 10 Jun 2025 11:52:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1749581544; x=1750186344; darn=gnu.org;
h=mime-version:message-id:subject:to:from:date:from:to:cc:subject
:date:message-id:reply-to;
bh=Kv/+jFMpez9Rjq6dDR5MTdc6tjraX4fQ1LPhkKF3+Os=;
b=ISit3cL15Y03rcvlyAWSfLuyIB+aLbvobEeJpek1FJKHkatOB6A0dvr3aO1rdHrgqU
oy1DH1QfKhXjmCcWE7lue92v32RaPnfZOTqJqElFB/R6XEx5uy960ucKg631ywl1ftES
YgW2AmfFLSLhNynzqjc1ZZAKUvFaVAIWhwtlc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749581544; x=1750186344;
h=mime-version:message-id:subject:to:from:date:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=Kv/+jFMpez9Rjq6dDR5MTdc6tjraX4fQ1LPhkKF3+Os=;
b=YEzoAHD0eT9oXPaOqAqXNN2dEQbd5TRUHK7K8KUbf/viIXO45YlFIfvA2copDQ+0gf
8CI3o74J2iteYxpo/AP2ZEDC0g8u5LZ7i9mWJEtimzutdQBTIj4rPbI/16sCcWj4yVYe
DHWyuG6pSYvBPtnOgJ/7sfjAEuVrGaFm2ubo0xnmoQ7z4fDXwLqcvvFAtbkLlPH7X6SQ
o2kUWscVmnlP5g5/yH4MZ3NrPVCZ56tJYwK6WpBFwTQNjNgKrZGul3aTqfDMic2vGibT
RXQcUkfigFodewne0vOmJkhId/tHiAwAJboaJAYsT0BeGt9NceEDNIP0TpYVcPrU7wi5
5C1g==
X-Gm-Message-State: AOJu0YyAgewhbDJv9BOJt0h+KOJ8wrj2lid+3Xb2lBDwcJc+0JKWBZE3
k1MXMywULhc6FFcMh+6R5zzP5RsqQMyMRX+4rD6jp+bz9eAn+ZfvlRg5cKAXv04FYMntYOJtKgE
SnoY=
X-Gm-Gg: ASbGnctB7ICxVSWCjp9zbNZnv9Ku22NTubO7I9dZrRrdnT2NDH3Vn0IIbS+dscn/TSk
cYR5mAXcwHeOOdk3/0CbqxzObaiki4sG6XGhFnH5sTwGOpfRT0V7hUKSU7wisMXbE2eRBs7dZxe
5tpy6LUASvGvwb1fnHc61y3D/KNvvLEBfYvcJ8xX6adqYvYpP3pRkjXkyupTyjemH13LsM8kzKd
KY1kzPyE6ww5jYIWszD/KRXdj3570YYQccQo1oYux3MRqDv7YpAuBb9rlCOBfENX8GfxN5pmF4/
xwOfHQOv8/t6+ekqJ3V+KvpeVYk/jEORCl/zSpiXSrtxqtvWTyPPhePkx0Lqw8z2H0JXNYr/yTZ
jeCl1bfMIHsYE+AL3hWkKKadsxbJPl7K8yZI7lvCTQNYLUrBQBuJ5UtEZJdaVZrxoePIXCONF
X-Google-Smtp-Source: AGHT+IEKxgFDK6iIv7AVFB+7uhsAlRcSVDS2qGxKl3E9jz9fQBXdTzNCHbvcsdgHt4D6wgOnC3r4vA==
X-Received: by 2002:a05:6000:4285:b0:3a3:685b:118 with SMTP id
ffacd0b85a97d-3a5587fb3f2mr140280f8f.24.1749581543868;
Tue, 10 Jun 2025 11:52:23 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3a5323ae183sm13200055f8f.32.2025.06.10.11.52.23
for
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 10 Jun 2025 11:52:23 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 55AIqLcW120507
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
for ; Tue, 10 Jun 2025 19:52:21 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
55AIqLm8120504
for ; Tue, 10 Jun 2025 19:52:21 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Tue, 10 Jun 2025 19:52:21 +0100 (BST)
From: Peter Oliver
To: bug-gnu-emacs@gnu.org
Subject: Tree-sitter started versioning their shared library filenames
Message-ID: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-1060774413-1749581541=:4469"
Received-SPF: pass client-ip=2a00:1450:4864:20::42b;
envelope-from=p.d.oliver@mavit.org.uk; helo=mail-wr1-x42b.google.com
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,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.3 (/)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-1060774413-1749581541=:4469
Content-Type: text/plain; format=flowed; charset=ISO-8859-7
Content-Transfer-Encoding: 8BIT
The Makefiles distributed with Tree-sitter parsers used to install to, say, /usr/lib/libtree-sitter-foo.so.0.0. Consequently, Emacs currently expects parsers to have names like this.
Recent Makefiles instead install to /usr/lib/libtree-sitter-foo.so.14.0 or /usr/lib/libtree-sitter-foo.so.15.0 (where 14 or 15 is the Tree-sitter ABI version, taken from LANGUAGE_VERSION in the parser˘s src/parser.c). Emacs should look in these places as well.
Presumably we should ask the libtree-sitter we˘re using what ABI versions it supports, rather than hard-coding 14 and 15.
--
Peter Oliver
---1463811584-1060774413-1749581541=:4469--
From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 02:47:58 2025
Received: (at 78754-done) by debbugs.gnu.org; 11 Jun 2025 06:47:58 +0000
Received: from localhost ([127.0.0.1]:45763 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPFFe-0007vr-GF
for submit@debbugs.gnu.org; Wed, 11 Jun 2025 02:47:58 -0400
Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:54524)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from ) id 1uPFFc-0007vb-Cn
for 78754-done@debbugs.gnu.org; Wed, 11 Jun 2025 02:47:57 -0400
Received: by mail-pl1-x632.google.com with SMTP id
d9443c01a7336-23508d30142so79403815ad.0
for <78754-done@debbugs.gnu.org>; Tue, 10 Jun 2025 23:47:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1749624470; x=1750229270; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=p1WqUel6VID92vig4RARnJQqd/d0/Io3rWO/IjQUW3Y=;
b=JTwKqszeFPxu78ZObcCo9nGo8zINmT6+xog3WByV/W9MIFBZ4L9PgpKBS9hGpITxie
+8NnY8nT9SpuFJkBLROLTMl7NuGXQs1YrMcUgd+ZBQDk//kxjs/TTrrpSJkPYBzd+9Si
KE3DVycBapkTB1JlKSVCS79kVWOtPGluV7I/EMajFQR+/BNT3mBEzg0B1LyAHgVKD4qW
Htt1UGkg02vvXGtm+oLYCDGmWksKeLocvzjVyrbyTR/3qZqlm5PxuTSCmepbyDEzSUjf
nRXqFjKTqCbseMed3YB9KJN7fdBe/2ENJ6xStCgSSOygAE5hexVMa9pNHyHEAt4Z3+DD
oqLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749624470; x=1750229270;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=p1WqUel6VID92vig4RARnJQqd/d0/Io3rWO/IjQUW3Y=;
b=wc/7K8W+/b0TY7qi7YLio/igu0PY9z7OZZFmz26EVCwGOWcgTQID6fs932OYhaoVYa
EuycBxjqPwUcXjf42nQsznMO+3tdbZZWo2ZRK6vTmfHiFCwzvgiPn1kzD5FV3xBze82H
Wf3liF+EDQNvHTtAp4FpQNa7Ovny+MufMd/8k5esneHZs4uQuTbPbaT5C0ZUo/hZlGF5
b5KoFK0Ao9GB44WZo4hOiY+pT49zi7A4/HDJDwHR8JyIxO/rq80V1NB5oltMCqGn5D75
sYOOG53kKBaJdZRZXNetRi/M8xoniO0DR3IDdqy9HlV4qbsj4UTCbRENUhz06EcYgJCE
cnWg==
X-Gm-Message-State: AOJu0Yw1vWcbtMXgJIYf6DOz2uGP3oeUZoUVMB6NG5iG6qsrL5es9/qo
hbFqLOPYYNLHFcV9Wb/BlM84fMYdwoLmn9wXQa/bzn7K19AawtIA02bNoC/Gdg==
X-Gm-Gg: ASbGncs/w3agAfszuHVs1tuvtlS+Ea3BX5U6LFtZrzYwyKu5l777xYrBTtTWAxkC/RT
nbZFK9KOIV8ldukdQspwG8i+GWUE7o70c3ckN3nGyLdRyEiJ7dOI3G/woOiOIAtFGG6U6yniQix
GT0Fn6SU8L1RHzbTyHSq2oKrmREzbvYIgDNjLfFAfnvVUlYlqFQt1BPBqg+xxigv96ZSGldmOeg
nisNYjUIsMybJR5+FmuYFyepIabCrB60F8GUK14fKOmjqIAxyvBlbdJnxWzWPJ8hUbGqsC27RYS
3RdFrIOagZbeVLjMrUhF2eTlHIjvLCYAfTMoYgwE+xgl3Oas9cFUOAkSH8gFYKc2qdT2yHkx8My
RNnKHDT9WkD8T1PdSD21RI3sKQvoAoKbqUudnATB41GhyYg==
X-Google-Smtp-Source: AGHT+IG7OjWzDL5CTCP5ENWRXV4/BgmcoV0k9euNUPCPXP+dJVoqAwk4BN+YNEaLg0MlGWqHiIARYA==
X-Received: by 2002:a17:902:f64b:b0:234:a139:120b with SMTP id
d9443c01a7336-2364260d13dmr24935735ad.11.1749624470081;
Tue, 10 Jun 2025 23:47:50 -0700 (PDT)
Received: from smtpclient.apple (c-24-4-247-194.hsd1.ca.comcast.net.
[24.4.247.194]) by smtp.gmail.com with ESMTPSA id
d9443c01a7336-2360307810bsm80821885ad.31.2025.06.10.23.47.49
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Tue, 10 Jun 2025 23:47:49 -0700 (PDT)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\))
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
From: Yuan Fu
In-Reply-To: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
Date: Tue, 10 Jun 2025 23:47:38 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
To: Peter Oliver
X-Mailer: Apple Mail (2.3826.500.181.1.5)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754-done
Cc: 78754-done@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> On Jun 10, 2025, at 11:52=E2=80=AFAM, Peter Oliver =
wrote:
>=20
> The Makefiles distributed with Tree-sitter parsers used to install to, =
say, /usr/lib/libtree-sitter-foo.so.0.0. Consequently, Emacs currently =
expects parsers to have names like this.
>=20
> Recent Makefiles instead install to =
/usr/lib/libtree-sitter-foo.so.14.0 or =
/usr/lib/libtree-sitter-foo.so.15.0 (where 14 or 15 is the Tree-sitter =
ABI version, taken from LANGUAGE_VERSION in the parser=E2=80=99s =
src/parser.c). Emacs should look in these places as well.
>=20
> Presumably we should ask the libtree-sitter we=E2=80=99re using what =
ABI versions it supports, rather than hard-coding 14 and 15.
>=20
> --=20
> Peter Oliver
Thanks for the heads-up! I pushed a change to emacs-30 to look for all =
supported versions. Eg, if the tree-sitter library supports language =
version 13 to 15, Emacs will try to look for libtree-sitter-foo.so.13.0, =
libtree-sitter-foo.so.14.0, and libtree-sitter-foo.so.15.0.
Yuan=
From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 04:50:04 2025
Received: (at 78754) by debbugs.gnu.org; 11 Jun 2025 08:50:04 +0000
Received: from localhost ([127.0.0.1]:46602 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPH9n-0007Cq-Es
for submit@debbugs.gnu.org; Wed, 11 Jun 2025 04:50:04 -0400
Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]:58864)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1uPH9k-0007Bg-Eo; Wed, 11 Jun 2025 04:50:01 -0400
Received: by mail-vs1-xe29.google.com with SMTP id
ada2fe7eead31-4e79de9da3fso873285137.1;
Wed, 11 Jun 2025 01:50:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1749631794; x=1750236594; darn=debbugs.gnu.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=mJAAdh8WSlkDq38GFRhTaHaJVjon1iw3B4gyuyqa4mg=;
b=lAItUJZPksCkiBaMPdPZRBWoD9r8fnvQohmrFOEiDnVwg0ecZSj1oZkpdrJvqiWJYl
o47m3MTsIgki7ilkBbDNskI+sVPqWL5O9wGXAuCq4vKIA+ak8gjk5samJUGAaFsC8WXQ
FufkWId2nWovSJ7WlKf7j3Z7Gt/JJEmg5jd01AuFKerG8/zOXK+GKbo7NPey6PpmB4lg
PQUTqpurK45OHypFADWrE1uglPH3XMqTtWXitmk0khOEveoI+wS2xVnh1ojqEbW/ZQm2
zqOGEIuGP62BCAQNUp+sWJPfK3vqjhXOiKnxrX53r/NMvMoGa9bEqGmYTeIw9AjTkR7D
2iCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749631794; x=1750236594;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=mJAAdh8WSlkDq38GFRhTaHaJVjon1iw3B4gyuyqa4mg=;
b=uS53qAA0oxLxArIfU+gGgA/iuEKvIbM5mHcjE7XDp8eTTDdOONF+NsvZNhfHeUCE9r
sKDa7ATfKHQeMVAFLDu7fEqxHnxuc/GRoJnibYbv4Gg+XKVZwKDG0Etws6XCDGDTgzHe
QlC/aSMc35+VKsjsvvxWXbnrnvYtr+kynoZjqj1FCADEV46qjmbfeKexrEwvQP5ET+21
LfD8kp92chrycOdAMQ3ZW/JUrP66qfNzGEKBdBwVvTWOSq3nJ05ORU87mzwU2srDD0CU
sR1szUMi9q3KcLzxwM5zufiwXP6DLjSdYE3DcWJE/Mohy5xPm9uwwEax67RUudW8PDha
tImg==
X-Gm-Message-State: AOJu0Yzfp33ppk7K+28MHOQRlRPN2rNzbgO2PFXPwHsBIugNaZjcdiU2
0V5iH2Rl5FxleVKtS7P3ugxPC9dqM6TwnhStCljUzxcDX1vrhAJi2dYqx9VnrGfOBKcn61Fidq7
kVrwlUYq4FPLC149NdyAXzCWAeM3bNUdmxEvB
X-Gm-Gg: ASbGnct7vLBIcngsT7o9qL4EsOVoCOoOHm1CQppSLo1uYZioCdF4nvYgaobi6NRWbx2
ueDu7X213bNGJHUG2Hs7lzC0SnsDFQQxkICp3prb7s7bLZuhOXMMecUaBFMzn5Lb6lWswMa48L6
rkSiftG+UR8PyLd1Nofhw52GAGg0E4z8luBZt07neh7/Py
X-Google-Smtp-Source: AGHT+IGQHWl/KQvFdv2GBEDTNRLjF3/8TCddZSDzevrCeBJZ0dcM4p3EfmpaAgkhtHqUwlWfh9Uc5spEWPdQlrM5N7g=
X-Received: by 2002:a05:6102:3e2a:b0:4e2:df8d:dfeb with SMTP id
ada2fe7eead31-4e7bae93f7dmr1983853137.6.1749631794109; Wed, 11 Jun 2025
01:49:54 -0700 (PDT)
MIME-Version: 1.0
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
In-Reply-To: <973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
From: =?UTF-8?Q?St=C3=A9phane_Marks?=
Date: Wed, 11 Jun 2025 09:49:42 +0100
X-Gm-Features: AX0GCFuTxgSKurrDXjtkjDug0soi-kRIB7a6nHL_VXov3BJLNew7CeZQRUkBX8U
Message-ID:
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
To: 78754@debbugs.gnu.org, casouri@gmail.com, p.d.oliver@mavit.org.uk
Content-Type: multipart/alternative; boundary="0000000000009362ad063747e5d0"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754
Cc: 78754-done@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
--0000000000009362ad063747e5d0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Wed, Jun 11, 2025 at 7:48=E2=80=AFAM Yuan Fu wrote:
>
>
> > On Jun 10, 2025, at 11:52=E2=80=AFAM, Peter Oliver
> wrote:
> >
> > The Makefiles distributed with Tree-sitter parsers used to install to,
> say, /usr/lib/libtree-sitter-foo.so.0.0. Consequently, Emacs currently
> expects parsers to have names like this.
> >
> > Recent Makefiles instead install to /usr/lib/libtree-sitter-foo.so.14.0
> or /usr/lib/libtree-sitter-foo.so.15.0 (where 14 or 15 is the Tree-sitter
> ABI version, taken from LANGUAGE_VERSION in the parser=E2=80=99s src/pars=
er.c).
> Emacs should look in these places as well.
> >
> > Presumably we should ask the libtree-sitter we=E2=80=99re using what AB=
I
> versions it supports, rather than hard-coding 14 and 15.
> >
> > --
> > Peter Oliver
>
> Thanks for the heads-up! I pushed a change to emacs-30 to look for all
> supported versions. Eg, if the tree-sitter library supports language
> version 13 to 15, Emacs will try to look for libtree-sitter-foo.so.13.0,
> libtree-sitter-foo.so.14.0, and libtree-sitter-foo.so.15.0.
>
This is indeed a welcome improvement. Unless I'm reading it wrong, it
looks like the ABI tests go 0.0 forward through 15 (modulo what's
intrinsically supported). Should the tests be reversed so the most recent
ABI takes precedence?
-Stephane
--0000000000009362ad063747e5d0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
> On Jun 10, 2025, at 11:52=E2=80=AFAM, Peter Oliver <p.d.oliver@mavit.org.uk&g=
t; wrote:
>
> The Makefiles distributed with Tree-sitter parsers used to install to,=
say, /usr/lib/libtree-sitter-foo.so.0.0.=C2=A0 Consequently, Emacs current=
ly expects parsers to have names like this.
>
> Recent Makefiles instead install to /usr/lib/libtree-sitter-foo.so.14.=
0 or /usr/lib/libtree-sitter-foo.so.15.0 (where 14 or 15 is the Tree-sitter=
ABI version, taken from LANGUAGE_VERSION in the parser=E2=80=99s src/parse=
r.c).=C2=A0 Emacs should look in these places as well.
>
> Presumably we should ask the libtree-sitter we=E2=80=99re using what A=
BI versions it supports, rather than hard-coding 14 and 15.
>
> --
> Peter Oliver
Thanks for the heads-up! I pushed a change to emacs-30 to look for all supp=
orted versions. Eg, if the tree-sitter library supports language version 13=
to 15, Emacs will try to look for libtree-sitter-foo.so.13.0, libtree-sitt=
er-foo.so.14.0, and libtree-sitter-foo.so.15.0.
=
div>
This is in=
deed a welcome improvement.=C2=A0 Unless I'm reading it wrong, it looks=
like the ABI tests go 0.0 forward through 15 (modulo what's intrinsica=
lly supported).=C2=A0 Should the tests be reversed so the most recent ABI t=
akes precedence?
-Stephane
--0000000000009362ad063747e5d0--
From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 08:34:26 2025
Received: (at 78754) by debbugs.gnu.org; 11 Jun 2025 12:34:26 +0000
Received: from localhost ([127.0.0.1]:48026 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from
)
id 1uPKev-0003ew-P7
for submit@debbugs.gnu.org; Wed, 11 Jun 2025 08:34:26 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:52724)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1uPKeq-0003eT-OW
for 78754@debbugs.gnu.org; Wed, 11 Jun 2025 08:34:22 -0400
Received: by mail-wr1-x42e.google.com with SMTP id
ffacd0b85a97d-3a507e88b0aso5947447f8f.1
for <78754@debbugs.gnu.org>; Wed, 11 Jun 2025 05:34:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1749645254; x=1750250054; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=Mkxn2T+bvkz7t5uBgIMJ2KYCBWSPtjz3wGJq0sKleSU=;
b=T1Xf9s1zmNz+O6H8dy15jFYpL400szIqsZmS+XKfOKWZV39w82kQw6X1VYRnuB35ix
Vq4V4q9XHnHIIJ58/3GHjCXJDVc033RCPNvlmr1RpnlNsSHu+64FHZifSrZHfAjn9IhZ
URm87jTKyFOuRxHjg5Wa4B+PupeO8eyJ7Adxw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749645254; x=1750250054;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=Mkxn2T+bvkz7t5uBgIMJ2KYCBWSPtjz3wGJq0sKleSU=;
b=R9hwnhnICUN4J6A4v3uyb33TbHIl0oym8E0mvszp1WjfVLJti+vyrp6zquwUYG2mPX
iZQRXe2gpZaVdy/f+06sYRss86qgLzs1Y59tIRT7n7rH4CPe3X+titqH71D1F/weVsGj
E7xtiHPKxt6JtC89iGFdB94evWTc2EI7mJkfnhLmUGHzW8lYkKop2NB7Wz+hncYsU3y8
e0158TFipb6x3AHpz4YSBKjEzIjq+PrR8osMJ8t1derlxlIBoE9PLKs4nm4qCAjI8YuD
42Fa5H+s1hhBpm0AXuiOL39/IxmsIN0k4M4Zv/uE+l/l4MGBLgjkZr7FYLP9UU2BcrP3
K4OQ==
X-Gm-Message-State: AOJu0YztypWFJL7OUvO9lwGAvta5GdwGSL5rRhDaQAGDvEQh6ZNkPKn2
g0xKNinqjz/ijJRamp0wct064HWQA0TaRcxL2kHsbWz1FUjoQQncwdJ+TdncbzmT7g==
X-Gm-Gg: ASbGncunlmdTtCPPwLV6Wn6qUZHWR+PkEuj5sWizlbXALK9dneRDzT5z/0AemLBQJcM
DV/o9CYf0yO4c5ZxoRRMppLdiE0HiaMhlMqkR4LNh6FiKjUuSs0xZfqwm2CyxbJnQWJrRMO1S7N
w6RxUt6PO4W1gxIJfB5EF4O42SorLTcN8V6YL1FfTRyRwybQhJLJtP632UM++jKvBm1e5+/C2RR
IynIDej9EnLRYUla0NQb81h+FpvhuHd3m250g9EN7ryiOcZoHd2TaIBlpwFR4jXqxqPZ/EPqLCX
P1L8YAIeevZUW+/OziD5VA4JSsMxaToBZV4aatxaCpPVnTRrcap39QSAPryRG+sVXHeBJLgZ4b2
68RzxuS1B9D3YqrGuYdcQezOzM09xXVQCYMm6NRHUTE28RGJP0m5Lw+oTxxUZAFjGzcAaXcFv
X-Google-Smtp-Source: AGHT+IFgqXf8w0bpa1sf72ZZpwGflElZ1dMnEdCVFDyRffZGPnLrOBa/sFID92+7ZLGJLaMqE71pBQ==
X-Received: by 2002:a05:6000:2082:b0:3a5:51a3:2ef5 with SMTP id
ffacd0b85a97d-3a558af9c62mr2020779f8f.58.1749645253744;
Wed, 11 Jun 2025 05:34:13 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3a5323a8c79sm14985543f8f.27.2025.06.11.05.34.12
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Jun 2025 05:34:12 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 55BCYBD8039162
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Wed, 11 Jun 2025 13:34:11 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
55BCYBHw039159; Wed, 11 Jun 2025 13:34:11 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Wed, 11 Jun 2025 13:34:11 +0100 (BST)
From: Peter Oliver
To: casouri@gmail.com
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
In-Reply-To:
Message-ID: <8a9c42d0-f41a-9859-9f7f-b16452795fcb@mavit.org.uk>
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-1898691384-1749645251=:4448"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754
Cc: 78754@debbugs.gnu.org,
=?ISO-8859-15?Q?St=E9phane_Marks?=
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-1898691384-1749645251=:4448
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Wed, 11 Jun 2025, Stéphane Marks wrote:
> On Wed, Jun 11, 2025 at 7:48 AM Yuan Fu wrote:
>
> > On Jun 10, 2025, at 11:52 AM, Peter Oliver
> wrote:
> >
> > Recent Makefiles instead install to
> /usr/lib/libtree-sitter-foo.so.14.0 or
> /usr/lib/libtree-sitter-foo.so.15.0 (where 14 or 15 is the
> Tree-sitter ABI version, taken from LANGUAGE_VERSION in the
> parser’s src/parser.c). Emacs should look in these places as
> well.
> >
>
> Thanks for the heads-up! I pushed a change to emacs-30 to look
> for all supported versions. Eg, if the tree-sitter library
> supports language version 13 to 15, Emacs will try to look for
> libtree-sitter-foo.so.13.0, libtree-sitter-foo.so.14.0, and
> libtree-sitter-foo.so.15.0.
>
> This is indeed a welcome improvement. Unless I'm reading it wrong, it looks
> like the ABI tests go 0.0 forward through 15 (modulo what's intrinsically
> supported). Should the tests be reversed so the most recent ABI takes
> precedence?
Seems reasonable to me.
Additionally, I think we only need to check .0 only if
TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION is less than 15. Anything
newer than that should be using the new file-naming scheme.
See attached patch.
--
Peter Oliver
---1463811584-1898691384-1749645251=:4448
Content-Type: text/plain; charset=US-ASCII; name=0001-Search-for-Tree-sitter-parsers-in-descending-languag.patch
Content-Transfer-Encoding: BASE64
Content-ID: <78d1106d-6b5a-a83d-a186-d88c862b12d6@froglet.home.mavit.org.uk>
Content-Description:
Content-Disposition: attachment; filename=0001-Search-for-Tree-sitter-parsers-in-descending-languag.patch
RnJvbSBlYWQ4YTBkNjgyMjZkN2Q4ZjBiYzdhNDYwMmE0YTEzMjE3ODJhZjBi
IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy
IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogV2VkLCAxMSBKdW4gMjAyNSAx
MzowMDo0MSArMDEwMA0KU3ViamVjdDogW1BBVENIXSBTZWFyY2ggZm9yIFRy
ZWUtc2l0dGVyIHBhcnNlcnMgaW4gZGVzY2VuZGluZyBsYW5ndWFnZSB2ZXJz
aW9uDQogb3JkZXINCg0KKiBzcmMvdHJlZXNpdC5jICh0cmVlc2l0X2xvYWRf
bGFuZ3VhZ2VfcHVzaF9mb3JfZWFjaF9zdWZmaXgpOiBSZXZlcnNlDQpvcmRl
ciBvZiBjaGVja2VkIHBhcnNlciBsaWJyYXJ5IHZlcnNpb25zLiAgQWRkaXRp
b25hbGx5LCBza2lwIHZlcnNpb24NCjAgaWYgcGFyc2VycyB0aGF0IGNvdWxk
IHBsYXVzaWJseSB1c2UgaXQgYXJlIG5vLWxvbmdlciBjb21wYXRpYmxlIHdp
dGgNCm91ciBsaWJ0cmVlLXNpdHRlci4gIE5ldmVyIHRyeSAwLjAuDQotLS0N
CiBzcmMvdHJlZXNpdC5jIHwgMzIgKysrKysrKysrKysrKysrKy0tLS0tLS0t
LS0tLS0tLS0NCiAxIGZpbGUgY2hhbmdlZCwgMTYgaW5zZXJ0aW9ucygrKSwg
MTYgZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1naXQgYS9zcmMvdHJlZXNpdC5j
IGIvc3JjL3RyZWVzaXQuYw0KaW5kZXggNDVkMWJjNThiMDYuLjNhZTI2NWQx
NjhmIDEwMDY0NA0KLS0tIGEvc3JjL3RyZWVzaXQuYw0KKysrIGIvc3JjL3Ry
ZWVzaXQuYw0KQEAgLTYwMywyMiArNjAzLDEzIEBAIHRyZWVzaXRfbG9hZF9s
YW5ndWFnZV9wdXNoX2Zvcl9lYWNoX3N1ZmZpeCAoTGlzcF9PYmplY3QgbGli
X2Jhc2VfbmFtZSwNCiAgICAgICBMaXNwX09iamVjdCBjYW5kaWRhdGUxID0g
Y29uY2F0MiAobGliX2Jhc2VfbmFtZSwgWENBUiAoc3VmZml4ZXMpKTsNCiAj
aWZuZGVmIFdJTkRPV1NOVA0KICAgICAgIC8qIE9uIFBvc2l4IGhvc3RzLCBz
dXBwb3J0IGxpYnJhcmllcyBuYW1lZCB3aXRoIEFCSSB2ZXJzaW9uDQotICAg
ICAgICAgbnVtYmVycy4gIE9yaWdpbmFsbHkgdHJlZS1zaXR0ZXIgZ3JhbW1h
cnMgYXJlIGFsd2F5cyB2ZXJzaW9uZWQNCi0gICAgICAgICBhdCAwLjAsIHNv
IHdlIGZpcnN0IHRyeSB0aGF0LiAgRm9yIG1vcmUgZGV0YWlscywgc2VlDQot
ICAgICAgICAgaHR0cHM6Ly9saXN0cy5nbnUub3JnL2FyY2hpdmUvaHRtbC9l
bWFjcy1kZXZlbC8yMDIzLTA0L21zZzAwMzg2Lmh0bWwuICAqLw0KLSAgICAg
IExpc3BfT2JqZWN0IGNhbmRpZGF0ZTIgPSBjb25jYXQyIChjYW5kaWRhdGUx
LCBWdHJlZXNpdF9zdHJfZG90XzApOw0KLSAgICAgIExpc3BfT2JqZWN0IGNh
bmRpZGF0ZTMgPSBjb25jYXQyIChjYW5kaWRhdGUyLCBWdHJlZXNpdF9zdHJf
ZG90XzApOw0KLQ0KLSAgICAgICpwYXRoX2NhbmRpZGF0ZXMgPSBGY29ucyAo
Y2FuZGlkYXRlMywgKnBhdGhfY2FuZGlkYXRlcyk7DQotICAgICAgKnBhdGhf
Y2FuZGlkYXRlcyA9IEZjb25zIChjYW5kaWRhdGUyLCAqcGF0aF9jYW5kaWRh
dGVzKTsNCi0NCi0gICAgICAvKiBTaW5jZSAyMDI1LCB0cmVlLXNpdHRlciBn
cmFtbWFycyB1c2UgdGhlaXIgc3VwcG9ydGVkDQotICAgICAgICAgVFJFRV9T
SVRURVJfTEFOR1VBR0VfVkVSU0lPTiBhcyB0aGUgbWFqb3IgdmVyc2lvbi4g
IFNvIHdlIG5lZWQNCi0gICAgICAgICB0byB0cnkgYWxsIHRoZSB2ZXJzaW9u
IHN1cHBvcnRlZCBieSB0aGUgdHJlZS1zaXR0ZXIgbGlicmFyeQ0KLSAgICAg
ICAgIHRvby4gIChTZWUgYnVnIzc4NzU0KSAgKi8NCi0gICAgICBmb3IgKGlu
dCB2ZXJzaW9uID0gVFJFRV9TSVRURVJfTUlOX0NPTVBBVElCTEVfTEFOR1VB
R0VfVkVSU0lPTjsNCi0JICAgdmVyc2lvbiA8PSBUUkVFX1NJVFRFUl9MQU5H
VUFHRV9WRVJTSU9OOw0KLQkgICB2ZXJzaW9uKyspDQorICAgICAgICAgbnVt
YmVycy4gIFNpbmNlIDIwMjUsIHRyZWUtc2l0dGVyIGdyYW1tYXJzIHVzZSB0
aGVpciBzdXBwb3J0ZWQNCisgICAgICAgICBUUkVFX1NJVFRFUl9MQU5HVUFH
RV9WRVJTSU9OIGFzIHRoZSBtYWpvciB2ZXJzaW9uLCBzbyBmaXJzdCB0cnkN
CisgICAgICAgICBhbGwgdGhlIHZlcnNpb24gc3VwcG9ydGVkIGJ5IHRoZSB0
cmVlLXNpdHRlciBsaWJyYXJ5LiAgKFNlZQ0KKyAgICAgICAgIGJ1ZyM3ODc1
NCkgKi8NCisgICAgICBmb3IgKGludCB2ZXJzaW9uID0gVFJFRV9TSVRURVJf
TEFOR1VBR0VfVkVSU0lPTjsNCisJICAgdmVyc2lvbiA+PSBUUkVFX1NJVFRF
Ul9NSU5fQ09NUEFUSUJMRV9MQU5HVUFHRV9WRVJTSU9OOw0KKwkgICB2ZXJz
aW9uLS0pDQogCXsNCiAJICBjaGFyIGV4dFsxNl07IC8vIDE2IHNob3VsZCBi
ZSBlbm91Z2ggdW50aWwgdGhlIGVuZCBvZiB1bml2ZXJzZS4NCiAJICBzbnBy
aW50ZiAoKGNoYXIgKikgJmV4dCwgMTYsICIuJWQuMCIsIHZlcnNpb24pOw0K
QEAgLTYyNiw2ICs2MTcsMTUgQEAgdHJlZXNpdF9sb2FkX2xhbmd1YWdlX3B1
c2hfZm9yX2VhY2hfc3VmZml4IChMaXNwX09iamVjdCBsaWJfYmFzZV9uYW1l
LA0KIAkJCQkJCSAgICAgYnVpbGRfc3RyaW5nIChleHQpKTsNCiAJICAqcGF0
aF9jYW5kaWRhdGVzID0gRmNvbnMgKHZlcnNpb25lZF9jYW5kaWRhdGUsICpw
YXRoX2NhbmRpZGF0ZXMpOw0KIAl9DQorDQorICAvKiBPcmlnaW5hbGx5LCB0
cmVlLXNpdHRlciBncmFtbWFycyB3YXJlIGFsd2F5cyB2ZXJzaW9uZWQgYXQg
MCwgc28NCisgICAgIGFsc28gdHJ5IHRoYXQuICBGb3IgbW9yZSBkZXRhaWxz
LCBzZWUNCisgICAgIGh0dHBzOi8vbGlzdHMuZ251Lm9yZy9hcmNoaXZlL2h0
bWwvZW1hY3MtZGV2ZWwvMjAyMy0wNC9tc2cwMDM4Ni5odG1sLiAgKi8NCisg
ICAgICBpZiAoVFJFRV9TSVRURVJfTUlOX0NPTVBBVElCTEVfTEFOR1VBR0Vf
VkVSU0lPTiA8IDE1KQ0KKwl7DQorCSAgTGlzcF9PYmplY3QgY2FuZGlkYXRl
MiA9IGNvbmNhdDIgKGNhbmRpZGF0ZTEsIFZ0cmVlc2l0X3N0cl9kb3RfMCk7
DQorCSAgKnBhdGhfY2FuZGlkYXRlcyA9IEZjb25zIChjYW5kaWRhdGUyLCAq
cGF0aF9jYW5kaWRhdGVzKTsNCisJfQ0KICNlbmRpZg0KICAgICAgICpwYXRo
X2NhbmRpZGF0ZXMgPSBGY29ucyAoY2FuZGlkYXRlMSwgKnBhdGhfY2FuZGlk
YXRlcyk7DQogICAgIH0NCi0tIA0KMi40OS4wDQoNCg==
---1463811584-1898691384-1749645251=:4448--
From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 08:41:21 2025
Received: (at 78754) by debbugs.gnu.org; 11 Jun 2025 12:41:21 +0000
Received: from localhost ([127.0.0.1]:48076 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPKld-0004Hj-Df
for submit@debbugs.gnu.org; Wed, 11 Jun 2025 08:41:21 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37918)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1uPKla-0004HK-BU
for 78754@debbugs.gnu.org; Wed, 11 Jun 2025 08:41:19 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1uPKlT-00020P-38; Wed, 11 Jun 2025 08:41:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=wSXwFWJwYJy4hfffEykNJ6UXJpvkPldam46XjP5rxNk=; b=EavzvWbul03jZjdeYUZc
HXULcVGt/mAVBrRTJY3a6vR9JMTRnW1Iv2I7ZjB4pRcrGdNZ6YlOxQ9uR/hNiIUhkbxSGe6yOPlYi
5ydVBlQCr1CpYiisA1AA9nYtw3n4legvDWT2d47GnZSP1T37iXLevsnoHq1my2ubitqLDo92zHpjC
LifQ/7n/QhDFFyTgmRvqHg2/MYUEwLxRN+/3wVwQ1N206oxJIMBuf5gSpYITKAoMiYGaAYfDvgJnd
xcNMcnDZ0/pZymvJUyHNifzlE7P84rs/tn73F/dJkkD1a556UrQe+7updbk/89JM4yiPPc7Sc5y1v
k41HBrpNNYTP0g==;
Date: Wed, 11 Jun 2025 15:41:00 +0300
Message-Id: <86sek6e9ib.fsf@gnu.org>
From: Eli Zaretskii
To: =?utf-8?Q?St=C3=A9phane?= Marks
In-Reply-To:
(message from =?utf-8?Q?St=C3=A9phane?= Marks on Wed, 11 Jun 2025 09:49:42
+0100)
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78754
Cc: casouri@gmail.com, p.d.oliver@mavit.org.uk, 78754@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> Cc: 78754-done@debbugs.gnu.org
> From: Stéphane Marks
> Date: Wed, 11 Jun 2025 09:49:42 +0100
>
> Thanks for the heads-up! I pushed a change to emacs-30 to look for all supported versions. Eg, if the
> tree-sitter library supports language version 13 to 15, Emacs will try to look for
> libtree-sitter-foo.so.13.0, libtree-sitter-foo.so.14.0, and libtree-sitter-foo.so.15.0.
>
> This is indeed a welcome improvement. Unless I'm reading it wrong, it looks like the ABI tests go 0.0 forward
> through 15 (modulo what's intrinsically supported). Should the tests be reversed so the most recent ABI
> takes precedence?
Indeed, I think the loop should be in the opposite direction, from
the highest supported ABI version to the lowest.
From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 03:03:34 2025
Received: (at 78754) by debbugs.gnu.org; 12 Jun 2025 07:03:34 +0000
Received: from localhost ([127.0.0.1]:55575 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPbyI-00086V-5B
for submit@debbugs.gnu.org; Thu, 12 Jun 2025 03:03:34 -0400
Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:46560)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from ) id 1uPbyG-00085y-0R
for 78754@debbugs.gnu.org; Thu, 12 Jun 2025 03:03:33 -0400
Received: by mail-pf1-x432.google.com with SMTP id
d2e1a72fcca58-742c27df0daso534291b3a.1
for <78754@debbugs.gnu.org>; Thu, 12 Jun 2025 00:03:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1749711806; x=1750316606; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=88DwkiSuytt8xwYt1TiaQaDHwBrOB8IQECFZef7I9bo=;
b=f6mYM0lxm23WlWlMwup7I4hJzPHSz5u9h/KB1tZWZqIjE3RxAkmH4ph2F3Hp5GBulS
Qdy43VtVav5aYoaUhlKdep3iGPkN2AwyHotl+MC4aXICiArO55FobvgLARMuCFsLJ+e6
4L70d1bcwCftP7otpftvjtNnTmZJrX82nCBc/2R1n67QZi7VLisD5cvhmf1aPNTKNu08
f9q/+oEXOqJI7SfNUseLRjXVIyQSc6wZldt+Q0wWArRKFGBgi9RKeLFBEW8pp7XNmA2m
Wnp9TA1gzIvyobcdMAnl8parmpVY3P0Zh35OMu7TTewhTKfippd8JGhUY8kF0p9w6wY1
cJIQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749711806; x=1750316606;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=88DwkiSuytt8xwYt1TiaQaDHwBrOB8IQECFZef7I9bo=;
b=QAOwYi3PUZ8rZ3LpSMTGE4WQUDdMxH2sk5otVRHzubk1aCb0ka0VkYRlz3QnOUgBWX
UoyvHjkTlG3PeapdNWR1we+m/9n2vPI87lYKXd1hIiUXhV2IxZAlBXEanciH1HchGTa/
y8JJp9gTWcET3uHRuixtww1Hj0sx6qmLlezjzMa9zC341gsQTzMMn0Qm1TwjxQx1Gk8p
EA4FJAPj31iA3UlMKtYQuWo4NHLz0NWyjVnqv//7vIGlgXPi6RlQ4hw5vBfBN6HHkpcX
vfRql9/DzORGYfFxtytwXmiuKM0tXilW4BdSMyeGBKP+vx4qdBth1UjLq6CeFgbG98k5
vpow==
X-Forwarded-Encrypted: i=1;
AJvYcCVDHN/N7sKyP1dWvaVoWRCQ8rKRDtfuQqgApPdCWVeoxSRdzzo9V5f/AuAkNwi5X4LOIOaqTg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxB9N1ipMSmc868tKUWotrj76n3O0jrXWLD9tp94ssbDOZUzd9X
vqXuM0gWRFDD4ooQd9Am/PVuX0+/j2myemMx0rQEtz1V4GzwpsQIjMmu
X-Gm-Gg: ASbGncuVL2qfRrDpsnyCEVI2bAXp80ZZcmgxKYIOK4S5ub+snM+SjV3zY3iOS9BJoOM
od0EPovN6MjkkiBbXRabELwAZtXikflLVCA6ShK95KKn9NOSpu+7K8KO84OQ8Y897bgND3z/nV2
9MAcwjpu5L2S6fF94zO4YJsPCiEWT5JWZi2cyHvMkq2wSChJtVdM1ohuIG3TQPi3Hf5J7G1b2sy
AE6d4F4MX71naRhMXzlWiYBZq6qjokve92oRCfRjBk89mfMzJI67Q+gxHoct+EZhYFkzBY6S2ul
99BHNUFUP4uPlRoZd4AUdbcd6kjMeTkFVw46AsB9OnqlfWCeN7KM534ykWZdR9egy+mCbn035l6
0MG6HVPu7JAec4lwz2yU05agzjQNOPGG/kzk=
X-Google-Smtp-Source: AGHT+IF7M2m+75Nfvkj/RYBEugz8w7Mx0deiCFQt5RuGtuTkb8MH7y5/EXNnzmmBU2+qqBxGLAKB8Q==
X-Received: by 2002:a05:6a00:21ca:b0:746:298e:4ed0 with SMTP id
d2e1a72fcca58-7486cbbf687mr8389317b3a.13.1749711805609;
Thu, 12 Jun 2025 00:03:25 -0700 (PDT)
Received: from smtpclient.apple (c-24-4-247-194.hsd1.ca.comcast.net.
[24.4.247.194]) by smtp.gmail.com with ESMTPSA id
d2e1a72fcca58-748808963d4sm749032b3a.51.2025.06.12.00.03.24
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Thu, 12 Jun 2025 00:03:24 -0700 (PDT)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\))
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
From: Yuan Fu
In-Reply-To: <86sek6e9ib.fsf@gnu.org>
Date: Thu, 12 Jun 2025 00:03:13 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id:
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
To: Eli Zaretskii
X-Mailer: Apple Mail (2.3826.500.181.1.5)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754
Cc: p.d.oliver@mavit.org.uk, 78754@debbugs.gnu.org,
=?utf-8?Q?St=C3=A9phane_Marks?=
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> On Jun 11, 2025, at 5:41=E2=80=AFAM, Eli Zaretskii =
wrote:
>=20
>> Cc: 78754-done@debbugs.gnu.org
>> From: St=C3=A9phane Marks
>> Date: Wed, 11 Jun 2025 09:49:42 +0100
>>=20
>> Thanks for the heads-up! I pushed a change to emacs-30 to look for =
all supported versions. Eg, if the
>> tree-sitter library supports language version 13 to 15, Emacs will =
try to look for
>> libtree-sitter-foo.so.13.0, libtree-sitter-foo.so.14.0, and =
libtree-sitter-foo.so.15.0.
>>=20
>> This is indeed a welcome improvement. Unless I'm reading it wrong, =
it looks like the ABI tests go 0.0 forward
>> through 15 (modulo what's intrinsically supported). Should the tests =
be reversed so the most recent ABI
>> takes precedence?
>=20
> Indeed, I think the loop should be in the opposite direction, from
> the highest supported ABI version to the lowest.
We=E2=80=99re adding candidates using Fcons, so candidates added later =
are in the front of the list, no?
Yuan=
From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 04:34:16 2025
Received: (at 78754) by debbugs.gnu.org; 12 Jun 2025 08:34:16 +0000
Received: from localhost ([127.0.0.1]:56091 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPdO4-0005l5-6K
for submit@debbugs.gnu.org; Thu, 12 Jun 2025 04:34:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51612)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1uPdO1-0005kE-Nb
for 78754@debbugs.gnu.org; Thu, 12 Jun 2025 04:34:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1uPdNw-00051y-1F; Thu, 12 Jun 2025 04:34:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=riXIF8+kVVbqTgsgp8bbaB6f4NATDT36z/IOqILxQmc=; b=polccxIboWk1Smr43/o1
tPbN6H6c8zszomgUcm0GqVXrPx8c4xm2qXjIxFuF/QE8LRB8mk/70SJdB+wY1yvsxM/86rIw4nu3v
Cq89FDydJp9Nwe8+QxujjUjR1vVtzFhpn7pIoHQuky3qJ3d96Uk/hucZhey9HsAZRRElOnBEI+5hL
rHcNhWZU+h3seMhyt+Sk0PALBf1f3IYSRoB9nBvNE1Y68XG8vzDBK9jSIizixnrmLKNXT2gd0Gk94
6hqvF/Cz+asYoYoA5/LodeYWPdN1OChOD9pskIv+PFA4aUKuJGXbpdS+m+DFJShWSYg4UBqTu3VFT
MYwXHwrQIczIbg==;
Date: Thu, 12 Jun 2025 11:34:04 +0300
Message-Id: <86qzzpfjer.fsf@gnu.org>
From: Eli Zaretskii
To: Yuan Fu
In-Reply-To: (message from
Yuan Fu on Thu, 12 Jun 2025 00:03:13 -0700)
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78754
Cc: p.d.oliver@mavit.org.uk, 78754@debbugs.gnu.org, shipmints@gmail.com
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> From: Yuan Fu
> Date: Thu, 12 Jun 2025 00:03:13 -0700
> Cc: Stéphane Marks ,
> 78754@debbugs.gnu.org,
> p.d.oliver@mavit.org.uk
>
>
>
> > On Jun 11, 2025, at 5:41 AM, Eli Zaretskii wrote:
> >
> >> Cc: 78754-done@debbugs.gnu.org
> >> From: Stéphane Marks
> >> Date: Wed, 11 Jun 2025 09:49:42 +0100
> >>
> >> Thanks for the heads-up! I pushed a change to emacs-30 to look for all supported versions. Eg, if the
> >> tree-sitter library supports language version 13 to 15, Emacs will try to look for
> >> libtree-sitter-foo.so.13.0, libtree-sitter-foo.so.14.0, and libtree-sitter-foo.so.15.0.
> >>
> >> This is indeed a welcome improvement. Unless I'm reading it wrong, it looks like the ABI tests go 0.0 forward
> >> through 15 (modulo what's intrinsically supported). Should the tests be reversed so the most recent ABI
> >> takes precedence?
> >
> > Indeed, I think the loop should be in the opposite direction, from
> > the highest supported ABI version to the lowest.
>
> We’re adding candidates using Fcons, so candidates added later are in the front of the list, no?
If it's used in the same order, then yes. But please make sure that's
what happens.
From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 13:05:24 2025
Received: (at 78754) by debbugs.gnu.org; 12 Jun 2025 17:05:24 +0000
Received: from localhost ([127.0.0.1]:59959 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPlMi-0007lx-8G
for submit@debbugs.gnu.org; Thu, 12 Jun 2025 13:05:24 -0400
Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:42225)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1uPlMf-0007hu-7r
for 78754@debbugs.gnu.org; Thu, 12 Jun 2025 13:05:21 -0400
Received: by mail-wr1-x432.google.com with SMTP id
ffacd0b85a97d-3a4fd1ba177so830713f8f.0
for <78754@debbugs.gnu.org>; Thu, 12 Jun 2025 10:05:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1749747915; x=1750352715; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=YvcwfopzKl35uVKS0eNmfLYHLQnq/N7/o+cMYUiyT6Y=;
b=fHW7uvuxj9hpxYoYbSe0zSthCyJo4b7kiYh0TZhXS/CwhZVZK5EYLvdiWqrlREowoa
FFq/r6NZPHoPod6FwwGPZK2LbN6YRkEqREHL6aaFUstfhhwCcCSG98mPAOlBJofWHwXz
gorcdHPNf4VgahTUASaamxBTbABjaUGr/X80U=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749747915; x=1750352715;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=YvcwfopzKl35uVKS0eNmfLYHLQnq/N7/o+cMYUiyT6Y=;
b=PW9ukNnoHDjwOcZePLYdPRL4zEjkwlK3MkZVjaF+0wT0fTNApUE+UXoZdWmq6tIWJJ
fwv+ssdGIwRyS8ODe7jT6rMyjRLqIvuAbjPRkIIVeoEoq0926BVyW05D+WQedoMieL3w
K+OVKZsoAotYg3IIpsuf6nCOtttA1ZXmTmdLwjXaPioTeZuEJ+uXi9OURT6xRckIljTL
MdF5N0q/cD9QuA6N73/Nn5B3sJB9gDcMguRaT0lDi4T5ONPrPOuL8ziXQIwEiLXDv9+4
vMNMv7vMZeMa2E2jd1u1fXhCkWYT0o6M7sTwkkKZ4ugOOkbPjt23sjEP3ZZZ/iI6FzyC
Us2w==
X-Forwarded-Encrypted: i=1;
AJvYcCUNgUMZfpZZqfNraWwxFRu72Y1D9uoCp8APS3dn16sBGtOhudngCJftr/rgDyBhpzxNo5SyMg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxQWGtBT5BnFKllvqRquQEgyNrxPhoIPGADQUUzdjHFun64UriP
sgRZN5h2W4/G4fBMnt2Qtyf0cv/GbUctsa/B6UPNUW77sFH360LmgN2xsKiqDAsG/g==
X-Gm-Gg: ASbGncvLrm8TSAQM0+M6Y6nvgiZXyv/ExdvRiCZIBNkBYrm6ihXjQjXjVMK52WJC6w6
OhBdYtZdwj0oZbFc8xeV4gdhCJ/yyv3jAx4RHNgkNUGaTQWw6cDn565kjBI18OAAHN+ti2pupWb
Q2ai7M0HCR3H2kqNsHSfqUuFxd2D5s+6m2X7MhGKdmRYYdvI+2iQEsPBO1izQCyfGwTr2Ekozxc
RwfyVU/+O7TFU0UTzxWV0HfzoQJiA4SGqMv/Up82sGJXYhHR9ibo4vi1qmOuKq2RrRUtyHGJ+GH
MhoMIp/bQvnRRMdJ1d//ov9LLU0Zwpq5pLZ5I7sXSMokr9VtyTgkrzBwf0RKJwbUex+rfnyA0Vl
+nhoakKVjpouYn75jGINmdzu9hZopF7pTvvRPzoDq1LKOa8hGvS4iI2P6Pzugay2u2tTWSp2Pg/
oNM5zxEjU=
X-Google-Smtp-Source: AGHT+IE2MN6cwzpK2z455hLZBuvN+HJahI66M6wn+AgEwyGQwSbdEIYCCPBV7eZ+58zH0+LWC3f/ig==
X-Received: by 2002:a05:6000:310a:b0:3a5:281b:9fac with SMTP id
ffacd0b85a97d-3a5608b0db5mr3658293f8f.17.1749747914606;
Thu, 12 Jun 2025 10:05:14 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3a561a3c763sm2541678f8f.62.2025.06.12.10.05.13
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 12 Jun 2025 10:05:13 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 55CH5Cbr005178
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Thu, 12 Jun 2025 18:05:12 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
55CH5C0e005175; Thu, 12 Jun 2025 18:05:12 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Thu, 12 Jun 2025 18:05:12 +0100 (BST)
From: Peter Oliver
To: Yuan Fu
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
In-Reply-To:
Message-ID:
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-1417341220-1749747912=:4484"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754
Cc: Eli Zaretskii , 78754@debbugs.gnu.org,
=?ISO-8859-15?Q?St=E9phane_Marks?=
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-1417341220-1749747912=:4484
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Thu, 12 Jun 2025, Yuan Fu wrote:
>> On Jun 11, 2025, at 5:41 AM, Eli Zaretskii wrote:
>>
>> Indeed, I think the loop should be in the opposite direction, from
>> the highest supported ABI version to the lowest.
>
> We’re adding candidates using Fcons, so candidates added later are in the front of the list, no?
So we currently prefer the bare libtree-sitter-foo.so to any versioned files? Shouldn’t that one be the last resort?
--
Peter Oliver
---1463811584-1417341220-1749747912=:4484--
From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 14:21:20 2025
Received: (at 78754) by debbugs.gnu.org; 12 Jun 2025 18:21:20 +0000
Received: from localhost ([127.0.0.1]:60288 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uPmYC-0004UP-7s
for submit@debbugs.gnu.org; Thu, 12 Jun 2025 14:21:20 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43522)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1uPmY9-0004To-AN
for 78754@debbugs.gnu.org; Thu, 12 Jun 2025 14:21:18 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1uPmY2-0005Xs-DM; Thu, 12 Jun 2025 14:21:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=Px0RkQVr8ISzq1Kg70iVidIAKSskO/ELMrqaN9abH+A=; b=XIlDYUtUqW8e3JZPNz7u
pdrXK7eq3XZwBg9luptb1rSL7amJakmA/b+xpVTjk02y49UofyGILnpOPJEogXEKZIeSs0wBFHFL+
Ir+IhafmjdDQKRQtvveub6SIwTEBnBQ9xKYt/xHT17Lm7NcAd1faVoz0e6XMNHPXhtPZISVK8ryf9
QlhSTflk821EBfsxNqLjc4WdNrJiEOvE8jGPd2zeCa0fxO14+G9YNh50RMeqzd4lx0OnT/3WBaggJ
qtIZY3XbAC3unrjE+uVS2SF+2ET/vMd2CxPqBSpygQbWzyWkLhStsdl5PsVMsoTbcVUixr3/aCJAu
gNd9xZd8FznncQ==;
Date: Thu, 12 Jun 2025 21:21:07 +0300
Message-Id: <861prog6ss.fsf@gnu.org>
From: Eli Zaretskii
To: Peter Oliver
In-Reply-To: (message from
Peter Oliver on Thu, 12 Jun 2025 18:05:12 +0100 (BST))
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78754
Cc: casouri@gmail.com, 78754@debbugs.gnu.org, shipmints@gmail.com
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> Date: Thu, 12 Jun 2025 18:05:12 +0100 (BST)
> From: Peter Oliver
> cc: Eli Zaretskii ,
> Stéphane Marks ,
> 78754@debbugs.gnu.org
>
> On Thu, 12 Jun 2025, Yuan Fu wrote:
>
> >> On Jun 11, 2025, at 5:41 AM, Eli Zaretskii wrote:
> >>
> >> Indeed, I think the loop should be in the opposite direction, from
> >> the highest supported ABI version to the lowest.
> >
> > We’re adding candidates using Fcons, so candidates added later are in the front of the list, no?
>
> So we currently prefer the bare libtree-sitter-foo.so to any versioned files? Shouldn’t that one be the last resort?
Why should it? isn't it standard practice on Posix systems to make
foo.so a symlink to a versioned foo-N.M.so?
From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 13 13:20:54 2025
Received: (at 78754) by debbugs.gnu.org; 13 Jun 2025 17:20:54 +0000
Received: from localhost ([127.0.0.1]:48891 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uQ85D-0006zV-7d
for submit@debbugs.gnu.org; Fri, 13 Jun 2025 13:20:53 -0400
Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:55301)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1uQ857-0006xq-Ne
for 78754@debbugs.gnu.org; Fri, 13 Jun 2025 13:20:48 -0400
Received: by mail-wm1-x32f.google.com with SMTP id
5b1f17b1804b1-451d7b50815so20153175e9.2
for <78754@debbugs.gnu.org>; Fri, 13 Jun 2025 10:20:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1749835239; x=1750440039; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=UlQhY41Cs7F8K32MMZxe88UQAgq14mxRsR6E8XLMVgs=;
b=bsK2Ecvk6oRb8a3rv6evARfJZKtoEI14y3z2jTdIbI4+/to83MKtyP7GcJ2d677M2b
SHcLbGOMiPXoqlb/o+tOWqybzfrp8XrsftUphkCnDnIlrMjBeQa5m6NyZTkPo9kGmXZQ
58sjzXn0F1YIDvKrCUHy3N2iumdBrcvH0lFVk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749835239; x=1750440039;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=UlQhY41Cs7F8K32MMZxe88UQAgq14mxRsR6E8XLMVgs=;
b=Y7qkkmC8BdCDRnLRpcYbhyaOb2INx3hYKr9ZH1Ob5SIIV2d/D2ScDJmLy3/lnOKN8w
5XZ5naizixP4LGOTmtqozPEfUU19oRAMuIi5BLiZloRB9EPESXR58HmSycioYv1/liTK
TtRxBvwOYZL86rYl/tAVmkdHiMCxFir0FKmXVRErmPQAd0IG1jAe63zHIW/yRN7qMODl
EUgnmv/uTSxRzFTG2i5WE3Za5IZhREcVeWoxb6xxbcc6zQvJWd5tShvk4/5AAfjBBk52
7M3l0wD7FAVg8hSDYsjYNBcjamDlMABkP3i1GAWG2vjgWj4bhCpmYIKN7Vwim1iVX5QT
t4cQ==
X-Forwarded-Encrypted: i=1;
AJvYcCVUovIRarriKlvoSnhYI4hrw8DUHwAe0EFSiI7iMr9X+ASxfmDXkhVOXM/5aOgWd02uezk6Ew==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw5k4PtLlHRWqNdLY91yl7StwE2V/oP75vFdbqYsREVuZ4YJZEt
6W+Uf+W1FvADswAmOWo+QuYBX1SrlKnFDZf/OPA8YvMbfgKbEiBWQqhMaGSvHUYQKw==
X-Gm-Gg: ASbGncupB3b1Ahi5YlBdP6LjwuwARs1n8Czsqa/Co3UKryoekQyBrgiy6amOpnx+z9D
SonQbXtfkS7FVewE+gAH41NHce310KOo+jQC5EFfTzEXGDmROPgQHVvk985EzaF8yIg1yu0LGGu
C9lmvo0LGsYpUeaEfGc0xo8f29BhYOvufRAcOm857npN7IHJZsxjZLbWzD13cPWS1WJBvIIUX3L
9Ov1kpIRjc4m+KlnYoiE28InTmH8GOYFIiRqhRCj5nyRDhNfHGxbCYhTsRXcyE+PXw68vRsTkY/
3L06cxETMZjMDOFL1eS9ak9thId1zPqb0wkCBBXs71KfzRZn/XxyQlL7v/+1EqMro9jzLNLPMVZ
gCKxG+X1nns5Y0QrDSpZWkmfpv4r/LJzW5nxDxNBBFKN9Faz2zw5/pGV2Z51TQR6omaVsi+gbnM
j8e2skyKs=
X-Google-Smtp-Source: AGHT+IFSIZuKRF4HQToELtjorXsRDoKIIaUuGEX894GsutTkzj5CbBGx2McXrgpRN2bB8+4MaWTg3Q==
X-Received: by 2002:a05:600c:528f:b0:442:ccfa:18c with SMTP id
5b1f17b1804b1-4533cb56d1amr3545495e9.32.1749835239097;
Fri, 13 Jun 2025 10:20:39 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3a568a5546asm2869013f8f.3.2025.06.13.10.20.37
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 13 Jun 2025 10:20:38 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 55DHKan7065402
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 13 Jun 2025 18:20:37 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
55DHKacx065399; Fri, 13 Jun 2025 18:20:36 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Fri, 13 Jun 2025 18:20:36 +0100 (BST)
From: Peter Oliver
To: Eli Zaretskii
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
In-Reply-To: <861prog6ss.fsf@gnu.org>
Message-ID:
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
<861prog6ss.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-842884209-1749835236=:4541"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754
Cc: casouri@gmail.com, 78754@debbugs.gnu.org, shipmints@gmail.com
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-842884209-1749835236=:4541
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Thu, 12 Jun 2025, Eli Zaretskii wrote:
>> Date: Thu, 12 Jun 2025 18:05:12 +0100 (BST)
>> From: Peter Oliver
>> cc: Eli Zaretskii ,
>> Stéphane Marks ,
>> 78754@debbugs.gnu.org
>>
>> On Thu, 12 Jun 2025, Yuan Fu wrote:
>>
>>>> On Jun 11, 2025, at 5:41 AM, Eli Zaretskii wrote:
>>>>
>>>> Indeed, I think the loop should be in the opposite direction, from
>>>> the highest supported ABI version to the lowest.
>>>
>>> We’re adding candidates using Fcons, so candidates added later are in the front of the list, no?
>>
>> So we currently prefer the bare libtree-sitter-foo.so to any versioned files? Shouldn’t that one be the last resort?
>
> Why should it? isn't it standard practice on Posix systems to make
> foo.so a symlink to a versioned foo-N.M.so?
Yes, but the symlinks are typically not installed by default, since they’re not required for using the libraries, only for building against them.
But mainly, what happens if someone has multiple versions of the library installed? Perhaps the symlink points to libtree-sitter-foo.so.16, but we’re linked against a version of Tree-sitter that support libtree-sitter-foo.so.15 at best. It seems to me that, since we know what versions we support, we may as well start with libtree-sitter-foo.so.15, rather than loading libtree-sitter-foo.so and hoping for the best.
--
Peter Oliver
---1463811584-842884209-1749835236=:4541--
From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 13 13:53:02 2025
Received: (at 78754) by debbugs.gnu.org; 13 Jun 2025 17:53:02 +0000
Received: from localhost ([127.0.0.1]:49506 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uQ8aL-0001YZ-RT
for submit@debbugs.gnu.org; Fri, 13 Jun 2025 13:53:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59824)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1uQ8aJ-0001Y9-9A
for 78754@debbugs.gnu.org; Fri, 13 Jun 2025 13:53:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1uQ8aD-0006jR-QD; Fri, 13 Jun 2025 13:52:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=ag+Gg6lAFUcPFWDzsEJnEVTS20ItRmLUzB4LLx3XPwM=; b=lIWEoJC7ceY0RSZdr9KH
dY/dHlUJumT+dh15RzYGsx6CZLDEDrTTwLe/aUPs2jcDUd0StT08oVS1El22VZvUMnfuUhyobHVYh
fPn0NnrxumVCoqwlXpqhoBYLot02jFYPXYvZ0EMb4xjKIPk4rBviZi1CWW7Dz5YlLoEIItlLCdl8L
p6GZusv3BkiNk/qoVtmzRcJCmYowDxXe9dUURfXZIRsiUBV8lkAkUXDBXk4pa4VQx25+5qrM96L1l
W6IK6mkIaxUJYEL7Sb3viWm4bqii4nJP4mj9ISDX+9tGkJOnVQmkwsGiV10SDiwfj8vN50ZAmLt9U
VAlgWSmY0Tc1xg==;
Date: Fri, 13 Jun 2025 20:52:52 +0300
Message-Id: <86a56bttor.fsf@gnu.org>
From: Eli Zaretskii
To: Peter Oliver
In-Reply-To: (message from
Peter Oliver on Fri, 13 Jun 2025 18:20:36 +0100 (BST))
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
<861prog6ss.fsf@gnu.org>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78754
Cc: casouri@gmail.com, 78754@debbugs.gnu.org, shipmints@gmail.com
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> Date: Fri, 13 Jun 2025 18:20:36 +0100 (BST)
> From: Peter Oliver
> cc: casouri@gmail.com, shipmints@gmail.com, 78754@debbugs.gnu.org
>
> On Thu, 12 Jun 2025, Eli Zaretskii wrote:
>
> >> Date: Thu, 12 Jun 2025 18:05:12 +0100 (BST)
> >> From: Peter Oliver
> >> cc: Eli Zaretskii ,
> >> Stéphane Marks ,
> >> 78754@debbugs.gnu.org
> >>
> >> On Thu, 12 Jun 2025, Yuan Fu wrote:
> >>
> >>>> On Jun 11, 2025, at 5:41 AM, Eli Zaretskii wrote:
> >>>>
> >>>> Indeed, I think the loop should be in the opposite direction, from
> >>>> the highest supported ABI version to the lowest.
> >>>
> >>> We’re adding candidates using Fcons, so candidates added later are in the front of the list, no?
> >>
> >> So we currently prefer the bare libtree-sitter-foo.so to any versioned files? Shouldn’t that one be the last resort?
> >
> > Why should it? isn't it standard practice on Posix systems to make
> > foo.so a symlink to a versioned foo-N.M.so?
>
> Yes, but the symlinks are typically not installed by default, since they’re not required for using the libraries, only for building against them.
>
> But mainly, what happens if someone has multiple versions of the library installed? Perhaps the symlink points to libtree-sitter-foo.so.16, but we’re linked against a version of Tree-sitter that support libtree-sitter-foo.so.15 at best. It seems to me that, since we know what versions we support, we may as well start with libtree-sitter-foo.so.15, rather than loading libtree-sitter-foo.so and hoping for the best.
AFAIU, the symlink, if it exists, is supposed to point to either the
latest version or the version that the system wants to use by default.
If that is correct, then trying the bare .so before the versioned
files is TRT.
From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 13 14:31:18 2025
Received: (at 78754) by debbugs.gnu.org; 13 Jun 2025 18:31:18 +0000
Received: from localhost ([127.0.0.1]:50394 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1uQ9BN-0005CF-Gx
for submit@debbugs.gnu.org; Fri, 13 Jun 2025 14:31:17 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:49329)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1uQ9BL-0005C1-Ll
for 78754@debbugs.gnu.org; Fri, 13 Jun 2025 14:31:16 -0400
Received: by mail-wr1-x42e.google.com with SMTP id
ffacd0b85a97d-3a536ecbf6fso1664455f8f.2
for <78754@debbugs.gnu.org>; Fri, 13 Jun 2025 11:31:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1749839469; x=1750444269; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=vgDx4jpGSfJz4PS8XypU77Mms9AhDtO4TVgHOCWTNY4=;
b=ADpiFSvHn41iNdUj2/2Cz1oYLN8psEL9rDfdMvUaLKi2+3Kok+B2FG62xPAxVbc3Nr
CbMUrR58HxpnptkpnI1B31+OTsMNwqi75fiGxsTYkvcF8FnvqKV4XvIWytyrvsoIZlRr
BVJ8K1SsuF4A5Og8xps4kjTVuhcVmq1FJmodM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749839469; x=1750444269;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=vgDx4jpGSfJz4PS8XypU77Mms9AhDtO4TVgHOCWTNY4=;
b=KdU8AhNpOPZ/RTEKCS3uv1C7nvE8JyLkYjhMv5/w6FFoHLYYb0NR/R5fpJVYe9Q8G8
kGVBHif579qjO1OR+76m4NaABLMQSGbguapsu28i6GDN1fTndyuekuebs2AgYbmuKzOl
HnagXY/bqbepMQQrHcHfAZASf7/vaH2pOiR3kvmgQp3Sg5fTuxUH8afhTBNkSeipJo0f
ioqIyDiLSHAHZmoLvfFPFJHoYxWv0GADNZykCARrPySTZ+s6cu68iB2bBhBKhJCSxC+V
T6tyIOyGvILJIbWotdoC0YOukiF7iPtNwo/169B0mRxoa29KiU+NIIL/7lTMfRWOSqVl
ucCw==
X-Forwarded-Encrypted: i=1;
AJvYcCV1kzShtP0pp0XxUADOolYK6lMMGCFc5QU702bPSK5dx1pmeafS0vH25Tbp0zitt0QVDpre6w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxXfWpbnqGDxJR9hHryI6yjBMreKcWnqlVQ1JlvDhGWlagi3P0O
xMEcRx/sizz/H6Jasp+P8rhw/ut8xcXV8ncpmpn++f/hTyiEC4kx23E0aT3pv0HIjg==
X-Gm-Gg: ASbGnctOt3dB9EBB7jGKxMb53HxT/+GbeJTZ8DBPYaET78kB7T26V7q2uPNr02qOoh0
6f8pc6VMX0AAmNQ1poJkWCxPjHs2kg8usWyh8XfnNHLeIa/ObwPqzLhc6JazWZWBbcgopymYa5G
9szofWOdQvX+LetTTaV5HDjWzNPPXZh2JX6zkHV5T8HhhYjfvLrtT71uu/DRE9428YLZUEq6rCY
cw5i6nZPCN9ekNtC5ZRfkZTs6bkbWWNX0LDNIoZNEZvzswUXbuM8h4TuCDh4fEM8F3RgSJa/2Hv
pfSQkVm7Edgw0wyRMcjE89fbdFCxwfVt2Y+0/2Dgc4RNInA+2bGabpQ/mFBJaYXyPzp5dHdBnwl
ekYYXqAADeYLgOPSajLvPyJqPYkuPCott5S0IWXqwnJIjafXAndcBNij76VDnatjTT0D5W3dp
X-Google-Smtp-Source: AGHT+IHL+r6R3cdMtbEUdIuiusGHv6ZA4s7gZAY2R9c34AFGx+JnC+8EG7SXemwHqBS+uFjqYqCdXg==
X-Received: by 2002:a5d:64ee:0:b0:3a5:2ec5:35ba with SMTP id
ffacd0b85a97d-3a5723a3fb2mr733361f8f.30.1749839469380;
Fri, 13 Jun 2025 11:31:09 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-3a568b08c99sm3067436f8f.63.2025.06.13.11.31.08
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 13 Jun 2025 11:31:08 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 55DIV7qL088376
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 13 Jun 2025 19:31:07 +0100
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
55DIV7cT088372; Fri, 13 Jun 2025 19:31:07 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Fri, 13 Jun 2025 19:31:07 +0100 (BST)
From: Peter Oliver
To: Eli Zaretskii
Subject: Re: bug#78754: Tree-sitter started versioning their shared library
filenames
In-Reply-To: <86a56bttor.fsf@gnu.org>
Message-ID: <2884e561-8b56-6123-ef61-456287ffae3e@mavit.org.uk>
References: <0a816ab2-99bf-5e02-b82b-b5d44748b975@mavit.org.uk>
<973B691D-9AA0-48B7-9BA6-8103717D756D@gmail.com>
<86sek6e9ib.fsf@gnu.org>
<861prog6ss.fsf@gnu.org>
<86a56bttor.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-367467710-1749839467=:4541"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78754
Cc: casouri@gmail.com, 78754@debbugs.gnu.org, shipmints@gmail.com
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-367467710-1749839467=:4541
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT
On Fri, 13 Jun 2025, Eli Zaretskii wrote:
>> Date: Fri, 13 Jun 2025 18:20:36 +0100 (BST)
>> From: Peter Oliver
>>
>> On Thu, 12 Jun 2025, Eli Zaretskii wrote:
>>
>>>> Date: Thu, 12 Jun 2025 18:05:12 +0100 (BST)
>>>> From: Peter Oliver
>>>>
>>>> So we currently prefer the bare libtree-sitter-foo.so to any versioned files? Shouldn’t that one be the last resort?
>>>
>>> Why should it? isn't it standard practice on Posix systems to make
>>> foo.so a symlink to a versioned foo-N.M.so?
>>
>> Yes, but the symlinks are typically not installed by default, since they’re not required for using the libraries, only for building against them.
>>
>> But mainly, what happens if someone has multiple versions of the library installed? Perhaps the symlink points to libtree-sitter-foo.so.16, but we’re linked against a version of Tree-sitter that support libtree-sitter-foo.so.15 at best. It seems to me that, since we know what versions we support, we may as well start with libtree-sitter-foo.so.15, rather than loading libtree-sitter-foo.so and hoping for the best.
>
> AFAIU, the symlink, if it exists, is supposed to point to either the
> latest version or the version that the system wants to use by default.
As I say, the latest version may not be the right version for us, and that’s “wants to use by default” for linking programs during compilation, which is not what we are doing here.
Still, in practice I think this is mostly not going to matter, so I won’t try to argue it further.
--
Peter Oliver
---1463811584-367467710-1749839467=:4541--