Date: Thu, 8 Jan 2004 06:56:30 -0800 (PST) From: Munehiro Matsuda <haro@h4.dion.ne.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/61071: port/japanese/emacs21-emcws is not PREFIX clean Message-ID: <200401081456.i08EuU5E061045@www.freebsd.org> Resent-Message-ID: <200401081500.i08F0anS089353@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 61071 >Category: ports >Synopsis: port/japanese/emacs21-emcws 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 07:00:35 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/japanese/emacs21-emcws/Makefile,v 1.22 2003/12/20 01:46:11 linimon Exp $ >Description: Building of japanese/emacs21-emcws port will fail on byte-compiling .el files, if PREFIX is specified. This is similar problem with PR ports/61069, but different cause. >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 # make install clean 2. Build emacs related ports with PREFIX # cd /usr/ports/editors/emacs21 # make PREFIX=/usr/local/emacs21 install clean # cd /usr/ports/japanese/emacs21-emcws # make PREFIX=/usr/local/emacs21 install clean 3. Watch emacs21-emcws port fail, due to not finding /usr/local/bin/emacs-21.3. BTW, this is similar problem that I submitted as ports/61069, but different cause. >Fix: --- Makefile.ctm Sun Dec 21 01:30:05 2003 +++ Makefile Thu Jan 8 12:01:21 2004 @@ -146,6 +146,12 @@ .endif .endif +.if exists(${PREFIX}/bin/emacs-${EMACS_VER}) +EMACS_BASE=${PREFIX} +.else +EMACS_BASE=${LOCALBASE} +.endif + pre-fetch: @${CAT} ${FILESDIR}/emcws-message @@ -153,7 +159,7 @@ ${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \; ${RM} -rf ${WRKSRC}/info/* @(cd ${WRKSRC}/src/../lisp; \ - ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} compile-files EMACS=${LOCALBASE}/bin/emacs-${EMACS_VER}) + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} compile-files EMACS=${EMACS_BASE}/bin/emacs-${EMACS_VER}) @(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} emacs) @(cd ${WRKSRC}/src/../lisp; \ ${WRKSRC}/src/emacs -batch -q -f batch-byte-compile \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401081456.i08EuU5E061045>