GNU bug report logs - #14639
package-initialize not run

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Mon, 17 Jun 2013 02:36:01 UTC

Severity: normal

Found in version 24.3.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Juanma Barranquero <lekktu <at> gmail.com>
Subject: bug#14639: closed (Re: bug#14639: package-initialize not run)
Date: Mon, 17 Jun 2013 15:38:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14639: package-initialize not run

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14639 <at> debbugs.gnu.org.

-- 
14639: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14639
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juanma Barranquero <lekktu <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 14639-done <at> debbugs.gnu.org
Subject: Re: bug#14639: package-initialize not run
Date: Mon, 17 Jun 2013 17:36:17 +0200
On Mon, Jun 17, 2013 at 4:45 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:

> Looks good (if you grep a bit, you'll see there are calls to
> package--description-file which need a relative file name, because it's
> used to find a file in a tar archive rather than in the file-system).

I see.

Committed in revno:113021

[Message part 3 (message/rfc822, inline)]
From: Juanma Barranquero <lekktu <at> gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: package-initialize not run
Date: Mon, 17 Jun 2013 04:34:16 +0200
Package: emacs
Version: 24.3.50
X-Debbugs-CC: monnier <at> iro.umontreal.ca


package-initialize is not being run because the code to detect
description files does

  (when (let ((subdir (expand-file-name subdir dir)))
          (and (file-directory-p subdir)
               (file-exists-p
                (package--description-file subdir))))
    (throw 'package-dir-found t)))))))

but package--description-file does not return an absolute filename, so
file-exists-p fails.

Either this patch is needed,

=== modified file 'lisp/startup.el'
--- lisp/startup.el 2013-06-15 15:36:11 +0000
+++ lisp/startup.el 2013-06-17 02:21:06 +0000
@@ -1204,5 +1204,7 @@
                          (and (file-directory-p subdir)
                               (file-exists-p
-                               (package--description-file subdir))))
+                               (expand-file-name
+                                (package--description-file subdir)
+                                subdir))))
    (throw 'package-dir-found t)))))))
        (package-initialize))


or modifying package--description-file to return an absolute path.



This bug report was last modified 12 years and 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.