pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/xemacs Build with the portable dumper, followi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6ef147061f95
branches: trunk
changeset: 646820:6ef147061f95
user: hauke <hauke%pkgsrc.org@localhost>
date: Sun Feb 15 13:13:24 2015 +0000
description:
Build with the portable dumper, following advice from upstream. This
fixes spurious SIGSEV breakage during build on (at least) netbsd-6
amd64. Do a little GENERATE_PLIST dance to accomodate for the dynamic
filename of the (separate) dump file.
Add a handy option for a debug build.
Install the "Installation" protocol of build parameters, it is helpful
for reporting issues upstream.
diffstat:
editors/xemacs/Makefile | 23 +++++++++++++++--------
editors/xemacs/PLIST | 3 ++-
editors/xemacs/options.mk | 10 ++++++++--
3 files changed, 25 insertions(+), 11 deletions(-)
diffs (105 lines):
diff -r 6783fd998b99 -r 6ef147061f95 editors/xemacs/Makefile
--- a/editors/xemacs/Makefile Sun Feb 15 12:51:26 2015 +0000
+++ b/editors/xemacs/Makefile Sun Feb 15 13:13:24 2015 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.112 2015/02/04 09:19:20 hauke Exp $
+# $NetBSD: Makefile,v 1.113 2015/02/15 13:13:24 hauke Exp $
PKGNAME?= ${DISTNAME}
COMMENT?= XEmacs text editor version 21
DISTNAME= xemacs-21.4.23
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_XEMACS:=${DISTNAME:C/[.][^.]*$//}/}
@@ -26,7 +26,13 @@
PLIST_SUBST+= DISTNAME=${DISTNAME:Q}
FILES_SUBST+= DISTNAME=${DISTNAME:Q}
MESSAGE_SUBST+= DISTNAME=${DISTNAME:Q}
-INFO_FILES= yes
+INFO_FILES= yes
+
+.if defined(MANZ)
+PLIST_SUBST+= ELSUFX='.gz'
+.else
+PLIST_SUBST+= ELSUFX=''
+.endif
.include "options.mk"
@@ -36,6 +42,7 @@
CONFIGURE_ARGS+= --with-clash-detection
CONFIGURE_ARGS+= --with-mule=yes
CONFIGURE_ARGS+= --with-msw=no
+CONFIGURE_ARGS+= --pdump
CFLAGS+= -Dunix
# Use terminfo on NetBSD-6 and newer.
@@ -69,6 +76,9 @@
LIBDIR= ${PREFIX}/lib/${DISTNAME}
ARCHLIBDIR= ${LIBDIR}/${MACHINE_GNU_PLATFORM}
+# The portable dumper creates a dump file with a build ID in its name
+GENERATE_PLIST+= ${ECHO} bin/${DISTNAME}-`${WRKSRC}/src/xemacs -sd`.dmp ;
+
# This list overrides variables used in the source Makefiles at install
# time to allow for ${DESTDIR}-style installation. This variables list
# is pulled from the ``mkdir'' target of Makefile.in.in.
@@ -95,13 +105,10 @@
pre-build:
rm -f ${WRKSRC}/etc/ctags.1.orig
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/Installation ${DESTDIR}${LIBDIR}/etc/
.if defined(MANZ)
-PLIST_SUBST+= ELSUFX='.gz'
-
-post-install:
find ${DESTDIR}${LIBDIR} -name "*.el" -type f -print | xargs ${GZIP_CMD}
-.else
-PLIST_SUBST+= ELSUFX=''
.endif
.include "../../databases/gdbm/buildlink3.mk"
diff -r 6783fd998b99 -r 6ef147061f95 editors/xemacs/PLIST
--- a/editors/xemacs/PLIST Sun Feb 15 12:51:26 2015 +0000
+++ b/editors/xemacs/PLIST Sun Feb 15 13:13:24 2015 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.20 2011/12/08 20:43:28 marino Exp $
+@comment $NetBSD: PLIST,v 1.21 2015/02/15 13:13:24 hauke Exp $
bin/${DISTNAME}
bin/ellcc
bin/gnuattach
@@ -26,6 +26,7 @@
lib/${DISTNAME}/etc/GNU
lib/${DISTNAME}/etc/HELLO
lib/${DISTNAME}/etc/InstallGuide
+lib/${DISTNAME}/etc/Installation
lib/${DISTNAME}/etc/LPF
lib/${DISTNAME}/etc/MACHINES
lib/${DISTNAME}/etc/MAILINGLISTS
diff -r 6783fd998b99 -r 6ef147061f95 editors/xemacs/options.mk
--- a/editors/xemacs/options.mk Sun Feb 15 12:51:26 2015 +0000
+++ b/editors/xemacs/options.mk Sun Feb 15 13:13:24 2015 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.10 2010/12/23 11:44:29 dsainty Exp $
+# $NetBSD: options.mk,v 1.11 2015/02/15 13:13:24 hauke Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.xemacs
-PKG_SUPPORTED_OPTIONS= ldap xface canna x11
+PKG_SUPPORTED_OPTIONS= ldap xface canna x11 debug
PKG_OPTIONS_OPTIONAL_GROUPS= toolkit
PKG_OPTIONS_GROUP.toolkit= lucid
@@ -139,3 +139,9 @@
CONFIGURE_ARGS+= --with-athena=xaw
CONFIGURE_ARGS+= --with-xim=xlib
.endif
+
+PLIST_VARS+= debug
+.if !empty(PKG_OPTIONS:Mdebug)
+CFLAGS+= -g3
+INSTALL_UNSTRIPPED= yes
+.endif
Home |
Main Index |
Thread Index |
Old Index