Bug 145894 - external/python3 FTBFS on arm64 linux
Summary: external/python3 FTBFS on arm64 linux
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha0+
Hardware: ARM Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dev-Bugs
  Show dependency treegraph
 
Reported: 2021-11-25 20:58 UTC by Jiaxun Yang
Modified: 2024-05-20 03:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiaxun Yang 2021-11-25 20:58:27 UTC
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.
Comment 1 Robert Großkopf 2021-11-26 08:35:28 UTC
Has nothing to do with Base, the database component of LO.
Comment 2 Julien Nabet 2021-11-27 09:46:31 UTC
Michael: since it concerns Python, thought you might be interested in this one.
Comment 3 Julien Nabet 2021-11-27 09:53:51 UTC
Just for info, searching "unknown" in git history of this file, I found a patch I had done:

commit 8aae3b37a6553d645bfc94855adbbd1859e07692
Author: Julien Nabet <serval2412@yahoo.fr>
Date:   Sat Jan 2 16:40:01 2021 +0100

    Fix build error in Python3 for Raspberry pi4b
    
    /home/pi/lo/libreoffice/external/python3/ExternalPackage_python3.mk:48:
    *** file /home/pi/lo/libreoffice/workdir/UnpackedTarball/python3/LO_lib/_sysconfigdata__linux_armv7l-unknown-linux-gnueabihf.py
    does not exist in the tarball. Arrêt.
    
    Change-Id: If348c9f55883c1afcc37ff38e84361786bef1845
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108595
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>

See https://cgit.freedesktop.org/libreoffice/core/commit/?id=8aae3b37a6553d645bfc94855adbbd1859e07692

So "unknown" was already a pb for me.

Let's put this one to NEW since we got a trace from build failure.
Comment 4 QA Administrators 2024-05-20 03:14:30 UTC
Dear Jiaxun Yang,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug