From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Path for system-wide .eln files (was: Native compilation: the bird-eye view) Date: Sun, 30 Aug 2020 12:18:39 +0200 Message-ID: References: <83o8qocd32.fsf@gnu.org> <83blmndbpo.fsf@gnu.org> <838shrdb1c.fsf@gnu.org> <837dxbd93b.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="35029"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Eli Zaretskii , Paul Eggert , Andrea Corallo To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 30 12:19:20 2020 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 1kCKQi-00091T-L7 for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Aug 2020 12:19:20 +0200 Original-Received: from localhost ([::1]:49576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCKQh-0004fJ-FP for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Aug 2020 06:19:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCKQF-0004Fb-6n for emacs-devel@gnu.org; Sun, 30 Aug 2020 06:18:51 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:41922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCKQB-0006Ca-Qo; Sun, 30 Aug 2020 06:18:50 -0400 In-Reply-To: (Andrea Corallo via's message of "Sun, 23 Aug 2020 16:31:46 +0000") Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/30 06:18:45 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 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:254408 Archived-At: Heading over from https://github.com/gentoo/gentoo/pull/16962 to here, as suggested by Andrea: System-wide .eln files are currently installed in: /usr/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/eln-cache/ (I am using /usr here and in the following for better readability, replace by ${exec_prefix} as appropriate.) I see two issues with this: - According to [1] the directory contains ".eln files compiled during the build process." Therefore it is not a cache but a normal install directory, and "eln-cache" is a misleading name. (Or, from a wider perspective, a system-wide cache can never be in /usr but should be in /var/cache. And it wouldn't be populated at install time but at run time.) - The FHS [2] says that /usr/libexec is intended for "binaries run by other programs". Do .eln files qualify as executable binaries? IIUC they are loaded by dlopen, so they're pretty much libraries or plugins which should go under /usr/lib{,64} instead. [1] https://akrl.sdf.org/gccemacs.html#org01229a9 [2] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html