From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=91=D0=BE=D0=B9=D0=BA=D0=BE=D0=B2?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63757: 29.0.91 order of package paths changed: random old versions of packages in load-path Date: Sun, 28 May 2023 02:30:18 +1000 Message-ID: Reply-To: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=91=D0=BE=D0=B9=D0=BA=D0=BE=D0=B2?= Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000294e7205fcaf5fe3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38157"; mail-complaints-to="usenet@ciao.gmane.io" To: 63757@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 27 19:30:36 2023 Return-path: 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 ) id 1q2xkS-0009kw-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 May 2023 19:30:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2xjy-0006JC-LA; Sat, 27 May 2023 13:30:06 -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 ) id 1q2xjv-0006Ip-0I for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 13:30:03 -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 ) id 1q2xju-0008Gm-O8 for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 13:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2xju-0003er-6e for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=91=D0=BE=D0=B9=D0=BA=D0=BE=D0=B2?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2023 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63757 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168520856113959 (code B ref -1); Sat, 27 May 2023 17:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 May 2023 17:29:21 +0000 Original-Received: from localhost ([127.0.0.1]:52516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2xjE-0003d3-Cb for submit@debbugs.gnu.org; Sat, 27 May 2023 13:29:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2woS-0001iL-1c for submit@debbugs.gnu.org; Sat, 27 May 2023 12:30:40 -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 ) id 1q2woR-0005tD-0F for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 12:30:39 -0400 Original-Received: from smtp43.i.mail.ru ([95.163.41.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2woO-00072E-Fv for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 12:30:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=list.ru; s=mail4; h=Content-Type:To:Subject:Message-ID:Date:From:MIME-Version:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=+ErRoG6J8Qs/Wt/VhvXIZbgpeFyUX0wu76HoENWeiVI=; t=1685205036;x=1685295036; b=ZOJJEYJADtNkrgQVDW/lfxRxTILEZk4UG7J2MWvH3o24N+kzFAIW6HFVQddxHuBo09ZhrWb37WwOch/VHEn6sL3Fq8bZ3BrdnMBULSZJdHsixy8RpXv3jW7nhT81ym9mYQS6ftufu0ei+K86AmoQVd68mOtF/22oJ79Z33cVKDvI03gMwBfFlTgs+uDNLSmwiix/NkXysaAGWXVn45DZgFXqL+QD1nAjKEOf0IVHHAgVRaQfOPzh+e4+uc0arb6k8iMtddDhnkxBh4G/uaDR2W19DDYNkkMj1/RQgzP7NddsC+AnSKjs+AwVylzTMMGsx+aNt3ib3tDPcmps8YoD4A==; Original-Received: by smtp43.i.mail.ru with esmtpa (envelope-from ) id 1q2woI-002aIr-B1 for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:30:30 +0300 Original-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-3f6077660c6so12006885e9.0 for ; Sat, 27 May 2023 09:30:30 -0700 (PDT) X-Gm-Message-State: AC+VfDyg2TorNjY94IWySQpSWeV9RqwHFRzpxuIhyAlPubmPm6Q2Qzna xtCW2yilkYAFg8xfROlk5tRnk4oooQEOhKZpd5s= X-Google-Smtp-Source: ACHHUZ7VEw4S7b2LGc1DVDzRuuu4W3RjyYjBVW+fXgGrHvUEhA2TLj0OGA7MN22D+IfRyDO5eUEuBVkwO5fL8G7f3a8= X-Received: by 2002:a1c:6a0e:0:b0:3f4:24c8:f7c6 with SMTP id f14-20020a1c6a0e000000b003f424c8f7c6mr4699670wmc.16.1685205029570; Sat, 27 May 2023 09:30:29 -0700 (PDT) X-Gmail-Original-Message-ID: Authentication-Results: smtp43.i.mail.ru; auth=pass smtp.auth=artscan@list.ru smtp.mailfrom=artscan@list.ru X-Mailru-Src: smtp X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9FA9FE7958A526B7720A7778064FAD46CFFAE4421AB0E3E4100894C459B0CD1B93B989E4709D2A45BF50E2BBD808396F4AB13A07C30D035B2888ABC412A473640 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F0ABDA2F087648F5EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637C8BD49B17AF1FC7C8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8BC25140320971CEB5230B06E8A2E51066F9789CCF6C18C3F8528715B7D10C86878DA827A17800CE764603B5C71CE8B8F9FA2833FD35BB23D9E625A9149C048EEF8AB6B2BE2218126117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE77E6DCD7A067822DD9FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE78579C924EDBE3338D32BA5DBAC0009BE395957E7521B51C20BC6067A898B09E4090A508E0FED6299176DF2183F8FC7C0333383368A6F7D0FCD04E86FAF290E2DB606B96278B59C421DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C2 77FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6A45692FFBBD75A6A089D37D7C0E48F6C5571747095F342E88FB051 X-C1DE0DAB: 0D63561A33F958A51A4680DEBF845D07C2444F11BA240116052A1884A0E34F67F87CCE6106E1FC07E67D4AC08A07B9B06A1CB4668A9CA5FACB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742DC8270968E61249B1004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34AA8975497C7004E87EB92E18F6DC668D9B84C3131B6B103A95FC07A466D42799688F05DF70623F3D1D7E09C32AA3244CFA1B70840CC7BD1BE6C722F77BF762A933C9DC155518937F3EB3F6AD6EA9203E X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj2bBfNOyMTUBXjv8CvFpZsg== X-Mailru-Sender: 4C235FE2E5D2D890FBEF37A2DB6DABE62110195DFFD678A6FC1BF6FB22398727A89F4AB26572B1C2A3C36B4D8423ABA5C77752E0C033A69EC36ED9D1848BBC3A06988B367FA93C37B4A721A3011E896F X-Mras: Ok Received-SPF: pass client-ip=95.163.41.66; envelope-from=artscan@list.ru; helo=smtp43.i.mail.ru X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 27 May 2023 13:29:19 -0400 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:262483 Archived-At: --000000000000294e7205fcaf5fe3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. I am not confident how to classify this kind of behaviour change. You can see the beginning of the discussion below. Briefly, if you have different versions of packages in package-user-dir then pretest 29 loads random old versions of them whereas 28 loads mostly latest versions. ---------- Forwarded message --------- From: Philip Kaludercic Date: Sat, May 27, 2023 at 6:23=E2=80=AFPM Subject: Re: emacs 04c4c578 pretest 29.0.91 To: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=91=D0=BE=D0=B9=D0=BA=D0= =BE=D0=B2 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=91=D0=BE=D0=B9=D0=BA=D0=BE= =D0=B2 writes: > Hello, Philip. Hi, > In your commit 04c4c578, package directories became NOSORT due to (fourth t > argument) > (directory-files dir) > replaced by > (directory-files dir t "^[^.]" t) > > It affects package-alist forming. For example, there are old and new > versions of a package in my elpa directory: > > go-mode-20170726.555 > go-mode-20220114.2239 > > After (package-initialize) > in emacs 28 (require 'go-mode) gives 2022 version, e.g. the latest versio= n > of a package in most cases, directory-files default sorting works. > In emacs 29.0.91 I get old 2017 version because of NOSORT unpredictable > version order in package-alist and hence random paths in load-path. > > I just tried to move from 28 to 29.0.91 and got many errors due to old > versions of many packages. > Excuse me if it is a feature and I missed something. No, this is not a feature but I think it might have uncovered a bug. Relying on the ordering of file names (which IIRC is lexiographic not numeric) is not a robust way to decide what packages should be preferred when loading descriptors. Could you submit a bug report to bug-gnu-emacs@gnu.org so that this issue can be discussed with the other maintainers? --=20 __________________________ =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =D0=91=D0=BE=D0=B9=D0=BA=D0=BE=D0=B2 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8= =D0=B9 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B5=D0=B2=D0=B8=D1=87 =D1=81=D0=BE=D1=82. 8-924-202-25-65 e-mail: artscan@list.ru --000000000000294e7205fcaf5fe3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

I am not confident how = to classify this kind of behaviour change.
You can see the beginni= ng of the discussion below.

Briefly, if you have different ver= sions of packages in package-user-dir then pretest 29 loads random old vers= ions of them whereas 28 loads mostly latest versions.

---------- Forwar= ded message ---------
From: P= hilip Kaludercic <philipk@posteo.net>
Date: Sat, May 27, 2023 at 6:23= =E2=80=AFPM
Subject: Re: emacs 04c4c578 pretest 29.0.91
To: =D0=95=D0= =B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=91=D0=BE=D0=B9=D0=BA=D0=BE=D0=B2 <= artscan@list.ru>

=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=91=D0=BE=D0=B9=D0=BA=D0=BE= =D0=B2 <artscan@lis= t.ru> writes:

> Hello, Philip.

Hi,

> In your commit 04c4c578, package directories became NOSORT due to (fou= rth t
> argument)
>=C2=A0 =C2=A0 =C2=A0(directory-files dir)
> replaced by
>=C2=A0 =C2=A0 =C2=A0(directory-files dir t "^[^.]" t)
>
> It affects package-alist forming. For example, there are old and new > versions of a package in my elpa directory:
>
> go-mode-20170726.555
> go-mode-20220114.2239
>
> After (package-initialize)
> in emacs 28 (require 'go-mode) gives 2022 version, e.g. the latest= version
> of a package in most cases, directory-files default sorting works.
> In emacs 29.0.91 I get old 2017 version because of NOSORT unpredictabl= e
> version order in package-alist and hence random paths in load-path. >
> I just tried to move from 28 to 29.0.91 and got many errors due to old=
> versions of many packages.
> Excuse me if it is a feature and I missed something.

No, this is not a feature but I think it might have uncovered a bug.
Relying on the ordering of file names (which IIRC is lexiographic not
numeric) is not a robust way to decide what packages should be preferred when loading descriptors.=C2=A0 Could you submit a bug report to
bug-gnu-emacs@gn= u.org so that this issue can be discussed with the other
maintainers?
--
__________________________

=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,
=D0=91=D0=BE=D0=B9=D0=BA=D0=BE=D0=B2 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8= =D0=B9 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B5=D0=B2=D0=B8=D1=87
=D1=81=D0=BE=D1=82. 8-924-202-25-65
e-mail: artscan@list.r= u
--000000000000294e7205fcaf5fe3--