Subject: pkg/4979: emacs doesn't properly install (due to STRIPFLAG)
To: None <gnats-bugs@gnats.netbsd.org>
From: Johnny Chi-Lung Lam <jlbg+@andrew.cmu.edu>
List: netbsd-bugs
Date: 02/11/1998 22:41:08
>Number:         4979
>Category:       pkg
>Synopsis:       emacs doesn't properly install (due to STRIPFLAG)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 11 19:50:01 1998
>Last-Modified:
>Originator:     Johnny C. Lam
>Organization:
>Release:        1.3B
>Environment:
System: NetBSD deepthought 1.3B NetBSD 1.3B (DEEPTHOUGHT) #1: Thu Jan 22 17:27:08 EST 1998 toor@deepthought:/usr/local/src/sys/arch/mac68k/compile/DEEPTHOUGHT mac68k


>Description:
	Installation will try to strip shell scripts.  It will also fail
	strip binaries in ${PREFIX}/libexec/emacs/20.2/${MACHINE_ARCH}--netbsd/
	and won't always be able to find ${PREFIX}/share/emacs/20.2/etc/DOC-*
	depending on if you run 'make all; make install' or 
	'make all; make install; make re-install', etc.
>How-To-Repeat:
	make install
>Fix:
	The following patch to the emacs makefile skeleton fixes all of the
	above problems:

--- Makefile	Mon Feb  9 09:45:51 1998
+++ ../Makefile	Wed Feb 11 12:18:05 1998
@@ -22,11 +22,19 @@
 CONFIGURE_ARGS+=	${MACHINE_ARCH}--netbsd --with-pop --with-x --with-x-toolkit=lucid
 MAN1=		emacs.1 etags.1 ctags.1
 OPSYS!=         uname -s
+STRIPFLAG=
+
+pre-install:
+	@rm -f ${WRKSRC}/emacs ${WRKSRC}/src/emacs-20.2*
+	@rm -f ${WRKSRC}/etc/DOC ${WRKSRC}/etc/DOC-20.2*
 
 post-install:
 .for file in emacs-20.2 emacsclient etags ctags b2m
 	strip ${PREFIX}/bin/${file}
 .endfor
+.for file in cvtmail digest-doc emacsserver fakemail hexl movemail profile sorted-doc yow
+	strip ${PREFIX}/libexec/emacs/20.2/${MACHINE_ARCH}--netbsd/${file}
+.endfor
 .if (${OPSYS} != "NetBSD")
 	if [ ! -f ${PREFIX}/info/dir ]; then \
 	  ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
@@ -35,7 +43,5 @@
 .for info in emacs vip viper forms gnus mh-e cl sc dired-x ediff ccmode message
 	install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
 .endfor
-	cd ${PREFIX}/share/emacs/20.2/etc ; [ -f DOC-20.2.3 ] && rm -f DOC-20.2.2
-	cd ${PREFIX}/share/emacs/20.2/etc ; [ -f DOC-20.2.2 ] && rm -f DOC-20.2.1
 
 .include <bsd.port.mk>
--- pkg/PLIST	Mon Feb  9 09:46:22 1998
+++ ../pkg/PLIST	Wed Feb 11 12:05:03 1998
@@ -208,7 +208,7 @@
 share/emacs/20.2/etc/vipcard.tex
 share/emacs/20.2/etc/viperCard.tex
 share/emacs/20.2/etc/yow.lines
-share/emacs/20.2/etc/DOC-20.2.2
+share/emacs/20.2/etc/DOC-20.2.1
 share/emacs/20.2/lisp/abbrev.el
 share/emacs/20.2/lisp/abbrevlist.el
 share/emacs/20.2/lisp/add-log.el

>Audit-Trail:
>Unformatted: