From 3a42c62d81bd8949e142fe3508de64b99633c85f Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Mon, 2 Jan 2023 13:39:35 +0100 Subject: [PATCH] debian: fix sphinx docs - use dh_sphinxdoc to get rid of embedded JS Signed-off-by: David Lamparter (cherry picked from commit e1e2ea84eed7f1880e1ed3fa2cfa09eaa9d2cdc1) --- debian/control | 5 ++--- debian/rules | 8 +------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/debian/control b/debian/control index 5f51bca538..01c9409314 100644 --- a/debian/control +++ b/debian/control @@ -104,9 +104,8 @@ Package: frr-doc Section: doc Architecture: all Multi-Arch: foreign -Depends: libjs-jquery, - libjs-underscore, - ${misc:Depends} +Depends: ${misc:Depends}, + ${sphinxdoc:Depends} Suggests: frr Conflicts: quagga-doc Description: FRRouting suite - user manual diff --git a/debian/rules b/debian/rules index 083464034f..bed16b86a1 100755 --- a/debian/rules +++ b/debian/rules @@ -36,7 +36,7 @@ endif export PYTHON=python3 %: - dh $@ -Bbuild + dh $@ -Bbuild --with=sphinxdoc override_dh_auto_configure: $(shell dpkg-buildflags --export=sh); \ @@ -93,12 +93,6 @@ override_dh_auto_install: rm -rf debian/tmp/usr/include -rm debian/tmp/usr/lib/frr/ssd -# use installed js libraries - -rm -f debian/tmp/usr/share/doc/frr/html/_static/jquery.js - ln -s /usr/share/javascript/jquery/jquery.js debian/tmp/usr/share/doc/frr/html/_static/jquery.js - -rm -f debian/tmp/usr/share/doc/frr/html/_static/underscore.js - ln -s /usr/share/javascript/underscore/underscore.js debian/tmp/usr/share/doc/frr/html/_static/underscore.js - override_dh_auto_build: dh_auto_build -- $(MAKE_SILENT) -- 2.39.5