From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Feng Shu Newsgroups: gmane.emacs.bugs Subject: bug#59087: 29.0.50; package-vc-update error Date: Sat, 19 Nov 2022 12:59:54 +0800 Message-ID: <87h6yv5yk5.fsf@163.com> References: <87v8nr333x.fsf@163.com> <874jv13h6c.fsf@posteo.net> <878rkdkmqe.fsf@163.com> <874jv01ray.fsf@posteo.net> <87fsejybcz.fsf@163.com> <871qq38g54.fsf@posteo.net> <87fsejcdm2.fsf@163.com> <87sfijnlce.fsf@posteo.net> <877czvcaz3.fsf@163.com> <87k03vnjgf.fsf@posteo.net> <87v8newgve.fsf@163.com> <87r0y1inku.fsf@posteo.net> <874juxgcqd.fsf@163.com> <871qq0k2o9.fsf@posteo.net> <87sfig7a4o.fsf@163.com> <878rk8i8yo.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8112"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59087@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 06:01:21 2022 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 1owFyi-0001uH-2A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 06:01:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owFyR-00041a-WA; Sat, 19 Nov 2022 00:01:04 -0500 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 1owFyQ-00041R-Qm for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 00:01:02 -0500 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 1owFyQ-0006jb-I8 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 00:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owFyQ-0002jW-3s for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 00:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Feng Shu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2022 05:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59087 X-GNU-PR-Package: emacs Original-Received: via spool by 59087-submit@debbugs.gnu.org id=B59087.166883401010432 (code B ref 59087); Sat, 19 Nov 2022 05:01:02 +0000 Original-Received: (at 59087) by debbugs.gnu.org; 19 Nov 2022 05:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:38698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owFxa-0002iB-Eh for submit@debbugs.gnu.org; Sat, 19 Nov 2022 00:00:10 -0500 Original-Received: from m12-14.163.com ([220.181.12.14]:34661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owFxU-0002fF-Jx for 59087@debbugs.gnu.org; Sat, 19 Nov 2022 00:00:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=hMd2+ rmAaptpfF9gjztNd59Ki+GUnQdxdvohdsRMoi0=; b=pZVmyA+YkIszHCl5SNFkt iREwex/A7lkh8SzAfYkbisZlfhnhsyTcgFJntGO+BqY09tvh3gBZDCESW/nHoEVn BzcnX266Rg//b6irvLa3Ip7gQfKNx/jTvB3FegdqGLft0EH0+29Mgm94Ij/1S2Ah /p8D6G4hZ9ieqx3Z8uhaZA= Original-Received: from Guix (unknown [49.88.144.183]) by smtp10 (Coremail) with SMTP id DsCowACHl7PKYnhjnWwbNg--.41420S2; Sat, 19 Nov 2022 12:59:54 +0800 (CST) In-Reply-To: <878rk8i8yo.fsf@posteo.net> (Philip Kaludercic's message of "Fri, 18 Nov 2022 15:22:07 +0000") X-CM-TRANSID: DsCowACHl7PKYnhjnWwbNg--.41420S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxAw47KF1rtw17Xw1DJFW3trb_yoW5Ww15p3 4UWFn8Xa4kKr1kXr1qkw18uryYk395Jryaqw17JryIyF1q934vgrW2vF4ruwsF9F13J3Wj y3y0kw43W3yYyaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0z_gAwkUUUUU= X-Originating-IP: [49.88.144.183] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiSgu+1GI0Vf+TrwAAsr 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:248296 Archived-At: Philip Kaludercic writes: > Feng Shu writes: > >> Philip Kaludercic writes: >> >>> Feng Shu writes: >>> >>>> Philip Kaludercic writes: >>>> >>>>> Feng Shu writes: >>>>> >>>>>> I have found another issue: >>>>>> >>>>>> If I run package-update when emacs first start, it will show error: >>>>>> >>>>>> package-update: Symbol=E2=80=99s function definition is void: packag= e-vc-update >>>>> >>>> >>>> When I install another package, for example: cnfonts, package-update do >>>> not show cnfonts, I need to reboot emacs. >>> >>> That is interesting, it the package listed in the Package List before >>> restarting? >> >> I have installed cnfonts tar from melpa before, when I delete it, >> package-update show cnfonts.=20 > > Ok, so it looks like the issue is in the following: > > (seq-filter > (lambda (elt) > (or (let ((available > (assq (car elt) package-archive-contents))) > (and available > (version-list-< > (package-desc-version (cadr elt)) > (package-desc-version (cadr available))))) > (package-vc-p (cadr (assq (car elt) package-alist))))) > package-alist) > > > specifically the > > (package-vc-p (cadr (assq (car elt) package-alist))) > > We store all package descriptions in `package-alist', but here we only > check the first one (which is also the one I believe that is activated). > > But after restarting Emacs, package.el makes sure that VC packages are > prioritised, so that is why the check does work later on. > > The question is, what package is enabled? I'd say that if after > installation, you run M-x find-library and end up in the MELPA > directory, then we would have to make up our mind of this is the right > thing or not. > > But if the VC package is active, then we just have to make sure that it > is inserted at the beginning of the list, and not at the end. > Maybe this issue is related package dependent, I have test like below: 1. before package-vc-install (find-library-name "popon") =3D> "/home/feng/.emacs.d/elpa-29/popon-0.12/po= pon.el" (find-library-name "corfu-terminal") =3D> "/home/feng/.emacs.d/elpa-29/corf= u-terminal-0.5/corfu-terminal.el" 2. package-vc-install popon (find-library-name "popon") =3D> "/home/feng/.emacs.d/elpa-29/popon/popon.e= l" (find-library-name "corfu-terminal") =3D> "/home/feng/.emacs.d/elpa-29/corf= u-terminal-0.5/corfu-terminal.el" popon item is showed when run package-vc-update. 3. package-vc-install corfu-terminal (find-library-name "popon") =3D> "/home/feng/.emacs.d/elpa-29/popon/popon.e= l" (find-library-name "corfu-terminal") =3D> "/home/feng/.emacs.d/elpa-29/corf= u-terminal/corfu-terminal.el" package-vc-update only show corfu-terminal, and popon lost. corfu-terminal is depend on popon. --=20