unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonas Bernoulli <jonas@bernoul.li>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 58073@debbugs.gnu.org
Subject: bug#58073: 29.0.50; Uninstalled emacs sends startup messages to stderr
Date: Mon, 03 Oct 2022 18:03:50 +0200	[thread overview]
Message-ID: <877d1grj15.fsf@bernoul.li> (raw)
In-Reply-To: <874jwmlzc1.fsf@bernoul.li>

Jonas Bernoulli <jonas@bernoul.li> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>>> 
>>> One problem with that approach is that the wrapper cannot be named
>>> "emacs".
>>
>> One thing I can suggest is to use the --dump-file=FILE command-line
>> option inside the script to direct Emacs to its .pdmp file.  If you
>> don't do that, Emacs tries to intuit it using the value of argv[0] it
>> receives from the OS, and I guess your naming somehow trips that?
>
> Thanks for the hint, that might come in handy.  However, I think I made
> a mistake when testing earlier; it now works when the wrapper is named
> "emacs", despite not using --dump-file=FILE.

For the record, I figured out why it "works now but didn't work before".

  cat
  #!/bin/sh
  unset EMACSLOADPATH
  exec -a "emacs" "/home/jonas/src/emacs/emacs/src/emacs" "$@"

*appears* to work as intended (by me), but in actuality it uses the
libraries from where the package is installed, *not* from the source
repository.  I didn't inspect closely enough before to notice this.
Also, the name of the wrapper script does not actually matter.  (Use
of --dump-file doesn't help.)

Of course that doesn't work if Emacs hasn't actually been installed.

For completeness sake I should mention that I have once more confirmed
that using a symlink works (the libraries from the repo are used), but
an alias does not work (the files from the installation are used).

> Please close, and sorry for the noise.

No need to reopen, as far as I am concerned, but I thought it was
worth mentioning this here.





  parent reply	other threads:[~2022-10-03 16:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-25 15:15 bug#58073: 29.0.50; Uninstalled emacs sends startup messages to stderr Jonas Bernoulli
2022-09-25 16:02 ` Eli Zaretskii
2022-09-25 18:30   ` Jonas Bernoulli
2022-09-26  7:56     ` Eli Zaretskii
2022-10-02 14:50       ` Jonas Bernoulli
2022-10-02 14:54         ` Eli Zaretskii
2022-10-02 20:55           ` Jonas Bernoulli
2022-10-02 22:14             ` Stefan Kangas
2022-10-03  2:30             ` Eli Zaretskii
2022-10-03 16:03             ` Jonas Bernoulli [this message]
2022-10-03 17:26               ` Eli Zaretskii
2022-10-03 18:51                 ` Jonas Bernoulli
2022-10-03 19:01                   ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=877d1grj15.fsf@bernoul.li \
    --to=jonas@bernoul.li \
    --cc=58073@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).