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: Mon, 24 Mar 2014 09:06:05 +0100 Message-ID: References: <87ob10nkpl.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11347f9048749404f555b6f7 X-Trace: ger.gmane.org 1395648432 24236 80.91.229.3 (24 Mar 2014 08:07:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 08:07:12 +0000 (UTC) Cc: 16826-done@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 09:07:19 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 1WRzug-0004AK-BS for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 09:07:18 +0100 Original-Received: from localhost ([::1]:34881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRzuf-00067a-7k for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 04:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRzuW-0005lx-1c for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:07:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRzuR-0007tr-1O for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:07:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRzuQ-0007tn-Up for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WRzuQ-00008t-6b for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 04:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan Andersson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 08:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16826 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16826-done@debbugs.gnu.org id=D16826.1395648395461 (code D ref 16826); Mon, 24 Mar 2014 08:07:02 +0000 Original-Received: (at 16826-done) by debbugs.gnu.org; 24 Mar 2014 08:06:35 +0000 Original-Received: from localhost ([127.0.0.1]:46694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRzty-00007M-Ps for submit@debbugs.gnu.org; Mon, 24 Mar 2014 04:06:35 -0400 Original-Received: from mail-ob0-f174.google.com ([209.85.214.174]:63976) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRztv-00006t-PV for 16826-done@debbugs.gnu.org; Mon, 24 Mar 2014 04:06:32 -0400 Original-Received: by mail-ob0-f174.google.com with SMTP id wo20so5273958obc.5 for <16826-done@debbugs.gnu.org>; Mon, 24 Mar 2014 01:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2hBiw7GOqFRG6L9KF2+iVXMbHTKBkOqYFU7tmhz+OMw=; b=fiOJIQm7hdWbGLx9FAAWCU+E1Ynlm+MFp00xuZxTH+xohJTuqIojdY9rEvSGSFaYtS frf3fQ/GqryHVRJw+vpUjd2A0gdqaOGWxoT2I7mD8V83iLGBQ06gpJZ11/sTvaIWmA0F zupxKLsxPDTqFWTqq91sfAK8YbFUux4geKs8zOUfQWVtfW/tUSaXhDDO5wQFQQ/Tf8qd DD126i98jWyYY+BWBgsc/T5gmsyJpb1FZSzdZw1H/s6FCcINSAIj9o+xVjwQLJXYpmgP ZbmH5iwAjHQrBBnAF3EgexjwzikHPeqUawrV9g87QOEuA9qOVOlWwBgR74TdRj04lqhX ZBUQ== X-Received: by 10.60.220.137 with SMTP id pw9mr55040287oec.14.1395648386067; Mon, 24 Mar 2014 01:06:26 -0700 (PDT) Original-Received: by 10.182.130.17 with HTTP; Mon, 24 Mar 2014 01:06:05 -0700 (PDT) In-Reply-To: <87ob10nkpl.fsf@yandex.ru> 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:87287 Archived-At: --001a11347f9048749404f555b6f7 Content-Type: text/plain; charset=KOI8-R Can confirm that it works now, thanks for fixing it! On Fri, Mar 21, 2014 at 7:12 AM, Dmitry Gutov wrote: > Version: 24.4 > > Johan Andersson writes: > > > 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" > > Thanks for the report, should be fixed in 116817, branch emacs-24. > > Seems to have been a regression from revision 113174. Provided I didn't > break anything else, the fix was pretty simple. > > > 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... > > Now it checks if the requirement version is smaller or equal. The > package is moved to make the order of installation better (see the bug > referenced in the comment), and if the requirement version is higher > than the one scheduled to be installed, we're out of luck (but I've > tweaked the error message a bit). > --001a11347f9048749404f555b6f7 Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable
Can confirm that it works now, thanks for fixing it!
=


On Fri, Mar 2= 1, 2014 at 7:12 AM, Dmitry Gutov <dgutov@yandex.ru> wrote:
Version: 24.4

Johan Andersson <johan.rejeep@= gmail.com> writes:

> 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:
>
> =9A "Need package `baz-0.0.1', but only 0.0.1 is available&qu= ot;

Thanks for the report, should be fixed in 116817, branch emacs-24.
Seems to have been a regression from revision 113174. Provided I didn't=
break anything else, the fix was pretty simple.

> I have looked at the code of package.el and the code that throws the e= rror
> makes no sense to me. It works like this:
>
> We want to install a list of packages and a list of requirements. If w= e 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 requireme= nt
> 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, t= he
> error above is thrown. What? Why? I have no idea...

Now it checks if the requirement version is smaller or equal. The
package is moved to make the order of installation better (see the bug
referenced in the comment), and if the requirement version is higher
than the one scheduled to be installed, we're out of luck (but I've=
tweaked the error message a bit).

--001a11347f9048749404f555b6f7--