From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Andersson Newsgroups: gmane.emacs.bugs Subject: bug#16826: Packages with same dependencies (name and version) fails to install Date: Thu, 20 Feb 2014 18:15:18 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c302cc84a7d004f2d9a70d X-Trace: ger.gmane.org 1392916565 4966 80.91.229.3 (20 Feb 2014 17:16:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 17:16:05 +0000 (UTC) To: 16826@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 20 18:16:12 2014 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 1WGXEG-0006M0-Sf for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 18:16:09 +0100 Original-Received: from localhost ([::1]:39839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXEG-0006fC-DG for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 12:16:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXEB-0006by-Ew for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:16:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGXEA-0006VH-Bg for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:16:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXEA-0006V9-9T for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WGXE9-00023h-Py for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Johan Andersson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Feb 2014 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16826 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.13929165517884 (code B ref -1); Thu, 20 Feb 2014 17:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Feb 2014 17:15:51 +0000 Original-Received: from localhost ([127.0.0.1]:33856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGXDy-000236-BT for submit@debbugs.gnu.org; Thu, 20 Feb 2014 12:15:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59685) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGXDw-00022s-GU for submit@debbugs.gnu.org; Thu, 20 Feb 2014 12:15:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGXDq-0006Po-8p for submit@debbugs.gnu.org; Thu, 20 Feb 2014 12:15:43 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXDq-0006Pk-5G for submit@debbugs.gnu.org; Thu, 20 Feb 2014 12:15:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXDp-0006OE-48 for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:15:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGXDo-0006PL-BW for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:15:41 -0500 Original-Received: from mail-oa0-x233.google.com ([2607:f8b0:4003:c02::233]:64488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXDo-0006P9-4c for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:15:40 -0500 Original-Received: by mail-oa0-f51.google.com with SMTP id h16so2437532oag.38 for ; Thu, 20 Feb 2014 09:15:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Xgj09p/zmti4n+DMnVweuknFWY/jki7KQYlGjYawK+E=; b=C2x5TeNfrOFFOtangD4E0cGGz6eNbWre3pVOxFlg+9dVwZNzoUMztwpmsVlOFRdbdU e0YfftNkbrUxc9WFgK6RoYIQdhFrvbdKdfWmkk8LTa4EDVHZ1/5cVdj5GFdxNCR3E64A uI65q1BrvSHjoVILXORsKMMyFcFtrO/rAZiPc1g53ABGQXWKH4GXc3Lh93jGXhzVIXEf 0dI7G9aqCxf+rlx8ZeMRpaCQqfIu3UtkZjLDQXHBBrSSQpyCPdf0yVb3491RoIZAn0bx Tg5k6NfYzIBBznVNWVpYDbFW8XVuNs1hFVcBtN26/4vHMg3PJvUmGxs+iSkC4rzUPKpD JLgA== X-Received: by 10.182.92.231 with SMTP id cp7mr115435obb.82.1392916539145; Thu, 20 Feb 2014 09:15:39 -0800 (PST) Original-Received: by 10.182.197.38 with HTTP; Thu, 20 Feb 2014 09:15:18 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:85948 Archived-At: --001a11c302cc84a7d004f2d9a70d Content-Type: text/plain; charset=ISO-8859-1 Hi, I have an issue with package.el in Emacs snapshot. Works fine in Emacs 24.3.1 and lower. Let's say I have three packages: foo, bar and baz. Package foo depends on bar-0.0.1 and baz-0.0.1. Package bar depends on baz-0.0.1. It's important that foo and bar depends on the same baz version. If I install package foo, I will get the following error: "Need package `baz-0.0.1', but only 0.0.1 is available" I have looked at the code of package.el and the code that throws the error makes no sense to me. It works like this: We want to install a list of packages and a list of requirements. If we try to install a requirement that is part of the list of packages, we set a variable called already. If already is true, we check if the requirement version is smaller than the already package version. If it is, we move that package to the beginning of the packages list. If it is not smaller, the error above is thrown. What? Why? I have no idea... Is this a bug or did I miss something? --001a11c302cc84a7d004f2d9a70d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I have an issue with package.el in = Emacs snapshot. Works fine in Emacs 24.3.1 and lower.

<= div>Let's say I have three packages: foo, bar and baz.

Package foo depends on bar-0.0.1 and baz-0.0.1.
Package bar = depends on baz-0.0.1.

It's important that = foo and bar depends on the same baz version.

If I install package foo, I will get the following error:

=A0 "Need package `baz-0.0.1', but only 0.0.1 = is available"

I have looked at the code o= f package.el and the code that throws the error makes no sense to me. It wo= rks like this:

We want to install a list of packages and a list of req= uirements. If we try to install a requirement that is part of the list of p= ackages, we set a variable called already. If already is true, we check if = the requirement version is smaller than the already package version. If it = is, we move that package to the beginning of the packages list. If it is no= t smaller, the error above is thrown. What? Why? I have no idea...

Is this a bug or did I miss something?
--001a11c302cc84a7d004f2d9a70d--