From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.bugs Subject: bug#58073: 29.0.50; Uninstalled emacs sends startup messages to stderr Date: Mon, 03 Oct 2022 18:03:50 +0200 Message-ID: <877d1grj15.fsf@bernoul.li> References: <87pmfjmqnt.fsf@bernoul.li> <83tu4vl9wr.fsf@gnu.org> <87mtanmhn6.fsf@bernoul.li> <83h70ulgbp.fsf@gnu.org> <877d1img9g.fsf@bernoul.li> <83mtae1djg.fsf@gnu.org> <874jwmlzc1.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4995"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58073@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 03 18:25:40 2022 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 1ofOGB-00017H-6z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 18:25:39 +0200 Original-Received: from localhost ([::1]:47970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofOGA-0000Y0-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 12:25:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofNvG-00020t-JY for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofNvG-00060G-9a for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofNvF-0002FE-QV for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2022 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58073 X-GNU-PR-Package: emacs Original-Received: via spool by 58073-submit@debbugs.gnu.org id=B58073.16648130358612 (code B ref 58073); Mon, 03 Oct 2022 16:04:01 +0000 Original-Received: (at 58073) by debbugs.gnu.org; 3 Oct 2022 16:03:55 +0000 Original-Received: from localhost ([127.0.0.1]:51584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofNv9-0002Ep-8F for submit@debbugs.gnu.org; Mon, 03 Oct 2022 12:03:55 -0400 Original-Received: from mail.hostpark.net ([212.243.197.30]:57564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofNv7-0002Ef-Gm for 58073@debbugs.gnu.org; Mon, 03 Oct 2022 12:03:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 30AE316550; Mon, 3 Oct 2022 18:03:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1664813031; bh=LNyalaKSJMANBEU+rLb43sTc TTQe7MTx514xebMVljY=; b=tJfWbj0+Gpy2lAtF2QO48TgLk20jUQBiJjcINu3L G9HqK4Dp8Q0tZ5DgAX043mkSaTj9bJOp/FU9f6xsCpwnF0akqc+Zyd1A0HpyC46f s+BN2c6CiX9/et2lqNUKA7LHFGlKTZ7Q+SRkLVPvjg06R3ztctjZSoysdHRt/Im0 0qA= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id o8ChIZvevr_I; Mon, 3 Oct 2022 18:03:51 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 009F0162BF; Mon, 3 Oct 2022 18:03:50 +0200 (CEST) In-Reply-To: <874jwmlzc1.fsf@bernoul.li> 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:244311 Archived-At: Jonas Bernoulli writes: > Eli Zaretskii 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.