bcachefs-tools: update to 1.4.0.

This commit is contained in:
Leah Neukirchen 2023-12-31 15:10:24 +01:00
parent e2c0f217d5
commit 9d28172c96
2 changed files with 9 additions and 10 deletions

View file

@ -1,19 +1,18 @@
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@
CARGO_PROFILE=release
@@ -57,7 +57,7 @@
# CARGO_PROFILE=debug
CARGO_MANIFEST=--manifest-path rust-src/Cargo.toml
-CARGO_BUILD_ARGS=--$(CARGO_PROFILE)
+CARGO_BUILD_ARGS=--$(CARGO_PROFILE) --target $(RUST_TARGET)
CARGO_BUILD=$(CARGO) build $(CARGO_BUILD_ARGS)
VERSION?=$(shell git describe --dirty=+ 2>/dev/null || echo v0.1-nogit)
CARGO_BUILD=$(CARGO) build $(CARGO_BUILD_ARGS) $(CARGO_MANIFEST)
@@ -126,7 +126,10 @@
RUST_SRCS=$(shell find rust-src/src rust-src/bch_bindgen/src -type f -iname '*.rs')
CARGO_CLEAN=$(CARGO) clean $(CARGO_CLEAN_ARGS) $(CARGO_MANIFEST)
@@ -190,6 +190,9 @@
RUST_SRCS:=$(shell find rust-src/src rust-src/bch_bindgen/src -type f -iname '*.rs')
rust-src/target/release/libbcachefs_rust.a: $(RUST_SRCS)
$(CARGO_BUILD) --manifest-path rust-src/Cargo.toml
$(CARGO_BUILD)
+ if [ -f rust-src/target/*/release/libbcachefs_rust.a ]; then \
+ cp rust-src/target/*/release/libbcachefs_rust.a $@; \
+ fi

View file

@ -1,7 +1,7 @@
# Template file for 'bcachefs-tools'
pkgname=bcachefs-tools
reverts="24_1"
version=1.3.6
version=1.4.0
revision=1
build_style=gnu-makefile
make_install_args="ROOT_SBINDIR=/usr/bin"
@ -15,7 +15,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="https://bcachefs.org/"
distfiles="https://github.com/koverstreet/bcachefs-tools/archive/refs/tags/v${version}.tar.gz"
checksum=9349dc42f1bdedbcacca5b91889a71a25d198947e22619681cb8eb6ca11f5a89
checksum=3fea7aba076d1400eba29317c8b1de0b8ed83012ab004afaa948fc0750807f58
export VERSION=v${version}
export RUST_TARGET