From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63757: 29.0.91 order of package paths changed: random old versions of packages in load-path Date: Mon, 29 May 2023 14:09:59 +0300 Message-ID: <83y1l7gzqw.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63757@debbugs.gnu.org, Stefan Monnier 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?= , Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 29 13:10:39 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 1q3alr-0002Jc-I4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 May 2023 13:10:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3alZ-0003DP-E8; Mon, 29 May 2023 07:10:26 -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 1q3alG-0003D0-SW for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 07:10: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 ) id 1q3alG-0002gu-G9 for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 07:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3alG-0000ww-BK for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 07:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2023 11:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63757 X-GNU-PR-Package: emacs Original-Received: via spool by 63757-submit@debbugs.gnu.org id=B63757.16853585763565 (code B ref 63757); Mon, 29 May 2023 11:10:02 +0000 Original-Received: (at 63757) by debbugs.gnu.org; 29 May 2023 11:09:36 +0000 Original-Received: from localhost ([127.0.0.1]:57194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3akl-0000v9-Ab for submit@debbugs.gnu.org; Mon, 29 May 2023 07:09:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3aki-0000ug-MX for 63757@debbugs.gnu.org; Mon, 29 May 2023 07:09:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3akc-0002Yc-0v; Mon, 29 May 2023 07:09:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=c3YsjXNAQeSuKqWrvOS/x8WgQgdGfBhM28RkfL89oM4=; b=kwiAQmuz/uhpUQQnLkzA kITwpmzPPbh2SjW90cEzNiNcg75WjIM8+6YgOfM5qpLFx0wJZUTn2BWHY3q7Id+Lr3RoYaABDERGR Tw1pL58IDFu2SDr4hEvFTFXtVOr07pA0ZJ+PhBYXuPf1hY6TWHXGYB1fhVtLlstE5m61DmlfEnta4 96o0IcPTArZmq66htnTl0f339iuUdpm9F17veWjARbYrNyKU4HS2aSdWwbIm3ecawmd/hK7Th/9Cx iuYmyY4vqUmbSBGwMjqI5hiJbv1DipNzj1U87FiEthaRiIAgXJXdehgJdT2HfeZgBXrGMu0oX3GZ2 FeH6hjce/7Fvrg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3akb-0006yF-FF; Mon, 29 May 2023 07:09:21 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:262565 Archived-At: > Date: Sun, 28 May 2023 02:30:18 +1000 > From: Евгений Бойков via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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 PM > Subject: Re: emacs 04c4c578 pretest 29.0.91 > To: Евгений Бойков > > Евгений Бойков 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 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 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? Philip, are you looking into this? Or do you have any comments?