pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/46804: Emacs Load Path issues when using emacs-nox11 w/ other packages such as flim, semi, and skk



The following reply was made to PR pkg/46804; it has been noted by GNATS.

From: Makoto Fujiwara <makoto%ki.nu@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/46804: Emacs Load Path issues when using emacs-nox11 w/ other 
packages such as flim, semi, and skk
Date: Fri, 17 Aug 2012 21:46:41 +0900

 The patch for today follows 
 (I do not insist for this, just a way to real solution :-)
 
 Index: editors/emacs/modules.mk
 ===================================================================
 RCS file: /e/cvsync/cvsync/pkgsrc/editors/emacs/modules.mk,v
 retrieving revision 1.15
 diff -u -r1.15 modules.mk
 --- editors/emacs/modules.mk   23 Mar 2011 15:15:20 -0000      1.15
 +++ editors/emacs/modules.mk   16 Aug 2012 14:57:47 -0000
 @@ -343,11 +343,15 @@
  
  .if defined(EMACS_BUILDLINK)
  _EMACS_DIR=   ${BUILDLINK_DIR}/share/emacs
 -.  if empty(EMACS_TYPE:Memacs24)
 -ALL_ENV+=     
EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}/lisp:${_EMACS_DIR}/site-lisp
 -.  else
 -ALL_ENV+=     
EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}.${_EMACS_VERSION_MICRO}/lisp:${_EMACS_DIR}/site-lisp
 -.  endif
 +_EMACS_VERSION_DIR!=   \
 +  emacs -q -batch -f eval '(print load-path)' --no-site-lisp 2>&1 | \
 +  ${TR} ' ' '\012' | \
 +  ${SED} -e 's|.*/share|/share|'  -e 's/(//' | \
 +  rev | ${CUT} -d '/' -f 2- | rev | ${SORT} -u | \
 +  ${GREP} lisp | ${SED} -e 's|share/emacs/||' -e 's|/lisp||'
 +
 +ALL_ENV+=      
EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_DIR}/lisp:${_EMACS_DIR}/site-lisp
 +
  .include      "${_EMACS_PKGDIR}/buildlink3.mk"
  .endif
 


Home | Main Index | Thread Index | Old Index