From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Myhrberg 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 10:19:06 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43532@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 11:20:10 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 1kKHzV-0000fV-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 11:20:09 +0200 Original-Received: from localhost ([::1]:60982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKHzU-0001G1-HA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 05:20:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKHzO-0001Fu-9X for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 05:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41927) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKHzO-0000Cl-0h for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 05:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKHzN-0002fp-Sq for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 05:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Myhrberg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2020 09:20:01 +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.160067996510224 (code B ref 43532); Mon, 21 Sep 2020 09:20:01 +0000 Original-Received: (at 43532) by debbugs.gnu.org; 21 Sep 2020 09:19:25 +0000 Original-Received: from localhost ([127.0.0.1]:53471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKHym-0002eq-TF for submit@debbugs.gnu.org; Mon, 21 Sep 2020 05:19:25 -0400 Original-Received: from mail-ej1-f43.google.com ([209.85.218.43]:35272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKHyk-0002eY-Sr for 43532@debbugs.gnu.org; Mon, 21 Sep 2020 05:19:23 -0400 Original-Received: by mail-ej1-f43.google.com with SMTP id u21so16708500eja.2 for <43532@debbugs.gnu.org>; Mon, 21 Sep 2020 02:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jimeh-me.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=55V/A2fGM4rRrkYEZZLiEjfyCG8N1SrYrpdDJ7ShBO4=; b=mfILt5ZGEN27gjAhwPvyhTHKpQzrZi1pe3usD8cYJkDC+cJ77ZN1cquAL0YAM+QBh5 taGdcGQ7tZrvZl6kOmQOeKHG2jA24rGCa4yislx7iCRbIWMdepaxqTqJCKB6wuLmgwKV jI8r5jaa+Ae8KnSbgl0LKBVSTtNwZjNhTk30/ImOjmWqRdlyjG00aOCqMsfeI1SZqlbY EiRgWUfm4Rnw45C0F0rn+3s1/KtCiBQAdntYggJt1YI3mt/uewjLInV9kL+2PpzWZS7S wd55UcAk8G0PXQJO/bQEsut3zVX8MzgDAg4dUCk9d8PxeERG3CQjvRYzg4RZdLmxBRKM g3wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=55V/A2fGM4rRrkYEZZLiEjfyCG8N1SrYrpdDJ7ShBO4=; b=eoar37Jod67UWZ6i7Sm3HSUUOoibMPBbXDzF9bUVC35E7Qif0D4ygQQwYW5ys/aslv Q/Ty+CXx70ps/KPMVcishAS8iHvva5ubEpyi3SWU0xyAUs8VOSg1loX59JEUpnwt/msY BAzWHhwtWA2HUqbxqnmiCIQwzIZ2xs97KX0dyrhawM7DCnhtzfDsYL0f7go5ENL2cRD3 oBaBPTSWXCmsRMTFSNwKFHOr01nm/a+UsepfA5kjL2HyVtsjAJwESa40sR02ZXjd+hDq 7jlppCMtVH56a+g7Jl0dhUBalYMsufi7BV+qPRQLXgwj/bMjju3r8fob8322dK+xOd1K EQIw== X-Gm-Message-State: AOAM532c98Zlj8nWL46vXab2eFbPHBq91SwA7Tq7bbDjLmdRM7gzC2yy jxdrkhnRTESU2iz2GEvJT2bh+EvnYtkvPYhGh5bZdA== X-Google-Smtp-Source: ABdhPJxjIH9lYv3HDgszELcE6dSDObRAWo4HAxvgyrJIoeBLmog79Wulw5q1Sus/3+G9uJwe5eAyJ+jFJ7yKluXPVgo= X-Received: by 2002:a17:906:8543:: with SMTP id h3mr47667316ejy.258.1600679956771; Mon, 21 Sep 2020 02:19:16 -0700 (PDT) In-Reply-To: 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:188560 Archived-At: Here they are: #define PATH_LOADSEARCH "/Users/jimeh/Projects/build-emacs-for-macos/sources/emacs-mirror-emacs-5b41545/nextstep/Emacs.app/Contents/Resources/lisp" #define PATH_DUMPLOADSEARCH "/Users/jimeh/Projects/build-emacs-for-macos/sources/emacs-mirror-emacs-5b41545/lisp" "/Users/jimeh/Projects/build-emacs-for-macos/sources/emacs-mirror-emacs-5b41545" is obviously my local source/build directory that my build script extracts the source tarball to and builds from. On Mon, Sep 21, 2020 at 8:53 AM Andrea Corallo wrote: > > 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