pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



The following reply was made to PR pkg/60130; it has been noted by GNATS.

From: opensauce04%gmail.com@localhost
To: gnats-bugs%netbsd.org@localhost
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 <wiz%netbsd.org@localhost>
 > To: NetBSD bugtracking <gnats-bugs%netbsd.org@localhost>
 > 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, opensauce04%gmail.com@localhost 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.
 



Home | Main Index | Thread Index | Old Index