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 20:51:05 +0200 Message-ID: <874jwkvizq.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> <877d1grj15.fsf@bernoul.li> <83o7usyg23.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9799"; 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 20:53:52 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 1ofQZb-0002SC-Sz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 20:53:52 +0200 Original-Received: from localhost ([::1]:36070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofQZa-0000HD-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 14:53:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofQXq-0006rL-3O for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 14:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofQXp-0006GS-PT for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 14:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofQXp-0000BA-KU for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 14:52: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 18:52: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.1664823073612 (code B ref 58073); Mon, 03 Oct 2022 18:52:01 +0000 Original-Received: (at 58073) by debbugs.gnu.org; 3 Oct 2022 18:51:13 +0000 Original-Received: from localhost ([127.0.0.1]:51714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofQX2-00009n-Kl for submit@debbugs.gnu.org; Mon, 03 Oct 2022 14:51:12 -0400 Original-Received: from mail.hostpark.net ([212.243.197.30]:39976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofQWz-00009d-R0 for 58073@debbugs.gnu.org; Mon, 03 Oct 2022 14:51:11 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 8B1CF165FF; Mon, 3 Oct 2022 20:51:07 +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=1664823067; bh=5Z8nkOTKYoQSh5lT8Z/yj42B A4WZi906s6COFW39Bn8=; b=Tkt2dYedBcRlHoN6//paSTfQWq/2yH7t4zTeJ8zj 8S+7FpyLuJ62vjqVoSzzly7TBDHFo5slNzDWrWl+tX/21CqcX3px7qAOed1y4Jfs tNqDkr8uUxt3FZg8JkdA640euz0+TEGKC24vZ/4xWrMhINdkX+jNiDDL0YudJvAk dAE= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id nVj9is_lFCQ1; Mon, 3 Oct 2022 20:51:07 +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 55BA116586; Mon, 3 Oct 2022 20:51:07 +0200 (CEST) In-Reply-To: <83o7usyg23.fsf@gnu.org> 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:244326 Archived-At: Eli Zaretskii writes: >> From: Jonas Bernoulli >> Cc: 58073@debbugs.gnu.org >> Date: Mon, 03 Oct 2022 18:03:50 +0200 >> >> 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.) > > Sorry, I don't understand: you installed Emacs _and_ invoke it from > the source tree? Why would you do that? It's more complicated like that but let's say: if I hack on an Emacs package, then I use Emacs from source, since I might hack to look at the git history of an Emacs function I use in package; but if what I do has nothing to do with Emacs, then I use the installed Emacs. >> 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. > > Now I'm confused: is the problem solved or isn't it? I no longer need to use a wrapper to unset EMACSLOADPATH, because I now unset that variable in a file that is being sourced not only by my login shell but also by my display manager. I can now launch emacs from a program launcher that does not inherit the environment from a shell but from the display manager. (I had to switch display managers to accomplish that. Previously I used Gdm3 but that has fully embraced systemd and wayland by now and does not source any of the files (such as ~/.xsession) that could traditionally be used to set variable for all of an X11 session. So after the switch to another display manager, I can now use a plain old symlink again, and that works perfectly; the elisp libraries from the repository are being used, when I launch the emacs binary that is located inside emacs.git through a symlink. Before I switched away from Gdm3, I had to use a wrapper script, but as we found out that does not actually work. For some reason that ends up using the elisp libraries from where "make install" put them. Or if that has never been run, then emacs fails because it cannot find the libraries where it (IMO falsely) expects to find them. The same happens when using a shell alias. The question now is whether *you* consider this a bug worth fixing. I would say it is, but I won't insist on it. I hope that is a bit clearer now.