Package: python-pyalsa Followup-For: Bug #999385 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu jammy ubuntu-patch Control: tags -1 patch
Please find attached a patch that fixes this build failure. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru python-pyalsa-1.1.6/debian/patches/python-3.10.patch python-pyalsa-1.1.6/debian/patches/python-3.10.patch --- python-pyalsa-1.1.6/debian/patches/python-3.10.patch 1969-12-31 16:00:00.000000000 -0800 +++ python-pyalsa-1.1.6/debian/patches/python-3.10.patch 2021-11-15 23:21:21.000000000 -0800 @@ -0,0 +1,21 @@ +Description: Fix build failure with python 3.10. + PyTuple_SET_ITEM returns void; don't try to check its return value +Author: Steve Langasek <steve.langa...@ubuntu.com> +Bug-Debian: https://bugs.debian.org/999385 +Last-Update: 2021-11-15 + +Index: python-pyalsa-1.1.6/pyalsa/alsahcontrol.c +=================================================================== +--- python-pyalsa-1.1.6.orig/pyalsa/alsahcontrol.c ++++ python-pyalsa-1.1.6/pyalsa/alsahcontrol.c +@@ -1543,8 +1543,8 @@ + + t = PyTuple_New(2); + if (t) { +- if (PyTuple_SET_ITEM(t, 0, (PyObject *)pyhelem)) +- Py_INCREF(pyhelem); ++ PyTuple_SET_ITEM(t, 0, (PyObject *)pyhelem); ++ Py_INCREF(pyhelem); + PyTuple_SET_ITEM(t, 1, PyInt_FromLong(mask)); + r = PyObject_CallObject(o, t); + Py_DECREF(t); diff -Nru python-pyalsa-1.1.6/debian/patches/series python-pyalsa-1.1.6/debian/patches/series --- python-pyalsa-1.1.6/debian/patches/series 1969-12-31 16:00:00.000000000 -0800 +++ python-pyalsa-1.1.6/debian/patches/series 2021-11-15 23:16:57.000000000 -0800 @@ -0,0 +1 @@ +python-3.10.patch
_______________________________________________ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team