git: 178eb0e1311a - 2026Q3 - editors/emacs: Fix native compilation with canna flavor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Sep 2026 18:10:53 UTC
The branch 2026Q3 has been updated by ashish:
URL: https://cgit.FreeBSD.org/ports/commit/?id=178eb0e1311adfaf4e1402da4911baa9a4ed3475
commit 178eb0e1311adfaf4e1402da4911baa9a4ed3475
Author: Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2026-08-25 05:07:52 +0000
Commit: Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2026-09-16 18:10:03 +0000
editors/emacs: Fix native compilation with canna flavor
isearch-ext.el is a file that comes with the canna patch. Because it is
preloaded, it was native-compiled during the bootstrap stage. This
caused the native-lisp directory to be created, which in turn meant AOT
for all other elisp was silently skipped.
Fix this by adding isearch-ext to native-comp-bootstrap-deny-list, so it
is native-compiled later along with the rest of the elisp.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit f9566b80622d676208b0f0c5b4ed6f286ce37b10)
---
editors/emacs/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index ad2ffdaebfbd..058e2853013a 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -1,5 +1,6 @@
PORTNAME= emacs
DISTVERSION= 31.1
+PORTREVISION= 1
PORTEPOCH= 3
CATEGORIES= editors
MASTER_SITES= GNU
@@ -43,6 +44,10 @@ CONFIGURE_ARGS= --disable-build-details \
--without-selinux
.if ${FLAVOR:U} == canna
CONFIGURE_ARGS+= --with-canna
+# isearch-ext.el is a file that comes with the canna patch. Native compiling it
+# during bootstrap creates the native-lisp directory early on in the build, and
+# that causes AOT to be silently skipped.
+MAKE_ARGS+= BYTE_COMPILE_EXTRA_FLAGS="--eval '(setq native-comp-bootstrap-deny-list (list \"isearch-ext\"))'"
.elif ${FLAVOR:U} == nox
CONFIGURE_ARGS+= --with-sound=no \
--with-x-toolkit=no \