GNU bug report logs - #73102
29.4; `package-recompile-all' should skip packages installed by distro package manager

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Sat, 7 Sep 2024 14:44:04 UTC

Severity: normal

Found in version 29.4

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Zhengyi Fu <i <at> fuzy.me>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 73102 <at> 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
Philip Kaludercic <philipk <at> posteo.net> writes:

> Zhengyi Fu <i <at> 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




This bug report was last modified 346 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.