unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Donald Curtis <dcurtis@coe.edu>
Cc: 14082-done@debbugs.gnu.org
Subject: bug#14082: 24.3; Package dependences calculated in reverse
Date: Wed, 03 Apr 2013 22:46:44 -0400	[thread overview]
Message-ID: <jwvtxnnui9d.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <75CA5373-3097-48D1-AB94-0018583483B1@coe.edu> (Donald Curtis's message of "Thu, 28 Mar 2013 15:38:48 -0500")

> * rinari requires: ruby-mode, inf-ruby, ruby-compilation, jump
> * jump requires: findr, inflections
> * ruby-compilation requires: inf-ruby

> Yet, the order of compilation appears to be:

> 1. inflections
> 2. findr
> 3. jump
> 4. ruby-compilation *fails missing inf-ruby*

Indeed, thanks.  I installed the patch below which should fix
this problem.  Note that a better fix would be to first download packages,
the unpack packages, then autoload packages, then compile packages.
This way, ordering won't matter (including circular dependencies).


        Stefan


=== modified file 'lisp/emacs-lisp/package.el'
--- lisp/emacs-lisp/package.el	2013-04-04 01:51:33 +0000
+++ lisp/emacs-lisp/package.el	2013-04-04 02:42:31 +0000
@@ -811,7 +811,10 @@
 	     (package-version-join (package-desc-vers (cdr pkg-desc)))))
 	  ;; Only add to the transaction if we don't already have it.
 	  (unless (memq next-pkg package-list)
-	    (push next-pkg package-list))
+            (setq package-list
+                  ;; Move to front, so it gets installed early enough
+                  ;; (bug#14082).
+                  (cons next-pkg (delq next-pkg package-list))))
 	  (setq package-list
 		(package-compute-transaction package-list
 					     (package-desc-reqs






  reply	other threads:[~2013-04-04  2:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 20:38 bug#14082: 24.3; Package dependences calculated in reverse Donald Curtis
2013-04-04  2:46 ` Stefan Monnier [this message]
2013-04-05 15:27   ` Donald Curtis
2013-04-05 18:48     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtxnnui9d.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=14082-done@debbugs.gnu.org \
    --cc=dcurtis@coe.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).