mirror of
https://github.com/openwrt/packages.git
synced 2026-12-03 00:35:30 +04:00
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:
1 parent
c46ecc7fc3
commit
6231f41016
3 files changed
+7
-4
No files matched your search
@@ -47,7 +47,8 @@ define Package/python3-setuptools-rust
|
||||
+python3-logging \
|
||||
+python3-semantic-version \
|
||||
+python3-setuptools \
|
||||
+rust
|
||||
+rust \
|
||||
@!USE_RUST_TOOLCHAIN
|
||||
BUILDONLY:=1
|
||||
endef
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user