From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.devel Subject: Re: Possibly defaulting native-compile-target-directory to XDG_CACHE_HOME/... Date: Sat, 17 Dec 2022 14:37:18 -0600 Message-ID: <871qoxg41t.fsf@trouble.defaultvalue.org> References: <871qozyj6i.fsf@trouble.defaultvalue.org> <83y1r6grl1.fsf@gnu.org> <875yeaexk5.fsf@trouble.defaultvalue.org> <838rj5hppe.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="4502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 17 21:37:55 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p6dwR-00010z-2h for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Dec 2022 21:37:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6dvw-0000ij-9B; Sat, 17 Dec 2022 15:37:24 -0500 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 1p6dvu-0000iZ-Ll for emacs-devel@gnu.org; Sat, 17 Dec 2022 15:37:22 -0500 Original-Received: from defaultvalue.org ([45.33.119.55]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6dvs-0000KK-Ei; Sat, 17 Dec 2022 15:37:22 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 44D2C203DB; Sat, 17 Dec 2022 14:37:19 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id DE65C14E09D; Sat, 17 Dec 2022 14:37:18 -0600 (CST) In-Reply-To: <838rj5hppe.fsf@gnu.org> Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@defaultvalue.org; helo=defaultvalue.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301587 Archived-At: Eli Zaretskii writes: > I don't see how this follows from what I said. There should be a > writable directory, but it doesn't have to be under HOME. You can > change the value of native-comp-eln-load-path to have there any > directories you like. We've been through this during the previous > discussion, I believe. I may not have understood where all of that ended up. Given that there's no way to establish the location via an envt var. Are you saying that anyone who needs to run emacs with an unwritable home would need to add one or more command line arguments to every invocation (i.e. we'd need to do that across all of the relevant debian testing scripts, etc., some of which may be embedded in upstream frameworks -- I guess we might also just shadow emacs in the path with a wrapper script...)? ...and if any of the relevant command line settings don't happen early enough, then that'd be considered a bug that we'd want to report and see about fixing? Oh, and I can finally reproduce that buttercup crash with an upstream tree. This should do it: # Build and install emacs-28.2 as root or "user1" # As "user2" (not root or user1) git clone https://github.com/jorgenschaefer/emacs-buttercup.git cd emacs-buttercup export HOME=/nope rm -f *.elc emacs -Q -batch -L . -f batch-byte-compile buttercup.el buttercup-compat.el emacs -Q -batch -L . -l buttercup -f buttercup-run-discover The key appears to be that the install must be as some other user. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4