pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/46804: Emacs Load Path issues when using emacs-nox11 w/ other packages such as flim, semi, and skk
>Number: 46804
>Category: pkg
>Synopsis: Emacs Load Path issues when using emacs-nox11 w/ other
>packages such as flim, semi, and skk
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 15 22:10:00 +0000 2012
>Originator: Christopher M. Fuhrman
>Release: N/A : Using Darwin 10.8.0 and Darwin 11.4.0
>Organization:
>Environment:
Darwin m240-sm-20-mbpt 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41
PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
Darwin dn0a2071e1.sunet 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9
19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
>Description:
When EMACS_TYPE=emacs23nox and one attempts to install certain packages (for
the sake of example, let's say mail/wl-snapshot), the emacs batch command does
not have the correct load path resulting in failed compilation as so:
==========================================================================
The following variables will affect the build process of this package,
wl-2.15.9.20110420. Their current value is shown below:
* EMACS_TYPE = emacs23nox
* SSLBASE = /usr
* SSLCERTS = /etc/ssl/certs
* SSLDIR = /etc/ssl
* SSLKEYS = /etc/ssl/private
Based on these variables, the following variables have been set:
* EMACS_BIN = /usr/pkg/bin/emacs
* EMACS_ETCPREFIX = /usr/pkg/share
* EMACS_FLAVOR = emacs
* EMACS_INFOPREFIX = /usr/pkg/info
* EMACS_LISPPREFIX = /usr/pkg/share/emacs/site-lisp
* EMACS_PKGNAME_PREFIX (defined, but empty)
* EMACS_VERSION_MAJOR = 23
* EMACS_VERSION_MICRO (defined, but empty)
* EMACS_VERSION_MINOR = 3
You may want to abort the process now with CTRL-C and change their value
before continuing. Be sure to run `/usr/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Build dependency nbpatch-[0-9]*: found nbpatch-20100124
=> Full dependency emacs-nox11>=23.2<24: found emacs-nox11-23.4
=> Full dependency emacs-nox11>=23.2<24: found emacs-nox11-23.4
=> Full dependency emacs-w3m>=1.4.364: found emacs-w3m-1.4.442.20110729nb1
=> Full dependency apel>=10: found apel-10.8
=> Full dependency semi>=1.14: found semi-1.14.6nb6
=> Full dependency bbdb>=2: found bbdb-2.35
===> Overriding tools for wl-2.15.9.20110420
===> Extracting for wl-2.15.9.20110420
===> Patching for wl-2.15.9.20110420
=> Applying pkgsrc patches for wl-2.15.9.20110420
===> Creating toolchain wrappers for wl-2.15.9.20110420
===> Configuring for wl-2.15.9.20110420
=> Fixing wl-icon-directory default value (defvar)
===> Building for wl-2.15.9.20110420
/usr/pkg/bin/emacs -batch -q -no-site-file -l WL-MK -f compile-wl-package
/Volumes/TempStorage/pkgsrc-2012Q2/mail/wl-snapshot/work/.destdir/usr/pkg/share/emacs/site-lisp
/Volumes/TempStorage/pkgsrc-2012Q2/mail/wl-snapshot/work/.destdir/usr/pkg/share/wl
Warning: Could not find simple.el nor simple.elc
Cannot open load file: cl
*** Error code 255
Stop.
bmake: stopped in
/Volumes/TempStorage/pkgsrc-2012Q2/mail/wl-snapshot/work/wanderlust
*** Error code 1
Stop.
bmake: stopped in /Volumes/TempStorage/pkgsrc-2012Q2/mail/wl-snapshot
*** Error code 1
Stop.
bmake: stopped in /Volumes/TempStorage/pkgsrc-2012Q2/mail/wl-snapshot
*** Error code 1
Stop.
bmake: stopped in /Volumes/TempStorage/pkgsrc-2012Q2/editors/emacs-packages
The issue here is that EMACSLOADPATH, as defined in editors/emacs/modules.mk,
isn't complete enough for emacs to locate the required dependencies and thus
fails.
Currently, this impacts the following packages:
- devel/flim
- devel/semi
- inputmethod/skk
- mail/wl-snapshot
Probably more I haven't checked.
>How-To-Repeat:
1) Remove any prior version of emacs installed via pkgsrc
2) Edit /usr/pkg/etc/mk.conf and set EMACS_TYPE=emacs23nox
3) Attempt to install devel/flim (emacs-nox11 v23.4 will be installed)
Building of package will fail as so:
/usr/pkg/bin/emacs -batch -q -no-site-file -l FLIM-MK -f compile-flim NONE NONE
NONE
Warning: Could not find simple.el nor simple.elc
Loading
/Volumes/TempStorage/pkgsrc-2012Q2/devel/flim/work/flim-1.14.9/FLIM-CFG...
Loading
/Volumes/TempStorage/pkgsrc-2012Q2/devel/flim/work/flim-1.14.9/FLIM-ELS...
Cannot open load file: advice
*** Error code 255
>Fix:
A temporary workaround is do invoke bmake as follows:
$ cd path/to/package (e.g., /usr/pkgsrc/devel/flim)
$ bmake
EMACSLOADPATH=$PWD/work/.buildlink/share/emacs/site-lisp/:$PWD/work/.buildlink/share/emacs/23.4/lisp/:$PWD/work/.buildlink/share/emacs/23.4/site-lisp/
install
A longer term solution would be to fix how EMACSLOADPATH is defined in
editors/emacs/modules.mk. One clue to fixing the issue can be found at
http://www.ki.nu/~makoto/diary/2012/03/06/1.html although be warned that the
provided patch found at
http://www.ki.nu/~makoto/diary/attach/2012/20120306-emacs-modules.mk-diff did
not work for me :/
Home |
Main Index |
Thread Index |
Old Index