From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Dmitry Gutov <dmitry@gutov.dev>
Newsgroups: gmane.emacs.bugs
Subject: bug#62720: 29.0.60;
 Not easy at all to upgrade :core packages like Eglot
Date: Sat, 22 Apr 2023 14:29:46 +0300
Message-ID: <05c66d00-d105-3367-02fe-7d337126cbb6@gutov.dev>
References: <87a5zj2vfo.fsf@gmail.com>
 <CALDnm51zZw4JhnxCEUApN0N-90c08d-jOct5i2xcTMOhBb78=g@mail.gmail.com>
 <83pm7z7nkc.fsf@gnu.org>
 <4b63ef62-5e1c-3dcf-ec7b-06b69e79133b@gutov.dev>
 <83o7nj7mfn.fsf@gnu.org>
 <bd688d7c-1588-43f3-49db-c90d1312fad8@gutov.dev>
 <CALDnm5341n=_VtRH2JxsDEH=7uwdsaCQMSCOn+jzDpfnh1qm7A@mail.gmail.com>
 <556e0fbb-215e-c11d-0e8b-73e97441abbb@gutov.dev>
 <CALDnm52=KRVBn3Zse2DDC-SMHGot0mRpYUEZ7FH5vmAVH4Rimw@mail.gmail.com>
 <e3408f6b-f050-a96d-c8c6-5f790cc90df4@gutov.dev>
 <83pm7y6fdo.fsf@gnu.org>
 <47140c27-ba63-ca7b-8b9e-cc38a6f9a866@gutov.dev>
 <838rem636a.fsf@gnu.org>
 <bca49d19-7b5b-34d4-8fd4-7ed936a57d64@gutov.dev>
 <83leil4u63.fsf@gnu.org>
 <8a9d0e2b-6ae2-bcdc-efd0-52a44ac862bb@gutov.dev>
 <83h6t94hru.fsf@gnu.org>
 <7676c8d2-1324-31e7-38b3-de167ecf683a@gutov.dev>
 <8e9bd99a-3093-3b69-8429-aa1ae6b7240d@gutov.dev>
 <834jp82u5c.fsf@gnu.org>
 <d4443eba-3f96-9438-8c2f-c7b2bfaa1bc1@gutov.dev>
 <83ildo189j.fsf@gnu.org>
 <6e91a10e-e8bb-c7db-f6ce-917790e7e391@gutov.dev>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------JENPTsif7QB50HM0pebi3iik"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="10639"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.10.0
Cc: jporterbugs@gmail.com, philipk@posteo.net, 62720@debbugs.gnu.org,
 monnier@iro.umontreal.ca, larsi@gnus.org, joaotavora@gmail.com
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 22 13:31:14 2023
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1pqBSS-0002Za-0g
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Apr 2023 13:31:12 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1pqBSJ-0000Zs-T5; Sat, 22 Apr 2023 07:31:03 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1pqBSI-0000Z3-BP
 for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2023 07:31:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1pqBSI-0003n4-41
 for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2023 07:31:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pqBSH-0007YK-VD
 for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2023 07:31:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Dmitry Gutov <dmitry@gutov.dev>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 22 Apr 2023 11:31:01 +0000
Resent-Message-ID: <handler.62720.B62720.168216300620226@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 62720
X-GNU-PR-Package: emacs
Original-Received: via spool by 62720-submit@debbugs.gnu.org id=B62720.168216300620226
 (code B ref 62720); Sat, 22 Apr 2023 11:31:01 +0000
Original-Received: (at 62720) by debbugs.gnu.org; 22 Apr 2023 11:30:06 +0000
Original-Received: from localhost ([127.0.0.1]:41970 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1pqBRN-0005Ek-02
 for submit@debbugs.gnu.org; Sat, 22 Apr 2023 07:30:05 -0400
Original-Received: from new2-smtp.messagingengine.com ([66.111.4.224]:58879)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@gutov.dev>) id 1pqBRD-00054a-Ov
 for 62720@debbugs.gnu.org; Sat, 22 Apr 2023 07:30:03 -0400
Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailnew.nyi.internal (Postfix) with ESMTP id B0ACA5800D7;
 Sat, 22 Apr 2023 07:29:50 -0400 (EDT)
Original-Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Sat, 22 Apr 2023 07:29:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-type:content-type:date:date:from:from:in-reply-to
 :in-reply-to:message-id:mime-version:references:reply-to:sender
 :subject:subject:to:to; s=fm2; t=1682162990; x=1682166590; bh=xj
 ereVZHej/NYQ0AlQlpwZqpQftts1INGvACE3xL538=; b=JHGdPc63/F84eBdMP8
 FdNxhlD1EanrlIA/H6Rjbosq8OC8xs2TZbew6AgGVR6iPuzHrxScLe3L5YELqqcH
 hLhJoA57SNQra7QEO6/s5y+zJWB0m/TnMgCqX1sinCrwMAI1QKEFnYuUVO2z4xSS
 Nzj0S/A/mT08sEu3li3Q26UZKutiiAiEOpOOwW417fEeRUPWGyYAlKNVUP72AlT6
 l0uQegD3Aoxgav3A+MMwBZktq1aX8IG96bGVH4FBzkUGjrl0wNAngj+yNc0VPvvW
 Bm7q+HOEbOwoAp6gVVvnWkDQImzo9a10GcHwa2bgNeq6HvvTn0GDjlYj9+4I9Hia
 xFJw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; t=1682162990; x=1682166590; bh=xjereVZHej/NY
 Q0AlQlpwZqpQftts1INGvACE3xL538=; b=ZeSU+VxO4tRo6Z4jpMP9YaRfFhfUb
 +VFdfB17c9eAF94s9GnKFobbTfxbXaPY0lb8lGfVhSmO9m7UvdJpmFlZrAH8x5t/
 kX43dRUAm1my3EM6sugR0NPiZWm4tSxgi9G1FssnuiI57IP3A1hvTBw0xY10/UOs
 WWX7JRWiExEruxzli+TnK9pdrCOnc1ztk0x2vRGyrk8KKEHmNrvpClYzZA+7+5d0
 OxZRAeav3Wg6EopoQmP3BPDs0PrJ0W5rLrJfUkfh5NVXwOl3S5ONq4y1amSAIz0W
 FhkpImMuK6NzK9rz2+yPlAv+1X906dJJVG+znxD7JmOGW/dNCl/yGnulg==
X-ME-Sender: <xms:LcVDZE_qrVi5MSYXZ3V8UvsVbxW8Tr4NdNmoVIq3LTwEqZf0QnVPmA>
 <xme:LcVDZMvZWc3bdVWkwtZhsmkRQwwxnTdaMIYaUeR2COr3IMXJ_Pnr-ynHRa0VF1aHO
 0-zs2teTNw1yKpN41Y>
X-ME-Received: <xmr:LcVDZKB1cvFwHxUvYwsInk4Pv9thSRUcThJPqPzuK9PtxRf0cJeezuJG2dj3OBc>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtiedgfeelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurheptgfkffggfgfuhffvvehfjgesmhdtreertdefjeenucfhrhhomhepffhmihht
 rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth
 gvrhhnpeeiheegkeetgffghefhgeeiveeuudegvdeuteffhfettdelleehkeffledvuddt
 leenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh
 hithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:LcVDZEdBzRflIFOz6EKNHvOHJCd9zkqQT0vkpzGObybmDiNLA8kB4Q>
 <xmx:LcVDZJNZwobb_v01keyoWuUG0XULvxVphmlTwQTX6mR85_8Nh9XN8Q>
 <xmx:LcVDZOnRpIsOpRJ6dVQkehg0iAquw9d6JpPz7z8hIK1kR_oJnBxtlg>
 <xmx:LsVDZM2fchxuFj_eJrOTO8Bt30frSeqFf94Cj0Co-ilqch-x83t_tA>
Feedback-ID: i0e71465a:Fastmail
Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 22 Apr 2023 07:29:47 -0400 (EDT)
Content-Language: en-US
In-Reply-To: <6e91a10e-e8bb-c7db-f6ce-917790e7e391@gutov.dev>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:260460
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/260460>

This is a multi-part message in MIME format.
--------------JENPTsif7QB50HM0pebi3iik
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 22/04/2023 14:24, Dmitry Gutov wrote:
>>>> I also don't think I like the significant changes in package-update,
>>>> nor understand why they are needed.
>>>
>>> Like I said: the changes are to avoid relying on package-install being
>>> able to install a package that's already installed. Which currently
>>> works only for builtins and when only a user option is set. It's a mess.
>>>
>>> And to "avoid interdependency".
>>
>> Why does this have to be in Emacs 29?  It's a cleanup, right?
> 
> Not a cleanup, no. If I just keep the previous version of the code, I 
> get "package xxx is already installed". Because when upgrading a builtin 
> package, the "current" version is not deleted.
> 
> So we need to compute the exact version to install (then package-install 
> does not say "it's already installed" because the installed version is 
> different). The use of package-install-from-archive might have been a 
> mistake, though, (in case dependencies need to be updated too) I'm 
> looking into that now.

Here's an updated patch that's a little closer to what's been there before.

> Alternatively, we could add an optional argument to package-install 
> which would mean "install the latest version anyway".

--------------JENPTsif7QB50HM0pebi3iik
Content-Type: text/x-patch; charset=UTF-8; name="package-update-fix.diff"
Content-Disposition: attachment; filename="package-update-fix.diff"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL2xpc3AvZW1hY3MtbGlzcC9wYWNrYWdlLmVsIGIvbGlzcC9lbWFjcy1s
aXNwL3BhY2thZ2UuZWwKaW5kZXggZmZhNjI3MmRkMWYuLmY5YWQ4M2Q3NjUwIDEwMDY0NAot
LS0gYS9saXNwL2VtYWNzLWxpc3AvcGFja2FnZS5lbAorKysgYi9saXNwL2VtYWNzLWxpc3Av
cGFja2FnZS5lbApAQCAtMjI3MCwxNyArMjI3MCwyMiBAQCBwYWNrYWdlLXVwZGF0ZQogICAi
VXBkYXRlIHBhY2thZ2UgTkFNRSBpZiBhIG5ld2VyIHZlcnNpb24gZXhpc3RzLiIKICAgKGlu
dGVyYWN0aXZlCiAgICAobGlzdCAoY29tcGxldGluZy1yZWFkCi0gICAgICAgICAgIlVwZGF0
ZSBwYWNrYWdlOiAiIChwYWNrYWdlLS11cGRhdGVhYmxlLXBhY2thZ2VzKSBuaWwgdCkpKQor
ICAgICAgICAgICJVcGRhdGUgcGFja2FnZTogIiAocGFja2FnZS0tdXBkYXRlYWJsZS1wYWNr
YWdlcyB0KSBuaWwgdCkpKQogICAobGV0KiAoKHBhY2thZ2UgKGlmIChzeW1ib2xwIG5hbWUp
CiAgICAgICAgICAgICAgICAgICAgICAgbmFtZQogICAgICAgICAgICAgICAgICAgICAoaW50
ZXJuIG5hbWUpKSkKICAgICAgICAgIChwa2ctZGVzYyAoY2FkciAoYXNzcSBwYWNrYWdlIHBh
Y2thZ2UtYWxpc3QpKSkpCi0gICAgKGlmIChwYW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oKGF2YWlsYWJsZQogICAgICAgICAgICAgICAg
ICAoYXNzcSAoY2FyIGVsdCkgcGFja2FnZS1hcmNoaXZlLWNvbnRlbnRzKSkpCiAgICAgICAg
ICAgICAoYW5kIGF2YWlsYWJsZQotICAgICAgICAgICAgICAgICAodmVyc2lvbi1saXN0LTwK
LSAgICAgICAgICAgICAgICAgIChwYWNrYWdlLWRlc2MtdmVyc2lvbiAoY2FkciBlbHQpKQot
ICAgICAgICAgICAgICAgICAgKHBhY2thZ2UtZGVzYy12ZXJzaW9uIChjYWRyIGF2YWlsYWJs
ZSkpKSkpCi0gICAgICAgICAgKHBhY2thZ2UtdmMtcCAoY2FkciAoYXNzcSAoY2FyIGVsdCkg
cGFja2FnZS1hbGlzdCkpKSkpCi0gICAgcGFja2FnZS1hbGlzdCkpKQorICAgICAgICAgICAg
ICAgICAob3IgKGFuZAorICAgICAgICAgICAgICAgICAgICAgIGFsbG93LWJ1aWx0aW5zCisg
ICAgICAgICAgICAgICAgICAgICAgKG5vdCAocGFja2FnZS1kZXNjLXZlcnNpb24gKGNhZHIg
ZWx0KSkpKQorICAgICAgICAgICAgICAgICAgICAgKHZlcnNpb24tbGlzdC08CisgICAgICAg
ICAgICAgICAgICAgICAgKHBhY2thZ2UtZGVzYy12ZXJzaW9uIChjYWRyIGVsdCkpCisgICAg
ICAgICAgICAgICAgICAgICAgKHBhY2thZ2UtZGVzYy12ZXJzaW9uIChjYWRyIGF2YWlsYWJs
ZSkpKSkpKQorICAgICAgICAgIChwYWNrYWdlLXZjLXAgKGNhZHIgZWx0KSkpKQorICAgIChp
ZiBhbGxvdy1idWlsdGlucworICAgICAgICAoYXBwZW5kIHBhY2thZ2UtYWxpc3QKKyAgICAg
ICAgICAgICAgICAobWFwY2FuCisgICAgICAgICAgICAgICAgIChsYW1iZGEgKGVsdCkKKyAg
ICAgICAgICAgICAgICAgICAod2hlbiAobm90IChhc3NxIChjYXIgZWx0KSBwYWNrYWdlLWFs
aXN0KSkKKyAgICAgICAgICAgICAgICAgICAgIChsaXN0IChsaXN0IChjYXIgZWx0KSAocGFj
a2FnZS0tZnJvbS1idWlsdGluIGVsdCkpKSkpCisgICAgICAgICAgICAgICAgIHBhY2thZ2Ut
LWJ1aWx0aW5zKSkKKyAgICAgIHBhY2thZ2UtYWxpc3QpKSkpCiAKIDs7OyMjI2F1dG9sb2Fk
CiAoZGVmdW4gcGFja2FnZS11cGRhdGUtYWxsICgmb3B0aW9uYWwgcXVlcnkpCg==

--------------JENPTsif7QB50HM0pebi3iik--