GNU bug report logs -
#14639
package-initialize not run
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14639 in the body.
You can then email your comments to 14639 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org
:
bug#14639
; Package
emacs
.
(Mon, 17 Jun 2013 02:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org
.
(Mon, 17 Jun 2013 02:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14639
; Package
emacs
.
(Mon, 17 Jun 2013 13:37:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 14639 <at> debbugs.gnu.org (full text, mbox):
On Mon, Jun 17, 2013 at 4:34 AM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> or modifying package--description-file to return an absolute path.
--- lisp/startup.el 2013-06-15 15:36:11 +0000
+++ lisp/startup.el 2013-06-17 13:34:39 +0000
@@ -423,5 +423,6 @@
(defun package--description-file (dir)
- (concat (let ((subdir (file-name-nondirectory
+ (concat (file-name-as-directory dir)
+ (let ((subdir (file-name-nondirectory
(directory-file-name dir))))
(if (string-match
"\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\)[0-9]+\\)*\\)"
subdir)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14639
; Package
emacs
.
(Mon, 17 Jun 2013 14:46:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 14639 <at> debbugs.gnu.org (full text, mbox):
> - (package--description-file subdir))))
> + (expand-file-name
> + (package--description-file subdir)
> + subdir))))
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).
Stefan
Reply sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
You have taken responsibility.
(Mon, 17 Jun 2013 15:38:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 17 Jun 2013 15:38:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 14639-done <at> debbugs.gnu.org (full text, mbox):
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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 16 Jul 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 312 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.