Bug#993960: emacs: Please build with '--with-dumping=unexec' on m68k
Source: emacs
Severity: normal
Tags: upstream patch
User: debian-68k@lists.debian.org
Usertags: m68k
X-Debbugs-Cc: debian-68k@lists.debian.org
Hello!
The new dumper "pdumper" enabled on Emacs 27 by default currently causes issues on m68k:
Dumping under the name bootstrap-emacs.pdmp
dumping fingerprint: acbddcb917b565f0afbdbaae4aadae8255f8a8030d1b0f932e89d1696b21246a
dump relocation out of range
This issue can be worked around by building emacs on m68k with --with-dumping=unexec
which is what the attached patch does.
Could you apply the patch for the time being until the issue has been fixed upstream? [1]
Adrian
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44531
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
--- emacs-orig/emacs-27.1+1/debian/rules 2021-03-20 22:41:42.000000000 +0100
+++ emacs/emacs-27.1+1/debian/rules 2021-09-08 18:37:06.143846713 +0200
@@ -273,6 +273,9 @@
confflags += --with-sound=alsa
confflags += --without-gconf
confflags += --with-mailutils
+ifneq (,$(filter m68k, $(DEB_HOST_ARCH)))
+confflags += --with-dumping=unexec
+endif
# x configure flags
confflags_gtk := $(confflags)
@@ -350,10 +353,12 @@
test -f $(1)/usr/bin/emacs-*
cp -a $(1)/usr/bin/emacs-* $(2)/usr/bin/emacs-$(4)
+ifneq (,$(filter m68k, $(DEB_HOST_ARCH)))
test -f $(1)/usr/lib/emacs/$(runtime_ver)/$(DEB_HOST_GNU_TYPE)/emacs.pdmp
install -d $(2)/usr/lib/emacs/$(runtime_ver)/$(DEB_HOST_GNU_TYPE)
cp -a $(1)/usr/lib/emacs/$(runtime_ver)/$(DEB_HOST_GNU_TYPE)/emacs.pdmp \
$(2)/usr/lib/emacs/$(runtime_ver)/$(DEB_HOST_GNU_TYPE)/
+endif
install -d $(2)/usr/share/emacs/$(runtime_ver)/etc
cp -a $(1)/usr/share/emacs/$(runtime_ver)/etc/DOC \
@@ -456,9 +461,11 @@
test -f $(pkgdir_bin_common)/usr/bin/emacs-*
rm $(pkgdir_bin_common)/usr/bin/{emacs,emacs-*}
+ifneq (,$(filter m68k, $(DEB_HOST_ARCH)))
# The pdmp files are flavor-specific
test -f $(pkgdir_bin_common)/usr/lib/emacs/$(runtime_ver)/$(DEB_HOST_GNU_TYPE)/emacs.pdmp
rm $(pkgdir_bin_common)/usr/lib/emacs/$(runtime_ver)/$(DEB_HOST_GNU_TYPE)/emacs.pdmp
+endif
# Set up alternatives.
alternatives=$$(ls $(pkgdir_bin_common)/usr/bin) \
Reply to: