From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Date: Sat, 17 Apr 2021 16:58:40 +0300 Message-ID: <83a6pxvwq7.fsf@gnu.org> References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36685"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44128@debbugs.gnu.org, 47800@debbugs.gnu.org, akrl@sdf.org To: jonas@bernoul.li, psainty@orcon.net.nz, wilde@sha-bang.de, Dario Gjorgjevski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 17 16:00:11 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 1lXlUZ-0009QT-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 16:00:11 +0200 Original-Received: from localhost ([::1]:60688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXlUY-0005uS-B8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Apr 2021 10:00:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXlUR-0005u3-2b for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 10:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXlUQ-0003na-Qb for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 10:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXlUQ-0000x2-LQ for bug-gnu-emacs@gnu.org; Sat, 17 Apr 2021 10:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs Original-Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186679443567 (code B ref 44128); Sat, 17 Apr 2021 14:00:02 +0000 Original-Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 13:59:04 +0000 Original-Received: from localhost ([127.0.0.1]:44070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlTU-0000vN-Ei for submit@debbugs.gnu.org; Sat, 17 Apr 2021 09:59:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlTS-0000uk-VB; Sat, 17 Apr 2021 09:59:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33782) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXlTL-00037F-7w; Sat, 17 Apr 2021 09:58:55 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2431 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXlTF-0001m5-R1; Sat, 17 Apr 2021 09:58:52 -0400 In-Reply-To: <83sg3qw9m7.fsf@gnu.org> (message from Eli Zaretskii on Fri, 16 Apr 2021 18:08:00 +0300) 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:204206 Archived-At: > Date: Fri, 16 Apr 2021 18:08:00 +0300 > From: Eli Zaretskii > Cc: psainty@orcon.net.nz, akrl@sdf.org, 44128@debbugs.gnu.org, eli@gnu.org > > > From: Jonas Bernoulli > > Date: Fri, 16 Apr 2021 15:21:47 +0200 > > Cc: 44128@debbugs.gnu.org, eli@gnu.org > > > > Andrea Corallo writes: > > > > > I've pushed 0c1fc9d581 that seams to work for me, please have a try. > > > > Unfortunately this still doesn't work (as of f9c1008ced): > > > > $ emacs > > emacs: could not resolve realpath of "emacs": No such file or directory > > $ which emacs > > /usr/local/bin/emacs > > $ ls -l /usr/local/bin/emacs > > lrwxrwxrwx 1 root staff 55 Apr 16 14:51 /usr/local/bin/emacs -> /home/jonas/git/src/emacs/feature > > > > But this works: > > > > $ /home/jonas/git/src/emacs/feature/native-comp/src/emacs > > > > And so does: > > > > $ cat /usr/local/bin/emacs > > #!/bin/sh > > /home/jonas/git/src/emacs/feature/native-comp/src/emacs "$@" > > $ emacs > > Thanks, I think I understand the issues, and I'm working on a fix. Please try the latest native-comp branch. If it still doesn't solve the problem with installing Emacs via symlinks, or if there are some adverse side-effects of the changes I made, please report the details. In a nutshell, Emacs should now decide where to look for its pdumper file and where to look for the *.eln files in a synchronized manner. I hope I got all the varieties of the symlinks involved correctly (but I couldn't test all the possible variants, only some of them). Please be sure to test both installed and uninstalled binaries, and please verify that comp-eln-load-path has the right value after Emacs loads in both cases (the last element of the list should in each case reflect where the *.eln files will be looked for). TIA