Re: pkg/60130: Add tree-sitter 0.25 package to allow building Emacs 30 with tree-sitter support

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
The following reply was made to PR pkg/60130; it has been noted by GNATS.

From: [email protected]
To: [email protected]
Cc: 
Subject: Re: pkg/60130: Add tree-sitter 0.25 package to allow building Emacs
 30 with tree-sitter support
Date: Thu, 26 Mar 2026 00:57:23 +0000

 > The following reply was made to PR pkg/60130; it has been noted by GNATS.
 >
 > From: Thomas Klausner <[email protected]>
 > To: NetBSD bugtracking <[email protected]>
 > Cc:
 > Subject: Re: pkg/60130: Add tree-sitter 0.25 package to allow building Emacs
 >   30 with tree-sitter support
 > Date: Wed, 25 Mar 2026 21:53:16 +0100
 >
 >   On Wed, Mar 25, 2026 at 06:10:00PM +0100, [email protected] via gnats wrote:
 >   > tree-sitter 0.26.x breaks ABI compatibility with 0.25.x, and as a result, Emacs 30 no longer compiles with current releases of tree-sitter. This will be affecting the compilation of other programs as well.
 >   
 >   Can you provide details?
 >   
 >   emacs30 compiles against tree-sitter-0.26 fine on NetBSD, and I don't
 >   think an API change in tree-sitter would be macOS specific.
 >    Thomas
 >   
 
 Are you sure you're actually building with tree-sitter enabled? Ensure 
 you're passing `--with-tree-sitter` to `configure`.
 
 The changes made in tree-sitter 0.26 had to be explicitly accounted for 
 in upstream Emacs for the upcoming Emacs 31, and the commit which 
 accounted for these changes was never backported to Emacs 30:
 
 https://github.com/emacs-mirror/emacs/commit/d587ce8c65a0e22ab0a63ef2873a3dfcfbeba166
 
 You can see the exact details of what needed accounting for in the 
 commit above. I can assure you that attempting to build Emacs 30 with 
 tree-sitter support enabled with tree-sitter 0.26 fails due to the 
 `ts_language_version` function no longer existing in 0.26 as mentioned 
 above.
 
 Downgrading to 0.25 makes the problem go away, as the function is no 
 longer missing.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.