build docs with -j1

they have an ordering problem that breaks reproducibility otherwise.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2025-02-17 13:19:21 +01:00
parent 40257878ca
commit 03215924df

9
debian/rules vendored
View File

@ -68,7 +68,10 @@ endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif
RUSTBUILD = RUST_BACKTRACE=1 python3 src/bootstrap/bootstrap.py $(NJOBS)
RUSTBUILD_COMMON = RUST_BACKTRACE=1 python3 src/bootstrap/bootstrap.py
RUSTBUILD = $(RUSTBUILD_COMMON) $(NJOBS)
# force reproducibility
RUSTBUILD_DOCS = $(RUSTBUILD_COMMON) -j1
RUSTBUILD_FLAGS = --stage 2 --config debian/config.toml --on-fail env
# rust-tidy depends on lots of modules that we strip out of the build.
# it also tries to access the network for some reason. so just disable it.
@ -320,8 +323,8 @@ ifeq (true,$(BUILD_WASM))
library/std
endif
ifeq (true,$(BUILD_DOCS))
$(RUSTBUILD) doc $(RUSTBUILD_FLAGS)
$(RUSTBUILD) doc $(RUSTBUILD_FLAGS) cargo # document cargo APIs
$(RUSTBUILD_DOCS) doc $(RUSTBUILD_FLAGS)
$(RUSTBUILD_DOCS) doc $(RUSTBUILD_FLAGS) cargo # document cargo APIs
endif
TEST_LOG = debian/rustc-tests.log