unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 42790@debbugs.gnu.org, eliz@gnu.org
Subject: bug#42790: [PATH] 27.1; Add version info into file name "emacs.pdmp" to avoid mismatch pdmp file
Date: Mon, 10 Aug 2020 11:21:32 +0800	[thread overview]
Message-ID: <cecc01d66ec5$5aeecb20$10cc6160$@zoom.us> (raw)

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

Hi,

The pdmp file always named as "emcas.pdmp", this will cause error in my
local that I build two Emacs with different configuration options and
different suffix from same source tree. Here are configure lines:

$ cd ~/emacs-min && ~/emacs/configure --program-suffix=m --with-x=no...
$ cd ~/emacs-nor && ~/emacs/configure # normal build

After installation, run the first installed Emacs binary, there is
error message as follow:

emacs: could not load dump file "... emacs.pdmp": not built for this
Emacs executable

This patch will add the version info to pdmp file name to avoid the error.
After apply this patch, pdmp file in my case will be "emacs-27.1.pdmp" 
and "emacs-27.1m.pdmp", Emacs will load pdmp file correctly.

[-- Attachment #2: 0001-Makefile.in-Add-version-info-into-file-name-emacs.pd.patch --]
[-- Type: application/octet-stream, Size: 1243 bytes --]

From 416180fa843750ccedb4d1fcad436cd445f03735 Mon Sep 17 00:00:00 2001
From: Lin Sun <lin.sun@zoom.us>
Date: Mon, 10 Aug 2020 11:10:21 +0800
Subject: [PATCH] * Makefile.in: Add version info into file name "emacs.pdmp"

---
 Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 67e15cf..078607c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -309,6 +309,7 @@ TRANSFORM =
 EMACS_NAME = `echo emacs | sed '$(TRANSFORM)'`
 EMACS = ${EMACS_NAME}${EXEEXT}
 EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT}
+EMACS_PDMP = `echo emacs-${version} | sed '$(TRANSFORM)'`".pdmp"
 
 # Subdirectories to make recursively.
 SUBDIR = $(NTDIR) lib lib-src src lisp
@@ -495,7 +496,7 @@ install-arch-dep:
 ifeq (${ns_self_contained},no)
 	${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} "$(DESTDIR)${bindir}/$(EMACSFULL)"
 ifeq (${DUMPING},pdumper)
-	${INSTALL_DATA} src/emacs.pdmp "$(DESTDIR)${libexecdir}/emacs/${version}/${configuration}"/emacs.pdmp
+	${INSTALL_DATA} src/emacs.pdmp "$(DESTDIR)${libexecdir}/emacs/${version}/${configuration}"/${EMACS_PDMP}
 endif
 	-chmod 755 "$(DESTDIR)${bindir}/$(EMACSFULL)"
 ifndef NO_BIN_LINK
-- 
2.2.0


             reply	other threads:[~2020-08-10  3:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10  3:21 via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-08-10  8:27 ` bug#42790: [PATH] 27.1; Add version info into file name "emacs.pdmp" to avoid mismatch pdmp file Andreas Schwab
2020-08-10  9:24   ` via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-11-16  1:03     ` Glenn Morris
2020-11-20 15:07       ` Eli Zaretskii
2021-02-27  1:40         ` Glenn Morris
2021-02-27  7:22           ` Eli Zaretskii
2021-02-27 16:05             ` Daniel Colascione
2021-02-27 18:21             ` Glenn Morris
2021-02-27 18:49               ` Eli Zaretskii
2021-07-21 13:51         ` Lars Ingebrigtsen
2021-09-30  1:33           ` Glenn Morris
2021-09-30  6:47             ` Lars Ingebrigtsen
2021-10-11 12:04               ` Lars Ingebrigtsen
2020-08-14 14:53 ` Lars Ingebrigtsen
2020-08-15  4:52   ` via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-08-15 10:42     ` Lars Ingebrigtsen
2020-08-15 10:47       ` Lars Ingebrigtsen
2020-08-16  0:30         ` via Bug reports for GNU Emacs, the Swiss army knife of text editors

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='cecc01d66ec5$5aeecb20$10cc6160$@zoom.us' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=42790@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=lin.sun@zoom.us \
    /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).