Summary: | app-misc/anki-2.1.15: runtime error with Python 3.9, no error with Python 3.8 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Austin Ray <austin> |
Component: | Current packages | Assignee: | Patrick Lauer <patrick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, sam |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/21200 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
backtrace.txt anki-2.1.15-unescape.patch |
Description
Austin Ray
2021-06-11 02:02:35 UTC
Created attachment 715197 [details]
backtrace.txt
Created attachment 715200 [details, diff]
anki-2.1.15-unescape.patch
Added patch that replaces the removed method with its suggested replacement.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=267c5a6cdfd2d0e3839118d49598e92ac074d7b0 commit 267c5a6cdfd2d0e3839118d49598e92ac074d7b0 Author: Austin Ray <austin@austinray.io> AuthorDate: 2021-06-11 15:10:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-12 09:25:48 +0000 app-misc/anki: patch Python 3.9 incompatibility This commit modifies the existing anki-2.1.15 ebuild with a patch to replace a deprecated, undocumented method available in Python 3.8[0] but removed in Python 3.9[1]. Without the patch, anki throws a runtime error (see bug for more details) as anki 2.1.15 pre-dates Python 3.9. [0] https://github.com/python/cpython/blob/4844abdd700120120fc76c29d911bcb547700baf/Lib/html/parser.py#L466 [1] https://bugs.python.org/issue37328 Closes: https://bugs.gentoo.org/795309 Signed-off-by: Austin Ray <austin@austinray.io> Closes: https://github.com/gentoo/gentoo/pull/21200 Signed-off-by: Sam James <sam@gentoo.org> app-misc/anki/{anki-2.1.15.ebuild => anki-2.1.15-r1.ebuild} | 1 + app-misc/anki/files/anki-2.1.15-unescape.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) |