Mon Sep 25 12:12:02 2023 UTC ()
emacs28-nox11: Force nextstep off to fix macOS build

Despite --without-all, emacs's configure finds and enables nextstep
(cocoa) on macOS, which besides violating the intent to build a
command-line emacs, builds a different set of files and thus fails
packaging.  Explicitly disable nextstep.

With this change, the package builds and runs on macOS.


(gdt)
diff -r1.1 -r1.2 pkgsrc/editors/emacs28-nox11/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/editors/emacs28-nox11/Makefile (expand / switch to unified diff)

--- pkgsrc/editors/emacs28-nox11/Makefile 2022/04/06 22:41:03 1.1
+++ pkgsrc/editors/emacs28-nox11/Makefile 2023/09/25 12:12:02 1.2
@@ -1,17 +1,21 @@ @@ -1,17 +1,21 @@
1# $NetBSD: Makefile,v 1.1 2022/04/06 22:41:03 wiz Exp $ 1# $NetBSD: Makefile,v 1.2 2023/09/25 12:12:02 gdt Exp $
2 2
3PKGNAME= ${DISTNAME:S/emacs/emacs28/:S/-/-nox11-/} 3PKGNAME= ${DISTNAME:S/emacs/emacs28/:S/-/-nox11-/}
4CONFLICTS+= emacs28-[0-9]* 4CONFLICTS+= emacs28-[0-9]*
5 5
6FILESDIR= ${.CURDIR}/../../editors/emacs28/files 6FILESDIR= ${.CURDIR}/../../editors/emacs28/files
7PATCHDIR= ${.CURDIR}/../../editors/emacs28/patches 7PATCHDIR= ${.CURDIR}/../../editors/emacs28/patches
8PKGDIR= ${.CURDIR}/../../editors/emacs28 8PKGDIR= ${.CURDIR}/../../editors/emacs28
9DISTINFO_FILE= ${.CURDIR}/../../editors/emacs28/distinfo 9DISTINFO_FILE= ${.CURDIR}/../../editors/emacs28/distinfo
10 10
11# minimal emacs without X 11# minimal emacs without X
12CONFIGURE_ARGS+= --without-all --without-x 12CONFIGURE_ARGS+= --without-all --without-x
 13# on macOS, nextstep (cocoa) is probed for, even if --without-all is
 14# given. Pass it unconditionally, as forcing it off won't hurt on
 15# not-mac
 16CONFIGURE_ARGS+= --without-ns
13# but we want to gzip installed files 17# but we want to gzip installed files
14CONFIGURE_ARGS+= --with-compress-install 18CONFIGURE_ARGS+= --with-compress-install
15 19
16.include "../../editors/emacs28/Makefile.common" 20.include "../../editors/emacs28/Makefile.common"
17.include "../../mk/bsd.pkg.mk" 21.include "../../mk/bsd.pkg.mk"