Subject: bug#36349: 27.0.50; does not start if called as symlink

From: Gregor Zattler <[email-masked]>
Date: Tue, 25 Jun 2019 00:54:19 +0200

Hi Basil,
* "Basil L. Contovounesios" <[email-masked]> [2019-06-24; 15:47]:
> Gregor Zattler <[email-masked]> writes:´
>> I did a fresh git co -f from emacs master branch (at
>> 157fced053601c993734c61078c42d7905389828).  Emacs was built and
>> installed just fine.  But Emacs does not start if called as a
>> symlink.
>>
>> See this terminal session (numbers at the beginning of a line are
>> return values from last command):
>>
>> 0 (master *%=) grfz@len:~/src/emacs$ hash -r
>> 0 (master *%=) grfz@len:~/src/emacs$ emacs-snapshot -Q --debug-init
>> emacs: could not resolve realpath of "(null)": No such file or directory
>
> This error was introduced in [1] and attempted to be fixed in [2].
> Do you still encounter problems with latest master?

no.  

I built emacs from master as of
6e2708694140cd3b4ff6aeb39534c4704d6d4e23 which includes
65d45def8d71e50d111adf1141011a5d30a27447.

Now everything works fine again.  Thanks for your answer and
Daniels fix.

Ciao; Gregor 

> See also the following emacs-devel threads:
>
> https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00902.html
> https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00907.html
>
> [1: b9ac4f815e]: Fix locating pdump by symlink
>   2019-06-23 18:19:08 -0700
>   https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=b9ac4f815ebaa1acb0d045fe9583f665efa6f628
>
> [2: 65d45def8d]: Fix pdumper executable-finding code
>   2019-06-24 06:53:30 -0700
>   https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=65d45def8d71e50d111adf1141011a5d30a27447