From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Wed, 05 Oct 2022 19:29:45 +0000 Message-ID: <92d8fa67a9a90c046b0c@heytings.org> References: <83sfk6ahty.fsf@gnu.org> <87v8p1aiof.fsf@melete.silentflame.com> <87v8p01lbu.fsf@yahoo.com> <83lepwvzxq.fsf@gnu.org> <871qroyog9.fsf@yahoo.com> <837d1gvt35.fsf@gnu.org> <87sfk3yl10.fsf@yahoo.com> <87o7uqtlsl.fsf@yahoo.com> <878rlu48kq.fsf@gnus.org> <83r0zmrzcx.fsf@gnu.org> <83lepuruoo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23110"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomas@tuxteam.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 05 21:32:14 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 1ogA7q-0005qi-Jx for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Oct 2022 21:32:14 +0200 Original-Received: from localhost ([::1]:51160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogA7p-0004kt-3p for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Oct 2022 15:32:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogA5X-0002rI-QE for emacs-devel@gnu.org; Wed, 05 Oct 2022 15:29:52 -0400 Original-Received: from heytings.org ([95.142.160.155]:41980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogA5V-0006q7-UP; Wed, 05 Oct 2022 15:29:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1664998186; bh=988zq3bbTkN7xOvwXI8Dah+m/hFafjo+bbUbeKUEF5g=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=eptWp4AYZLsc+8OkWRlT4cZNqo0VkIEOchlAyj/nTHC6bQMq7kfRaIZnq3xUZc6Ih 6PoDgeEoCiSeOXBQw7AAyTgtzAqlvEROwPqeOrLTd0YPxqvuJhrpW59Nqackpn/J9+ PzMkdhuBXhEoZmQrf8bemveCQ67AppFzEu5nEHlIx3/rv6N25jyg+kimNjMTWn3r6j QQzQJHdw1Vy9cej883jfqSmCBUqOxMcdmFXBqorVii3NThTVswvjJPUQImZLvkIT3O CkURh7Vtp5ZSk1BeXa+k2RtBFU5JwabXQC1oYLmQcWzjXp/8xodU+8Zci4PfLEn0G5 jxmJuXLcC4Cjg== In-Reply-To: <83lepuruoo.fsf@gnu.org> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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" Xref: news.gmane.io gmane.emacs.devel:297008 Archived-At: > > I think the Debian case is not relevant, because they provide all the > *.eln files with the package you install (or so I understand). > I'm not 100% sure what they will do (the version of Emacs distributed by Emacs is at the moment still 27.1), but my guess is that this is not what they will do. There are, in fact, two cases: 1. When a user does "apt install emacs", this actually installs (by default) the "emacs-gtk" package, which contains only the "emacs" binary, and triggers the installation of two other packages: "emacs-common", which contains the precompiled elc files (and the files in etc), and "emacs-bin-common", which contains the emacsclient, etags, ctags and ebrowse binaries. I would guess that in this case, when the user chooses to install an emacs with native compilation enabled (say "emacs-gtk-native"), a third package will be installed, say "emacs-common-native", containing the precompiled eln files. 2. When a user does "apt install elpa-magit" (for example), the package only contains el files. These files are compiled to elc files during installation (and stored in a shared directory, namely /usr/share/emacs/site-lisp). I would guess that, when the installed emacs binary is one with native compilation enabled, these el files will be compiled to eln files during installation, and stored in a shared directory, too.