From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14082: 24.3; Package dependences calculated in reverse Date: Wed, 03 Apr 2013 22:46:44 -0400 Message-ID: References: <75CA5373-3097-48D1-AB94-0018583483B1@coe.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365043680 21006 80.91.229.3 (4 Apr 2013 02:48:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 02:48:00 +0000 (UTC) Cc: 14082-done@debbugs.gnu.org To: Donald Curtis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 04:48:27 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UNaDx-0002t7-Ps for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 04:48:25 +0200 Original-Received: from localhost ([::1]:38244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNaDY-0007js-UB for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 22:48:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNaDV-0007jl-1L for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:47:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNaDU-0001h2-4T for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:47:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNaDU-0001gs-1K for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:47:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UNaGU-0006ml-VL for bug-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:51:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Apr 2013 02:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14082 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 14082@debbugs.gnu.org, monnier@iro.umontreal.ca, dcurtis@coe.edu Original-Received: via spool by 14082-done@debbugs.gnu.org id=D14082.136504381626023 (code D ref 14082); Thu, 04 Apr 2013 02:51:02 +0000 Original-Received: (at 14082-done) by debbugs.gnu.org; 4 Apr 2013 02:50:16 +0000 Original-Received: from localhost ([127.0.0.1]:60936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UNaFi-0006lf-K3 for submit@debbugs.gnu.org; Wed, 03 Apr 2013 22:50:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:29342) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UNaFg-0006lX-OT for 14082-done@debbugs.gnu.org; Wed, 03 Apr 2013 22:50:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxLSu/2dsb2JhbABEDrsng1kXc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDkloBA5IcgV6COVo X-IPAS-Result: Av8EABK/CFFFxLSu/2dsb2JhbABEDrsng1kXc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDkloBA5IcgV6COVo X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="6440769" Original-Received: from 69-196-180-174.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.180.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Apr 2013 22:47:01 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 71030AE3CB; Wed, 3 Apr 2013 22:46:44 -0400 (EDT) In-Reply-To: <75CA5373-3097-48D1-AB94-0018583483B1@coe.edu> (Donald Curtis's message of "Thu, 28 Mar 2013 15:38:48 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73139 Archived-At: > * 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