diff --git a/debian/changelog b/debian/changelog index f80eb10..6b0834d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sphinx-rtd-theme (2.0.0+dfsg-ok2) nile; urgency=medium + + * Backport upstream patch for fix build error. + + -- liwenjun Thu, 17 Oct 2024 17:42:19 +0800 + sphinx-rtd-theme (2.0.0+dfsg-ok1) nile; urgency=medium * Build for openKylin. diff --git a/debian/patches/0006-Backport-upstream-patch-for-fix-build-error.patch b/debian/patches/0006-Backport-upstream-patch-for-fix-build-error.patch new file mode 100644 index 0000000..61d5bbb --- /dev/null +++ b/debian/patches/0006-Backport-upstream-patch-for-fix-build-error.patch @@ -0,0 +1,27 @@ +From: "liwenjun@kylinos.cn" +Date: Thu, 17 Oct 2024 17:45:01 +0800 +Subject: Backport upstream patch for fix build error + +--- + tests/test_builders.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/tests/test_builders.py b/tests/test_builders.py +index d3d3c51..184e416 100644 +--- a/tests/test_builders.py ++++ b/tests/test_builders.py +@@ -37,10 +37,13 @@ def test_basic(): + ) + assert search in content + elif isinstance(app.builder, SingleFileHTMLBuilder): ++ internal_ref = '#document-foo' ++ if sphinx.version_info[:3] < (7, 3, 0): ++ internal_ref = 'index.html' + internal_ref + search = ( + '' + ) diff --git a/debian/patches/series b/debian/patches/series index af4c556..5d2eb13 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ tests-configuration.patch replace-webpack-imports.patch do-not-override-build-commands.patch remove-html5shiv.patch +0006-Backport-upstream-patch-for-fix-build-error.patch