changeset 4632:a1d191feaa84 stable

debian: Override default value for SPHINXBUILD in docs/makefile Sphinx now defaults to Python 3 in Debian Buster, so we need to explicitly select the Python 2 version of sphinx-build for building docs.
author Faheem Mitha <faheem@faheem.info>
date Fri, 03 May 2019 03:52:44 +0530
parents 150be007f421
children 0b231ea2124b 6292fe564b20
files debian/rules
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/debian/rules	Fri May 03 03:44:48 2019 +0530
+++ b/debian/rules	Fri May 03 03:52:44 2019 +0530
@@ -6,7 +6,8 @@
 
 override_dh_auto_build:
 	dh_auto_build
-	$(MAKE) -C docs
+	# Workaround for Sphinx in Debian Buster defaulting to Python 3
+	SPHINXBUILD=/usr/share/sphinx/scripts/python2/sphinx-build $(MAKE) -C docs
 
 hgsrc_defined:
 	# Use "! -z" instead of "-n", because "-n" without arguments is true