rust: hide rust/host users with the build system's Rust toolchain

The build system can provide a Rust toolchain of its own. Its packages
then use that, and rust/host of this feed must not be built next to it.

Make RUST_ARCH_DEPENDS depend on USE_RUST_TOOLCHAIN being unset, and add
the same condition to pdns-recursor and python3-setuptools-rust, which
use rust/host without RUST_ARCH_DEPENDS. Without the symbol in the build
system nothing changes, as Kconfig takes an unknown symbol for n.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle committed 2026-10-30 11:14:18 +00:00
1 parent c46ecc7fc3
commit 6231f41016
3 files changed
+7 -4

No files matched your search

+2 -1
View File
@@ -47,7 +47,8 @@ define Package/python3-setuptools-rust
+python3-logging \
+python3-semantic-version \
+python3-setuptools \
+rust
+rust \
@!USE_RUST_TOOLCHAIN
BUILDONLY:=1
endef
+3 -2
View File
@@ -98,8 +98,9 @@ endif
RUSTC_TARGET_UPPER = $(subst -,_,$(call toupper,$(RUSTC_TARGET_ARCH)))
RUSTC_TARGET_CARGO_RUSTFLAGS = CARGO_TARGET_$(RUSTC_TARGET_UPPER)_RUSTFLAGS
# Support only a subset for now.
RUST_ARCH_DEPENDS:=@(aarch64||arm||i386||loongarch64||mips||mips64||mips64el||mipsel||powerpc||powerpc64||riscv64||x86_64)
# Support only a subset for now. The Rust toolchain of the build system, when
# selected, replaces rust/host.
RUST_ARCH_DEPENDS:=@(aarch64||arm||i386||loongarch64||mips||mips64||mips64el||mipsel||powerpc||powerpc64||riscv64||x86_64) @!USE_RUST_TOOLCHAIN
ifneq ($(CONFIG_RUST_SCCACHE),)
RUST_SCCACHE_DIR:=$(if $(call qstrip,$(CONFIG_RUST_SCCACHE_DIR)),$(call qstrip,$(CONFIG_RUST_SCCACHE_DIR)),$(TOPDIR)/.sccache)
+2 -1
View File
@@ -27,7 +27,8 @@ define Package/pdns-recursor
SUBMENU:=IP Addresses and Names
USERID:=pdns:pdns
TITLE:=PowerDNS Recursor
DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +libfstrm +libcurl
DEPENDS:=+boost +boost-context +boost-filesystem +libatomic +liblua +libopenssl +libfstrm +libcurl \
@!USE_RUST_TOOLCHAIN
URL:=https://www.powerdns.com/recursor.html
endef