From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43532: [feature/native-comp] *.eln file name hashing algorithm doesn't seem to play nice with NATIVE_FULL_AOT and self-contained Emacs.app builds for macOS Date: Mon, 21 Sep 2020 07:53:41 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17822"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 43532@debbugs.gnu.org To: Jim Myhrberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 09:54:45 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kKGeq-0004VC-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 09:54:44 +0200 Original-Received: from localhost ([::1]:44990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKGep-0002sQ-TM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 03:54:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKGeB-0002r1-Uf for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 03:54:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKGeA-0005LU-9u for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 03:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKGeA-0000cW-3U for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 03:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2020 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43532 X-GNU-PR-Package: emacs Original-Received: via spool by 43532-submit@debbugs.gnu.org id=B43532.16006748262362 (code B ref 43532); Mon, 21 Sep 2020 07:54:02 +0000 Original-Received: (at 43532) by debbugs.gnu.org; 21 Sep 2020 07:53:46 +0000 Original-Received: from localhost ([127.0.0.1]:53378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKGdu-0000c2-I0 for submit@debbugs.gnu.org; Mon, 21 Sep 2020 03:53:46 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:52206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKGdq-0000bq-HG for 43532@debbugs.gnu.org; Mon, 21 Sep 2020 03:53:45 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 08L7rfvn000519; Mon, 21 Sep 2020 07:53:41 GMT In-Reply-To: (Jim Myhrberg's message of "Sun, 20 Sep 2020 14:02:44 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188557 Archived-At: Jim Myhrberg writes: > Hi, > > TL;DR: > > If I've understood correctly, the filename of the cached *.eln files > includes a hash based on the absolute file path and content of the > source *.el/*.el.gz file. On macOS when producing a self-contained > Emacs.app bundle this means that the cached *.eln files bundled into > the app cannot be used, as their absolute path won't match what they > were during build time. And app bundles on macOS can be placed and > launched from anywhere on disk. Hi Jim, I think we should be able to improve the filename hashing mechanism on MacOS to deal with that. Perhaps something like removing */Emacs.app/Contents/MacOS/ from the input of it. Could you post the value of PATH_DUMPLOADSEARCH and PATH_LOADSEARCH macros? You should find them defined in epaths.h in your build directory. Thanks Andrea