GNU bug report logs - #43050
28.0.50; portable dump file name should respect program-prefix config option

Previous Next

Package: emacs;

Reported by: "T.V Raman" <raman <at> google.com>

Date: Tue, 25 Aug 2020 20:25:02 UTC

Severity: normal

Tags: confirmed, help, patch

Merged with 35503, 42790

Found in versions 27.0.50, 28.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43050 in the body.
You can then email your comments to 43050 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#43050; Package emacs. (Tue, 25 Aug 2020 20:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "T.V Raman" <raman <at> google.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 25 Aug 2020 20:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "T.V Raman" <raman <at> google.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50;
 portable dump file name should respect program-prefix config option 
Date: Tue, 25 Aug 2020 13:24:40 -0700 (PDT)
If you configure emacs with the --program-prefix option,
e.g. --program-prefix=native- when building emacs with gccjit support,
the portable dumper file   continues to be named emacs.pdmp, thus
making it impossible to install  both a regular emacs build  and one
with native-comp support.

An easy fix would be for the portable dumper file name to respect
program-prefix 


In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2020-08-24 built on raman-glaptop
Repository revision: 35418be39cd977e9de4822aa8b6a49a45fd66b67
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux rodete

Configured using:
 'configure --enable-silent-rules --without-xwidgets --with-mailutils
 --with-modules --without-compress-install LDFLAGS=-O3 CPPFLAGS=-O3'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT
LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON
PDUMPER LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix

Major mode: Shell

Minor modes in effect:
  override-global-mode: t
  magit-wip-initial-backup-mode: t
  magit-wip-before-change-mode: t
  magit-wip-after-apply-mode: t
  magit-wip-after-save-mode: t
  magit-wip-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  async-bytecomp-package-mode: t
  auto-correct-mode: t
  dired-omit-mode: t
  savehist-mode: t
  save-place-mode: t
  psession-mode: t
  psession-autosave-mode: t
  midnight-mode: t
  flx-ido-mode: t
  display-time-mode: t
  company-statistics-mode: t
  company-prescient-mode: t
  prescient-persist-mode: t
  dynamic-completion-mode: t
  disable-mouse-global-mode: t
  desktop-save-mode: t
  dirtrack-procfs-mode: t
  global-voice-lock-mode: t
  voice-lock-mode: t
  ido-ubiquitous-mode: t
  ido-everywhere: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tab-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/raman/emacs/lisp/site-lisp/vm/lisp/tapestry hides /home/raman/emacs/lisp/emacspeak/lisp/tapestry
/home/raman/.emacs.d/elpa/lispy-20200818.1151/elpa hides /home/raman/.emacs.d/elpa/ivy-20200824.1246/elpa
/home/raman/.emacs.d/elpa/auth-source-pass-20191126.1242/auth-source-pass hides /usr/local/share/emacs/28.0.50/lisp/auth-source-pass
/home/raman/emacs/lisp/emacspeak/lisp/tetris hides /usr/local/share/emacs/28.0.50/lisp/play/tetris

Features:
(shadow emacsbug ucs-normalize jka-compr emacspeak-twittering
twittering-mode mule-util hl-line finder-inf emacspeak-paradox paradox
paradox-menu paradox-commit-list paradox-execute paradox-github
paradox-core spinner url-file url-dired emacspeak-flyspell
flyspell-correct-ido flyspell-correct flyspell emacspeak-ispell ispell
mailalias vm-reply rng-xsd xsd-regexp rng-cmpct emacspeak-nxml
rng-nxml rng-valid nxml-mode nxml-outln nxml-rap orgalist mhtml-mode
css-mode smartparens-html emacspeak-sgml-mode sgml-mode ox-odt rng-loc
rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse
nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html
emacspeak-etable table ox-ascii ox-publish ox vm-delete vm-save
tapestry vm-sort vm-rfaddons vm-undo vm-page vm-minibuf vm-message
vm-macro emacspeak-mspools mspools bbdb-vm vm-virtual vm-summary-faces
vm-pop vm-imap vm-thread vm-mime vm-motion vm-mouse vm-toolbar vm-menu
vm-window vm-folder vm-crypto vm-misc vm-summary bbdb-mua bbdb-com
emacspeak-bbdb bbdb bbdb-site timezone emacspeak-vm u-vm-color vm
org-element avl-tree shr-color mm-archive qp sort smiley gnus-cite
mail-extr gnus-async gnus-bcklg gnus-dup gnus-ml utf-7 nndraft nnmh
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp
gnus-cache misearch multi-isearch emacspeak-prompts face-remap
epa-file gnutls network-stream url-cache emacspeak-url-template
bash-completion emacspeak-muggles hydra-ox emacspeak-view view hydra
lv emacspeak-browse-kill-ring browse-kill-ring emacspeak-vuiet vuiet
mpv tq org-timer org-clock bind-key versuri emacspeak-ivy ivy delsel
ivy-faces ivy-overlay colir esqlite pcsv esxml-query lastfm elquery
anaphora request emacspeak-origami origami origami-parsers cl
smartparens-org emacspeak-muggles-autoloads emacspeak-org warnings
emacspeak-feeds emacspeak-eww emacspeak-google gmaps gweb dom-addons
pp eww xdg url-queue mm-url smtpmail sendmail auth-source-xoauth2
auth-source-pass emacspeak-gnus gm-nnir nnir gnus-art mm-uu mml2015
mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time
iso8601 gnus-spec gnus-int gnus-range gnus-win emacspeak-hide gnus
nnheader org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-footnote org-src ob-comint org-pcomplete org-list org-faces
org-entities emacspeak-outline foldout noutline outline org-version
ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat
org-macs org-loaddefs emacspeak-find-func find-func emacspeak-maths
nvm dash-functional f s emacspeak-hydra dired-aux emacspeak-sh-script
sh-script smie executable magit-wip magit-log magit-diff smerge-mode
diff git-commit log-edit emacspeak-message message rfc822 mml mml-sec
emacspeak-epa epa epg epg-config gnus-util emacspeak-rmail rmailsort
rmail rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev
mail-utils gmm-utils mailheader pcvs-util emacspeak-add-log add-log
magit-core magit-autorevert autorevert filenotify magit-margin
magit-transient magit-process with-editor magit-mode
emacspeak-transient transient async-bytecomp format-spec magit-git
magit-section magit-utils crm auto-correct emacspeak-wizards
clojure-snippets common-lisp-snippets yasnippet-snippets
emacspeak-yasnippet yasnippet smartparens-config
smartparens-javascript smartparens-text smartparens-c
emacspeak-smartparens smartparens emacspeak-hideshow hideshow
company-files company-keywords company-etags etags fileloop generator
emacspeak-xref xref emacspeak-project project company-gtags
company-dabbrev-code company-dabbrev company-capf company-semantic
company-template company-css company-nxml company-bbdb js moz
emacspeak-c cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs name-this-color dash color
emacspeak-we emacspeak-xslt emacspeak-eterm vc-git emacspeak-diff-mode
diff-mode easy-mmode two-column term disp-table ehelp
emacspeak-texinfo texinfo emacspeak-table-ui emacspeak-table
emacspeak-find-dired find-dired lisp-mnt let-alist emacspeak-dbus nm
amixer soundscape dired-x savehist saveplace psession async midnight
flx-ido flx time company-statistics company-prescient prescient
emacspeak-company company pcase completion server file-xoauth2
vm-autoloads vm-version vm-vars laptop-local xbacklight disable-mouse
emacs-startup emacspeak-setup emacspeak-m-player emacspeak-dired
locate emacspeak-desktop desktop frameset dired dired-loaddefs
emacspeak-amark emacspeak-advice shell pcomplete hippie-exp comint
ring vc vc-dispatcher which-func emacspeak-imenu imenu
emacspeak-ansi-color ansi-color emacspeak-redefine
emacspeak-personality emacspeak emacspeak-widget emacspeak-webutils
shr kinsoku text-property-search svg dom url-http url url-proxy
url-privacy url-expand url-methods url-history mailcap url-auth
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr
url-cookie url-domsuf url-util url-gw nsm rmc puny emacspeak-auctex
emacspeak-tab-bar emacspeak-package emacspeak-calendar appt diary-lib
diary-loaddefs g-utils solar cal-dst cal-menu calendar cal-loaddefs
emacspeak-kmacro emacspeak-info emacspeak-ido emacspeak-facemenu
emacspeak-custom emacspeak-buff-menu g-cus-load
emacspeak-fix-interactive emacspeak-sox emacspeak-preamble
emacspeak-keymap emacspeak-speak sox-gen sox ladspa edmacro kmacro
derived rect time-date emacspeak-pronounce thingatpt dtk-speak
dtk-interp voice-setup cl-extra emacspeak-sounds dectalk-voices
espeak-voices mac-voices outloud-voices dtk-unicode descr-text
help-mode acss-structure tts emacspeak-load-path advice dbus
ido-completing-read+ memoize cus-edit cus-start cus-load wid-edit
minibuf-eldef ido xml info tex-site gh-common marshal eieio-compat rx
slime-autoloads package easymenu browse-url url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese
eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese composite charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 2488132 1337842)
 (symbols 48 77523 44)
 (strings 32 374174 175797)
 (string-bytes 1 12702999)
 (vectors 16 142217)
 (vector-slots 8 2039034 326970)
 (floats 8 2082 1360)
 (intervals 56 231881 90190)
 (buffers 992 67))


-- 
♉Id: kg:/m/0285kf1  🦮♉

-- 
♉Id: kg:/m/0285kf1  🦮♉




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43050; Package emacs. (Wed, 26 Aug 2020 05:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 43050 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "T.V Raman" <raman <at> google.com>
Cc: 43050 <at> debbugs.gnu.org
Subject: Re: bug#43050: 28.0.50;
 portable dump file name should respect program-prefix config option
Date: Wed, 26 Aug 2020 08:33:19 +0300
> Date: Tue, 25 Aug 2020 13:24:40 -0700 (PDT)
> From: "T.V Raman" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> If you configure emacs with the --program-prefix option,
> e.g. --program-prefix=native- when building emacs with gccjit support,
> the portable dumper file   continues to be named emacs.pdmp, thus
> making it impossible to install  both a regular emacs build  and one
> with native-comp support.
> 
> An easy fix would be for the portable dumper file name to respect
> program-prefix 

This is already supported.  The only thing that's missing, AFAICT, is
that "make install" should apply the prefix to the dumper file name.
But if you rename the dumper file manually in the same directory where
it is installed, it should work.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43050; Package emacs. (Fri, 13 Nov 2020 05:48:02 GMT) Full text and rfc822 format available.

Message #11 received at 43050 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 43050 <at> debbugs.gnu.org, "T.V Raman" <raman <at> google.com>
Subject: Re: bug#43050: 28.0.50;
 portable dump file name should respect program-prefix config option
Date: Fri, 13 Nov 2020 00:47:17 -0500
Eli Zaretskii 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

People say that using the fingerprint would be better, and it would, but
there isn't a patch for that.




Merged 42790 43050. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 13 Nov 2020 05:48:02 GMT) Full text and rfc822 format available.

Merged 35503 42790 43050. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 13 Nov 2020 05:53:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43050; Package emacs. (Fri, 13 Nov 2020 06:17:02 GMT) Full text and rfc822 format available.

Message #18 received at 43050 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 43050 <at> debbugs.gnu.org, "T.V Raman" <raman <at> google.com>
Subject: Re: bug#43050: 28.0.50;
 portable dump file name should respect program-prefix config option
Date: Fri, 13 Nov 2020 01:16:35 -0500
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...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43050; Package emacs. (Fri, 13 Nov 2020 08:26:02 GMT) Full text and rfc822 format available.

Message #21 received at 43050 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 43050 <at> debbugs.gnu.org, raman <at> google.com
Subject: Re: bug#43050: 28.0.50;
 portable dump file name should respect program-prefix config option
Date: Fri, 13 Nov 2020 10:24:26 +0200
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: 43050 <at> debbugs.gnu.org,  "T.V Raman" <raman <at> google.com>
> Date: Fri, 13 Nov 2020 01:16:35 -0500
> 
> 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.

Maybe we should change that preference?  AFAIR, the preference is
there only as the last resort, no?  Or when does that preference make
sense?

> I guess putting the fingerprint in the pdmp name is the only proper solution.

If changing the preference for emacs.pdmp isn't workable, you are
probably right.




Added tag(s) help. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 04 Mar 2021 19:15:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 29.1, send any further explanations to 42790 <at> debbugs.gnu.org and <lin.sun <at> zoom.us> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 11 Oct 2021 12:05:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 08 Nov 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.