From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully Date: Sat, 03 Sep 2022 22:02:07 -0400 Message-ID: References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> <83r10smotk.fsf@gnu.org> <83czccmf57.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36496"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57562@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 04 04:03:10 2022 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 1oUeyc-0009Gf-F2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 04:03:10 +0200 Original-Received: from localhost ([::1]:42068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUeya-0007cZ-UT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 22:03:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUeyU-0007b3-DC for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 22:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUeyU-0002yk-4d for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 22:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUeyT-0001r2-Pd for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 22:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Sep 2022 02:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57562-submit@debbugs.gnu.org id=B57562.16622569437080 (code B ref 57562); Sun, 04 Sep 2022 02:03:01 +0000 Original-Received: (at 57562) by debbugs.gnu.org; 4 Sep 2022 02:02:23 +0000 Original-Received: from localhost ([127.0.0.1]:43204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUexq-0001q8-IX for submit@debbugs.gnu.org; Sat, 03 Sep 2022 22:02:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:46796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUexo-0001pw-RY for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 22:02:21 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 77BD8440F6C; Sat, 3 Sep 2022 22:02:15 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C9319440099; Sat, 3 Sep 2022 22:02:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662256929; bh=RslppU3YJuFCw0hhDTZg9hv2S2r2na2A6cw0xAAGa0s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Rhnim2u+XoUcn15ZjEIEEJ7G3MpOTK0x1RNfx4mS88xdRmnbRAddGHjcdHfWs57WR 8H119zYa9unv15XEm6iVXGqGbIgRX0V62795LBlXyBDMPX7t/VjyvGLVcI9bL+Jd9V JKnsu8vkOEGCD8NGMPSldk39+PHpMh4RxChObJdSVS7jmZOqsENoINWNxyC1Lgra5m 9eqapJxVfAqXP+Gnxq4HMmSjL/5waM4pxJSU91U9HY3qE8FZUPgqxjmYa/9PlnWMfX Vs/L5SS9sEGE1d1JtqVxQCDx2b1MnLo/lkVEkyJz8o2XUAYhZyfMb9jUxFgMujqSoI qvaFazRZZ/arg== Original-Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9D82A12079B; Sat, 3 Sep 2022 22:02:09 -0400 (EDT) In-Reply-To: <83czccmf57.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Sep 2022 22:28:20 +0300") 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:241455 Archived-At: Eli Zaretskii [2022-09-03 22:28:20] wrote: >> From: Stefan Monnier >> Cc: 57562@debbugs.gnu.org >> Date: Sat, 03 Sep 2022 15:16:23 -0400 >> >> > I guess that's enough for Emacs 28. (And I do wonder how come people >> > come up with unwritable home directories.) >> >> In the discussion of that Debian bug#1017739, Russ Allbery mentions >> a(n unrelated) problem which can lead to this: >> >> % su >> # emacs >> >> If the user hasn't yet used Emacs (and depending on the details of which >> version of `su` you use) this can create >> a /home//.emacs.d/eln-cache that's owned by root because we create >> that dir according to `~$USER` rather than according to `$HOME`. > > I didn't mean to say that I didn't understand how this could happen > _technically_. What I don't get is how come people let this happen, > and don't pay attention until Emacs complains? Isn't it crazy to have > your home directory unwritable by your user?? I think in the above scenario, if you just upgraded to Emacs-28 and it's hence the first time you run an Emacs with native compilation, you get a home directory that's still perfectly writable, including `~/.emacs.d` and it's only `~/.emacs.d/eln-cache` that's owned by root. And since Emacs error(s|ed) out right away, the error message didn't let you find the name of the directories that were searched to figure out the origin of the problem. Stefan