From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46972: =?UTF-8?Q?RE=C2=A0:_?= =?UTF-8?Q?RE=C2=A0:_?= =?UTF-8?Q?RE=C2=A0:?= bug#46972: 28.0.50; [feature/native-comp] Emacs locks itself during native compilation because of permission denied Date: Fri, 12 Mar 2021 09:36:01 +0200 Message-ID: <83r1kklt7i.fsf@gnu.org> References: <83lfb0uo5s.fsf@gnu.org> <83ft18umwg.fsf@gnu.org> <83eegsuk1q.fsf@gnu.org> , <835z24ujfw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46972@debbugs.gnu.org, akrl@sdf.org To: Matt M Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 08:37:12 2021 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 1lKcMB-0002Zz-TA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 08:37:11 +0100 Original-Received: from localhost ([::1]:47366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKcMB-0002rf-01 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 02:37:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKcM2-0002o7-BQ for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKcM2-0005hE-4N for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKcM2-00050p-10 for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 07:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46972 X-GNU-PR-Package: emacs Original-Received: via spool by 46972-submit@debbugs.gnu.org id=B46972.161553457219204 (code B ref 46972); Fri, 12 Mar 2021 07:37:01 +0000 Original-Received: (at 46972) by debbugs.gnu.org; 12 Mar 2021 07:36:12 +0000 Original-Received: from localhost ([127.0.0.1]:55894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKcLD-0004zg-Qx for submit@debbugs.gnu.org; Fri, 12 Mar 2021 02:36:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKcLC-0004zR-H1 for 46972@debbugs.gnu.org; Fri, 12 Mar 2021 02:36:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55221) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKcL5-00053B-P9; Fri, 12 Mar 2021 02:36:03 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4656 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKcL2-0003rx-06; Fri, 12 Mar 2021 02:36:03 -0500 In-Reply-To: (message from Matt M on Fri, 12 Mar 2021 00:26:18 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:202142 Archived-At: > From: Matt M > CC: "46972@debbugs.gnu.org" <46972@debbugs.gnu.org> > Date: Fri, 12 Mar 2021 00:26:18 +0000 > > The Following patch seems to fix my problem : > --- a/lisp/emacs-lisp/comp.el > +++ b/lisp/emacs-lisp/comp.el > @@ -3778,13 +3778,7 @@ comp-delete-or-replace-file > (while > (condition-case _ > (progn > - ;; oldfile maybe recreated by another Emacs in > - ;; between the following two rename-file calls > - (if (file-exists-p oldfile) > - (rename-file oldfile (make-temp-file-internal > - (file-name-sans-extension oldfile) > - nil ".eln.old" nil) > - t)) > + (delete-file oldfile) > (when newfile > (rename-file newfile oldfile nil)) > ;; Keep on trying. > Changed the call to rename-file to delete-file. Thanks, but I don't think we can use this solution, due to the reason explained in the comment there. (You can, of course, use it locally, if the danger described there is not relevant for your usage.) I apologize that I didn't yet have time to recreate the problem you described and look into it: the native-comp branch is still not stable enough for me to try such non-trivial situations. I didn't forget, though.