From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhengyi Fu Newsgroups: gmane.emacs.bugs 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 Message-ID: <87wmjjd0cw.fsf@localhost> References: <87bk0z37qf.fsf@localhost> <87tteqe89w.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10428"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73102@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 10 17:50:14 2024 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 1so38A-0002Z8-1M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 17:50:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so37x-0001LA-Le; Tue, 10 Sep 2024 11:50:01 -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 1so37t-0001Hk-M2 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 11:49:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1so37t-0000vz-DR for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 11:49:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=aufw5OW07I0hWq2m1BAvkFK3f/ibHe9lJBOc0sKZN9o=; b=d50AjTpZq6ea/RGBi3smi1D/hATyktYDP2avwApvujnV/6bvBJse0hXaqIBj3+JLCEvs7Kre0RIGFSyNr685qVXzCal1rdGvAJTeFCn80tKUNnfSQtj7cewYLln1KtdGL2cg6rEbFW+1nbnevREB0BRswpRPjNIf77O12BAtrmKOz2UmC92CJZc8PkDmGsB0glT2pmxVa1nn7M+WFgD771k0hSIlNPmuOzEYrqPJiiCBLhS0Tjrgi0fwbhpkzM+6CE2qIQqJ2AwrLgpq3+29vLcO7pvXftC3PEZCIe8q0QfAyjQM//1Gh/43WpbNKJzSmuP+rFHtO6DWOR8zfkLWsg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1so37y-0002su-B7 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 11:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zhengyi Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Sep 2024 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73102 X-GNU-PR-Package: emacs Original-Received: via spool by 73102-submit@debbugs.gnu.org id=B73102.172598336111024 (code B ref 73102); Tue, 10 Sep 2024 15:50:02 +0000 Original-Received: (at 73102) by debbugs.gnu.org; 10 Sep 2024 15:49:21 +0000 Original-Received: from localhost ([127.0.0.1]:36645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so37H-0002rj-Nw for submit@debbugs.gnu.org; Tue, 10 Sep 2024 11:49:20 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:40783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so2Hg-00009v-TK for 73102@debbugs.gnu.org; Tue, 10 Sep 2024 10:56:03 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 1F5A0240007; Tue, 10 Sep 2024 14:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1725980149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aufw5OW07I0hWq2m1BAvkFK3f/ibHe9lJBOc0sKZN9o=; b=iHNEAuMuqfyjBYuPkcv6ixFmXleP0Mu1fSC12yeFYwN4kYOl3ZcOSSobi8Oud8G/6GlRDs R+GYxE+eshJldmRfGrLVc5UYV6l4VwlY7+NPJo8LoEldpnxSNuyxumQuxqZBDzSLexIgiP kg9874CJbASDtAMD3yltD+23dL2nhHhGTMtYqeaCRMOmRElqmwH2SwVdHvKOh+vVKgRXkT TuxM8HK9Dv0Crr474TkGN3sR/i/+75YprvGkmokv/vFQq0p7/h6xVJVyPF4wUZmviiHouA kMmXupIEO4DYMABhCpt670YvE34OVuHhVEHUl7Z1F0RSL12pWhJ5tVbwWS87zA== In-Reply-To: <87tteqe89w.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 08 Sep 2024 10:42:35 +0000") X-GND-Sasl: id@fuzy.me X-Mailman-Approved-At: Tue, 10 Sep 2024 11:49:18 -0400 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:291570 Archived-At: Philip Kaludercic writes: > Zhengyi Fu 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