[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1019130: emacs: Please include small patch to fix FTBFS on m68k



Source: emacs
Version: 1:28.1+1-2
Severity: normal
Tags: upstream patch
User: debian-68k@lists.debian.org
Usertags: m68k
X-Debbugs-Cc: debian-68k@lists.debian.org

Hello!

The build on m68k fails due to an alignment issue which can be fixed
by lowering DUMP_RELOC_ALIGNMENT_BITS to 1 in src/pdumper.c which is
what the attached patch does.

Can it be included in the next upload? See also the upstream bug [1].

Thanks,
Adrian

> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44531

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- emacs-28.1+1.orig/src/pdumper.c
+++ emacs-28.1+1/src/pdumper.c
@@ -265,7 +265,11 @@ struct dump_table_locator
 enum
   {
    DUMP_RELOC_TYPE_BITS = 5,
+#ifdef __mc68000__
+   DUMP_RELOC_ALIGNMENT_BITS = 1,
+#else
    DUMP_RELOC_ALIGNMENT_BITS = 2,
+#endif
 
    /* Minimum alignment required by dump file format.  */
    DUMP_RELOCATION_ALIGNMENT = 1 << DUMP_RELOC_ALIGNMENT_BITS,

Reply to: