pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
emacs-current: fix paxctl usage on NetBSD.
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Mon Apr 25 14:10:32 2016 +0200
Changeset: 7d7d1b2fbd708fa8f3bca1111b2b76d2d60dc66f
Added Files:
emacs-current/hacks.mk
Log Message:
emacs-current: fix paxctl usage on NetBSD.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d7d1b2fbd708fa8f3bca1111b2b76d2d60dc66f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
emacs-current/hacks.mk | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diffs:
diff --git a/emacs-current/hacks.mk b/emacs-current/hacks.mk
new file mode 100644
index 0000000..b7e3f34
--- /dev/null
+++ b/emacs-current/hacks.mk
@@ -0,0 +1,22 @@
+# $NetBSD: hacks.mk,v 1.2 2016/04/12 13:25:21 ryoon Exp $
+
+.if !defined(EMACS_HACKS_MK)
+EMACS_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### PaX is enabled, bootstrap-emacs command dumps core with segfault.
+### src/Makefile.in does not support NetBSD paxctl(8) syntax.
+###
+. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
+. if exists(/usr/sbin/paxctl)
+SUBST_CLASSES+= paxctl
+SUBST_STAGE.paxctl= pre-configure
+SUBST_MESSAGE.paxctl= Setting paxctl command
+SUBST_FILES.paxctl+= src/Makefile.in
+SUBST_SED.paxctl+= -e 's,$$(PAXCTL_if_present) -zex,/usr/sbin/paxctl +a,g'
+SUBST_SED.paxctl+= -e 's,$$(PAXCTL_if_present) -r,/usr/sbin/paxctl +a,g'
+. endif
+. endif
+
+.endif # EMACS_HACKS_MK
Home |
Main Index |
Thread Index |
Old Index