https://bugs.documentfoundation.org/show_bug.cgi?id=145894

            Bug ID: 145894
           Summary: external/python3 FTBFS on arm64 linux
           Product: LibreOffice
           Version: unspecified
          Hardware: ARM
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

When I was building​ core master from source on Debian Bullseye arm64, I got:

file
core/workdir/UnpackedTarball/python3/LO_lib/_sysconfigdata__linux_aarch64-unknown-linux-gnu.py
does not exist in the tarball

This is because python's config.sub removed `-unknown` from the triple. The
actual filename is `_sysconfigdata__linux_aarch64-linux-gnu.py`

I workaround it by:

diff --git a/external/python3/ExternalPackage_python3.mk
b/external/python3/ExternalPackage_python3.mk
index aa3d8d93d77d..9f49f0994d13 100644
--- a/external/python3/ExternalPackage_python3.mk
+++ b/external/python3/ExternalPackage_python3.mk
@@ -143,7 +143,7 @@ else
 # put -pc in its linux platform triplets, so filter that...
 ifneq ($(OS),WNT)
 $(eval $(call
gb_ExternalPackage_add_files,python3,$(LIBO_BIN_FOLDER)/python-core-$(PYTHON_VERSION)/lib,\
-       LO_lib/_sysconfigdata__$(python3_MACHDEP)_$(subst i686,i386,$(subst
-pc,,$(HOST_PLATFORM))).py \
+       LO_lib/_sysconfigdata__$(python3_MACHDEP)_$(subst i686,i386,$(subst
-unknown,,$(subst -pc,,$(HOST_PLATFORM)))).py \
 ))
 endif

And I think it should be fixed in upstream.

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to