From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Sun, 02 Oct 2022 21:08:15 +0200 Message-ID: <877d1i9h7k.fsf@gnus.org> References: <87bkqxf1ij.fsf@tethera.net> <8335c9dkyf.fsf@gnu.org> <83tu4odez7.fsf@gnu.org> <871qrrpkgx.fsf@trouble.defaultvalue.org> <834jwnbi6c.fsf@gnu.org> <87mtafnun5.fsf@trouble.defaultvalue.org> <83sfk6ahty.fsf@gnu.org> <8735c6b0wo.fsf@gnus.org> <87y1ty9lha.fsf@gnus.org> <87lepym6ok.fsf@trouble.defaultvalue.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="19289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , Eli Zaretskii , david@tethera.net, emacs-devel@gnu.org, akrl@sdf.org To: Rob Browning Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 02 21:09:42 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 1of4LN-0004no-Aa for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 21:09:41 +0200 Original-Received: from localhost ([::1]:53116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of4LM-0006Hm-3e for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 15:09:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of4KB-0005a1-4S for emacs-devel@gnu.org; Sun, 02 Oct 2022 15:08:27 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:43028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of4K9-0003gI-Mn; Sun, 02 Oct 2022 15:08:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FoBDcP564NIjcsTAlMXM0c+J4idKlSL1CRlkYnvoITw=; b=N3LaqcAIu51BMZAZ4HskhviR/F zNoqNGLzB2/Zjowgba1DhAffA8ibP2fHWXfqYftsz2eq7Xge8Ufu7BmUkIGOIW8jVZLNy8p0RHkhd rugWsDiTU9Hu3zBIvljXGZD1JxFapncs2dDCUJgTnV0+xFOmy+f099OwsbLVNz+1ge0M=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1of4Jz-0001cY-Uj; Sun, 02 Oct 2022 21:08:18 +0200 In-Reply-To: <87lepym6ok.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Sun, 02 Oct 2022 13:17:15 -0500") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEX8/PbX08+zpqOc d4pRPTmTbVakVV7MIzT///9t+OQiAAAAAWJLR0QIht6VegAAAAd0SU1FB+YKAhMBA3IC/8cAAAGb SURBVDjLnZNNc8IgEIYh6j3E9J7Pe0i1vVoFc1UnsdfOOIVrZ5qBv18gQMXRQ/t6YLOP+wEsANxX /MAPDUDh568yZyxvwjbOaEMQNVCni0F6VEVjCH1EtsyLos3AukaoUCZKcgNmqC2W+DkDzbosy/xY 5O3RgHkDkhgl8axJUBLFsEjQ1F3lagEY7u3RJv+j+M8ABSpWNHd9Dr8iRlsLqPf3xn+yIbAPQobh VDYTqW5yYXsmoKJDoMa1dQs2HhBd19N+60Dd636oL+KHoNbflHhwuAbUAhVJdiFQqZgwpbDdH9JA lXnnUoqrdue4nrIr/0QsSA8T4GMnBZfMggTM33pd9zwSIpmUqo4BKV5QovZwlpKQPZdC8k8DZkR3 TgeVfiQd08nkhz0PJcHVT466ugdQXU4n2YtyfAcg0hF7dtGtanCR3AJKO7KXVkzldKl2mIyCWVC+ ciG+7PSA1TacID9oEfUmDGewcneGTtPqnikk9txmdl24DOkuHOAnn5pQfA1S/7+UYGXrp6wXUPlr B+HjTw/gvqIYPNIPyD+Xp2IrPxsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMTAtMDJUMTk6MDE6 MDMrMDA6MDAEuytqAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTEwLTAyVDE5OjAxOjAzKzAwOjAw deaT1gAAAABJRU5ErkJggg== X-Now-Playing: Laurie Anderson's _Mister Heartbreak_: "Sharkey's Day" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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" Xref: news.gmane.io gmane.emacs.devel:296694 Archived-At: Rob Browning writes: > At the top level, we wanted a way to avoid writing to HOME during > packaging, testing, installs (in this case, it's the .eln files, now > that we've enabled native compilation). > > That could be handled by some way to turn off native compilation, or by > some way to comprehensively divert those writes to another location > (e.g. temp dir). Either is fine, though we'd originally thought the > former might make things a bit easier. Yeah, I think the former is both easier to implement and easier for users. So I'm thinking of introducing a user option like `native-compile-inhibit', which will make Emacs skip the native-comp machinery when loading .elc files. It will default to nil, of course, but perhaps it would be convenient to make it depend on an environment variable like "NATIVE_COMPILE_INHIBIT"? Then users (and the Debian build system) could say "NATIVE_COMPILE_INHIBIT=true emacs ..." when doing testing etc? Would that fit your use case? (This will be for Emacs 29, but you can cherry-pick this for Debian, if that's something you want to do, and it will probably not affect trampolines, since those are necessary for redefining functions.) > Whether or not we can (or should) try to build system-level (root owned) > .eln files along with the .elc files during package installs (as we > already do for .elc files) is a separate question, and I think the more > controversial one? Not controversial from where I'm, er, sitting -- sounds both useful and convenient to me.