From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Donald Curtis Newsgroups: gmane.emacs.bugs Subject: bug#14082: 24.3; Package dependences calculated in reverse Date: Thu, 28 Mar 2013 15:38:48 -0500 Message-ID: <75CA5373-3097-48D1-AB94-0018583483B1@coe.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364503244 7091 80.91.229.3 (28 Mar 2013 20:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2013 20:40:44 +0000 (UTC) To: 14082@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 28 21:41:11 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 1ULJdD-0006oN-2R for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Mar 2013 21:41:07 +0100 Original-Received: from localhost ([::1]:49502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULJco-0005ua-TU for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Mar 2013 16:40:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULJci-0005uG-SD for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:40:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULJcd-0005PU-5M for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:40:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULJcd-0005PP-2D for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:40:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ULJf4-0001T4-Js for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Donald Curtis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2013 20:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14082 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13645033425565 (code B ref -1); Thu, 28 Mar 2013 20:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Mar 2013 20:42:22 +0000 Original-Received: from localhost ([127.0.0.1]:50010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULJeP-0001Rg-EQ for submit@debbugs.gnu.org; Thu, 28 Mar 2013 16:42:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58291) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULJeM-0001RY-67 for submit@debbugs.gnu.org; Thu, 28 Mar 2013 16:42:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULJbo-0004ik-Qe for submit@debbugs.gnu.org; Thu, 28 Mar 2013 16:39:46 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:59067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULJbo-0004iZ-NS for submit@debbugs.gnu.org; Thu, 28 Mar 2013 16:39:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULJbl-0005nK-S7 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:39:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULJbi-0004ff-Sf for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:39:37 -0400 Original-Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:43772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULJbi-0004fF-N3 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 16:39:34 -0400 Original-Received: by mail-ie0-f170.google.com with SMTP id c11so12361952ieb.29 for ; Thu, 28 Mar 2013 13:39:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer:x-gm-message-state; bh=l6QZYHGPjroTxnLFLd7QX1aSuNAz2qFIW9mUYbOjLws=; b=BWg4XjXKmD7OcsCu9Lzj8A4LO0LCUpblX0Y7vNjAu9C0m/Yc6XE6EGAVAC7upiHd9A +67TQH3yPk5TIfmAijgyTNuKPrAn+/gVGxL91VWn1MQJWw0nzDL3n4UrdofeNHcx1i+O X3b24/iQiljTecMRbRfYzpvbgt1GcrgQUJjrsMjSFYwxv9H9MqvMjx14bxw4giFfOUJQ kL7WqDHJ6whxQk1fcBDnm65biFBUw0BYNR5Cc/mmKr0H4y8Fmx8PeYf8m0CLgFjYnKv3 Y7R7dihKQLljwP6bRUoAp4AnLUqEwqCt+pmWvb0bX6NSDGZVXDiteS6Iaq6Fsq5zLmhx 36GQ== X-Received: by 10.43.103.195 with SMTP id dj3mr49127icc.3.1364503172700; Thu, 28 Mar 2013 13:39:32 -0700 (PDT) Original-Received: from [172.16.14.104] ([192.133.84.6]) by mx.google.com with ESMTPS id p11sm9409676igr.4.2013.03.28.13.39.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 13:39:31 -0700 (PDT) X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQlGB+Z6AifUnIcQhGWzEnagJEClzOsdc6bPwXLxWuT/WU3El1x5X1t/I5eHBNbjFc0zHljv X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:72971 Archived-At: When `package.el' calculates package dependencies, they are installed in the incorrect order. Consider the rinari third-party package, * 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* 5. inf-ruby 6. rinary *fails missing ruby-compilation* It seems to be that the `jump' dependency of `rinari' is being installed first, and even it's dependencies are being installed in a reverse order. The way that I have personally fixed this problem was to add advice to the `package-compute-transaction' function: (defadvice package-compute-transaction (before package-compute-transaction-reverse (package-list requirements) activate compile) "reverse the requirements" (setq requirements (reverse requirements)) (print requirements)) It seems like there must be something in the way the requirements is being built that means that when they are read they are done in reverse order. In GNU Emacs 24.3.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37) of 2013-03-28 on hendrix.local Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--prefix=3D/usr/local/Cellar/emacs/24.3' '--without-dbus' '--enable-locallisppath=3D/usr/local/share/emacs/site-lisp' '--infodir=3D/usr/local/Cellar/emacs/24.3/share/info/emacs' '--with-ns' '--disable-ns-self-contained' 'CC=3Dcc'' Important settings: locale-coding-system: utf-8 default enable-multibyte-characters: t Major mode: Info Minor modes in effect: which-function-mode: t ido-everywhere: t delete-selection-mode: t global-subword-mode: t subword-mode: t winner-mode: t show-paren-mode: t savehist-mode: t shell-dirtrack-mode: t global-auto-revert-mode: t recentf-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x RET p a c k l i C-s r i n=20 a r C-a i x y C-x b C-g C-x RET b u g C-w=20 C-w C-w c r e s u b C-g C-s s m e x C-a i x y C-x RET=20 b u g C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n =20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-b=20 C-p C-p C-p C-p=20 C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-p=20 C-p C-p C-p C-p M-f M-f M-f M-f M-f M-[ ESC ESC ESC=20 ESC C-g C-g C-x b b u g =20 C-g C-x RET e m a c s b u g C-n P a c k a=20 g e SPC D e p e n d e n c e s SPC C a l c u l a t e=20 d SPC i n SPC R e v e r s e C-p C-n C-w h=20 e W h e n C-w C-w C-/ C-/ C-/=20 C-/ C-/ C-/ C-/ C-/ C-? C-? C-? C-c k C-x RET Recent messages: Checking 70 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/erc... Checking 48 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/emulation... Checking 147 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/emacs-lisp... Checking 24 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/cedet... Checking 57 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/calendar... Checking 87 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/calc... Checking 77 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/obsolete... Checking 1 files in = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/leim... Checking for load-path shadows...done Undo! [8 times] Load-path shadows: ~/.emacs.d/custom hides = /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/custom Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail info smex smex-autoloads rinari-autoloads easy-mmode inf-ruby ruby-mode inf-ruby-autoloads ruby-compilation-autoloads inflections findr jump-autoloads findr-autoloads compile inflections-autoloads autoload misearch multi-isearch mule-util time-stamp vc-git mail-utils network-stream starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap finder-inf whitespace base16-ocean-theme which-func imenu cus-start cus-load rx ido delsel subword winner paren savehist tramp-cache tramp-sh tramp tramp-compat auth-source eieio gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec autorevert byte-opt warnings bytecomp byte-compile cconv edmacro kmacro windmove server defun uniquify advice help-fns advice-preload saveplace recentf tree-widget wid-edit misc midnight checkdoc thingatpt help-mode easymenu package cl-macs gv cl cl-lib time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)