Peter S Galbraith <[email protected]> writes:

> Hi,
>
> I can't reproduce this...
>
> The errors means that directories like
> /usr/share/emacs/site-lisp/emacs-goodies-el don't exist on your
> system...

Actually, it looks like those three files in site-start.d were expecting
to see .elc files in those same directories, when they're now kept in
emacs-version-specific directories.

> Can you purge the packages, retry, and if it fails again show me the
> screen output of the install?

Hmm, it looks like this probably happened because I didn't upgrade
emacsen-common before I upgraded your packages; just:

,----
| $ dpkg-reconfigure {debian-el,devscripts-el,dpkg-dev-el}
`----

(with emacsen-common 2.08 installed this time) seems to have been enough
to get it working again.  My only guess as to why this would help is
that the scripts called to to build the elisp didn't actually do
anything useful in the old version of emacsen-common ...

However, I *still* get all of the messages I mentioned, so something
tells me that these files are all useless to me now:

,----
| % ls -l 
/etc/emacs/site-start.d/50{debbugs-el,debian-el,devscripts-el,dpkg-dev-el,emacs-goodies-el}.el
| -rw-r--r-- 1 root root 1256 Sep 20  2003 
/etc/emacs/site-start.d/50debbugs-el.el
| -rw-r--r-- 1 root root  615 Oct 16  2003 
/etc/emacs/site-start.d/50debian-el.el
| -rw-r--r-- 1 root root 2053 Dec  4  2007 
/etc/emacs/site-start.d/50devscripts-el.el
| -rw-r--r-- 1 root root  668 Feb 23  2009 
/etc/emacs/site-start.d/50dpkg-dev-el.el
| -rw-r--r-- 1 root root  705 Dec  4  2007 
/etc/emacs/site-start.d/50emacs-goodies-el.el
`----

In fact, dpkg doesn't even *know* about two of them:

,----
| % dpkg -S 
/etc/emacs/site-start.d/50{debbugs-el,debian-el,devscripts-el,dpkg-dev-el,emacs-goodies-el}.el
| dpkg-query: no path found matching pattern 
/etc/emacs/site-start.d/50debbugs-el.el
| dpkg-query: no path found matching pattern 
/etc/emacs/site-start.d/50debian-el.el
| devscripts-el: /etc/emacs/site-start.d/50devscripts-el.el
| dpkg-dev-el: /etc/emacs/site-start.d/50dpkg-dev-el.el
| emacs-goodies-el: /etc/emacs/site-start.d/50emacs-goodies-el.el
`----

I'm attaching copies of mine for reference.

;; -*-emacs-lisp-*-
;;
;; Emacs startup file for the Debian GNU/Linux devscripts-el package

(if (not (file-exists-p "/usr/share/emacs/site-lisp/debbugs-el"))
    (message "Package debbugs-el removed but not purged.  Skipping setup.")
  (debian-pkg-add-load-path-item
   (concat "/usr/share/" (symbol-name flavor) "/site-lisp/debbugs-el"))
  
  ;; Make sure that the uncompiled files are also in the load-path, near the
  ;; end.  This is for moving point to the code when view help.
  (setq load-path (nconc load-path 
                         (list "/usr/share/emacs/site-lisp/debbugs-el")))

  ;; autoloads for debian-bug.el
  (autoload 'debian-bug "debian-bug" "Submit a Debian bug report." t)
  (autoload 'debian-bug-web-bug "debian-bug"
    "Browse the BTS for a bug report number via browse-url"
    t)
  (autoload 'debian-bug-wnpp "debian-bug"
    "Submit a WNPP bug report to Debian."
    t)
  (autoload 'debian-bug-request-for-package "debian-bug"
    "Shortcut for debian-bug-wnpp with RFP action"
    t)
  (autoload 'debian-bug-ITP "debian-bug"
    "Shortcut for debian-bug-wnpp with ITP action (for Debian developers)"
    t)
  (autoload 'debian-bug-get-bug-as-email "debian-bug"
    "Read bug report #BUG-NUMBER via Email interface."
    t))
;; -*-emacs-lisp-*-
;;
;; Emacs startup file for the Debian GNU/Linux devscripts-el package

(if (not (file-exists-p "/usr/share/emacs/site-lisp/debian-el"))
    (message "Package debian-el removed but not purged.  Skipping setup.")
  (debian-pkg-add-load-path-item
   (concat "/usr/share/" (symbol-name flavor) "/site-lisp/debian-el"))
  
  ;; Make sure that the uncompiled files are also in the load-path, near the
  ;; end.  This is for moving point to the code when view help.
  (setq load-path (nconc load-path 
                         (list "/usr/share/emacs/site-lisp/debian-el")))

  (require 'debian-el))
;; -*-emacs-lisp-*-
;;
;; Emacs startup file for the Debian GNU/Linux devscripts-el package

(cond
 ((not (file-exists-p "/usr/share/emacs/site-lisp/devscripts-el"))
  (message "Package devscripts-el removed but not purged.  Skipping setup."))
 ((not (file-exists-p (concat "/usr/share/"
                              (symbol-name debian-emacs-flavor)
                              "/site-lisp/devscripts-el/pbuilder-mode.elc")))
  (message "Package devscripts-el not fully installed.  Skipping setup."))
 (t

  (debian-pkg-add-load-path-item
   (concat "/usr/share/"
           (symbol-name debian-emacs-flavor)
           "/site-lisp/devscripts-el"))
  
  ;; autoloads for devscripts.el
  (autoload 'debuild "devscripts" "Run debuild in the current directory." t)
  (autoload 'debc "devscripts" "Run debc in the current directory." t)
  (autoload 'debi "devscripts" "Run debi in the current directory." t)
  (autoload 'debit "devscripts" "Run debit in the current directory." t)
  (autoload 'debdiff "devscripts" "Compare contents of CHANGES-FILE-1 and CHANGES-FILE-2." t)
  (autoload 'debdiff-current "devscripts"   "Compare the contents of .changes file of current version with previous version; 
requires access to debian/changelog, and being in debian/ dir." t)
  (autoload 'debclean "devscripts" "Run debclean in the current directory." t)
  (autoload 'pdebuild "pbuilder-mode" "Run pdebuild in the current directory." t)
  (autoload 'pdebuild-user-mode-linux "pbuilder-mode" "Run pdebuild-user-mode-linux in the current directory." t)
  (autoload 'pbuilder-log-view-elserv "pbuilder-log-view-mode" "Run a elserv session with log view.

Running this requires elserv.  Use elserv, and do `elserv-start' before invoking this command." t)
  (autoload 'debuild-pbuilder "pbuilder-mode" "Run debuild-pbuilder in the current directory." t)
  (autoload 'pbuilder-build "pbuilder-mode" "Run pbuilder-build for the given filename." t)
  (autoload 'pbuilder-user-mode-linux-build "pbuilder-mode" "Run pbuilder-user-mode-linux for the given filename." t)))
;; -*-emacs-lisp-*-
;;
;; Emacs startup file for the Debian GNU/Linux dpkg-dev-el package

(cond
 ((not (file-exists-p "/usr/share/emacs/site-lisp/dpkg-dev-el"))
  (message "Package dpkg-dev-el removed but not purged.  Skipping setup."))
 ((not (file-exists-p (concat "/usr/share/"
                              (symbol-name debian-emacs-flavor)
                              "/site-lisp/dpkg-dev-el/readme-debian.elc")))
  (message "Package dpkg-dev-el not fully installed.  Skipping setup."))
 (t
  (debian-pkg-add-load-path-item
   (concat "/usr/share/"
           (symbol-name debian-emacs-flavor)
           "/site-lisp/dpkg-dev-el"))

  (require 'dpkg-dev-el)))
;; -*-emacs-lisp-*-
;;
;; Emacs startup file for the Debian GNU/Linux emacs-goodies-el package

(cond
 ((not (file-exists-p "/usr/share/emacs/site-lisp/emacs-goodies-el"))
  (message
   "Package emacs-goodies-el removed but not purged.  Skipping setup."))
 ((not (file-exists-p (concat "/usr/share/"
                              (symbol-name debian-emacs-flavor)
                              "/site-lisp/emacs-goodies-el/xrdb-mode.elc")))
  (message "Package emacs-goodies-el not fully installed.  Skipping setup."))
 (t 
  (debian-pkg-add-load-path-item
   (concat "/usr/share/"
           (symbol-name debian-emacs-flavor)
           "/site-lisp/emacs-goodies-el"))
  
  (require 'emacs-goodies-el)))
In conclusion, I think there are (at least) two problems here:

 1. You forgot to add the "Depends: emacsen-common (>= 2.0.8)" that
    debian-emacs-policy section 5A (from emacsen-common 2.0.8) says
    you're supposed to have in each "add-on package".

    Actually, that seems at least partly a bug in dh_installemacsen(1);
    it should really be adding that dependency to a substvar for you.

 2. You have some obsolete config files to remove (if not modified by
    the user), at least some of which dpkg may not be tracking at all
    anymore.

Its nice that the main functionality seems to be working for me again,
though :-).

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

Reply via email to