64 Commits
Author SHA1 Message Date
Xisco Fauli ee9332dbbe python3: upgrade to 3.13.15
Downloaded from https://www.python.org/ftp/python/3.13.15/Python-3.13.15.tar.xz

Change-Id: I9304d53c9ecafbafb43dacf15decc37547b8072c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209155
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-17 12:06:47 +02:00
Xisco Fauli 4c223ffe8a python3: upgrade to 3.13.14
destdir-darwin.patch.1 is needed now after
https://github.com/python/cpython/issues/149351
The patch basically reverts it, otherwise the mac build fails with
dyld[52582]: Library not loaded: /@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython
  Referenced from: <B217B854-E01D-3BF6-ACE3-EE94548D7A23> /Users/tdf/jenkins/workspace/lo_gerrit/Config/macosx_clang_dbgutil/instdir/LibreOfficeDev.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.13/Resources/Python.app/Contents/MacOS/LibreOfficePython
  Reason: tried: '/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython' (no such file), '/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython' (no such file)
/bin/sh: line 1: 52582 Abort trap: 6           DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+$DYLD_LIBRARY_PATH:}$I/LibreOfficeDev.app/Contents/Frameworks:$W/UnpackedTarball/cppunit/src/cppunit/.libs TEST_LIB=$W/LinkTarget/Library/libtest.dylib URE_BOOTSTRAP=vnd.sun.star.pathname:$I/LibreOfficeDev.app/Contents/Resources/fundamentalrc PYTHONPATH="$S/unotest/source/python:$I/LibreOfficeDev.app/Contents/Resources:$I/LibreOfficeDev.app/Contents/Frameworks:$S/pyuno/qa/pytests" UserInstallation=file://$W/PythonTest/pyuno_pytests_testimports/user TestUserDir="file://$W/PythonTest/pyuno_pytests_testimports/" PYTHONDONTWRITEBYTECODE=1 MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=dbm: SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C $I/LibreOfficeDev.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.13/Resources/Python.app/Contents/MacOS/LibreOfficePython -m org.libreoffice.unittest testimports
[build CXX] starmath/qa/cppunit/test_parse.cxx
dyld[52524]: Library not loaded: /@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython
  Referenced from: <B217B854-E01D-3BF6-ACE3-EE94548D7A23> /Users/tdf/jenkins/workspace/lo_gerrit/Config/macosx_clang_dbgutil/instdir/LibreOfficeDev.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.13/Resources/Python.app/Contents/MacOS/LibreOfficePython
  Reason: tried: '/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython' (no such file), '/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.13/LibreOfficePython' (no such file)
/bin/sh: line 1: 52524 Abort trap: 6           DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+$DYLD_LIBRARY_PATH:}$I/LibreOfficeDev.app/Contents/Frameworks:$W/UnpackedTarball/cppunit/src/cppunit/.libs TEST_LIB=$W/LinkTarget/Library/libtest.dylib URE_BOOTSTRAP=vnd.sun.star.pathname:$I/LibreOfficeDev.app/Contents/Resources/fundamentalrc PYTHONPATH="$S/unotest/source/python:$I/LibreOfficeDev.app/Contents/Resources:$I/LibreOfficeDev.app/Contents/Frameworks:$S/codemaker/tests/pythonmaker" UserInstallation=file://$W/PythonTest/codemaker_python/user TestUserDir="file://$W/PythonTest/codemaker_python/" PYTHONDONTWRITEBYTECODE=1 MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=dbm: SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C $I/LibreOfficeDev.app/Contents/Frameworks/LibreOfficePython.framework/Versions/3.13/Resources/Python.app/Contents/MacOS/LibreOfficePython -m org.libreoffice.unittest test_pythonmaker

Downloaded from https://www.python.org/ftp/python/3.13.14/Python-3.13.14.tar.xz

Change-Id: I8f408fbdb2b37a4957f1e07a83176e6a3b889e96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206365
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-13 17:20:07 +02:00
Xisco Fauli cd0d1334f1 python3: upgrade to 3.13.13
Downloaded from https://www.python.org/ftp/python/3.13.13/Python-3.13.13.tar.xz

Change-Id: I8cee1d793495c14449be2d4d903fe5ec311cc774
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203520
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-04-14 13:19:19 +02:00
Xisco Fauli 241826dcb9 python3: upgrade to 3.13.11 (master only)
* external/python3/decimal.patch.1 partially reverts
commit 849e0716d378d6f9f724d1b3c386f6613d52a49d
Author: Zachary Ware <zach@python.org>
Date:   Mon Mar 18 12:07:25 2024 -0500

    gh-115119: Switch Windows build to mpdecimal external (GH-115182)

to build mpdecimal as internal on Windows

Downloaded from https://www.python.org/ftp/python/3.13.11/Python-3.13.11.tar.xz

Change-Id: Ia3385a3cc29f05ba898ec721c7e2a26c9d5f5ac2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195320
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-12-16 22:22:30 +01:00
Xisco Fauli 6408a49ac5 tdf#168513: python3: bundle lzma
Change-Id: I7b9729cd293aea781b204888236c3aa5aa858eaa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193739
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-11-11 21:40:00 +01:00
Xisco Fauli 63460e46da related tdf#168511: bundle venvlauncher.exe too
Change-Id: I7f70d624d4952e85252b9e457fa309e1f8005490
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193579
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-11-07 21:17:00 +01:00
Xisco Fauli 4bf59e9258 python3: bundle _hashlib on Windows too
as Linux and MacOS already do

Change-Id: I42aae48a35e72b540a7fda51bb5907de2de64aab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193288
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-11-03 15:27:55 +01:00
Xisco Fauli b6d2fe4fcc tdf#168514: Add pythonw.exe
Change-Id: Ib007a7203114501d96f109f6d0c3d33d991be347
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193258
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-10-31 16:44:35 +01:00
Xisco Fauli 3d57e6a9b5 tdf#132074: python3: bundle dbm
Change-Id: I1ed3c6e834f486cc8753513dfb03a2a0d4a8cfd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193155
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-10-29 18:58:53 +01:00
Xisco Fauli 1dfb0c9936 tdf#168512: python3: bundle sqlite3
Add sqlite3.patch.1 since sqlite3.vcxproj expects the
sqlite version in the path

Change-Id: Ieb262b5401447cc9cc8c8d68197b3ec492c6ed94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191394
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-29 14:21:29 +01:00
Xisco Fauli 087c49c15a python3: upgrade to 3.12.12
* Add external/python3/setuptools.patch.1 to deal with the space
in Lib/setuptools/_vendor/jaraco/text/Lorem ipsum.txt

Downloaded from https://www.python.org/ftp/python/3.12.12/Python-3.12.12.tar.xz

Change-Id: I0fe4730ee26267e0042fb10b6ad78bbc21ca1ce5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192758
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-21 21:05:53 +02:00
Xisco Fauli dd8c42bf4b tdf#168511: python3: bundle venv
Change-Id: I5d4b03571099486b981f83b0487cdcbc4dd7a1a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191377
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-09-23 11:21:40 +02:00
Xisco Fauli 528cdd6573 python3: upgrade to 3.12.11 (master only)
* Py_DontWriteBytecodeFlag is deprecated now, replace it with
PyConfig.write_bytecode

* setuptools and pip are no longer available by default on mac.
Get them from the wheel files the same way linux and windows do

Downloaded from https://www.python.org/ftp/python/3.12.11/Python-3.12.11.tar.xz

Change-Id: Id1043671d8fbb6b3bfa39afbf6aedd634c92c5f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181785
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-06-17 20:39:18 +02:00
Xisco Fauli e925155733 tdf#165120: pip: include .txt files
Change-Id: I06ce1fbfccf540113a918915488fa8a57527ce8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186208
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-06-05 16:04:41 +02:00
Xisco Fauli ffcdff2ff4 tdf#166746: pip: include .exe files
Change-Id: Ia4648ba2f51a1e04b1397bcde5e8321955854ba1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185907
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-05-27 15:19:35 +02:00
Andras Timar 3ebf51d380 fix internal Python build for ppc64le platform
Change-Id: I1229e93ea7bf5dd24580fbf3114a4201270c0120
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183810
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-04-08 08:12:18 +02:00
Xisco Fauli 315febd7ea related tdf#162786, tdf#159988: fix arm64 for linux
Change-Id: Ia2670b3827880f4aba642390e68ffcc77dc63740
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183371
Reviewed-by: Guillaume Paquereau <guillaume@carbone.io>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-03-28 21:44:38 +01:00
Xisco Fauli 9b0668b6c5 python3: simplify code in makefile
Mac never executes this code. See

$(if $(filter MACOSX,$(OS)),GeneratedPackage_python3,ExternalPackage_python3)

in external/python3/Module_python3.mk

Change-Id: I928f480945279f13f8ff3c398ddbbed133b9d9ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183369
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-03-27 11:11:39 +01:00
Xisco Fauli 3b18d95ba3 related tdf#162786: Add cacert.pem
In order to fix
ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path:
/home/xisco/libreoffice/instdir/program/python-core-3.11.11/lib/pip/_vendor/certifi/cacert.pem
when using pip install

Change-Id: I84d6c23021523c11803bc2b0858d69a706da0dd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180788
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-27 20:12:03 +01:00
Xisco Fauli 3575986e30 tdf#162786, tdf#159988: python3: do not strip soabi on linux/macOS
Otherwise libraries installed through pip do not work

Change-Id: Ib916964ce7d309faffaad1763884b1600b139c18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180781
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-27 15:46:25 +01:00
Xisco Fauli 47e110fc66 tdf#162786, tdf#161947: Add support for setuptools and pip
For that, just unzip the wheel files to the Lib directory

Change-Id: I3998e427aeadb840b626ebbb6ce91938de47d2b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180271
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-01-21 22:05:50 +01:00
Stephan Bergmann 590157ac15 external/python: Don't package an _lzma library
...to avoid

> [build CHK] CustomTarget/postprocess/check_dynamic_objects/check.done
> instdir/program/python-core-3.11.11/lib/lib-dynload/_lzma.cpython-3.11d.so has suspicious NEEDED: liblzma.so.5

as seen at least when building on a Fedora 41 machine that happens to have
xz-devel-5.6.2-2.fc41.x86_64 installed (so that Python's configure detects
have_liblzma=yes).

The _lzma library had been added to external/python3/ExternalPackage_python3.mk
in 892c0d2ef0 "python3: update
python3_EXTENSION_MODULES", but without giving any rationale.  (It had
previously been removed there with c2e4e74138
"Python3.5: Remove external dependencies: readline and lzma".)

Change-Id: I4afe9fb08891dda116f115dac7b2f948aac84e06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180194
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-13 23:20:11 +01:00
Xisco Fauli 50524481b3 Python: upgrade to 3.11.11 (master only)
Downloaded from https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz

* Add external/python3/replace-powershell-with-wget.patch.1
to avoid

FindPythonForBuild:
 Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure
 channel.
 At line:1 char:1
 + Invoke-WebRequest https://aka.ms/nugetclidl -OutFile
 'C:\cygwin64\home\tdf\jenki ...
 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~~~
     + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:Htt
    pWebRequest) [Invoke-WebRequest], WebException
     + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
    ll.Commands.InvokeWebRequestCommand

 'py' is not recognized as an internal or external command,
 operable program or batch file.

when downloading nuget.exe from https://aka.ms/nugetclidl
using powershell. By default powershell uses TLS 1.0 and the site security requires TLS 1.2,
so it fails with 'The request was aborted: Could not create SSL/TLS
secure channel.'

Kudos to Caolán for helping with a compiling issue.
See https://lists.freedesktop.org/archives/libreoffice/2024-December/092830.html

Change-Id: If66a88dd8f8c7774c49f8c33e9e40d2d5418e7c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178681
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-09 15:42:20 +01:00
Xisco Fauli 892c0d2ef0 python3: update python3_EXTENSION_MODULES
Change-Id: Ia636690f0dd9497e62ac9fd7a1ed4d00e71cc299
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179896
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-01-08 10:56:32 +01:00
Xisco Fauli 02363a5cf5 related tdf#143980: python3: add ensurepip
Change-Id: Ia38a81cbcd14776b7fa1398856bd3f8997a869ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178741
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-12-18 22:31:04 +01:00
Xisco Fauli 860e4b044a related tdf#162798: add script to create the list of external packages
Change-Id: Ifc24cb42df76c50f0ca40e3c793f36c355e483d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178730
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-12-18 22:30:45 +01:00
Xisco Fauli a3adfdb2d9 tdf#162798: python3: Add lib/importlib/readers.py
Somehow I missed to add it in a1295cb177
"python: upgrade to 3.10.14 (master only)"

Change-Id: I53e5fa6b89a7ac799041fd28ef4c2558df9743e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173323
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-13 19:12:12 +02:00
Xisco Fauli a1295cb177 python: upgrade to 3.10.14 (master only)
Downloaded from https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tar.xz

* external/python3/macos-11.patch.0 should be long
obsolete by now

Change-Id: I454851f7684e699519370bdbbcd9bb9a2cccd077
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170051
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-05 23:15:07 +02:00
Xisco Fauli 19e9e49bda python3: upgrade to 3.9.19
Downloaded from https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz

* python-3.8-msvc-sdk.patch.1 is no longer needed

* Comment out deprecated warnings for now:
C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/pyuno/source/module/pyuno_util.cxx(42): error C2220: the following warning is treated as an error
C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/pyuno/source/module/pyuno_util.cxx(42): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/pyuno/source/module/pyuno_util.cxx(64): warning C4996: 'PyUnicode_AsUnicode': deprecated in 3.3

Change-Id: Iaa358ffaaea63cf6ec47914759d0469e70e1cc65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168551
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-06-11 11:48:44 +02:00
Michael Stahl a2fabc78a4 python3: name gdb pretty-printer after .so, not .bin
So it works not only with instdir/program/python but also with
soffice in-process python.

Change-Id: I5c3643ef4a7ca0f25df3c6f51d11ff98c27f4bd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159148
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-11-09 16:54:08 +01:00
Taichi Haradaguchi c72d5d787f tdf#116412 include bz2 module in internal python
This commit includes the changes in 5e3510dbb6
and 219bef04b7, as well as the following changes:

* add bzip2 as permissable build target when cross compiling for Windows ARM64.
* add external/bzip2/disable-test.patch.0 for cross-compiling.
* revert the changes to configure.ac in 5e3510dbb6.
* change the argument of gb_UnpackedTarball_fix_end_of_line.

Change-Id: Iad8b1ed48d6c56e1302d9ac11620dc8084e79276
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157101
Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-10-14 08:53:14 +02:00
Andras Timar d4f1db0775 fix internal python build on aarch64-unknown-linux-gnu
Change-Id: I74189af9edd8384cbb1d65a805a29cea91646eeb
(cherry picked from commit 77ebb08e5f93ea9b9e82ddc3de0698babe0630a8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157752
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-10 20:49:23 +02:00
Taichi Haradaguchi 5cd48b4969 Revert "tdf#116412: include bz2 in internal python"
This reverts commit 5e3510dbb6.

Reason for revert: occured build error at https://ci.libreoffice.org/view/tb%20platform%20status/job/lo_daily_tb_win_arm64/966/

Change-Id: I9f9087964f7a85c03bca6be4eff5717d6d274c89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155391
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-08-07 05:59:22 +02:00
Taichi Haradaguchi f454a77405 Revert "external/python3: fix Windows build"
This reverts commit 219bef04b7.

Reason for revert: occured build error at https://ci.libreoffice.org/view/tb%20platform%20status/job/lo_daily_tb_win_arm64/972/

Change-Id: I26bb1a790ffddd7cb2f102f09cfb46b9327bb94b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155309
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-08-06 08:41:49 +02:00
Taichi Haradaguchi 219bef04b7 external/python3: fix Windows build
...after commit 5e3510dbb6
(tdf#116412: include bz2 in internal python)

add _bz2*.pyd modules.

Change-Id: Icae5971fd766af738287d34f7abc4187a7a1fcca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155367
Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-08-06 04:29:29 +02:00
Taichi Haradaguchi 5e3510dbb6 tdf#116412: include bz2 in internal python
Change-Id: Ie257446692227ae689fad2e61a42405a68e4f665
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139580
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-07-30 09:20:29 +02:00
Andras Timar 86c53eb59a fix internal python build on powerpc64le-unknown-linux-gnu
Change-Id: I49c1368542a1af5dbbf377dbd8cb0cad8c6e2a38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135174
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146689
Tested-by: Jenkins
2023-02-09 12:08:24 +00:00
Stephan Bergmann 70bcf9e8be Remove support for AIX
As discussed in the mailing list thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2023-January/089808.html>
"Plan to remove dead C++ UNO bridge implementations (bridges/source/cpp_uno/*)",
the bridge implementation at bridges/source/cpp_uno/gcc3_aix_powerpc is
apparently dead and should thus be removed.  However, that was the only bridge
implementation for AIX, which implies that support for the AIX platform as a
whole is dead and should thus be removed.

Change-Id: I96de3f7f97d4fd770ff78256f0ea435383688be9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146057
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-27 07:28:16 +00:00
Stephan Bergmann 5931638fda external/python3: Explicitly check that all extension modules got built
...to avoid issues like we now experienced on Jenkins box tb76, where e.g.
<https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/108402/> failed with
just an unhelpful

> /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/external/python3/ExternalPackage_python3.mk:46: *** file /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/workdir/UnpackedTarball/python3/LO_lib/_elementtree.cpython-3.8d.so does not exist in the tarball.  Stop.
> make[1]: *** Waiting for unfinished jobs....
> Makefile:299: recipe for target 'build' failed
> make: *** [build] Error 2

after ExternalProject_python3 had been built successfully, outputting just

> [build PRJ] python3

even though its workdir/UnpackedTarball/python3/build.log states

> *** WARNING: renaming "_elementtree" since importing it failed: pyexpat version is incompatible

and

> Following modules built successfully but were removed because they could not be imported:
> _elementtree

(but which got hidden by gbuild)

Change-Id: I28904ef41cb823e308bb8e15cbe969872702cb55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130355
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-02-23 11:12:10 +01:00
Jan-Marek Glogowski 013ddc4f53 Switch OPENSSL config var from negative to positive
- align with most of the rest of config_host
- rename DISABLE_OPENSSL to ENABLE_OPENSSL
- make this configurable

Change-Id: Ic3b41fcdda38db66134939f12265e0da24833d60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114564
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-05-05 21:14:30 +02:00
Jan-Marek Glogowski 5e1b3e924a Rename LO Windows arm64 ID to aarch64
The Windows platform is called Arm64. But now that the ID for Mac
is also going to be renamed from arm64 to aarch64, this get's rid
of the arm64 as the UNO identifier and user in gbuild, just like
on all other Arm64 platforms.

Change-Id: I60a7eafd04b426f17b6e41ad9a09e6405c0d4173
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112973
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-03-23 23:46:12 +01:00
Julien Nabet 8aae3b37a6 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>
2021-01-02 22:09:52 +01:00
Thomas Viehmann 12142490cd Enable Python Py_DEBUG setting when built with --enable-dbgutil on Linux
This has been suggested on IRC for testing fixes/avoiding regressions
when working on the GIL locking in PyUNO.

Change-Id: Ifda21a867b3c0c7db636a9ec950050012e4742de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106791
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Jenkins
2020-12-01 10:16:17 +01:00
Jan-Marek Glogowski bd066a17a2 python3: fix Windows Arm64 build
Change-Id: I2e9f9ca5fcf40a3ff53c036ebc51a75b882d91f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102854
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2020-09-17 06:39:06 +02:00
Stephan Bergmann ee5408d025 Name of python.bin-gdb.py must match name of python.bin executable
...for gdb to autoload it

Change-Id: I9a65a03fe18623181d5791b4596b4416228c6c8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99372
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-24 15:28:54 +02:00
Jan-Marek Glogowski b4dfba9477 python3: update to 3.8.4
With all the prerequisites in place, LO can be updated to the
current Python release. Interestingly I found that Cygwin always
seems to use LC_COLLATE=C, probably because the default collation
rules are missing.

Then there are the changes introduced in "PEP 587 -- Python
Initialization Configuration", which appearingly have modified the
DLL search path behaviour on Windows, so the OpenSLL DLLs aren't
found anymore in the program directory. As a workaround, the
OpenSLL and libffi DLLs are now (also) installed into the Python
lib dir on Windows.

Change-Id: Ib82f7b77213da9c525f8c79a13d128d9eec9ca64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98437
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2020-07-17 10:15:06 +02:00
Luboš Luňák 5bcd333501 revert the gyp-based nss build changes
https://lists.freedesktop.org/archives/libreoffice/2020-March/084769.html
etc.

This reverts commit c76fdcf1cf.
This reverts commit 10f52ab4d2.
This reverts commit eac806e8dc.
This reverts commit d591a682e4.
This reverts commit 12235d3390.
This reverts commit 23245f723f.
This reverts commit 91658b402b.
This reverts commit 5feadfad0c.
This reverts commit fecca49c30.
This reverts commit c6a9454e74.
This reverts commit a1a62a7041.
This reverts commit 8512f4ca09.
This reverts commit 532ffb7a29.

Change-Id: Iaa48d692bea2ca2468cdd5f8ad26ad91c0c31dde
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91199
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-03-27 12:07:27 +01:00
Luboš Luňák 8512f4ca09 build nss using their new build system (gyp/ninja-based)
This requires installed ninja, gyp is included as source. This
allows nss be built as a parallel build, unlike the old Makefile
build system.
Since gyp internally uses python, even recursively, this requires
more complicated setup in case our internal python is used. Moreover
gyp itself seems to be kind of deprecated itself and hasn't
been ported to python3 yet, so that needs patching too.
So far only easy Unix-like systems are converted, Windows I'll
do later, the more complicated systems I'll leave to whoever
has access to them.

Change-Id: I358baad7690d2aa6df44bafa9244dc7cc828fc3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90115
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-03-23 14:31:04 +01:00
Michael Stahl e62b9937ed tdf#130404 python3: add new windows .pyd modules for 3.7
Unfortunately forgot that in b10be5d484

Change-Id: I59043a576c45f9329a3fad9a5d50e7fefa901934
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88977
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-02-19 10:24:11 +01:00
Michael Stahl db75ec1870 python3: fix 32-bit x86 build
The reinvented wheel needs another subst.

Change-Id: I5bc01b0213f00d383cf971d34f0dc2a9e6817ab9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86480
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-09 13:36:28 +01:00