diff options
author | 2023-10-02 19:45:55 -0400 | |
---|---|---|
committer | 2023-10-17 21:26:03 -0700 | |
commit | fe2498a0303f60e2e73a0f060ed69ee4dd7e65ca (patch) | |
tree | 42c14989d137907c43a3d458ee94e89f80ac0c0c /app-text/calibre/files | |
parent | app-text/calibre: prune unneeded runtime contents (diff) | |
download | gentoo-fe2498a0303f60e2e73a0f060ed69ee4dd7e65ca.tar.gz gentoo-fe2498a0303f60e2e73a0f060ed69ee4dd7e65ca.tar.bz2 gentoo-fe2498a0303f60e2e73a0f060ed69ee4dd7e65ca.zip |
app-text/calibre: fix compatibility with recent zeroconf
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-text/calibre/files')
-rw-r--r-- | app-text/calibre/files/calibre-5.44.0-Fix-compatibility-with-zeroconf-0.73.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-text/calibre/files/calibre-5.44.0-Fix-compatibility-with-zeroconf-0.73.patch b/app-text/calibre/files/calibre-5.44.0-Fix-compatibility-with-zeroconf-0.73.patch new file mode 100644 index 000000000000..79af5d94bb59 --- /dev/null +++ b/app-text/calibre/files/calibre-5.44.0-Fix-compatibility-with-zeroconf-0.73.patch @@ -0,0 +1,26 @@ +From 5d8d85c649b181747d182f676cfd76f843bd61f0 Mon Sep 17 00:00:00 2001 +From: Kovid Goyal <kovid@kovidgoyal.net> +Date: Sun, 1 Oct 2023 15:08:59 +0530 +Subject: [PATCH] Fix compatibility with zeroconf >= 0.73 + +Fixes #2038 (fix compatibility with newer zeroconf) +--- + src/calibre/devices/smart_device_app/driver.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py +index 87608f305b..b41c3a0063 100644 +--- a/src/calibre/devices/smart_device_app/driver.py ++++ b/src/calibre/devices/smart_device_app/driver.py +@@ -2175,6 +2175,8 @@ def monkeypatch_zeroconf(): + # "monkeypatch" zeroconf with a function without the check + try: + from zeroconf._utils.name import service_type_name ++ # zeroconf 0.73 uses an lru cache so we need __wrapped__ ++ service_type_name = getattr(service_type_name, '__wrapped__', service_type_name) + service_type_name.__kwdefaults__['strict'] = False + except ImportError: + import zeroconf +-- +2.41.0 + |