I believe these patches from upstream fix the build problem: https://git.launchpad.net/ubuntu/+source/unbound/tree/debian/patches/python3.10.patch https://git.launchpad.net/ubuntu/+source/unbound/tree/debian/patches/python3.10-2.patch
- Bug#1008641: unbound: FTBFS: ./pythonmod/pythonmod.c:33... Sebastian Ramacher
- Bug#1008641: Andreas Hasenack
- Bug#1008641: unbound: diff for NMU version 1.13.1-... Sebastian Ramacher