Your message dated Wed, 18 May 2005 19:02:31 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#308335: fixed in dictionary-el 1.8.7-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 May 2005 14:28:38 +0000
>From [EMAIL PROTECTED] Mon May 09 07:28:38 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mxfep01.bredband.com [195.54.107.70] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DV9FO-0007sQ-00; Mon, 09 May 2005 07:28:38 -0700
Received: from wigwam ([213.112.182.84] [213.112.182.84])
          by mxfep01.bredband.com with ESMTP
          id <[EMAIL PROTECTED]>
          for <[EMAIL PROTECTED]>; Mon, 9 May 2005 16:28:06 +0200
Received: from drlion by wigwam with local (Exim 4.44)
        id 1DV9LN-0002l3-HA
        for [EMAIL PROTECTED]; Mon, 09 May 2005 16:34:49 +0200
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: dictionary-el: Prevents Emacs from installing
X-Debbugs-CC: Daniel Brockman <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
From: Daniel Brockman <[EMAIL PROTECTED]>
Date: Mon, 09 May 2005 16:34:49 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: dictionary-el
Version: 1.8.7-1
Severity: normal
Tags: patch

Steps to reproduce:

   apt-get install dictionary-el
   apt-get install --reinstall emacs21

BLAM.

To get your Emacs back, remove dictionary-el, install emacs21, and then
install dictionary-el again (if you want it).

You might ask, why would anyone want to reinstall their Emacs?  Well, I don't
know, but the problem also occurs when attempting to install a new
Emacs flavor, such as Jerome Marant's excellent emacs-snapshot.

Anyway, the problem is in /etc/emacs/site-start.d/50dictionary-el.el:

   (setq load-path (cons (concat "/usr/share/"
                                 (symbol-name flavor)
                                 "/site-lisp/dictionary-el") load-path))

   (load "dictionary-init")

That is, it adds a flavor-specific directory to `load-path' and then assumes
that it will be able to load something.  This works when the package files
have been byte-compiled for whatever flavor is starting, but when Emacs is
being installed fresh, there are no files in /usr/share/$flavor/site-lisp/.
This creates a chicken-and-egg situation where Emacs needs the
dictionary-init.elc file to byte-compile the dictionary-init.el file.

To fix this, I suggest avoiding loading things from the package startup file.
Here, I've simply replaced (load "dictionary-init") with the contents of
dictionary-init.el, which just contained a bunch of autoloads anyway.
This seems to be what most packages do.  (Except a few that also suffer from
this problem; I'll get to those if this patch is accepted.)

By the way, is there any reason to keep the deb/ directory around, when there
is a debian/ directory which is better in all respects?  If we removed deb/,
we could nuke dictionary-init.el completely.

--- dictionary-el-1.8.7/debian/emacsen-startup~ 2005-05-09 11:17:40.259989288 
+0200
+++ dictionary-el-1.8.7/debian/emacsen-startup  2005-05-09 14:48:10.608884400 
+0200
@@ -14,4 +14,21 @@
 (setq load-path (cons (concat "/usr/share/"
                               (symbol-name flavor)
                              "/site-lisp/dictionary-el") load-path))
-(load "dictionary-init")
+
+(autoload 'dictionary-search "dictionary"
+  "Ask for a word and search it in all dictionaries" t)
+(autoload 'dictionary-match-words "dictionary"
+  "Ask for a word and search all matching words in the dictionaries" t)
+(autoload 'dictionary-lookup-definition "dictionary"
+  "Unconditionally lookup the word at point." t)
+(autoload 'dictionary "dictionary"
+  "Create a new dictionary buffer" t)
+(autoload 'dictionary-mouse-popup-matching-words "dictionary"
+  "Display entries matching the word at the cursor" t)
+(autoload 'dictionary-popup-matching-words "dictionary"
+  "Display entries matching the word at the point" t)
+(autoload 'dictionary-tooltip-mode "dictionary"
+  "Display tooltips for the current word" t)
+(unless (boundp 'running-xemacs)
+  (autoload 'global-dictionary-tooltip-mode "dictionary"
+    "Enable/disable dictionary-tooltip-mode for all buffers" t))


-- 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)

Versions of packages dictionary-el depends on:
ii  emacs-snapshot [emacsen 20050425220908-1 The GNU Emacs editor
ii  emacs21 [emacsen]       21.4a-1          The GNU Emacs editor

-- no debconf information

---------------------------------------
Received: (at 308335-close) by bugs.debian.org; 18 May 2005 23:11:15 +0000
>From [EMAIL PROTECTED] Wed May 18 16:11:15 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DYXh5-0005ze-00; Wed, 18 May 2005 16:11:15 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DYXYd-0005ze-00; Wed, 18 May 2005 19:02:31 -0400
From: [EMAIL PROTECTED] (Aaron M. Ucko)
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#308335: fixed in dictionary-el 1.8.7-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Wed, 18 May 2005 19:02:31 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: dictionary-el
Source-Version: 1.8.7-2

We believe that the bug you reported is fixed in the latest version of
dictionary-el, which is due to be installed in the Debian FTP archive:

dictionary-el_1.8.7-2.dsc
  to pool/main/d/dictionary-el/dictionary-el_1.8.7-2.dsc
dictionary-el_1.8.7-2.tar.gz
  to pool/main/d/dictionary-el/dictionary-el_1.8.7-2.tar.gz
dictionary-el_1.8.7-2_all.deb
  to pool/main/d/dictionary-el/dictionary-el_1.8.7-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aaron M. Ucko <[EMAIL PROTECTED]> (supplier of updated dictionary-el package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 18 May 2005 18:50:11 -0400
Source: dictionary-el
Binary: dictionary-el
Architecture: source all
Version: 1.8.7-2
Distribution: unstable
Urgency: low
Maintainer: Aaron M. Ucko <[EMAIL PROTECTED]>
Changed-By: Aaron M. Ucko <[EMAIL PROTECTED]>
Description: 
 dictionary-el - dictionary client for Emacs
Closes: 308335
Changes: 
 dictionary-el (1.8.7-2) unstable; urgency=low
 .
   * debian/emacsen-startup: cope with being unable to load
     dictionary-init, as this package is not always fully
     installed/configured.  (Closes: #308335.)
Files: 
 22a01063795b1fbd1485c9b605bf0494 517 text optional dictionary-el_1.8.7-2.dsc
 ffcba6a0c055da78029322cc3194def3 35672 text optional 
dictionary-el_1.8.7-2.tar.gz
 4b50c234c3367d242eeb7b633003c54b 27990 text optional 
dictionary-el_1.8.7-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCi8coWNCxsidXLEcRAqhVAKCF02eRDa95REDTju1OPy1WhR/IGACeOmmz
CP2O3y73CT9knfdWSzPiLk8=
=FEOE
-----END PGP SIGNATURE-----


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

Reply via email to