From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: Reply-To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_CECD_01D66F08.69128050" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39486"; mail-complaints-to="usenet@ciao.gmane.io" To: 42790@debbugs.gnu.org, eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 10 05:22:12 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 1k4yO3-000AAS-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Aug 2020 05:22:11 +0200 Original-Received: from localhost ([::1]:42414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4yO2-0004jR-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Aug 2020 23:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4yNu-0004jA-OV for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 23:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4yNu-0007c1-G5 for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 23:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k4yNu-0007m2-Cr for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 23:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Aug 2020 03:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42790 X-GNU-PR-Package: emacs X-Debbugs-Original-To: , "'Eli Zaretskii'" Original-Received: via spool by submit@debbugs.gnu.org id=B.159702970729853 (code B ref -1); Mon, 10 Aug 2020 03:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Aug 2020 03:21:47 +0000 Original-Received: from localhost ([127.0.0.1]:33802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4yNf-0007lQ-I6 for submit@debbugs.gnu.org; Sun, 09 Aug 2020 23:21:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4yNc-0007lG-2Y for submit@debbugs.gnu.org; Sun, 09 Aug 2020 23:21:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4yNb-0004hO-SZ for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 23:21:43 -0400 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:46810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4yNa-0007b3-B2 for bug-gnu-emacs@gnu.org; Sun, 09 Aug 2020 23:21:43 -0400 Original-Received: by mail-pl1-x630.google.com with SMTP id k13so4062667plk.13 for ; Sun, 09 Aug 2020 20:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google; h=from:to:subject:date:message-id:mime-version:thread-index :content-language; bh=gqdChBwFkS/GqyS7uMNnaigWrpaTxtChU6kPifi2wYc=; b=G+Pg/Ov92YMYLLL+nK06nBqyEnm3zb0sE9KvgoIu9pV+6QgFm1dAD6KFMLqulQVsYS uVC7zoXfM4vZUf76+iZu9iv4jXFeabiRsW+eg7Qr3qXGajS7FXSN+tA1A0tTZXl75onO qQAM4Hq6xDMxIJG/Eeo9xB34wQAumLm0Xqev0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=gqdChBwFkS/GqyS7uMNnaigWrpaTxtChU6kPifi2wYc=; b=miKxjY/h53bYWG2Sv3KQ9lo/Qa4eHfx8nXT/uwVx/nvJHefawMVAToXgPKooSIB13B eVBbjIr1nX3k1Y+dg2iFgHd2l0V0pF9EbnHTB6SMOb+Mk7wF8N8GL+Dx4TROo+F8Oi9Z BkhlUghuTLn4Xc+XbDqVpGgJj4WMwGfLl1Eu6R34eJ4ZI+IGRy8cAhr2pwNdt7bZtmw/ NsIjzLhUp+QZe73mG6R3Q6tZDiM2IPMQmRfTPDguKOh3N3j9qaQc9w8VYmDdTnv7rswn xHKWLrHBVtxBkjLAXZ8wV4GIYFQ7Hp/KqLoHWeMMeKTTRfgDP50NS2KqkmTzo8kOtd3L /73g== X-Gm-Message-State: AOAM531fhpwjnyi1qO1qscoO8QeqMKLKVaY+6gsd3YeT4uX2yjbRj9dA COc08Sc7K8AIVJifMi9H52k5pu1UoRFyoXuViAhAVTTRq4j95omS0vnahccgr5Zqxhycv/lZfUM jXI3qLaNxpZSF+0N59APAsOByO93u7qDJQdDhfgjLNygU2RlTYUsBjPUn/q86 X-Google-Smtp-Source: ABdhPJxxLWS5xKFBGreZzNGE7lDbcRgoKdAo+PXqxezXgJKZbDLiyg5MZiCvH1ku4l1/XEf5CJVwQQ== X-Received: by 2002:a17:902:10e:: with SMTP id 14mr21358563plb.297.1597029699659; Sun, 09 Aug 2020 20:21:39 -0700 (PDT) Original-Received: from DESKTOPLINSUN ([38.99.100.2]) by smtp.gmail.com with ESMTPSA id y20sm20306971pfn.183.2020.08.09.20.21.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2020 20:21:38 -0700 (PDT) X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdZuxQxzR46Own+pQL6UubrVswZZTQ== Content-Language: en-us Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=lin.sun@zoom.us; helo=mail-pl1-x630.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:184470 Archived-At: This is a multipart message in MIME format. ------=_NextPart_000_CECD_01D66F08.69128050 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. ------=_NextPart_000_CECD_01D66F08.69128050 Content-Type: application/octet-stream; name="0001-Makefile.in-Add-version-info-into-file-name-emacs.pd.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-Makefile.in-Add-version-info-into-file-name-emacs.pd.patch" >From 416180fa843750ccedb4d1fcad436cd445f03735 Mon Sep 17 00:00:00 2001=0A= From: Lin Sun =0A= Date: Mon, 10 Aug 2020 11:10:21 +0800=0A= Subject: [PATCH] * Makefile.in: Add version info into file name = "emacs.pdmp"=0A= =0A= ---=0A= Makefile.in | 3 ++-=0A= 1 file changed, 2 insertions(+), 1 deletion(-)=0A= =0A= diff --git a/Makefile.in b/Makefile.in=0A= index 67e15cf..078607c 100644=0A= --- a/Makefile.in=0A= +++ b/Makefile.in=0A= @@ -309,6 +309,7 @@ TRANSFORM =3D=0A= EMACS_NAME =3D `echo emacs | sed '$(TRANSFORM)'`=0A= EMACS =3D ${EMACS_NAME}${EXEEXT}=0A= EMACSFULL =3D `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT}=0A= +EMACS_PDMP =3D `echo emacs-${version} | sed '$(TRANSFORM)'`".pdmp"=0A= =0A= # Subdirectories to make recursively.=0A= SUBDIR =3D $(NTDIR) lib lib-src src lisp=0A= @@ -495,7 +496,7 @@ install-arch-dep:=0A= ifeq (${ns_self_contained},no)=0A= ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} = "$(DESTDIR)${bindir}/$(EMACSFULL)"=0A= ifeq (${DUMPING},pdumper)=0A= - ${INSTALL_DATA} src/emacs.pdmp = "$(DESTDIR)${libexecdir}/emacs/${version}/${configuration}"/emacs.pdmp=0A= + ${INSTALL_DATA} src/emacs.pdmp = "$(DESTDIR)${libexecdir}/emacs/${version}/${configuration}"/${EMACS_PDMP}=0A= endif=0A= -chmod 755 "$(DESTDIR)${bindir}/$(EMACSFULL)"=0A= ifndef NO_BIN_LINK=0A= -- =0A= 2.2.0=0A= =0A= ------=_NextPart_000_CECD_01D66F08.69128050--