From ed11684ffef7ea9b517ed2586272173d54ca7af3 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 29 Sep 2023 09:44:23 +0200 Subject: [PATCH] disable the doc on old distro --- debian/changelog | 1 + debian/rules | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/debian/changelog b/debian/changelog index 205c4946..e48c1959 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ llvm-toolchain-snapshot (1:18~++20230921012857+4cf8da94198d-1~exp1) UNRELEASED; * replace python3-recommonmark by myst-parser to follow upstream change b7ff03206d668cd5a620a9d4e1b22ea112ed56e3 + And disable generation of the doc on old distro -- Sylvestre Ledru Mon, 25 Sep 2023 21:51:52 +0200 diff --git a/debian/rules b/debian/rules index 61667530..2210a83f 100755 --- a/debian/rules +++ b/debian/rules @@ -412,6 +412,13 @@ ifeq (,$(filter-out $(LIBCXX_WASM_DISABLE_DISTRO), $(DISTRO))) LIBCXX_WASM_ENABLE=no endif +DOC_GENERATION=yes +DOC_GENERATION_DISTRO := buster bullseye bionic focal +# LLVM upstream moved to myst_parser but it isn't available on old distro +ifeq (,$(filter-out $(DISABLE_DOC_GENERATION_DISTRO), $(DISTRO))) + DOC_GENERATION=no +endif + ifneq (,$(filter $(DEB_HOST_ARCH),powerpc powerpcspe)) LIBCXX_WASM_ENABLE=no endif @@ -967,6 +974,10 @@ override_dh_auto_build: \ override_dh_prep: build_doc dh_prep +ifeq ($(DOC_GENERATION), no) +build_doc: + @echo "Don't build doc on this distro $(DISTRO)" +else build_doc: BUILDDIR="_build"; \ ALLSPHINXOPTS="-d $$BUILDDIR/doctrees ."; \ @@ -1028,6 +1039,7 @@ endif cd openmp/runtime/doc/doxygen/generated/html/ && rm jquery.js && ln -s /usr/share/javascript/jquery/jquery.js; \ fi touch $@ +endif override_dh_auto_install: # Clean up temporary files to make sure the install works