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: Sun, 04 Jun 2023 17:30:21 +0300 Message-ID: <83fs775mgy.fsf@gnu.org> References: <83y1l7gzqw.fsf@gnu.org> <87ilcb2p1l.fsf@posteo.net> <87sfb8g85v.fsf@posteo.net> <83a5xf7pi5.fsf@gnu.org> <87ttvnoehl.fsf@posteo.net> <8335377iyo.fsf@gnu.org> <87h6rnoa8v.fsf@posteo.net> <83v8g35ybo.fsf@gnu.org> <87cz2bo3qu.fsf@posteo.net> <83pm6b5t1i.fsf@gnu.org> <878rczo28v.fsf@posteo.net> <83o7lv5sjc.fsf@gnu.org> <874jnno1bi.fsf@posteo.net> <83mt1f5rab.fsf@gnu.org> <87zg5fmkgk.fsf@posteo.net> 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="30674"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, 63757@debbugs.gnu.org, monnier@iro.umontreal.ca 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?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 04 16:30:22 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 1q5okP-0007pF-P7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 16:30:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5okC-0001Uv-3g; Sun, 04 Jun 2023 10:30:08 -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 1q5ok7-0001UZ-HC for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 10: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 1q5ok6-0004N8-WE for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 10:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5ok6-0003RG-Qo for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 10:30: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: Sun, 04 Jun 2023 14:30: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.168588897613159 (code B ref 63757); Sun, 04 Jun 2023 14:30:02 +0000 Original-Received: (at 63757) by debbugs.gnu.org; 4 Jun 2023 14:29:36 +0000 Original-Received: from localhost ([127.0.0.1]:46848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5ojg-0003QB-1D for submit@debbugs.gnu.org; Sun, 04 Jun 2023 10:29:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5oje-0003Pv-DJ for 63757@debbugs.gnu.org; Sun, 04 Jun 2023 10:29:34 -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 1q5ojY-0004C8-9K; Sun, 04 Jun 2023 10:29:28 -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=j+IxgZHF9F1CXrcAMeyKlt3rywOXEyz8fanr+0wfOBw=; b=STWeiHkLgQ5dNIL8RlG9 G0kiAuL8sSXBbY+4qmyAncbVa+rwke+IfgKlionM3o/lFQRB0T82uKYQgacALMSW21rO3mA3+6lme nhxdhKLzfTavARLWU/I97Z8qJfYQEhijhTxuUFrWEJDbFC1AO/7ZqE53F3LrLr96o13L7XTPZsAah XW1imNVCiMVG0/11cntE16S+S4HdxOpzqGsmNHN6ePfWKkBIQHUZpmik/P20XK49xlwIv3pJMnojR vMhrwie48a/JHyeI6pVfu1LmV3YtUX94V9y//1M/ic52CV3/fDu5XGYHbfjZtgtFukqo0JcJNl6Y+ UxZsjUjeKGeTAA==; 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 1q5ojX-0005Yl-OV; Sun, 04 Jun 2023 10:29:28 -0400 In-Reply-To: (message 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?= on Mon, 5 Jun 2023 00:03:48 +1000) 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:262956 Archived-At: > From: Евгений Бойков > Date: Mon, 5 Jun 2023 00:03:48 +1000 > Cc: Eli Zaretskii , monnier@iro.umontreal.ca, 63757@debbugs.gnu.org > > > Done. Should we close the issue then, or wait for more feedback? > > fa8135f8916 * emacs-29 origin/emacs-29 Revert changes to the order in which package descs are > loaded > - (dolist (pkg-dir (directory-files dir t "\\`[^.]" t)) > + (dolist (pkg-dir (directory-files dir t "\\`[^.]")) > > it doesn't fix the initial problem: `load-path` and `package-alist` are still broken in my test. > > Test: > To reproduce the case we need emacs 29.0.91 + fa8135f8916 fix and > ~/.emacs.d/elpa/go-mode-20170726.555/... > ~/.emacs.d/elpa/go-mode-20220114.2239/... > Run `emacs -Q` and `M-x package-initialize`. After that `package-alist` and `load-path` contain the > 2017 version as the first item in the list (instead of 2022). I guess we need to reverse the list of directories, since directory-files sorts using string-lessp as the predicate?