From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Wed, 09 Aug 2023 09:22:35 -0400 Message-ID: References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> <83o7l7327u.fsf@gnu.org> <87bkh731f1.fsf@gmail.com> <83h6qz2zaa.fsf@gnu.org> <877crv2yaw.fsf@gmail.com> <83cz1n2xjp.fsf@gnu.org> <83leg0qb8n.fsf@gnu.org> <87fs67wsto.fsf@gmail.com> <83r0prprki.fsf@gnu.org> <87bkgvwe05.fsf@gmail.com> <834jmmq2ez.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17540"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: No Wayman , 64226@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 09 15:23:12 2023 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 1qTj9c-0004Ie-3d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Aug 2023 15:23:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTj9U-0004fI-CL; Wed, 09 Aug 2023 09:23:04 -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 1qTj9S-0004et-Dn for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 09:23:02 -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 1qTj9S-0007Gx-5O for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 09:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qTj9R-0007VN-W5 for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2023 09:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2023 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64226 X-GNU-PR-Package: emacs Original-Received: via spool by 64226-submit@debbugs.gnu.org id=B64226.169158736628826 (code B ref 64226); Wed, 09 Aug 2023 13:23:01 +0000 Original-Received: (at 64226) by debbugs.gnu.org; 9 Aug 2023 13:22:46 +0000 Original-Received: from localhost ([127.0.0.1]:38542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTj9C-0007Up-Dh for submit@debbugs.gnu.org; Wed, 09 Aug 2023 09:22:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTj9B-0007Ub-8O for 64226@debbugs.gnu.org; Wed, 09 Aug 2023 09:22:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTj94-0007Cu-8q; Wed, 09 Aug 2023 09:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fkTnWsmJuZedhL4+YHU8Ihk78JVdpqViFrw/BfqeDQI=; b=XSLRk8UwMVjfl5YUNjIT MhMDdT9h7P9fo1sfemO6LskdGKb4HFSBmCdeUPtcosv+zzTNM2XR4EmM2Hpz6MuMZ8SECswt3CqDc jc3iFZaLbrntQ/OZw7nwSgP+bmfo8i9n/FmYtwZ0lWDx8aDMZhVBNOkmKfkR2s8TNA7ETy5zNG4ns qY7tqFlL3rc/GXkxyGZ+HHrMTeu9hNABMBtZ9BDTdDM7GkHViAy+BzclV4tLK7lRDm6RwVhkwpIu5 Cr/8T0aIbkrVsm02qzXjTYpo6uKjxTLBo+HL4Iidgqe+C4Thd+bCd9xj60p0l8gRyBl3pdw/uOFTt Tb6hDLDKt/Z0eA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qTj91-00082G-BW; Wed, 09 Aug 2023 09:22:35 -0400 In-Reply-To: (Andrea Corallo's message of "Mon, 03 Jul 2023 04:50:53 -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:267034 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: No Wayman >>> Cc: acorallo@gnu.org, 64226@debbugs.gnu.org >>> Date: Sat, 01 Jul 2023 15:14:16 -0400 >>> >>> >>> Eli Zaretskii writes: >>> >>> > perhaps you could describe how to reproduce starting from "emacs >>> > -Q" (and loading any packages or features you need for the minimal >>> > reproduction recipe). The way you were showing the problem until >>> > now obviously depends on your local setup, which is impossible to >>> > reproduce without knowing the details. >>> >>> The instructions I gave here: >>> >>> https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-06/msg01224.html >>> >>> reproduce the error on my end from emacs -Q with a minimal file. >>> To be crystal clear: >>> >>> 1. Save the following file to $HOME/test.el (or any path where the >>> user has write permissions): >>> >>> --8<---------------cut here---------------start------------->8--- >>> ;; -*- lexical-binding: t; -*- >>> (defun +test () (message "PASS")) >>> --8<---------------cut here---------------end--------------->8--- >>> >>> 2. emacs -Q $HOME/test.el >>> 3. M-x emacs-lisp-native-compile-compile-and-load >>> 4. Error is printed to message buffer. >> >> Thanks. I think Andrea couldn't reproduce this, but maybe he could >> try again. (The error will only happen if the directory >> usr/lib/emacs/30.0.50/native-lisp is not writable by your user, so >> ensuring it's not writable should be part of the recipe.) > > Just retried and can finally reproduce the error. Will look at. > > Thanks > > Andrea Okay I pushed b93107c20b2 to fix this. I tested as best as I could but tweaking these dynamic variables is always tricky. No Wayman if you could verify everything works for you would be great. Thanks Andrea