From c493c8593ef2781fc250fb0a40a77ec4718f90bb Mon Sep 17 00:00:00 2001 From: kreiserlee Date: Thu, 13 Jun 2024 19:33:56 +0800 Subject: [PATCH] fix build error for higher sphinx --- debian/changelog | 6 ++++++ .../0002-fix-build-error-for-higher-sphinx.patch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 22 insertions(+) create mode 100644 debian/patches/0002-fix-build-error-for-higher-sphinx.patch diff --git a/debian/changelog b/debian/changelog index cad5000..1d6c687 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-future (0.18.2-1-ok2) nile; urgency=medium + + * hack around missing toint in sphinx + + -- liyang Thu, 13 Jun 2024 19:32:52 +0800 + python-future (0.18.2-1-ok1) nile; urgency=medium * update upstream version diff --git a/debian/patches/0002-fix-build-error-for-higher-sphinx.patch b/debian/patches/0002-fix-build-error-for-higher-sphinx.patch new file mode 100644 index 0000000..953a28e --- /dev/null +++ b/debian/patches/0002-fix-build-error-for-higher-sphinx.patch @@ -0,0 +1,15 @@ +From: kreiserlee +Date: Thu, 13 Jun 2024 19:33:56 +0800 +Subject: fix build error for higher sphinx + +--- + docs/_templates/sidebartoc.html | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/_templates/sidebartoc.html b/docs/_templates/sidebartoc.html +index 2edf636..945b763 100644 +--- a/docs/_templates/sidebartoc.html ++++ b/docs/_templates/sidebartoc.html +@@ -1 +1 @@ +-{{ toctree(maxdepth=toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }} ++{{ toctree(maxdepth=3, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }} diff --git a/debian/patches/series b/debian/patches/series index 8ef76ab..d4992bb 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-update-debian.patch +0002-fix-build-error-for-higher-sphinx.patch