emacs: segfaults when built with MKPIEdiff -r1.19 -r1.20 pkgsrc/editors/emacs21/Makefile.common
(nia)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.19 2020/01/18 23:30:45 rillig Exp $ | 1 | # $NetBSD: Makefile.common,v 1.20 2021/09/27 15:26:24 nia Exp $ | |
2 | # | 2 | # | |
3 | # used by editors/emacs21/Makefile | 3 | # used by editors/emacs21/Makefile | |
4 | # used by editors/emacs21-nox11/Makefile | 4 | # used by editors/emacs21-nox11/Makefile | |
5 | 5 | |||
6 | DISTNAME= emacs-${EMACSVERSION}a | 6 | DISTNAME= emacs-${EMACSVERSION}a | |
7 | PKGNAME?= emacs21-${EMACSVERSION}a | 7 | PKGNAME?= emacs21-${EMACSVERSION}a | |
8 | 8 | |||
9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= https://www.gnu.org/software/emacs/emacs.html | 11 | HOMEPAGE= https://www.gnu.org/software/emacs/emacs.html | |
12 | COMMENT= GNU editing macros (editor) | 12 | COMMENT= GNU editing macros (editor) | |
13 | 13 | |||
14 | CONFLICTS= mule-[0-9]* | 14 | CONFLICTS= mule-[0-9]* | |
@@ -27,26 +27,28 @@ WRKSRC= ${WRKDIR}/emacs-${EMACSVERSION} | @@ -27,26 +27,28 @@ WRKSRC= ${WRKDIR}/emacs-${EMACSVERSION} | |||
27 | PLIST_SUBST+= EMACSVERSION=${EMACSVERSION:Q} | 27 | PLIST_SUBST+= EMACSVERSION=${EMACSVERSION:Q} | |
28 | 28 | |||
29 | MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp | 29 | MAKEFLAGS+= EMACSLOADPATH=${WRKSRC}/lisp | |
30 | 30 | |||
31 | # build PATH in the dumped emacs is not a problem | 31 | # build PATH in the dumped emacs is not a problem | |
32 | CHECK_WRKREF_SKIP+= bin/emacs | 32 | CHECK_WRKREF_SKIP+= bin/emacs | |
33 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACSVERSION} | 33 | CHECK_WRKREF_SKIP+= bin/emacs-${EMACSVERSION} | |
34 | 34 | |||
35 | CONFIGURE_ARGS+= --srcdir=${WRKSRC} | 35 | CONFIGURE_ARGS+= --srcdir=${WRKSRC} | |
36 | INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} | 36 | INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} | |
37 | INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} | 37 | INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} | |
38 | INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/${PKGINFODIR} | 38 | INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/${PKGINFODIR} | |
39 | 39 | |||
40 | MKPIE_SUPPORTED= no | |||
41 | ||||
40 | .include "../../mk/bsd.prefs.mk" | 42 | .include "../../mk/bsd.prefs.mk" | |
41 | 43 | |||
42 | # If using GNU ld 2.13.2.1 or later, avoid creating combined reloc | 44 | # If using GNU ld 2.13.2.1 or later, avoid creating combined reloc | |
43 | # sections and .data reloc sections, both of which Emacs can't handle | 45 | # sections and .data reloc sections, both of which Emacs can't handle | |
44 | # properly. Analyzed by Stephen Ma. | 46 | # properly. Analyzed by Stephen Ma. | |
45 | LDFLAGS+= -Wl,-z,nocombreloc | 47 | LDFLAGS+= -Wl,-z,nocombreloc | |
46 | 48 | |||
47 | # Use terminfo on NetBSD-6. | 49 | # Use terminfo on NetBSD-6. | |
48 | # We cannot use terminfo.*.mk as emacs WILL force a link to termcap, | 50 | # We cannot use terminfo.*.mk as emacs WILL force a link to termcap, | |
49 | # but this is fine for us. | 51 | # but this is fine for us. | |
50 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) | 52 | .if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h) | |
51 | CPPFLAGS+= -DTERMINFO | 53 | CPPFLAGS+= -DTERMINFO | |
52 | .endif | 54 | .endif |
@@ -1,18 +1,20 @@ | @@ -1,18 +1,20 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.6 2020/05/22 05:51:19 rillig Exp $ | 1 | # $NetBSD: Makefile.common,v 1.7 2021/09/27 15:26:24 nia Exp $ | |
2 | # | 2 | # | |
3 | # used by editors/emacs25/Makefile | 3 | # used by editors/emacs25/Makefile | |
4 | # used by editors/emacs25-nox11/Makefile | 4 | # used by editors/emacs25-nox11/Makefile | |
5 | 5 | |||
6 | MKPIE_SUPPORTED= no | |||
7 | ||||
6 | .include "../../mk/bsd.prefs.mk" | 8 | .include "../../mk/bsd.prefs.mk" | |
7 | 9 | |||
8 | DISTNAME= emacs-${EMACS_VERSION} | 10 | DISTNAME= emacs-${EMACS_VERSION} | |
9 | PKGNAME?= ${DISTNAME:S/emacs/emacs25/} | 11 | PKGNAME?= ${DISTNAME:S/emacs/emacs25/} | |
10 | CATEGORIES= editors | 12 | CATEGORIES= editors | |
11 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | |
12 | 14 | |||
13 | MAINTAINER= pkgsrc-users@NetBSD.org | 15 | MAINTAINER= pkgsrc-users@NetBSD.org | |
14 | HOMEPAGE= https://www.gnu.org/software/emacs/ | 16 | HOMEPAGE= https://www.gnu.org/software/emacs/ | |
15 | COMMENT= GNU editing macros (editor) | 17 | COMMENT= GNU editing macros (editor) | |
16 | LICENSE= gnu-gpl-v3 | 18 | LICENSE= gnu-gpl-v3 | |
17 | 19 | |||
18 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} | 20 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} |
@@ -1,18 +1,20 @@ | @@ -1,18 +1,20 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.3 2019/06/08 10:40:54 rillig Exp $ | 1 | # $NetBSD: Makefile.common,v 1.4 2021/09/27 15:26:24 nia Exp $ | |
2 | # | 2 | # | |
3 | # used by editors/emacs26/Makefile | 3 | # used by editors/emacs26/Makefile | |
4 | # used by editors/emacs26-nox11/Makefile | 4 | # used by editors/emacs26-nox11/Makefile | |
5 | 5 | |||
6 | MKPIE_SUPPORTED= no | |||
7 | ||||
6 | .include "../../mk/bsd.prefs.mk" | 8 | .include "../../mk/bsd.prefs.mk" | |
7 | 9 | |||
8 | DISTNAME= emacs-${EMACS_VERSION} | 10 | DISTNAME= emacs-${EMACS_VERSION} | |
9 | PKGNAME?= ${DISTNAME:S/emacs/emacs26/} | 11 | PKGNAME?= ${DISTNAME:S/emacs/emacs26/} | |
10 | CATEGORIES= editors | 12 | CATEGORIES= editors | |
11 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | |
12 | 14 | |||
13 | MAINTAINER= pkgsrc-users@NetBSD.org | 15 | MAINTAINER= pkgsrc-users@NetBSD.org | |
14 | HOMEPAGE= https://www.gnu.org/software/emacs/ | 16 | HOMEPAGE= https://www.gnu.org/software/emacs/ | |
15 | COMMENT= GNU editing macros (editor) | 17 | COMMENT= GNU editing macros (editor) | |
16 | LICENSE= gnu-gpl-v3 | 18 | LICENSE= gnu-gpl-v3 | |
17 | 19 | |||
18 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} | 20 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} |
@@ -1,18 +1,20 @@ | @@ -1,18 +1,20 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.1 2020/08/12 14:14:48 ryoon Exp $ | 1 | # $NetBSD: Makefile.common,v 1.2 2021/09/27 15:26:25 nia Exp $ | |
2 | # | 2 | # | |
3 | # used by editors/emacs27/Makefile | 3 | # used by editors/emacs27/Makefile | |
4 | # used by editors/emacs27-nox11/Makefile | 4 | # used by editors/emacs27-nox11/Makefile | |
5 | 5 | |||
6 | MKPIE_SUPPORTED= no | |||
7 | ||||
6 | .include "../../mk/bsd.prefs.mk" | 8 | .include "../../mk/bsd.prefs.mk" | |
7 | 9 | |||
8 | DISTNAME= emacs-${EMACS_VERSION} | 10 | DISTNAME= emacs-${EMACS_VERSION} | |
9 | PKGNAME?= ${DISTNAME:S/emacs/emacs27/} | 11 | PKGNAME?= ${DISTNAME:S/emacs/emacs27/} | |
10 | CATEGORIES= editors | 12 | CATEGORIES= editors | |
11 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=emacs/} | |
12 | 14 | |||
13 | MAINTAINER= pkgsrc-users@NetBSD.org | 15 | MAINTAINER= pkgsrc-users@NetBSD.org | |
14 | HOMEPAGE= https://www.gnu.org/software/emacs/ | 16 | HOMEPAGE= https://www.gnu.org/software/emacs/ | |
15 | COMMENT= GNU editing macros (editor) | 17 | COMMENT= GNU editing macros (editor) | |
16 | LICENSE= gnu-gpl-v3 | 18 | LICENSE= gnu-gpl-v3 | |
17 | 19 | |||
18 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} | 20 | WRKSRC= ${WRKDIR}/${DISTNAME:S/b$//} |