mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
dev-lang/python-oem: Fix arm64 build
Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
70a37c4420
commit
e17269de89
@ -0,0 +1,19 @@
|
||||
Fixes build errors like these when building for arm64:
|
||||
|
||||
File "build/temp.linux2-aarch64-2.7/libffi/fficonfig.py"
|
||||
ffi_sources += ffi_platforms['AARCH64']
|
||||
KeyError: 'AARCH64'
|
||||
Makefile:475: recipe for target 'sharedmods' failed
|
||||
|
||||
Signed-off-by: Geoff Levand <geoff@infradead.org>
|
||||
|
||||
--- a/Modules/_ctypes/libffi/fficonfig.py.in
|
||||
+++ b/Modules/_ctypes/libffi/fficonfig.py.in
|
||||
@@ -4,6 +4,7 @@
|
||||
""".split()
|
||||
|
||||
ffi_platforms = {
|
||||
+ 'AARCH64': ['src/aarch64/ffi.c', 'src/aarch64/sysv.S'],
|
||||
'MIPS_IRIX': ['src/mips/ffi.c', 'src/mips/o32.S', 'src/mips/n32.S'],
|
||||
'MIPS_LINUX': ['src/mips/ffi.c', 'src/mips/o32.S'],
|
||||
'X86': ['src/x86/ffi.c', 'src/x86/sysv.S'],
|
@ -50,6 +50,9 @@ src_prepare() {
|
||||
# Fix for linux_distribution()
|
||||
epatch "${FILESDIR}/python-2.7.6-add_os_release_support.patch"
|
||||
|
||||
# Fix for arm64 builds
|
||||
epatch "${FILESDIR}/python-2.7-aarch64-fix.patch"
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
Loading…
x
Reference in New Issue
Block a user