tag 1065893 - ftbfs

tag 1065893 + moreinfo

thanks


Hi,

Am 10.03.24 um 18:49 schrieb Graham Inggs:
Severity: important
Tags: ftbfs
Nope. As demonstrated below it does NOT FTBFS if I ran it to the end. Actually did once.
This package has dependencies, build-dependencies and/or autopkgtest
dependencies on python3-distutils.  The python3-distutils binary
package will soon be dropped from python3-stdlib-extensions.
# apt remove python3-distutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:   gir1.2-girepository-2.0 gir1.2-girepository-2.0-dev libgirepository-1.0-1 libjs-jquery libjs-sphinxdoc libjs-underscore libpython3-dev libpython3.11-dev   python3-lib2to3 python3-mako python3-markdown python3-markupsafe python3-pkg-resources python3.11-dev
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  dh-python gobject-introspection gobject-introspection-bin libgirepository-1.0-dev libgirepository1.0-dev python3-dev python3-distutils python3-setuptools
0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
After this operation, 5736 kB disk space will be freed.
Do you want to continue? [Y/n]


and dh-python gobject-introspection libgirepository1.0-dev python3-dev are definitely needed as build -dependencies-

In fact, there is no module for Python 3.12 in python3-distutils, so
these dependencies may already be unnecessary.

Wrong. both debian/rules and LibreOffices configure use distutils to figure out the module install directory path for example.

e.g. PYTHON_SITE:=debian/python3-uno/$(shell $(PYTHON) -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')

and similar stuff in upstreams configure.


And that one is not done on 3.12 yet since LibreOffice (for reasons!) only builds for default python. Which is 3.11.


After install python3 python3-dev from experimental (so 3.12):

$ python3
Python 3.12.2 (main, Feb 25 2024, 17:51:42) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils;
>>> from distutils import sysconfig; print(sysconfig.get_python_lib())
/usr/lib/python3/dist-packages
>>> print(distutils)
<module 'distutils' (/usr/lib/python3/dist-packages/setuptools/_distutils/__init__.py)>
>>>

and doing a libreoffice build with debuild -Pnogir (since we need gobject-introspection etc. which isn't yet built for default 3.12 either):

$ debuild -Pnogir

[...]

checking for a Python interpreter with version >= 3.3... python3
checking for python3... /usr/bin/python3
checking for python3 version... 3.12
checking for python3 platform... linux
checking for GNU default python3 prefix... ${prefix}
checking for GNU default python3 exec_prefix... ${exec_prefix}
checking for python3 script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.12/site-packages checking for python3 extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.12/site-packages

[...]

in upstreams configure.


I think this bugreport is too early.


Regards,


Rene

Reply via email to