File "app-text/calibre-5.4.2/work/calibre-5.4.2/src/calibre/devices/smart_device_app/driver.py", line 2044, in <module> from zeroconf import (BadTypeInNameException, _HAS_A_TO_Z, File "/usr/lib/python3.7/site-packages/zeroconf/__init__.py", line 88, in <module> _MDNS_ADDR6_BYTES = socket.inet_pton(socket.AF_INET6, _MDNS_ADDR6) OSError: can't use AF_INET6, IPv6 is disabled Reproducible: Always Steps to Reproduce: 1. Disable IPv6. 2. Emerge app-text/calibre-5.4.2 Actual Results: Fails to install. Expected Results: Installs.
I think you can imagine the response here is likely to be just adding ipv6 to the required use for Python. Otherwise, this will need work upstream or at least in Gentoo to adapt the zeroconf package.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f79571e680258bc70d022b43a34cfb44f910a44f commit f79571e680258bc70d022b43a34cfb44f910a44f Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-11-01 18:00:46 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-11-01 18:16:52 +0000 app-text/calibre: add ipv6 to PYTHON_REQ_USE Closes: https://bugs.gentoo.org/752090 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Zac Medico <zmedico@gentoo.org> app-text/calibre/calibre-5.4.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(In reply to Sam James from comment #1) > I think you can imagine the response here is likely to be just adding ipv6 > to the required use for Python. > > Otherwise, this will need work upstream or at least in Gentoo to adapt the > zeroconf package. Yeah, I imagine that fighting for the right to disable IPv6 could prove to be a difficult battle in this day an age.
Sure, requiring an ipv6 enabled system to _install_ an ebook management program seems legit... Upstream bug in python-zeroconf: https://github.com/jstasiak/python-zeroconf/issues/234
Patch was commited upstream, so >dev-python/zeroconf-0.30.0 should no longer require ipv6.
app-text/calibre and dev-python/zeroconf work together with dev-lang/python[-ipv6]. Requirement for ipv6 enabled python can be removed from calibre.