commit: c00e1430a4e004a7726198d1ebab40031b692fbb Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Tue Apr 27 09:20:46 2021 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Tue Apr 27 11:47:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c00e1430
dev-lang/rust: set deny-warnings=false if wasm + doc are requested This should unbreak USE="doc wasm" build and allow to aunmask doc useflag, which has been masked for quite some time. https://github.com/rust-lang/rust/issues/74976 https://github.com/rust-lang/rust/issues/76526 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> dev-lang/rust/rust-1.51.0-r2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-lang/rust/rust-1.51.0-r2.ebuild b/dev-lang/rust/rust-1.51.0-r2.ebuild index 4cb06646840..602ca858422 100644 --- a/dev-lang/rust/rust-1.51.0-r2.ebuild +++ b/dev-lang/rust/rust-1.51.0-r2.ebuild @@ -292,7 +292,7 @@ src_configure() { rustc = "${rust_stage0_root}/bin/rustc" rustfmt = "${rust_stage0_root}/bin/rustfmt" docs = $(toml_usex doc) - compiler-docs = $(toml_usex doc) + compiler-docs = false submodules = false python = "${EPYTHON}" locked-deps = true @@ -330,6 +330,10 @@ src_configure() { dist-src = false remap-debuginfo = true lld = $(usex system-llvm false $(toml_usex wasm)) + # only deny warnings if doc+wasm are NOT requested, documenting stage0 wasm std fails without it + # https://github.com/rust-lang/rust/issues/74976 + # https://github.com/rust-lang/rust/issues/76526 + deny-warnings = $(usex wasm $(usex doc false true) true) backtrace-on-ice = true jemalloc = false [dist]
