Skip to content

emacs: Update to 31 - #30608

Draft
svraka wants to merge 3 commits into
msys2:masterfrom
svraka:emacs-31
Draft

emacs: Update to 31#30608
svraka wants to merge 3 commits into
msys2:masterfrom
svraka:emacs-31

Conversation

@svraka

@svraka svraka commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Second pretest package for the upcoming 31 release is available. Emacs 31 is going to include a lot of fixes that allow us to drop most patches, except ARM64 related ones. I'm opening this is PR as a draft to test building. Once the 31.1 is out, hopefully only the source needs to be flipped back.

The two other commits:

  • Make it easier to flip between pretest and release sources
  • Update dependencies. These are not 31 related, hence the separate commit, the list wasn't kept up-to-date for past releases.

Merge witouth squashing would be recommended.

svraka added 3 commits July 23, 2026 10:44
Since we'll continue to have patches in the foreseeable future for
Clang and ARM, two `source` clauses are more difficult to deal with
during testing.
Harmonise dependencies with upstream, based on nt/INSTALL.W64:

- Add optdepends labels
- drop jansson, Emacs had a native JSON parser since version 30
- Move libxml2 to depends: technically it's not required but backs
  default-on features (eww, HTML mail, RSS)
- Add sqlite3 as optional dependency, introduced in version 29
- Add lcms2 as optional dependency
Many patches can be dropped, as they are included with Emacs 31, or
otherwise fixed. Emacs can now be built in the UCRT environment, so
the previous hack that broke stdout is no longer needed (fixes
msys2#23569). Clang and
aarch64-related patches are still needed, as no native Windows ARM64
build support, or native Clang-on-Windows support has been added and
the patch needed to be updated.

Don't remove `-D_FORTIFY_SOURCE` from CFLAGS, fixed upstream in Emacs
31 (commit e376a27c, Bug#73444).

Removed ctags dependency: Emacs never needed external ctags to build
and it was removed entirely in 31 (commit 25d75753588, Bug#76322).
@ognevny

ognevny commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

finally. I hope problems with tree-sitter are eventually gone with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants