Source: gpgme1.0 Version: 1.18.0-5 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: python3-setupto...@packages.debian.org, ametz...@debian.org
Hello, gpgme1.0 has recently started to FTBFS on current sid while it build successfully on trixie: -------------- make[6]: Leaving directory '/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/tests' for PYTHON in /usr/bin/python3.12 ; do \ GNUPGHOME=/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=../../../.. srcdir=../../../../lang/python/tests LD_LIBRARY_PATH="../../../src/.libs:" $PYTHON ../../../../lang/python/tests/run-tests.py \ --interpreters="/usr/bin/python3.12 " --srcdir=../../../../lang/python/tests \ initial.py t-wrapper.py t-callbacks.py t-data.py t-encrypt.py t-encrypt-sym.py t-encrypt-sign.py t-sign.py t-signers.py t-decrypt.py t-verify.py t-decrypt-verify.py t-sig-notation.py t-export.py t-import.py t-edit.py t-keylist.py t-keylist-from-data.py t-wait.py t-encrypt-large.py t-file-name.py t-idiomatic.py t-protocol-assuan.py t-quick-key-creation.py t-quick-subkey-creation.py t-quick-key-manipulation.py t-quick-key-signing.py final.py ; \ done Traceback (most recent call last): File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/tests/../../../../lang/python/tests/initial.py", line 24, in <module> import gpg File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/__init__.py", line 123, in <module> from . import core File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/core.py", line 10, in <module> from . import gpgme ImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/__init__.py) Traceback (most recent call last): File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/tests/../../../../lang/python/tests/t-wrapper.py", line 20, in <module> import gpg File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/__init__.py", line 123, in <module> from . import core File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/core.py", line 10, in <module> from . import gpgme ImportError: cannot import name 'gpgme' from partially initialized module 'gpg' (most likely due to a circular import) (/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/__init__.py) Traceback (most recent call last): File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/tests/../../../../lang/python/tests/t-callbacks.py", line 24, in <module> import gpg File "/home/ametzler/X/gpgme1.0-1.18.0/build/lang/python/python3.12-gpg/lib.linux-armhf-cpython-312/gpg/__init__.py", line 123, in <module> from . import core [...] -------------- I have debugged this insofar that downgrading python3-pkg-resources/python3-setuptools to the trixie version (70.3.0-2) and additionally removing python packages not present in the trixie package list (python3-zipp python3-inflect python3-jaraco.functools python3-more-itertools python3-typeguard python3-typing-extensions) lets the build succeed. Only downgrading python3-pkg-resources/python3-setuptools withou removing the other packages seems to result in further breakage: =================================== set -e ; for PYTHON in /usr/bin/python3.12 ; do \ CPP="gcc -E" \ CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/tmp/GPGME/gpgme=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-format-y2k -Wno-missing-field-initializers -Wno-sign-compare -Wno-format-zero-length -Wno-format-truncation -Wno-sizeof-pointer-div" \ srcdir="../../../lang/python" \ top_builddir="../.." \ $PYTHON setup.py build --verbose --build-base="$(basename "${PYTHON}")-gpg" ; \ done Traceback (most recent call last): File "/tmp/GPGME/gpgme/build/lang/python/setup.py", line 21, in <module> from distutils.core import setup, Extension ModuleNotFoundError: No module named 'distutils' make[4]: *** [Makefile:760: all-local] Error 1 =================================== cu Andreas -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.10.6-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure'