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.devel Subject: Re: Finalizing 'inhibit-automatic-native-compilation' Date: Sun, 29 Jan 2023 08:25:35 +0200 Message-ID: <83r0vd97s0.fsf@gnu.org> References: <837cx8cey0.fsf@gnu.org> <83357vauh5.fsf@gnu.org> <837cx6a8me.fsf@gnu.org> <83357ua6ja.fsf@gnu.org> <83zga28ra8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17324"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, akrl@sdf.org, larsi@gnus.org, rlb@defaultvalue.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 29 07:26:37 2023 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 1pM199-0004JH-GG for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Jan 2023 07:26:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pM18U-0000PY-NK; Sun, 29 Jan 2023 01:25:54 -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 1pM18S-0000PP-Ut for emacs-devel@gnu.org; Sun, 29 Jan 2023 01:25:53 -0500 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 1pM18R-000608-64; Sun, 29 Jan 2023 01:25:51 -0500 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=WCflvBTisGOpZ/ipFFi4sVpw3Tq6kb982xySEFqGL8E=; b=IZsOTvzNupfE cIAmh7XQkocf8gsperdUgA1w766sWcIQPptXQuH0AWXLed/qw7anlobmmKqzqmSBIZ1Aa6o5vU/fW WDUBv4jSDApAbXTz7Lwg+USbk5H/IOXLaiNF9bL3LylWSO+3rUnz2z4r9HXSjFD+sUe9GaZi6H8WZ C3ACeBrULvcTTftPyUTeGvSDUgh+Ho3BicC3MdZYLD0iADcUNZAZwMz8rf81dGiATbtnGasMgergb +dvgdqGZC9Gj7ZSfzk4mYvXRD2ebK1jEJ4ORxQ5+4zAybEfm0iqcLO++87oMxA3le4znnxu5WDpDO h3qpNcnkFHUa3n19k9KEvA==; Original-Received: from [87.69.77.57] (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 1pM18L-0004go-Be; Sun, 29 Jan 2023 01:25:50 -0500 In-Reply-To: (message from Stefan Monnier on Sat, 28 Jan 2023 17:24:55 -0500) 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:302739 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org, akrl@sdf.org, larsi@gnus.org, rlb@defaultvalue.org > Date: Sat, 28 Jan 2023 17:24:55 -0500 > > >> >> And we do have a solution: pregenerate the trampolines. > >> > So you are saying that the "prevent writing trampolines" part of > >> > inhibit-automatic-native-compilation is not needed? > >> > >> I'm saying it's only needed temporarily, until we fix our compilation > >> system so trampolines are pregenerated. > > > > Can we decide that "temporarily" we will write trampolines even if > > native-compilation was disabled, i.e. go back to what we had in Emacs > > 28? > > I don't understand the question: the context of what I'm proposing is > when there is no writable eln-cache in $HOME, and I'm proposing to solve > the problem by writing them to `temporary-file-directory`. IMO, the "no writable eln-cache" scenario should be solved by tweaking native-comp-eln-load-path to include a writable directory. That writable directory could be temporary-file-directory, or it could be anything else, but it should be specified by the caller/user, not pulled out of our hat behind the scenes.