Package: bbdb
Severity: normal

Steps to reproduce:

   apt-get install bbdb
   apt-get install --reinstall emacs21

Watch as the byte-compilation of some totally unrelated package fails with
obscure error messages.  Also note that you can now no longer start Emacs.

The problem is that the BBDB site-startup file contains the line

   (require 'bbdb-autoloads)

but doesn't add the neccessary directories to `load-path' first.  It has

   (setq load-path 
         (cons 
          (concat "/usr/share/" (symbol-name debian-emacs-flavor)
                 "/site-lisp/bbdb")
          load-path))

But that only adds the directory where *byte-compiled* files go.
Unfortunately, you don't have any byte-compiled files when you are installing
a new Emacs flavor (or reinstalling an old one).

I can see two possible solutions to this problem:

  * Don't try to load any other files in /etc/emacs/site-startup.d/50bbdb.el.
    Instead, put the calls to autoload etc. right in the 50bbdb.el file.
    I can't really tell how difficult this would be in the case of BBDB, but
    it seems to be well-accepted practice --- at least for small packages.

  * Add /usr/share/emacs/site-lisp/bbdb to `load-path'.  This is easy to do,
    but is it a good idea?  Do any other packages currently do this?

I cannot tell which solution is better.  Maybe there is another alternative?

Oh, by the way, to get your Emacs working again, remove BBDB, install Emacs,
and then install BBDB again (if you want it).

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-drlion-8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to