From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#43050: 28.0.50; portable dump file name should respect program-prefix config option Date: Fri, 13 Nov 2020 01:16:35 -0500 Message-ID: <2olff53hoc.fsf@fencepost.gnu.org> References: <20200825202440.195C2C2111C@raman-glaptop.localdomain> <83ft8a3ra8.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="39845"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 43050@debbugs.gnu.org, "T.V Raman" To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 13 07:17:11 2020 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 1kdSOU-000ADy-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 07:17:10 +0100 Original-Received: from localhost ([::1]:42798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdSOT-0005JB-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 01:17:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdSOM-0005If-Su for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 01:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdSOM-0002ch-JB for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 01:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdSOM-0002VC-EX for bug-gnu-emacs@gnu.org; Fri, 13 Nov 2020 01:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Nov 2020 06:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed patch Original-Received: via spool by 43050-submit@debbugs.gnu.org id=B43050.16052482049590 (code B ref 43050); Fri, 13 Nov 2020 06:17:02 +0000 Original-Received: (at 43050) by debbugs.gnu.org; 13 Nov 2020 06:16:44 +0000 Original-Received: from localhost ([127.0.0.1]:46463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdSO4-0002Uc-33 for submit@debbugs.gnu.org; Fri, 13 Nov 2020 01:16:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdSO2-0002UO-9K for 43050@debbugs.gnu.org; Fri, 13 Nov 2020 01:16:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42042) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdSNw-0002UK-Tf; Fri, 13 Nov 2020 01:16:36 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kdSNv-0004tZ-Nr; Fri, 13 Nov 2020 01:16:35 -0500 X-Spook: ASDIC SAPO Perl-RSA Resistant Bellcore munitions Vickie X-Ran: y(ydk66L7\<8lwC9N;9-\;mSE(S+3PgMxc/|Ct72,L5qVjQr>FSR<(Z+i2sWq\_@]z-kQo X-Hue: red X-Attribution: GM In-Reply-To: (Glenn Morris's message of "Fri, 13 Nov 2020 00:47:17 -0500") 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:193206 Archived-At: Glenn Morris wrote: >> The only thing that's missing, AFAICT, is that "make install" should >> apply the prefix to the dumper file name. > > There's a patch for that in https://debbugs.gnu.org/42790 However, that probably isn't enough since by experiment it seems as if Emacs prefers "emacs.pdmp" to more specific names. So if you have an Emacs configured without a name transformation and one configured with a name transformation (and some different options) installed in the same place, trying to start the second one fails with: emacs: could not load dump file "/path/to/emacs.pdmp": not built for this Emacs executable So you can't have two different Emacs installed in the same place, which defeats the purpose of configure's name transformation options. Ie this kind of thing fails: configure --prefix=/tmp/EMACS --without-x --program-suffix=-nox ... make install rename installed "emacs.pdmp" to "emacs-nox.pdmp" [1] configure --prefix=/tmp/EMACS ... make install [1] You also have to make a symlink "emacs-28.0.50-nox.pdmp" if you want to be able to use the binary under the name "emacs-28.0.50-nox" as well as "emacs-nox". This whole business seems rather fragile. I guess putting the fingerprint in the pdmp name is the only proper solution. Hope someone knows how to do that...