ports/61069: ports/Mk/bsd.emacs.mk is not PREFIX clean

Munehiro Matsuda haro at h4.dion.ne.jp
Thu Jan 8 14:50:20 UTC 2004


>Number:         61069
>Category:       ports
>Synopsis:       ports/Mk/bsd.emacs.mk is not PREFIX clean
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 08 06:50:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Munehiro Matsuda
>Release:        FreeBSD 5.2-CURRENT
>Organization:
>Environment:
5.2-CURRENT FreeBSD 5.2-CURRENT #142: Thu Jan  8 13:11:50 JST 2004  
$FreeBSD: ports/Mk/bsd.emacs.mk,v 1.28 2003/12/08 08:31:58 kiri Exp $

>Description:
Building of emacs-related port will fail on byte-compiling .el files,
if PREFIX is specified .

>How-To-Repeat:
1. Build dependent ports normally.
	# cd /usr/ports/x11-toolkits/Xaw3d
	# make install clean
	# cd /usr/ports/graphics/jpeg
	# make install clean
	# cd /usr/ports/graphics/tiff
	# make install clean
	# cd /usr/ports/graphics/libungif
	# make install clean
	# cd /usr/ports/graphics/png

2. Build emacs related ports with PREFIX
	# cd /usr/ports/editors/emacs21
	# make PREFIX=/usr/local/emacs21 install clean
	# cd /usr/ports/editors/tamago
	# make PREFIX=/usr/local/emacs21 install

3. Watch tamago port fail to build due to not finding
   /usr/local/bin/emacs-21.3.

>Fix:
--- bsd.emacs.mk.ctm    Tue Dec  9 09:20:01 2003
+++ bsd.emacs.mk        Thu Jan  8 11:52:21 2004
@@ -213,10 +213,15 @@
 #
 
 # emacsen command-line filename
-EMACS_CMD?=                    ${LOCALBASE}/bin/${EMACS_NAME}-${EMACS_VER}
+.if exists(${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER})
+EMACS_BASE=${PREFIX}
+.else
+EMACS_BASE=${LOCALBASE}
+.endif
+EMACS_CMD?=                    ${EMACS_BASE}/bin/${EMACS_NAME}-${EMACS_VER}
 # emacsen core elisp filename
 EMACS_CORE_DIR=                        ${EMACS_LIBDIR_WITH_VER}/lisp/${EMACS_CORE_SUBDIR}
-EMACS_COREEL=                  ${LOCALBASE}/${EMACS_CORE_DIR}/startup.el
+EMACS_COREEL=                  ${EMACS_BASE}/${EMACS_CORE_DIR}/startup.el
 
 # emacsen libdir without ${LOCALBASE}
 EMACS_SITE_LISPDIR?=           ${EMACS_LIBDIR}/site-lisp


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list