all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bhavin Gandhi <bhavin7392@gmail.com>
To: Ken Brown <kbrown@cornell.edu>, eli@gnu.org
Cc: 52488@debbugs.gnu.org
Subject: bug#52488: Try basename of agrv0's realpath for .pdmp lookup in libexecdir
Date: Wed, 15 Dec 2021 23:54:23 +0530	[thread overview]
Message-ID: <CAOn=hbd0XTZt8Q5Eb9HGwf_smNBcb4_ZuGysm2AdZrto0mQYsQ@mail.gmail.com> (raw)
In-Reply-To: <c08b2030-87c0-24e3-2369-ec85700dcac5@cornell.edu>

On Wed, 15 Dec 2021 at 01:12, Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > Why do you want that?
>
> Why do we want what?

Why do I want to have what this bug's title says, I was writing in a
question / answer form.

> Patches to support that are welcome, I think.  We support several
> tricks people play with placing the binaries and the auxiliary files,
> but there could well be other possibilities.
>
> However, in general, keeping the .pdmp file in the same directory as
> the binary is not recommended, AFAIU, as that file is not an
> executable program.  That path in the code exists mainly for running
> Emacs uninstalled, from the build tree.

That's what I felt when I chose this way of putting a .pdmp file alongside
the Emacs binary. Me from past was naive enough to not ask about it here
or explore more about it.


On Wed, 15 Dec 2021 at 23:26, Ken Brown <kbrown@cornell.edu> wrote:
> On further reflection, I don't think the problem is symlink resolution for the
> .pdmp file.  I think the problem is that load_pdmp doesn't look in libexecdir
> for a .pdmp file whose name matches the name of the emacs executable.  For
> example, suppose I have a symlink /usr/bin/emacs that resolves to
> /usr/bin/emacs-nox.exe.  Then load_pdmp looks for /usr/bin/emacs-nox.pdmp, but
> it doesn't look for /usr/libexec/emacs/28.0.90/x86_64-pc-cygwin/emacs-nox.pdmp.

Indeed Ken, my initial message was trying to convey the same. It could
have been more clear (I should not draft bug reports just before
sleeping :P).

>   I'm working on a patch to fix this.

Thanks!





  parent reply	other threads:[~2021-12-15 18:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14 19:01 bug#52488: Try basename of agrv0's realpath for .pdmp lookup in libexecdir Bhavin Gandhi
2021-12-14 19:25 ` Bhavin Gandhi
2021-12-14 19:32 ` Ken Brown
2021-12-15 17:56   ` Ken Brown
2021-12-15 18:19     ` Glenn Morris
2021-12-15 18:53       ` Ken Brown
2021-12-15 22:08         ` Ken Brown
2021-12-19 12:57           ` Lars Ingebrigtsen
2021-12-19 15:26             ` Ken Brown
2021-12-23 13:48               ` Ken Brown
2021-12-23 13:50               ` Bhavin Gandhi
2021-12-15 18:24     ` Bhavin Gandhi [this message]
2021-12-15 19:32       ` Eli Zaretskii
2021-12-14 19:42 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOn=hbd0XTZt8Q5Eb9HGwf_smNBcb4_ZuGysm2AdZrto0mQYsQ@mail.gmail.com' \
    --to=bhavin7392@gmail.com \
    --cc=52488@debbugs.gnu.org \
    --cc=eli@gnu.org \
    --cc=kbrown@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.