From 1fd63ebe1fd29e7bc0a9e4e79a74278a449e4334 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Wed, 31 May 2017 02:28:22 +0200 Subject: [PATCH] Don't build docs in an arch-only build --- debian/config.toml.in | 2 ++ debian/rules | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/config.toml.in b/debian/config.toml.in index 91eb92ce98..7d74ca8667 100644 --- a/debian/config.toml.in +++ b/debian/config.toml.in @@ -12,6 +12,8 @@ build = "DEB_BUILD_RUST_TYPE" host = ["DEB_HOST_RUST_TYPE"] target = ["DEB_TARGET_RUST_TYPE"] +docs = false + [install] prefix = "/usr" diff --git a/debian/rules b/debian/rules index 00ef169fe0..82a2d64a88 100755 --- a/debian/rules +++ b/debian/rules @@ -148,6 +148,8 @@ override_dh_auto_build-arch: generate-sources # depends on build-arch anyways. override_dh_auto_build-indep: generate-sources ifneq (,$(BUILD_DOCS)) +# Rust has a weird way of configuring whether to build docs or not + sed -i -e 's/^docs = false/docs = true/' debian/config.toml $(RUSTBUILD) doc $(RUSTBUILD_FLAGS) endif