#1139544 emacs: FTBFS against tree-sitter 0.26

Package:
src:emacs
Source:
src:emacs
Submitter:
James McCoy
Date:
2026-06-20 01:21:01 UTC
Severity:
normal
Tags:
#1139544#5
Date:
2026-06-09 10:54:13 UTC
From:
To:
A tree-sitter 0.26 transition is staged in experimental. Emacs currently
fails to build against that version.

/build/package/package/debian/build-src/src/treesit.c: In function ‘treesit_load_language’:
/build/package/package/debian/build-src/src/treesit.c:749:42: error: implicit declaration of function ‘ts_language_version’; did you mean ‘ts_language_abi_version’? [-Wimplicit-function-declaration]
  749 |                             make_fixnum (ts_language_version (lang)));
      |                                          ^~~~~~~~~~~~~~~~~~~
      |                                          ts_language_abi_version

Upstream has a patch[0] to address the build failure, but it doesn't
apply cleanly against the current Debian package.

[0]: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/src/treesit.c?id=d587ce8c65a0e22ab0a63ef2873a3dfcfbeba166

#1139544#12
Date:
2026-06-11 17:25:19 UTC
From:
To:
James McCoy <jamessan@debian.org> writes:

[...]

OK, I'll try to take a closer look in the next week or so.

Thanks

#1139544#17
Date:
2026-06-15 04:34:14 UTC
From:
To:
I have tried to adapt the patch to the 30.2 release and removed the
chunk that caused the conflict. Please find the updated patch attached.

#1139544#24
Date:
2026-06-20 01:19:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
emacs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1139544@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rob Browning <rlb@defaultvalue.org> (supplier of updated emacs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 18 Jun 2026 18:40:13 -0500
Source: emacs
Architecture: source
Version: 1:30.2+1-4
Distribution: unstable
Urgency: medium
Maintainer: Rob Browning <rlb@defaultvalue.org>
Changed-By: Rob Browning <rlb@defaultvalue.org>
Closes: 1139445 1139544
Changes:
 emacs (1:30.2+1-4) unstable; urgency=medium
 .
   [ Rob Browning ]
   * Support Tree-sitter 0.26.
     Add 0027-Support-Tree-sitter-version-0.26-and-later.patch to allow
     building against 0.26.
     Thanks to James McCoy for reporting the problem, and Xiyue Deng for an
     initial backport of the upstream patch. (Closes: 1139544)
   * debian/control: Move relevant build dependencies into
     Build-Depends-Arch and Build-Depends-Indep.  If nothing else, this
     makes it possible to sbuild without having to have all of the deps
     installed (because sbuild cleans on the host, and that only requires
     the Build-Depends).  Thanks to David Bremner for the suggestion.
 .
   [ Xiyue Deng ]
   * Update debian/control and debian/rules to build with GCC 15
     (Closes: 1139445)
Checksums-Sha1:
 827e9499106f7920c1e5be86f8210a84d78266ef 3104 emacs_30.2+1-4.dsc
 1729b432437f15eb56188844e33c84ba0f62195e 74672 emacs_30.2+1-4.debian.tar.xz
Checksums-Sha256:
 a32bd2b148da692897bd48a0d915aa637b66aea529854974d919b95153cdba9c 3104 emacs_30.2+1-4.dsc
 11297f0d7800a9b88cf0d37572c73d0ce8f648965ffa4dce3cd9516d0b01887f 74672 emacs_30.2+1-4.debian.tar.xz
Files:
 f6e373fb600d0badd4e25a3e855e7fef 3104 editors optional emacs_30.2+1-4.dsc
 e7b42ced2c791607cd360d5b26c4725c 74672 editors optional emacs_30.2+1-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEEPTFSABe5ruOuhW+97vEWxVpaQvEFAmo15SkVHHJsYkBkZWZh
dWx0dmFsdWUub3JnAAoJEO7xFsVaWkLx9oEQAIqQjfc/Rmgxo+wkuEPWF/vAJyrh
EdY67aYmkfV+Devt9lBVKKVFwkz+vijAyu+BYwxtapJj9FsbA2dpKKvlJf8X6Lor
FCZ9yONUjA3ZI4i1WU3S03Pv30lYZtNJraC/aDKjL9FDWRshEeC6FGHTVdKPwjO/
/YGq1VULh6lxy1m/N28cGJNb7z9Kfsc0p9vJzKB2MI3mwPVQ1HQlNLem2At62idV
mivsZ1jxUp6WPLvZb9KvxVy8w/7TAAhUUVhC2wo3MTha4r36KbDv9dlxjKv7ut7r
kLxNDvA0yZsk01zHED65AVuRyQkGwKTO8R8r2px0tOTfibel+RmGT0SSnkqhfeGm
Le+hc395XT/8ah1dchFanMjNTzN5kcoZm+ZcasGJhLJZnhpW/xdzPiyZk0UcJBwV
kELY1Wulg5N4RAqE40eY0NgTCbv31VtKhpJmhn9cJiKgpRfvouu517qZAdJ3sM9U
EgqiYrm9jx43znzml1NyN9TePnhZkwz8uHcaK1MX9lOU/h6ZPjVwSShfq2OgmQe5
Or+MFX3awFOgWrgossY2MB0pZC9Tbnta/1veRm9GufLjrKAvldFMqMx6I+t9GyxH
0hmHwCYFKmNkUA8EhM0cnIcmWW49ZdwGf+DfoqQY/ihVjMaOIR+82St3aqrqP7u4
fsSeO0kzzttZeYdp
=JDYU
-----END PGP SIGNATURE-----