Bug#1087600: python3.13: Please include temporary patch to fix FTBFS on m68k

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.68k
Message-ID <173170415782.3300701.4528233865612517302.reportbug__33549.0875107766$1731704616$gmane$org@z6>
Source: python3.13
Version: 3.13.0-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: m68k
X-Debbugs-Cc: [email protected]

Hello,

the package python3.13 fails to build from source on m68k due to alignment
issues.

This is fixed with the following patch:

Index: python3.13-3.13.0/Include/internal/pycore_gc.h
===================================================================
--- python3.13-3.13.0.orig/Include/internal/pycore_gc.h
+++ python3.13-3.13.0/Include/internal/pycore_gc.h
@@ -19,7 +19,7 @@ typedef struct {
     // Pointer to previous object in the list.
     // Lowest two bits are used for flags documented later.
     uintptr_t _gc_prev;
-} PyGC_Head;
+} PyGC_Head Py_ALIGNED(sizeof(uintptr_t));
 
 #define _PyGC_Head_UNUSED PyGC_Head
 
I'm attaching it as a separate diff.

I hope that we will be able to waive for this patch in the future when we
switch the m68k port to 4-byte alignment.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
m68k-alignment-fix.diff (text/plain, 497 B)
Index: python3.13-3.13.0/Include/internal/pycore_gc.h
===================================================================
--- python3.13-3.13.0.orig/Include/internal/pycore_gc.h
+++ python3.13-3.13.0/Include/internal/pycore_gc.h
@@ -19,7 +19,7 @@ typedef struct {
     // Pointer to previous object in the list.
     // Lowest two bits are used for flags documented later.
     uintptr_t _gc_prev;
-} PyGC_Head;
+} PyGC_Head Py_ALIGNED(sizeof(uintptr_t));
 
 #define _PyGC_Head_UNUSED PyGC_Head
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.