From unknown Fri Jun 20 05:26:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16826 <16826@debbugs.gnu.org> To: bug#16826 <16826@debbugs.gnu.org> Subject: Status: Packages with same dependencies (name and version) fails to install Reply-To: bug#16826 <16826@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:26:13 +0000 retitle 16826 Packages with same dependencies (name and version) fails to i= nstall reassign 16826 emacs submitter 16826 Johan Andersson severity 16826 important thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 12:15:50 2014 Received: (at submit) by debbugs.gnu.org; 20 Feb 2014 17:15:51 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) MIME-Version: 1.0 Received: by 10.182.197.38 with HTTP; Thu, 20 Feb 2014 09:15:18 -0800 (PST) From: Johan Andersson Date: Thu, 20 Feb 2014 18:15:18 +0100 Message-ID: Subject: Packages with same dependencies (name and version) fails to install To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c302cc84a7d004f2d9a70d 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --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-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 21 02:13:17 2014 Received: (at 16826-done) by debbugs.gnu.org; 21 Mar 2014 06:13:17 +0000 Received: from localhost ([127.0.0.1]:42832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQshh-0003UJ-2p for submit@debbugs.gnu.org; Fri, 21 Mar 2014 02:13:17 -0400 Received: from mail-ee0-f42.google.com ([74.125.83.42]:49210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQshf-0003UA-7H for 16826-done@debbugs.gnu.org; Fri, 21 Mar 2014 02:13:15 -0400 Received: by mail-ee0-f42.google.com with SMTP id d17so1409787eek.29 for <16826-done@debbugs.gnu.org>; Thu, 20 Mar 2014 23:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=7Cc3YV7WJtv1EOU9o+WUXX6p87pDYqmL/T7X2er4Pbc=; b=vXuUdufQwZTspFUS/hG9YVh01hUMRu3Ki5BrOb3eENHVgdGXir/KE2PyHUkZlxsikO HuCDhMhIyCzlQabx006xuSTXo7zaqMbNSOn4i9foftBbLCzo8UdMqa8y0zFqkNc1IVk3 2NvXGLlndRPvYXBRaYl+eDShb/bYOdYaGeV6F65xjIdye0/WjSVTCrY+EPCgsk1yd8ac /TJd1h4UMwWWuknejFfU5RKFTp+aZpNj/KZdA0z0URUmqvd8157HNM3SZ/u86Ywexnx6 6Ijx2wXj9weCJvA/qWrJ8CHlfdwb+WxbgBB/AqFTSPmG5QEgfXEf2rWg7hQ/jn4/r6DI Hxuw== X-Received: by 10.15.10.135 with SMTP id g7mr30875097eet.72.1395382394357; Thu, 20 Mar 2014 23:13:14 -0700 (PDT) Received: from axl (93-121-245.netrun.cytanet.com.cy. [93.109.121.245]) by mx.google.com with ESMTPSA id g3sm9318301eet.35.2014.03.20.23.13.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 23:13:13 -0700 (PDT) From: Dmitry Gutov To: Johan Andersson Subject: Re: bug#16826: Packages with same dependencies (name and version) fails to install References: Date: Fri, 21 Mar 2014 08:12:54 +0200 In-Reply-To: (Johan Andersson's message of "Thu, 20 Feb 2014 18:15:18 +0100") Message-ID: <87ob10nkpl.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16826-done Cc: 16826-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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). From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 24 04:06:35 2014 Received: (at 16826-done) by debbugs.gnu.org; 24 Mar 2014 08:06:35 +0000 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 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 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) MIME-Version: 1.0 Received: by 10.182.130.17 with HTTP; Mon, 24 Mar 2014 01:06:05 -0700 (PDT) In-Reply-To: <87ob10nkpl.fsf@yandex.ru> References: <87ob10nkpl.fsf@yandex.ru> From: Johan Andersson Date: Mon, 24 Mar 2014 09:06:05 +0100 Message-ID: Subject: Re: bug#16826: Packages with same dependencies (name and version) fails to install To: Dmitry Gutov Content-Type: multipart/alternative; boundary=001a11347f9048749404f555b6f7 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16826-done Cc: 16826-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --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-- From unknown Fri Jun 20 05:26:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 21 Apr 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator