Patch backport: https://git.launchpad.net/beautifulsoup/commit/?id=9786a62726de5a8caba10021c4d4a58c8a3e9e3f
Fix: https://build.alpinelinux.org/buildlogs/build-edge-loongarch64/community/py3-beautifulsoup4/py3-beautifulsoup4-4.12.3-r2.log