From: Feng Shu <tumashu@163.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 59087@debbugs.gnu.org
Subject: bug#59087: 29.0.50; package-vc-update error
Date: Sat, 19 Nov 2022 12:59:54 +0800 [thread overview]
Message-ID: <87h6yv5yk5.fsf@163.com> (raw)
In-Reply-To: <878rk8i8yo.fsf@posteo.net> (Philip Kaludercic's message of "Fri, 18 Nov 2022 15:22:07 +0000")
Philip Kaludercic <philipk@posteo.net> writes:
> Feng Shu <tumashu@163.com> writes:
>
>> Philip Kaludercic <philipk@posteo.net> writes:
>>
>>> Feng Shu <tumashu@163.com> writes:
>>>
>>>> Philip Kaludercic <philipk@posteo.net> writes:
>>>>
>>>>> Feng Shu <tumashu@163.com> writes:
>>>>>
>>>>>> I have found another issue:
>>>>>>
>>>>>> If I run package-update when emacs first start, it will show error:
>>>>>>
>>>>>> package-update: Symbol’s function definition is void: package-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.
>
> 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") => "/home/feng/.emacs.d/elpa-29/popon-0.12/popon.el"
(find-library-name "corfu-terminal") => "/home/feng/.emacs.d/elpa-29/corfu-terminal-0.5/corfu-terminal.el"
2. package-vc-install popon
(find-library-name "popon") => "/home/feng/.emacs.d/elpa-29/popon/popon.el"
(find-library-name "corfu-terminal") => "/home/feng/.emacs.d/elpa-29/corfu-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") => "/home/feng/.emacs.d/elpa-29/popon/popon.el"
(find-library-name "corfu-terminal") => "/home/feng/.emacs.d/elpa-29/corfu-terminal/corfu-terminal.el"
package-vc-update only show corfu-terminal, and popon lost.
corfu-terminal is depend on popon.
--
next prev parent reply other threads:[~2022-11-19 4:59 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 2:33 bug#59087: 29.0.50; package-vc-update error Feng Shu
2022-11-14 11:32 ` Philip Kaludercic
2022-11-15 1:52 ` Feng Shu
2022-11-15 9:48 ` Philip Kaludercic
2022-11-16 0:46 ` Feng Shu
2022-11-16 8:20 ` Philip Kaludercic
2022-11-16 9:22 ` Feng Shu
2022-11-16 9:51 ` Philip Kaludercic
2022-11-16 12:03 ` Feng Shu
2022-11-16 12:20 ` Philip Kaludercic
2022-11-16 12:01 ` Feng Shu
2022-11-16 12:18 ` Philip Kaludercic
2022-11-16 12:58 ` Feng Shu
2022-11-16 12:59 ` Philip Kaludercic
2022-11-17 0:43 ` Feng Shu
2022-11-17 15:54 ` Philip Kaludercic
2022-11-18 0:43 ` Feng Shu
2022-11-18 9:53 ` Philip Kaludercic
2022-11-18 11:48 ` Feng Shu
2022-11-18 3:31 ` Feng Shu
2022-11-18 9:55 ` Philip Kaludercic
2022-11-18 11:47 ` Feng Shu
2022-11-18 11:52 ` Feng Shu
2022-11-18 15:22 ` Philip Kaludercic
2022-11-19 4:59 ` Feng Shu [this message]
2022-11-19 7:28 ` Philip Kaludercic
2022-11-19 10:01 ` Feng Shu
2022-11-19 10:52 ` Philip Kaludercic
2022-11-19 5:06 ` Feng Shu
2022-11-16 16:22 ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-16 16:29 ` Philip Kaludercic
2022-11-17 1:44 ` Feng Shu
2022-11-15 2:08 ` Feng Shu
2022-11-15 5:51 ` Feng Shu
2022-11-19 5:10 ` Feng Shu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6yv5yk5.fsf@163.com \
--to=tumashu@163.com \
--cc=59087@debbugs.gnu.org \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.