Source: python-pyaudio Version: 0.2.11-1.3 Severity: serious Tags: ftbfs patch bookworm sid User: debian-pyt...@lists.debian.org Usertags: python3.10
Hi Maintainer As can be seen on reproducible builds [1], python-pyaudio FTBFS with Python 3.10 as the default version. I've copied what I hope is the relevant part of the log below. I've also attached a patch that works for me. Regards Graham [1] https://tests.reproducible-builds.org/debian/rb-pkg/python-pyaudio.html x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/build/1st/python-pyaudio-0.2.11=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/src/_portaudiomodule.o -lportaudio -o build/lib.linux-x86_64-3.10/_portaudio.cpython-310-x86_64-linux-gnu.so touch build/lib.linux-x86_64-3.1/build touch: cannot touch 'build/lib.linux-x86_64-3.1/build': No such file or directory make[2]: *** [Makefile:39: build/lib.linux-x86_64-3.1/build] Error 1
Description: Adjust Makefile for Python 3.10 import get_platform() from sysconfig instead of distutils support Python with 2-digit minor version Author: Graham Inggs <gin...@debian.org> Last-Update: 2022-03-31 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ BUILD_ARGS ?= SPHINX ?= sphinx-build DOCS_OUTPUT=docs/ -PYTHON_BUILD_DIR:=$(shell $(PYTHON) -c "import distutils.util; import sys; print(distutils.util.get_platform() + '-' + sys.version[0:3])") +PYTHON_BUILD_DIR:=$(shell $(PYTHON) -c "import sysconfig; import sys; print(sysconfig.get_platform() + '-' + ('%d.%d' % sys.version_info[:2]))") BUILD_DIR:=lib.$(PYTHON_BUILD_DIR) BUILD_STAMP:=$(BUILD_DIR)/build SRCFILES := src/*.c src/*.h src/*.py