From unknown Sat Aug 16 16:01:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57562 <57562@debbugs.gnu.org> To: bug#57562 <57562@debbugs.gnu.org> Subject: Status: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully Reply-To: bug#57562 <57562@debbugs.gnu.org> Date: Sat, 16 Aug 2025 23:01:30 +0000 retitle 57562 [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): F= ail more gracefully reassign 57562 emacs submitter 57562 Stefan Monnier severity 57562 normal tag 57562 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:00:30 2022 Received: (at submit) by debbugs.gnu.org; 3 Sep 2022 15:00:30 +0000 Received: from localhost ([127.0.0.1]:42606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUUdJ-0007Al-LW for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:00:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:37518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUUdI-00075t-7z for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:00:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUdH-0007RM-Aw for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 11:00:27 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUdE-0003o6-MH for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 11:00:26 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 87586100D03 for ; Sat, 3 Sep 2022 11:00:22 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E1C2C1001F3 for ; Sat, 3 Sep 2022 11:00:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662217220; bh=P9NPUXe7V812Kqqu18XC1CbucaE4wIJIEX+0osZ+eMI=; h=From:To:Subject:Date:From; b=VcUyfjkRyo9N4DFkWtn+APT62P4VI0hHQUHHCKxyjcI638SWq3mRD2WWB7/bDVIee EfqzBLJu8pOgUR5PW/bQbc83qBR3th7mmHgmM2lMZNVG1N32JgqhERWBakCKN/Pz1E kbuWWoyYkOfh9hFH1J91cx1x01hLbIM9Oht1z/de8nPLQzmw9h9iVzHeBADBNzlkaq we8jlQyy+3JMPaXO8z2VkA+hOMAEPhqCeTGmX7wmQMCZ5Avuc8TjjGVHmRBnMdBt8m JSpf2KGdOemANRJyksnU0drQWgNxx55/hSnJ/MOFlWHsQkxMrhOBeu9A8yUxV8a2Sb oznvRNeRePq4g== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C0DB1120609 for ; Sat, 3 Sep 2022 11:00:20 -0400 (EDT) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully Date: Sat, 03 Sep 2022 11:00:09 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.044 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch Any objection to installing this patch into `emacs-28`? Stefan In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2022-08-29 built on pastel Repository revision: b4cabfe2b1be20c2d896da81a8e408b57612905b Repository branch: work Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure -C --enable-checking --enable-check-lisp-object-type --with-modules --with-cairo --with-tiff=ifavailable 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign' PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig' --=-=-= Content-Type: text/patch Content-Disposition: inline; filename=0001-lisp-emacs-lisp-comp.el-comp-run-async-workers-Fail-.patch >From d0a989debc23ddeb692c120fb4aa5b8568e3c754 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 3 Sep 2022 10:51:17 -0400 Subject: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully Otherwise Emacs may fail to start if it can't find a writable `~/.emacs.d/eln-cache` directory. See Debian's bug #1017739. --- lisp/emacs-lisp/comp.el | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 306ec918b1a..6e2564236db 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -1370,19 +1370,22 @@ comp-spill-lap-function (unless byte-to-native-top-level-forms (signal 'native-compiler-error-empty-byte filename)) (unless (comp-ctxt-output comp-ctxt) - (setf (comp-ctxt-output comp-ctxt) (comp-el-to-eln-filename - filename - (or native-compile-target-directory - (when byte+native-compile - (car (last native-comp-eln-load-path))))))) + (setf (comp-ctxt-output comp-ctxt) + (comp-el-to-eln-filename + filename + (or native-compile-target-directory + (when byte+native-compile + (car (last native-comp-eln-load-path))))))) (setf (comp-ctxt-speed comp-ctxt) (alist-get 'native-comp-speed byte-native-qualities) (comp-ctxt-debug comp-ctxt) (alist-get 'native-comp-debug byte-native-qualities) - (comp-ctxt-compiler-options comp-ctxt) (alist-get 'native-comp-compiler-options - byte-native-qualities) - (comp-ctxt-driver-options comp-ctxt) (alist-get 'native-comp-driver-options - byte-native-qualities) + (comp-ctxt-compiler-options comp-ctxt) + (alist-get 'native-comp-compiler-options + byte-native-qualities) + (comp-ctxt-driver-options comp-ctxt) + (alist-get 'native-comp-driver-options + byte-native-qualities) (comp-ctxt-top-level-forms comp-ctxt) (cl-loop for form in (reverse byte-to-native-top-level-forms) @@ -3933,10 +3936,13 @@ comp-run-async-workers "`comp-files-queue' should be \".el\" files: %s" source-file) when (or native-comp-always-compile - load ; Always compile when the compilation is - ; commanded for late load. - (file-newer-than-file-p - source-file (comp-el-to-eln-filename source-file))) + load ; Always compile when the compilation is + ; commanded for late load. + ;; Skip compilation if `comp-el-to-eln-filename' fails + ;; to find a writable directory. + (with-demoted-errors "Async compilation :%S" + (file-newer-than-file-p + source-file (comp-el-to-eln-filename source-file)))) do (let* ((expr `((require 'comp) (setq comp-async-compilation t) (setq warning-fill-column most-positive-fixnum) -- 2.30.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:15:06 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:15:06 +0000 Received: from localhost ([127.0.0.1]:42615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUUrS-00087o-GO for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:15:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUUrQ-000871-Mt for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:15:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUrL-00080m-D7; Sat, 03 Sep 2022 11:14:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8kmncrBoi+DTB0K90XUrQ7LSzSNqgVfHpzq2r7Srxrw=; b=CNwIbW0j9JLb NwqN4UpMRV21ue3MpdVn94tZb32dDsMEGqYd5jefa4wb0ujByd8ZwWFME4XFjzZbEPuzruD336OAu 0ksCe6gjXucsGvk07YS61NrKnhxG+e2LQKZk1sSuZouY5OppF8U9IqywZCQAostWKBdJSeZM4kppQ xsy8lnrLbCXSn6kANkt7H9kLywsan7IpZ5YVn8wT/ZYwKJb8a7D7EKuhYWNgiTXrEsbtExSE8DtSI NkTbw/ugLaxPFmN9RrRgc27W1GG20vTfHDYPgLffrkYlbmWczoqVowrmxnaoxJ/KWB+hnQ8xavG33 UdRH+9X6WyDLqgzOR4DYrQ==; Received: from [87.69.77.57] (port=3299 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUUrK-00074P-SR; Sat, 03 Sep 2022 11:14:59 -0400 Date: Sat, 03 Sep 2022 18:14:33 +0300 Message-Id: <83wnakmqw6.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 03 Sep 2022 11:00:09 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Any objection to installing this patch into `emacs-28`? I have trouble seeing the actual change amongst unrelated whitespace changes. Please show a patch with the minimal necessary change, without all the reformatting. Emacs 28.2 is so close to a release that playing whitespace and formatting games is not appropriate there. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:24:17 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:24:17 +0000 Received: from localhost ([127.0.0.1]:42620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV0L-0008LC-G7 for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:24:17 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:46717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV0J-0008Ky-7B for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:24:15 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 83CC4101120; Sat, 3 Sep 2022 11:24:09 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C30BF1001F3; Sat, 3 Sep 2022 11:24:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662218643; bh=ZslAxs7Q2ueNg3ceiBdZ4sq1GbDwkTGRwX33C/CYG7o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=c05XbERaGzkN6/U+mgE2TW8QNHp3sqVjd3LCJ0GF//6U09SnMgwWzszuqKSWqf3AC 5QKKbpri6JzS8EeP/0CqkwbIUP7EAtU+9sit4n3obt8tMCoHTFxFnQgZCG/mnFe45J fNJ+WkdJ8sUtX5i3aI5HotjURwktA3cTVA41vg5kWjxBkC8Xkl9Uai/tNXv+rh84LQ pSwLA3fgAumPGigEptc0R57CmvVBOeHQdv/WWoyrzwqgOsvHSouHchXzJqA+idcmbW bzgFlQf2CbVhIGA+cGwFi4QOeGkl4nmNv1jziJC/Avi93gWWDJe14TeVvPnNLjhvpa Y6W8JChpHzhnw== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9AA83120911; Sat, 3 Sep 2022 11:24:03 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: <83wnakmqw6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Sep 2022 18:14:33 +0300") Message-ID: References: <83wnakmqw6.fsf@gnu.org> Date: Sat, 03 Sep 2022 11:24:02 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.044 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain > I have trouble seeing the actual change amongst unrelated whitespace > changes. Please show a patch with the minimal necessary change, > without all the reformatting. Emacs 28.2 is so close to a release > that playing whitespace and formatting games is not appropriate there. Hmm... looks like I sent the patch I had on `master`, sorry. Here is the cleaner `emacs-28` version. Stefan --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=comp.patch commit 516d2ea5e958866120f1c2d04771c04d1f5a4425 Author: Stefan Monnier Date: Sat Sep 3 11:03:01 2022 -0400 * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully Otherwise Emacs may fail to start if it can't find a writable `~/.emacs.d/eln-cache` directory. See Debian's bug #1017739. diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 374b39e9990..a5ab12ae388 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -3927,8 +3927,11 @@ comp-run-async-workers when (or native-comp-always-compile load ; Always compile when the compilation is ; commanded for late load. - (file-newer-than-file-p - source-file (comp-el-to-eln-filename source-file))) + ;; Skip compilation if `comp-el-to-eln-filename' fails + ;; to find a writable directory. + (with-demoted-errors "Async compilation :%S" + (file-newer-than-file-p + source-file (comp-el-to-eln-filename source-file)))) do (let* ((expr `((require 'comp) ,(when (boundp 'backtrace-line-length) `(setf backtrace-line-length ,backtrace-line-length)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:27:46 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:27:46 +0000 Received: from localhost ([127.0.0.1]:42626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV3i-0008Q8-3c for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:27:46 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV3g-0008Pu-2k for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:27:44 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D202780470; Sat, 3 Sep 2022 11:27:38 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3C1B180343; Sat, 3 Sep 2022 11:27:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662218853; bh=RfWHy/E3nDSE+jdouhzbcIlI+RC+Lsd19mdgO5KpH4I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lHMpaMQOybcHJvskWIUwUDb4pQC0vIhZmMfxeQP7rElulpL4VT2iHNO7PLY1bI8ba SyrH8tCR9jZdMjsYoKrzsBV4UVUB8X6z2rn+nO2JK4q0sn11zBTglnKWn4Tz11luCw UrwmdW1wtIlk2KkFrO4Pv0dgCc6awJNqVejVdr62G2vVBmxTIFu9s6rSqTej/sVT/G UY1S49SWe1OO98r2WDDkWkoxpSo1pjSOEdEkmg4J4ag6NP5irk4QzQjbfU/6PBeCl2 dyM9YrCzHeA7drc3OBxOze9qIXBwEIGNhBWl+n3m8ZsNpq1ctqU/jrEQ9sC6LUPB84 0TKoVdskOoLvg== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EEF601202F7; Sat, 3 Sep 2022 11:27:32 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: <83wnakmqw6.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Sep 2022 18:14:33 +0300") Message-ID: References: <83wnakmqw6.fsf@gnu.org> Date: Sat, 03 Sep 2022 11:27:31 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.067 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I have trouble seeing the actual change amongst unrelated whitespace > changes. Please show a patch with the minimal necessary change, > without all the reformatting. Emacs 28.2 is so close to a release > that playing whitespace and formatting games is not appropriate there. BTW, it might be worth checking with the Debian maintainers to make sure we fix the problem they bumped into while preparing the `emacs` package for 28.1 before we release 28.2. I think they also found serious problems when you use a build with native compilation enabled but where the `.el` files are missing (which is not the "recommended" situation in Debian, but is quite common). Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:29:16 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:29:17 +0000 Received: from localhost ([127.0.0.1]:42632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV5A-0008SU-IE for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:29:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV59-0008SI-6c for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:29:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUV53-0001tv-VQ; Sat, 03 Sep 2022 11:29:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RAHGEyqCkOXD8LQK23dlYKyH57tfJIE4rniyoypoyUM=; b=Cfb1qT5DEqPu G+AW4Mc4DqM8BYPojR5qIOnlteABmNIgw8d9U/xk94fqwDM8xTSsKxhRRUxFuTrA0zWy4mxyb4B6b VwadyPnp//mx7717qZWLFistGX8gCOCYpBfPMl4rBdEQfnIyoDfXnGnuCvybEju9v4r5vF7I6Zjwm TEHvdVIc66xpO9AaObDAytyBGBgdLmZi9X/PbEpzNLcCHl3AGttU78tuo1yMsXCYwojyB/saXW3I8 DyeMMzYP9jDUO7C+CSWl3Bg21q/BnMbFze5b+ir4bvtG9HaH2X1VIEOqk/n5RyTCi1oxXVbzroQGY p08Imk4OYImN7pQARLxcGg==; Received: from [87.69.77.57] (port=4180 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUV53-00051k-7h; Sat, 03 Sep 2022 11:29:09 -0400 Date: Sat, 03 Sep 2022 18:28:43 +0300 Message-Id: <83v8q4mq8k.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 03 Sep 2022 11:24:02 -0400) Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully References: <83wnakmqw6.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Cc: 57562@debbugs.gnu.org > Date: Sat, 03 Sep 2022 11:24:02 -0400 > > > I have trouble seeing the actual change amongst unrelated whitespace > > changes. Please show a patch with the minimal necessary change, > > without all the reformatting. Emacs 28.2 is so close to a release > > that playing whitespace and formatting games is not appropriate there. > > Hmm... looks like I sent the patch I had on `master`, sorry. > Here is the cleaner `emacs-28` version. So this means we will silently skip native-compilation, leaving an obscure message in a buffer, is that right? Maybe this is the best we can do for emacs-28 so close to the release, but for master wouldn't it be better to use delayed-warning instead? From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:33:39 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:33:39 +0000 Received: from localhost ([127.0.0.1]:42653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV9P-0000Ek-FG for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:33:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUV9N-0000EU-VN for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:33:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUV9I-0002sd-Nw; Sat, 03 Sep 2022 11:33:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WBahKddgaX0BpKsKwx+Af4/ULePbtcwC4ufyPuGek9U=; b=WT/0nFPASscG qXvmwewncI4LQwKjbkXEQKTiYBAHHNTaoUCZtwnHG62L6EYhzt++CJB7IZsFE2G6TL6wSC5jRi/IH 9sNEsdNGlcj2JZF5YhcfLkwvb+u7VZ6IqHfkAVSroEGudr/g3cL1+DD8jvV7TgRjLqXIY8BRQ8YxB Eeb6QvzYQq+5h2qcDtYHRxw3NPwlARMiKpqEIqVyzxDhdL5dTQoAVxPG/u9G8w+XK1vz42BGoybN9 iNg0XtebKjJeIiMkM7d30SBEBJeMOaZGcxRuHrW/oaBTML7q7fdq1OENrwsz1h7tNCN2UqUAxMaPo Oe9UDLHpBFpRvdeHmQb+eQ==; Received: from [87.69.77.57] (port=4449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUV9I-0002pt-0p; Sat, 03 Sep 2022 11:33:32 -0400 Date: Sat, 03 Sep 2022 18:33:06 +0300 Message-Id: <83tu5omq19.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 03 Sep 2022 11:27:31 -0400) Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully References: <83wnakmqw6.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Cc: 57562@debbugs.gnu.org > Date: Sat, 03 Sep 2022 11:27:31 -0400 > > > I have trouble seeing the actual change amongst unrelated whitespace > > changes. Please show a patch with the minimal necessary change, > > without all the reformatting. Emacs 28.2 is so close to a release > > that playing whitespace and formatting games is not appropriate there. > > BTW, it might be worth checking with the Debian maintainers to make sure > we fix the problem they bumped into while preparing the `emacs` package > for 28.1 before we release 28.2. > > I think they also found serious problems when you use a build with native > compilation enabled but where the `.el` files are missing (which is not > the "recommended" situation in Debian, but is quite common). It's too bad they don't report these issues back when they are discovered. Emacs 28.1 was released 5 months ago! From my POV, Emacs 28.2 is ready to be released in a matter of days, and waiting for Debian to report and then waiting more to resolve those issues is not my idea of fun. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:41:29 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:41:29 +0000 Received: from localhost ([127.0.0.1]:42667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUVGz-0000RY-4w for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:41:29 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40079) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUVGx-0000RM-C2 for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:41:27 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0437C100C84; Sat, 3 Sep 2022 11:41:22 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 40D851002CB; Sat, 3 Sep 2022 11:41:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662219676; bh=11ynMeF2HmHiGg0jU8f3LEXK+vOg0CYIWi1i/tRHwlA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V9KsPNDMQqRz1AqB8XHZgL7qMmKRz8EOSCCUjeSEWwDLCZIuT9MHJEcCLeFrcTXt2 0Wga/gquk1XA7/+PNQenLXfHOjHy7JIK6xV3dD7nJOyMr9H2+og1TkCPBsOD39eMzl D2npxn8zOe4gzjUg8ScNSkHALjtVgDuKBWSt8w5KGBvC/dnd0E1OBoYix1V7gEJcRc qC3KLOa4rd9nY1UvXnTpc8RxL+1yKrhWpt5Ay+JA2JgGg1ip80ww5D31y450SelHwW w7ZpkvUWennRjcNofrJ4JzqMdGlZjo+X1rsVv3URyZKATOxJlEsyONkrKInfDnngR0 ungcS2lm3cDOg== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D25BD12091D; Sat, 3 Sep 2022 11:41:15 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: <83v8q4mq8k.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Sep 2022 18:28:43 +0300") Message-ID: References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> Date: Sat, 03 Sep 2022 11:41:14 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.044 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> > I have trouble seeing the actual change amongst unrelated whitespace >> > changes. Please show a patch with the minimal necessary change, >> > without all the reformatting. Emacs 28.2 is so close to a release >> > that playing whitespace and formatting games is not appropriate there. >> Hmm... looks like I sent the patch I had on `master`, sorry. >> Here is the cleaner `emacs-28` version. > So this means we will silently skip native-compilation, leaving an > obscure message in a buffer, is that right? In *Messages*, I think, yes. I suspect this message will tend to be repeated later on, whenever a new `.elc` file is loaded. In a sense that's good (less chance that the message will be overlooked) but it also risks hiding other messages. > Maybe this is the best we can do for emacs-28 so close to the release, > but for master wouldn't it be better to use delayed-warning instead? Sounds about right, tho I suspect we might need to do even a bit more on `master`, like disabling lazy native compilation when we bump into this problem, to avoid repeating that same error message, or trying harder to find a writable directory. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 11:59:54 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 15:59:54 +0000 Received: from localhost ([127.0.0.1]:42686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUVYo-00034f-5F for submit@debbugs.gnu.org; Sat, 03 Sep 2022 11:59:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUVYm-00034T-2n for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 11:59:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUVYg-0008Ou-Rg; Sat, 03 Sep 2022 11:59:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aRHGZ08x/VjtrScMUOXSTYm5XwP548szXOwnMrzTMmU=; b=o4Xxs0V/oQtE HDY/tSMT08rTqyKIyncpLaBhNYEGibITc3fhyx03gFwVT/BaGWItKPtyz4JXlYbtjnRCMkGv39sI/ Ymq8fzoMGZzEyrd9R3JdM6s9p9Vkns8Q4PGX5xTDd90AU2QhrsKH2C2epVKLW5j5RoZkK1QoRUAFz jhUaRh4bo3a/8ks7UW1GJqcWHNVchpLHmKN3Pfhib+c5N+LZGQ45oI6HCdUSRacxtG3AYftW5Bz2R UNmloHpLShsymnJwCDf7EARVSbHa0cnWYSq7SxXa2r7mqyNtnVWAEodTPLimkNaaWF6wxnsZKmkxJ u6jDctcVRM5dTB+wMKtxRw==; Received: from [87.69.77.57] (port=2068 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUVYf-0006U2-VT; Sat, 03 Sep 2022 11:59:46 -0400 Date: Sat, 03 Sep 2022 18:59:19 +0300 Message-Id: <83r10smotk.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 03 Sep 2022 11:41:14 -0400) Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Cc: 57562@debbugs.gnu.org > Date: Sat, 03 Sep 2022 11:41:14 -0400 > > >> > I have trouble seeing the actual change amongst unrelated whitespace > >> > changes. Please show a patch with the minimal necessary change, > >> > without all the reformatting. Emacs 28.2 is so close to a release > >> > that playing whitespace and formatting games is not appropriate there. > >> Hmm... looks like I sent the patch I had on `master`, sorry. > >> Here is the cleaner `emacs-28` version. > > So this means we will silently skip native-compilation, leaving an > > obscure message in a buffer, is that right? > > In *Messages*, I think, yes. I guess that's enough for Emacs 28. (And I do wonder how come people come up with unwritable home directories.) > > Maybe this is the best we can do for emacs-28 so close to the release, > > but for master wouldn't it be better to use delayed-warning instead? > > Sounds about right, tho I suspect we might need to do even a bit more on > `master`, like disabling lazy native compilation when we bump into this > problem, to avoid repeating that same error message, or trying harder to > find a writable directory. I'm more bothered about letting the user know than about working around the problem. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 15:16:34 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 19:16:34 +0000 Received: from localhost ([127.0.0.1]:43057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUYd7-0008FR-Vc for submit@debbugs.gnu.org; Sat, 03 Sep 2022 15:16:34 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUYd5-0008FF-Vr for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 15:16:32 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 795EC100C84; Sat, 3 Sep 2022 15:16:26 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 121761002CB; Sat, 3 Sep 2022 15:16:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662232585; bh=/8KlWEydC+ttWbtPWyDgAq/ZW1oNX6GtnNaRlvf/MEY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=O/jhrKICApFxbYeorWzm6D6WuVb2BQI7rs6s4J1k6wyDDSmTDGANsGUCboTTWxVcx qQ8qGuGArHY+ND7jcLz6cgSh/2NTwfqEwSoY+8izI7NmH9Z+qrPSnxlksVJARUdZvq t9aTuFSL8B+D3mvk9/WRFtXvWZHDjiOrOfNSBT7EYh5gBbPQCGxurG6k3qAGX/23wu TFEBzi9oQr7qQQSF5UAHo2ScZrCG1Npt5Jg42jo8oM65UpkG6HIv8IibHsnNEN/Dtu 8eTGm9lIN2yXU0FVlCcQJRXdgDagnS0Fu4SeWX9VTpV5plvhdym3NtofRHNw0ZNOXJ 4Yc0k81Bn9BaQ== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DDDCA1202F7; Sat, 3 Sep 2022 15:16:24 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: <83r10smotk.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Sep 2022 18:59:19 +0300") Message-ID: References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> <83r10smotk.fsf@gnu.org> Date: Sat, 03 Sep 2022 15:16:23 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.043 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> From: Stefan Monnier >> Cc: 57562@debbugs.gnu.org >> Date: Sat, 03 Sep 2022 11:41:14 -0400 >> >> >> > I have trouble seeing the actual change amongst unrelated whitespace >> >> > changes. Please show a patch with the minimal necessary change, >> >> > without all the reformatting. Emacs 28.2 is so close to a release >> >> > that playing whitespace and formatting games is not appropriate there. >> >> Hmm... looks like I sent the patch I had on `master`, sorry. >> >> Here is the cleaner `emacs-28` version. >> > So this means we will silently skip native-compilation, leaving an >> > obscure message in a buffer, is that right? >> >> In *Messages*, I think, yes. > > 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`. >> > Maybe this is the best we can do for emacs-28 so close to the release, >> > but for master wouldn't it be better to use delayed-warning instead? >> >> Sounds about right, tho I suspect we might need to do even a bit more on >> `master`, like disabling lazy native compilation when we bump into this >> problem, to avoid repeating that same error message, or trying harder to >> find a writable directory. > > I'm more bothered about letting the user know than about working > around the problem. Good. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 15:17:18 2022 Received: (at 57562-done) by debbugs.gnu.org; 3 Sep 2022 19:17:18 +0000 Received: from localhost ([127.0.0.1]:43062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUYdq-0008Gs-Bh for submit@debbugs.gnu.org; Sat, 03 Sep 2022 15:17:18 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:8617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUYdp-0008Gh-AZ for 57562-done@debbugs.gnu.org; Sat, 03 Sep 2022 15:17:17 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0FE9680D15; Sat, 3 Sep 2022 15:17:12 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 78A2E804F6; Sat, 3 Sep 2022 15:17:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662232630; bh=LNNjHaU8t1CtI8h8jAswY5ER+GVn7sylyQiVSUk6388=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Q4nExejyR032lezrF6RctDI5WDk/zCRw0Hi9q5/kbF2Hn2zCFYlBVMc8ux1sphdAh 8rlpP9RCigTxIE8y/DJqPc6suW4pzQLaA7FHdTXw6aiGf6TW8Ul9J5vMPtAg+npKn3 DdAnGcuoPzPEZM8ebbUF43RIDvR73TDTfn3nh4rZ3TDR58Q5IEsiaMfeTfXjkLwdCL i+tjggatRDyhkATPq8MAa4KpfIofWuQ75upMmXXm0DbQYFkGQ15p6V4XVxl4H0UmjX wRFFbvNvfksdwe/gQWMgwCuhW9Xq1P1oPIV1NM5RW5+f806v+suV7VQVjCzs6BSoZH phYDQlnAupSjw== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 586E71204BA; Sat, 3 Sep 2022 15:17:10 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: (Stefan Monnier's message of "Sat, 03 Sep 2022 11:24:02 -0400") Message-ID: References: <83wnakmqw6.fsf@gnu.org> Date: Sat, 03 Sep 2022 15:17:08 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.069 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562-done Cc: 57562-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Here is the cleaner `emacs-28` version. Pushed, Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 15:28:53 2022 Received: (at 57562) by debbugs.gnu.org; 3 Sep 2022 19:28:53 +0000 Received: from localhost ([127.0.0.1]:43080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUYp3-000079-5l for submit@debbugs.gnu.org; Sat, 03 Sep 2022 15:28:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUYp1-00006t-QE for 57562@debbugs.gnu.org; Sat, 03 Sep 2022 15:28:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUYow-0003tq-Jp; Sat, 03 Sep 2022 15:28:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Am34ctO9f5fMYHvRJY3jg6iumKshWSS7jSH1m1mfk1Q=; b=A/SeL4pIOBJ1 EEO3gNCRJ1VHfUkeexarMbwbnl85OMoOy+yFCPL+S1lyVRZUx9/QNja1cpIaUTdhM261ZWkbTkas7 BXpd2qPdcjWeqeQ/307iUH1XBsPAzvW3eJKwcodBbQNZ2+rhqIZQpQG6ZEcLa0UBIssvrj/ZQgr8W LA/3BIUDqYCqI7op1vHas2cJ0+NKWfZfoREo7OGnSJgVB+OjXyXRqUyzxP3l8s+hGAOsWVP4w+eCa 3YfjQMlwJ2dYTTr4hhRM8WCjHfWjOuQFqDhm7FTwVxxKeBnJV2N/aj8lXxi2zc6bTjRLbnCYAJc2J GL28+Af377PnPxQ5asp94Q==; Received: from [87.69.77.57] (port=2969 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUYow-0005M6-2H; Sat, 03 Sep 2022 15:28:46 -0400 Date: Sat, 03 Sep 2022 22:28:20 +0300 Message-Id: <83czccmf57.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 03 Sep 2022 15:16:23 -0400) Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> <83r10smotk.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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?? From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 03 22:02:22 2022 Received: (at 57562) by debbugs.gnu.org; 4 Sep 2022 02:02:23 +0000 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 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 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) 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== 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) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: <83czccmf57.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Sep 2022 22:28:20 +0300") Message-ID: References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> <83r10smotk.fsf@gnu.org> <83czccmf57.fsf@gnu.org> Date: Sat, 03 Sep 2022 22:02:07 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.038 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 04 01:10:59 2022 Received: (at 57562) by debbugs.gnu.org; 4 Sep 2022 05:10:59 +0000 Received: from localhost ([127.0.0.1]:43269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUhuM-0006Z9-VY for submit@debbugs.gnu.org; Sun, 04 Sep 2022 01:10:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUhuK-0006Yw-S5 for 57562@debbugs.gnu.org; Sun, 04 Sep 2022 01:10:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUhuF-0002ZR-FZ; Sun, 04 Sep 2022 01:10:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1/KX7KyGHiJPf6GRappEiIGEXq9YWk9/21lYgpLlY38=; b=ExZSYmmp0fjt /x/DgiXSAnn0NekJMjkSR560E4gj6xiACrdFQmbnl7AsOE1snd0zXCP9wYIbuon6TWX9oT7j82ViR /hDH9Ta8WY0s2aL/oSHBKHHwY3YDkWwfAZFtNErRtAVedUHP2MRMB8XOBi6IpDY2X6NENuOZTx3TS WhF2kLQepLmG7YGQspp5QwR6L7MfTRkZ7uiYc9aDxkk3gdjqCoEtxofUff1UTSeYZ9/09NA4Dj5iD lOKUn4E0/Dk1tU1IbTg+VR9zPJjIsvaPvUhzL2XzgAaEG5zMGtrLliygQ521y11f3yTFv4vgWnYxl 22TRElOnbB5PLgNI04EnRQ==; Received: from [87.69.77.57] (port=2541 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUhuE-0003Pu-EQ; Sun, 04 Sep 2022 01:10:51 -0400 Date: Sun, 04 Sep 2022 08:10:26 +0300 Message-Id: <838rmzn2rh.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 03 Sep 2022 22:02:07 -0400) Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> <83r10smotk.fsf@gnu.org> <83czccmf57.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Cc: 57562@debbugs.gnu.org > Date: Sat, 03 Sep 2022 22:02:07 -0400 > > > 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. Isn't the home directory created in a way that all its subdirectories inherit the access rights by default? Anyway, what you describe is a bug in the distro, and should ideally be fixed there. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 04 01:38:58 2022 Received: (at 57562) by debbugs.gnu.org; 4 Sep 2022 05:38:58 +0000 Received: from localhost ([127.0.0.1]:43297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUiLS-0007Lu-Bx for submit@debbugs.gnu.org; Sun, 04 Sep 2022 01:38:58 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUiLQ-0007Li-Rj for 57562@debbugs.gnu.org; Sun, 04 Sep 2022 01:38:57 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7B755440326; Sun, 4 Sep 2022 01:38:51 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 313B94402A8; Sun, 4 Sep 2022 01:38:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1662269930; bh=36Yo/6GjcYdHWEwo9kqaxQKod3eg8V+YY5MNTD20dsU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Lp4mUmsLz8nVj8sGxlp6/nTCMjGDpQvA/N7XhkR5/zPaoP1aUxiqy14Bz9dhM+FHI mN6qIJ+AriUIjcgdyREWVPdCnMz8JlSAMsTudi6C/JYnqCuFmFd+3Y7X+Cz/4Ui4Lc CqQi1nl8ThiGgC9icp8jPwfFq7jTthh532uT58eeuEZvESndnOZfqi8NR2Nb3VGR0J r2Vs+FRr7RFOYMGA36aBRCBD7kFQzBdwybAk1VHuYIEY/jnEGKO3KTF75lDpvwjIlP B29ZI5nbu40JjVgofzebi1EY4iz80NR/XxL5L1cexAlO0CLj99tN8nVgi+0RpG8AVv SU7KWGIrFrI9w== Received: from pastel (unknown [157.52.9.190]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EF9B0120909; Sun, 4 Sep 2022 01:38:49 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#57562: [PATCH] * lisp/emacs-lisp/comp.el (comp-run-async-workers): Fail more gracefully In-Reply-To: <838rmzn2rh.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Sep 2022 08:10:26 +0300") Message-ID: References: <83wnakmqw6.fsf@gnu.org> <83v8q4mq8k.fsf@gnu.org> <83r10smotk.fsf@gnu.org> <83czccmf57.fsf@gnu.org> <838rmzn2rh.fsf@gnu.org> Date: Sun, 04 Sep 2022 01:38:48 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.035 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57562 Cc: 57562@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> > 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. > > Isn't the home directory created in a way that all its subdirectories > inherit the access rights by default? No, and the problem is ownership for which there's nothing equivalent the `setgid` bit on directories. Here's the scenario again: - User FOO has been using his home directory for a while under Debian, using Emacs-27. - /home/FOO/.emacs.d is owned by user A. - /home/FOO/.emacs.d/eln-cache does not exist. - User FOO does % su # apt upgrade ... this installs Emacs-28, yay! ... # emacs ...babla... - when Emacs is started, HOME=/root and USER=FOO - Since the new flashy Emacs-28 was built with native-compilation it tries to compile some files. - Decides to store the files in `~$USER/.emacs.d/eln-cache`, hence in /home/FOO/.emacs.d/eln-cache. - Hence it creates /home/FOO/.emacs.d/eln-cache, but we're running as root, so this dir will be owned by root :-( > Anyway, what you describe is a bug in the distro, and should ideally > be fixed there. We can point fingers, but the result is still the same. Personally, I think part of the problem is that we use ~$USER/ rather than $HOME (but other people consider it to be a feature rather than a bug). Other people will claim that the problem is the use of `su` rather than `su -`. I'm not sure we can really solve all those problems. Maybe we should try and refrain from creating dirs and files in `~/.emacs.d` when we don't have the same uid, but it seems difficult to do it in a way that doesn't introduce worse problems than it's solving. Stefan From unknown Sat Aug 16 16:01:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Oct 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator