From: Zhengyi Fu <i@fuzy.me>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 73102@debbugs.gnu.org
Subject: bug#73102: 29.4; `package-recompile-all' should skip packages installed by distro package manager
Date: Tue, 10 Sep 2024 22:55:43 +0800 [thread overview]
Message-ID: <87wmjjd0cw.fsf@localhost> (raw)
In-Reply-To: <87tteqe89w.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 08 Sep 2024 10:42:35 +0000")
Philip Kaludercic <philipk@posteo.net> writes:
> Zhengyi Fu <i@fuzy.me> writes:
>
>> When I try recompiling all packages installed by package.el with `M-x
>> package-recompile-all', I got the following error:
>>
>> Debugger entered--Lisp error: (permission-denied "Removing old name"
>> "Permission denied"
>> "/usr/share/emacs/site-lisp/elpa/mu4e-1.10.8/mu4e-a...")
>> package-recompile(#s(package-desc :name mu4e :version (1 10 8)
>> :summary "the mu mail user agent" :reqs nil :kind nil :archive nil
>> :dir "/usr/share/emacs/site-lisp/elpa/mu4e-1.10.8" :extras nil
>> :signed nil))
>> package-recompile-all()
>> funcall-interactively(package-recompile-all)
>> command-execute(package-recompile-all record)
>> execute-extended-command(nil "package-recompile-all" "recom all")
>> funcall-interactively(execute-extended-command nil "package-recompile-all" "recom all")
>> command-execute(execute-extended-command)
>>
>> This is possibly because the package `mu4e' was installed by the distro
>> package manager in a path where normal users don't have write access.
>>
>> I think `package-recompile-all' should either skip those packages that
>> are not installed by package.el or ignore such errors and continue to
>> recompile other packages.
>
> We have installed a patch in Bug#68678 on master (the commit is from
> last February, so you wouldn't see it yet on 29.4) that wraps the
> `package-recompile' call in a `with-demoted-errors' block. That would
> still emit a error message, but it wouldn't break the recompilation
> procedure. Do you think that is enough, or should be explicitly and
> additionally avoid re-compiling external packages?
Yes. That patch is enough for me. Thanks!!
--
Zhengyi Fu
next prev parent reply other threads:[~2024-09-10 14:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-07 13:37 bug#73102: 29.4; `package-recompile-all' should skip packages installed by distro package manager Zhengyi Fu
2024-09-08 10:42 ` Philip Kaludercic
2024-09-10 14:55 ` Zhengyi Fu [this message]
2024-09-10 14:59 ` Philip Kaludercic
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmjjd0cw.fsf@localhost \
--to=i@fuzy.me \
--cc=73102@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).