]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rust: Split rustdoc into a separate package
authorSundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Wed, 22 Nov 2023 02:14:46 +0000 (18:14 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Nov 2023 22:54:31 +0000 (22:54 +0000)
The 'rustdoc' is moved to a separate 'rust-rustdoc' package. This is a
workaround to test if the main rust binary is reproducible even if
rustdoc isn't.

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/reproducible.py
meta/recipes-devtools/rust/rust_1.70.0.bb

index 029b6af33145c632d09ed2fee7dbebbaad4d53f7..14ccb0b24d5950fbe9adf34c9d208b37c7ce4be7 100644 (file)
@@ -16,7 +16,7 @@ import os
 import datetime
 
 exclude_packages = [
-       'rust',
+       'rust-rustdoc',
        'rust-dbg'
        ]
 
index 16d433910f8e0b3c5d7f9641d90bf2c0c6afe0cb..a7efd2f7f03b31564ed49f37d246007fdd8528a0 100644 (file)
@@ -232,9 +232,11 @@ do_test_compile () {
 
 ALLOW_EMPTY:${PN} = "1"
 
-PACKAGES =+ "${PN}-tools-clippy ${PN}-tools-rustfmt"
+PACKAGES =+ "${PN}-rustdoc ${PN}-tools-clippy ${PN}-tools-rustfmt"
+FILES:${PN}-rustdoc = "${bindir}/rustdoc"
 FILES:${PN}-tools-clippy = "${bindir}/cargo-clippy ${bindir}/clippy-driver"
 FILES:${PN}-tools-rustfmt = "${bindir}/rustfmt"
+RDEPENDS:${PN}-rustdoc = "${PN}"
 RDEPENDS:${PN}-tools-clippy = "${PN}"
 RDEPENDS:${PN}-tools-rustfmt = "${PN}"