On Mon, May 09, 2005 at 10:01:05PM +0200, Daniel Brockman wrote:
> Package: dictionaries-common
> Version: 0.25.9
> Severity: normal
> 
> Steps to reproduce:
> 
>    apt-get install dictionaries-common aspell-sv (or some other)
>    apt-get install --reinstall emacs21

If I am not wrong, that should also be reproduced by a plain

# dpkg-reconfigure emacs21

I can only check that now in a woody+dict-common system, and I cannot
reproduce that problem. I am not in dial up and cannot try a real
reinstall. Please check if 'dpkg-reconfigure emacs21' also gives that
problem in your system. Please also provide info about the emacs
version you are trying. 

After your description, every upgrade should trigger that problem (As a
matter of fact a harmless error message is sometimes shown for xemacs
probably due to that problem), but I could never see it for FSF emacs,
and I have gone through a number of install/upgrade/reinstall runs (I am
not sure about reinstalls, but should be similar).

I cannot be sure that something in the emacs error handling is not changed in
sid, but I am surprised that I never found that problem for FSF emacs. I am
also surprised that this bug, considering what causes it, has never been
reported. Read below for a possible reason.

> 
> This likely results in dpkg failing noisily upon running the emacs-install
> script for some completely unrelated Emacs package.  You won't be able to get
> your Emacs back unless you first remove dictionaries-common.  Then you can
> install Emacs, and finally put back dictionaries-common if you like.
> 
> This becomes a real problem when you want to install a new Emacs flavor
> (something which also provokes this bug).  The worst part may be that the
> error messages give no hint about what is really causing the problem.
> 
> The problem is that /etc/emacs/site-start.d/50dictionaries-common.el calls
> 
>    (load "/var/cache/dictionaries-common/emacsen-ispell-dicts.el" t)
> 
> and /var/cache/dictionaries-common/emacsen-ispell-dicts.el calls
> 
>    (debian-ispell-add-dictionary-entry ...)
> 
> which causes the autoload for `debian-ispell-add-dictionary-entry' to attempt
> to load the library "debian-ispell".  Here's where things break down.

dictionaries-common emacsen-install is called with --no-site-file for
emacs21* and with -no-site-file for xemacs21*, so that configuration files
(etc/etc/emacs/site-start.d/* stuff) should not be loaded, look at the *real*
dictionaries-common section

  install/dictionaries-common: Byte-compiling for emacsen flavour emacs21
  Wrote /usr/share/emacs21/site-lisp/dictionaries-common/debian-ispell.elc
  Wrote /usr/share/emacs21/site-lisp/dictionaries-common/ispell.elc
  Done

(No loads from /etc at all)

But other packages might have missed this, and they are blindly loading
everything under /etc/emacs/site-start.d when byte-compiling. Can you
please submit the full byte-compile log?, so we can better locate the problem.

> 
> I don't know what would be a good solution in this case, but you may find it
> helpful to know that I've filed a similar couple of bugs on the dictionary-el
> and BBDB packages (Bug#308335 and Bug#308336, respectively) --- which also
> cause this same problem.

The trivial fix is to surround the code by a condition-case, so we work
around other packages bugs. I do not think that is desirable, so I wait for
your log. Note that those other packages might also not be guilty for this
problem.

Thanks for your report, ... and waiting for your feedback,

Cheers,

-- 
Agustin


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

Reply via email to