From 2a118588e727db3094d33e91d9b5f23f57c233d3 Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Thu, 7 Oct 2021 11:15:16 +0200 Subject: [PATCH] * debian/patches/fix-sphinx-build.patch: New patch, fixes building with latest sphinx, taken from upstream pull request #2080. --- debian/changelog | 2 ++ debian/patches/fix-sphinx-build.patch | 13 +++++++++++++ debian/patches/series | 1 + 3 files changed, 16 insertions(+) create mode 100644 debian/patches/fix-sphinx-build.patch diff --git a/debian/changelog b/debian/changelog index 34a4112..4c1c51a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ patroni (2.1.1-2) UNRELEASED; urgency=medium [ Michael Banck ] * debian/patches/dcs-last-seen.patch: New patch, taken from upstream commit 2f31e88b. + * debian/patches/fix-sphinx-build.patch: New patch, fixes building with + latest sphinx, taken from upstream pull request #2080. -- Debian PostgreSQL Maintainers Fri, 20 Aug 2021 10:54:10 +0200 diff --git a/debian/patches/fix-sphinx-build.patch b/debian/patches/fix-sphinx-build.patch new file mode 100644 index 0000000..975fb79 --- /dev/null +++ b/debian/patches/fix-sphinx-build.patch @@ -0,0 +1,13 @@ +diff --git a/docs/conf.py b/docs/conf.py +index 20fa354..ae19400 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -194,4 +194,7 @@ intersphinx_mapping = {'https://docs.python.org/': None} + # A possibility to have an own stylesheet, to add new rules or override existing ones + # For the latter case, the CSS specificity of the rules should be higher than the default ones + def setup(app): +- app.add_stylesheet("custom.css") ++ if hasattr(app, 'add_css_file'): ++ app.add_css_file('custom.css') ++ else: ++ app.add_stylesheet('custom.css') diff --git a/debian/patches/series b/debian/patches/series index bbd6fd4..221e661 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ regression_tests_disable_requirement_download.patch requirements_cdiff.patch regression_tests_disable_raft_tests.py dcs-last-seen.patch +fix-sphinx-build.patch