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#58073: 29.0.50; Uninstalled emacs sends startup messages to stderr Date: Sun, 02 Oct 2022 17:54:43 +0300 Message-ID: <83mtae1djg.fsf@gnu.org> References: <87pmfjmqnt.fsf@bernoul.li> <83tu4vl9wr.fsf@gnu.org> <87mtanmhn6.fsf@bernoul.li> <83h70ulgbp.fsf@gnu.org> <877d1img9g.fsf@bernoul.li> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21528"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58073@debbugs.gnu.org To: Jonas Bernoulli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 02 16:56:12 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 1of0O4-0005Nf-Cb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 16:56:12 +0200 Original-Received: from localhost ([::1]:41522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of0O3-0007Fg-93 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 10:56:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of0Nu-0007DG-CV for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 10:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of0Nu-0001v1-2t for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 10:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of0Nt-0002bs-Ur for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 10:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Oct 2022 14:56: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.16647225049964 (code B ref 58073); Sun, 02 Oct 2022 14:56:01 +0000 Original-Received: (at 58073) by debbugs.gnu.org; 2 Oct 2022 14:55:04 +0000 Original-Received: from localhost ([127.0.0.1]:47811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of0Mx-0002ae-QH for submit@debbugs.gnu.org; Sun, 02 Oct 2022 10:55:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of0Mu-0002a2-KS for 58073@debbugs.gnu.org; Sun, 02 Oct 2022 10:55:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of0Mo-0001Rb-Sr; Sun, 02 Oct 2022 10:54:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tF81FoEK9h3MUJXZzlHzmdhjzenBQyW6CdVRgC61uoI=; b=WelcyAm/LKl2 Jz5wEeTN8FrjLAknsgJ3zPGNCXoRif8Es14yrKPcpR3W108xERP2KgfpdALl4GBvlMQyFrlTR0Xf+ bG7Sv+elIvNltAnCzTqQiZwLCPUtFidGhPVslcznw72D3E412QRG53IyKJBky+ddeWJR90+KP8dPY /2RX9+I57UpZjHUAy0S1UTvUbaJajxKyLySw7FJlfL4BlACuRzGVvafiEn9oCl3yYJzCqVVdO94M5 n91N2Xb9rh5ia0jE6UpvkWtvBGYi1HSODNS0Cgt7vOvZU5A1fWIxcCXi/75bTv/mrZMpHUg3j3ylj TUxD70T4bqxIY3kusUgy7A==; Original-Received: from [87.69.77.57] (port=2803 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of0Mo-0004UK-BP; Sun, 02 Oct 2022 10:54:54 -0400 In-Reply-To: <877d1img9g.fsf@bernoul.li> (message from Jonas Bernoulli on Sun, 02 Oct 2022 16:50:19 +0200) 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:244231 Archived-At: > From: Jonas Bernoulli > Cc: 58073@debbugs.gnu.org > Date: Sun, 02 Oct 2022 16:50:19 +0200 > > #!/bin/sh > unset EMACSLOADPATH > exec -a "emacs" "/home/jonas/src/emacs/emacs/src/emacs" "$@" > > One problem with that approach is that the wrapper cannot be named > "emacs". If it is named "emacs", then that somehow trips up Emacs > and it loads all the preloaded files explicitly during startup (so > it appears that it cannot find the pdumper file in this case). > > Eli, this isn't terribly important, but I was wondering if there is > something you could do so the name of the wrapper does not matter? > There might be other legitimate uses of a wrapper around the binary > from the build directory, other than "I currently have not other > choice because of what my distro does". 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?