From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 8 06:50:20 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EA8B16A4CE for ; Thu, 8 Jan 2004 06:50:20 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E9AE43D54 for ; Thu, 8 Jan 2004 06:50:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i08EoGFR078021 for ; Thu, 8 Jan 2004 06:50:16 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i08EoGW0078020; Thu, 8 Jan 2004 06:50:16 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 8 Jan 2004 06:50:16 -0800 (PST) Resent-Message-Id: <200401081450.i08EoGW0078020@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Munehiro Matsuda Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAB2416A4CE for ; Thu, 8 Jan 2004 06:40:39 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D27F43D5A for ; Thu, 8 Jan 2004 06:40:29 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i08EeSdL055202 for ; Thu, 8 Jan 2004 06:40:28 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i08EeS3Z055201; Thu, 8 Jan 2004 06:40:28 -0800 (PST) (envelope-from nobody) Message-Id: <200401081440.i08EeS3Z055201@www.freebsd.org> Date: Thu, 8 Jan 2004 06:40:28 -0800 (PST) From: Munehiro Matsuda To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: ports/61069: ports/Mk/bsd.emacs.mk is not PREFIX clean X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 14:50:20 -0000 >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: