commit: 87615717f5d23b552f0ddea5f04502cd8cc592e2
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 20 12:28:36 2026 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Feb 20 12:37:25 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87615717
sys-fs/bcachefs-tools: sync live
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild | 57 ++++++++++++++++++------
1 file changed, 43 insertions(+), 14 deletions(-)
diff --git a/sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild
b/sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild
index 560c195a1917..ff5019e33d16 100644
--- a/sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild
+++ b/sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,13 +11,14 @@ CRATES="
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
- [email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
@@ -25,55 +26,71 @@ CRATES="
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
- [email protected]
- [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
- [email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
[email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+ [email protected]+wasi-snapshot-preview1
[email protected]
- [email protected]
- [email protected]
- [email protected]
+ [email protected]
[email protected]
[email protected]
+ [email protected]
[email protected]
[email protected]
[email protected]
@@ -87,11 +104,12 @@ CRATES="
[email protected]
"
-LLVM_COMPAT=( {17..20} )
+LLVM_COMPAT=( {17..21} )
PYTHON_COMPAT=( python3_{11..14} )
-RUST_MIN_VER="1.77.0"
+RUST_MIN_VER="1.82"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kentoverstreet.asc
-inherit cargo flag-o-matic llvm-r1 python-any-r1 shell-completion
toolchain-funcs unpacker verify-sig
+
+inherit cargo flag-o-matic llvm-r1 python-any-r1 shell-completion sysroot
toolchain-funcs unpacker verify-sig
DESCRIPTION="Tools for bcachefs"
HOMEPAGE="https://bcachefs.org/"
@@ -100,7 +118,8 @@ if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://evilpiepirate.org/git/bcachefs-tools.git"
else
SRC_URI="https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-${PV}.tar.zst
- ${CARGO_CRATE_URIS}"
+ ${CARGO_CRATE_URIS}
+ "
SRC_URI+=" verify-sig? (
https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-${PV}.tar.sign )"
S="${WORKDIR}/${P}"
KEYWORDS="~amd64 ~arm64"
@@ -123,7 +142,7 @@ DEPEND="
sys-apps/util-linux
virtual/zlib:=
virtual/udev
- fuse? ( >=sys-fs/fuse-3.7.0 )
+ fuse? ( >=sys-fs/fuse-3.7.0:3= )
"
RDEPEND="${DEPEND}"
@@ -156,6 +175,14 @@ pkg_setup() {
}
src_unpack() {
+ # Upstream signs the uncompressed tarball
+ if use verify-sig; then
+ einfo "Unpacking ${P}.tar.zst ..."
+ verify-sig_verify_detached - "${DISTDIR}"/${P}.tar.sign \
+ < <(zstd -fdc "${DISTDIR}"/${P}.tar.zst | tee >(tar -xf
-))
+ assert "Unpack failed"
+ fi
+
if [[ ${PV} == "9999" ]]; then
git-r3_src_unpack
S="${S}/rust-src" cargo_live_src_unpack
@@ -163,12 +190,14 @@ src_unpack() {
unpacker ${P}.tar.zst
cargo_src_unpack
fi
+
}
src_prepare() {
default
tc-export CC
+ sed -i s/^VERSION=.*$/VERSION=${PV}/ Makefile || die
sed \
-e '/^CFLAGS/s:-O2::' \
-e '/^CFLAGS/s:-g::' \
@@ -185,7 +214,7 @@ src_compile() {
local shell
for shell in bash fish zsh; do
- ./bcachefs completions ${shell} > ${shell}.completion || die
+ sysroot_try_run_prefixed ./bcachefs completions ${shell} >
${shell}.completion || die
done
}