From 3c88ccaa05a7a7a618c5de69604c453064c1dbdd Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 27 Oct 2026 20:51:08 +0200 Subject: [PATCH] bottom: use the build system's Rust support Build with rust-package.mk of the build system from a vendor tarball generated from the GitHub tag archive, so that cargo builds offline. bottom builds with the Rust toolchain of the build system when one is selected, and with rust/host of this feed otherwise. Signed-off-by: Daniel Golle --- admin/bottom/Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/admin/bottom/Makefile b/admin/bottom/Makefile index eed1fbb091..566cb89f80 100644 --- a/admin/bottom/Makefile +++ b/admin/bottom/Makefile @@ -6,27 +6,30 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bottom PKG_VERSION:=0.11.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://codeload.github.com/ClementTsang/bottom/tar.gz/$(PKG_VERSION)? -PKG_HASH:=0095ea9edb386ad7c49d845176314097713661d22ec42314e3be46426bc769ee +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-vendor.tar.zst +PKG_SOURCE_URL:=@OPENWRT +PKG_SOURCE_PROTO:=cargo-vendor-github +PKG_VENDOR_REPO:=ClementTsang/bottom +PKG_VENDOR_TAG:=$(PKG_VERSION) +PKG_VENDOR_HASH:=0095ea9edb386ad7c49d845176314097713661d22ec42314e3be46426bc769ee +PKG_HASH:=2154c30f6ffbdbd432f854d59e67ef731e2740eb45e83ad4363118b9ae81cbe4 PKG_MAINTAINER:=Luca Barbato PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE -PKG_BUILD_DEPENDS:=rust/host PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk -include ../../lang/rust/rust-package.mk +include $(INCLUDE_DIR)/rust-package.mk define Package/bottom SECTION:=admin CATEGORY:=Administration TITLE:=Interactive processes viewer - DEPENDS:=$(RUST_ARCH_DEPENDS) + DEPENDS:=$(RUST_PKG_DEPENDS) URL:=https://github.com/ClementTsang/bottom endef