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#49270: 28.0.50: native-comp: macOS self-contained .app does not use bundled *.eln files Date: Tue, 29 Jun 2021 12:51:48 +0100 Message-ID: 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="29668"; mail-complaints-to="usenet@ciao.gmane.io" To: 49270@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 29 13:53:15 2021 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 1lyCIl-0007YR-4T for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 13:53:15 +0200 Original-Received: from localhost ([::1]:47434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyCIk-0004sq-1x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 07:53:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyCIY-0004qk-2x for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 07:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyCIX-00073n-Rq for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 07:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyCIX-0002yu-NV for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 07:53: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: Tue, 29 Jun 2021 11:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49270 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162496753111399 (code B ref -1); Tue, 29 Jun 2021 11:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jun 2021 11:52:11 +0000 Original-Received: from localhost ([127.0.0.1]:53765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyCHj-0002xn-0x for submit@debbugs.gnu.org; Tue, 29 Jun 2021 07:52:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyCHg-0002xc-NX for submit@debbugs.gnu.org; Tue, 29 Jun 2021 07:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyCHg-0003bW-4d for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 07:52:08 -0400 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:46867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyCHc-0006av-0d for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 07:52:07 -0400 Original-Received: by mail-oi1-x22e.google.com with SMTP id a133so23729433oib.13 for ; Tue, 29 Jun 2021 04:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jimeh.me; s=google; h=mime-version:from:date:message-id:subject:to; bh=2rCQZFun2d8CHc14wGLQ4X0gQGKgbbkDz9W9+iOcXcs=; b=OTt9vmtYN3pmJBBeSh6EN6KII5bZ5gmBR5StCZKxhVx+Ta8N3WbExLW4k2vlh2Z1jW FoEyxI60gprr9Zmrur6bbjzpz9YDmDS2DXVByLQnq9meaAZUbpGeubS5E4/oYf2gxzpw iob++r1POoVN+tvdBBe6yR0ejvrwJFVTfHHniq7iU8yUz30uFQ5zRU4MOktE55pZSICA 4e6wVp0LcCCgqte0bguguwVbzqYDWOOfsmNhPrYRAol1V/aNT82XKFSo3bC+Y1GMpsGR ws6XXy/uoFdOBjLSlum4bBjGFUwB1QQKF83sXPLUKoq9rtNKDh4AX1nPx3cVjX+oiryN d3Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2rCQZFun2d8CHc14wGLQ4X0gQGKgbbkDz9W9+iOcXcs=; b=FNFd9uWCUopCMytg14fuQKRXn9TRS/WgNMkOjciPXOh6qg+hZf4HWir5AIovW+DAVh IKdJt39LyLER+KG/qVz7TkMaQaSCwtldBnA4fCBtXqEoXYcSXl8tHZaGDUuAeSsPOfy9 Gs/bA3h7yrQWUwmimhTZus3Fx7RVxHiKixxrAZbO57TfMpY8L4J39ZyMtik43Xa6MA+N q1Lt/N4pPJSAxInqUUbey5Hy5vTbbw/D3VM+jWpHnWJ213vxyGH2QVPeQeT+myP8xtQY GtsM8LrKUvqACv2BHGMR2pxhEP0Y7yQZ+GARyHYEIg1iKvmwQIXXoViK7co5y+LHm/NB ZX3w== X-Gm-Message-State: AOAM532TXShRF5Lm7pBYwtYUW1K5Nklo89jV/fnM7/hjYt+tXecvOxrp yC5jkn/z4un5ntajROkZaU3ZPIl8dCvl8iu3yFo1L0RoXvwnub/h/I8= X-Google-Smtp-Source: ABdhPJxc2dF0UlqbM5Sv94A4D572P3YfQ+zrP2Jhm75C8JK6V6dvHS7FnPwwjm7RRC8Z9sB4jw1NSpGN0mKfYIoCOsg= X-Received: by 2002:aca:5743:: with SMTP id l64mr7221529oib.100.1624967519063; Tue, 29 Jun 2021 04:51:59 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=contact@jimeh.me; helo=mail-oi1-x22e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:209092 Archived-At: When performing a self-contained Emacs.app build, *.eln files for Emacs' built-in lisp files stored within the Emacs.app bundle are not used. I believe commit 5dd2d50 which moved *.eln files and various paths around a bit for macOS builds, has re-introduced an old bug from last year. Basically the checksums that makes up part of the *.eln file names uses the absolute path of the .el file in question, but for self contained .app builds it needs to just use the relative path to the app itself. In short, any *.el files which contain ".app/Contents/" within their absolute file path, need to have anything before ".app/Contents/" removed before the *.eln filename checksum is calculated. Potentially some extra logic might be needed for build-time native-comp, as the checksums in the *.eln files bundled into the app right now are not based on the final location of lisp files within the .app bundle. In my testing, of the two checksums which are part of all *.eln filenames, the first checksum is different in the newly async generated *.eln files compared to those within the application bundle. The second checksum is identical. Also moving Emacs.app to different locations on the file system will cause it to re-compile *.eln files again, with the first checksum changing again. For the sake of any doubt, this issue occurs both with and without NATIVE_FULL_AOT=1. I've seen this behavior with all builds from the master branch that I've done since the 27th of June. Hopefully I've provided enough information here, please don't hesitate to ask if anything more is needed. P.S. I'm pretty new to emacs bug reporting, so apologies if I'm doing something wrong, and please let me know if so, and what I should be doing instead :)