Diff bcachefs-tools-1.20.0 with a bcachefs-tools-9999
/usr/portage/sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild 2025-07-29 16:22:17.920470175 +0300 | ||
---|---|---|
87 | 87 |
zeroize_derive@1.4.2 |
88 | 88 |
" |
89 | 89 | |
90 |
LLVM_COMPAT=( {17..19} ) |
|
90 |
LLVM_COMPAT=( {17..20} ) |
|
91 | 91 |
PYTHON_COMPAT=( python3_{10..13} ) |
92 | 92 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kentoverstreet.asc |
93 | ||
94 | 93 |
inherit cargo flag-o-matic llvm-r1 python-any-r1 shell-completion toolchain-funcs unpacker verify-sig |
95 | 94 | |
96 | 95 |
DESCRIPTION="Tools for bcachefs" |
... | ... | |
100 | 99 |
EGIT_REPO_URI="https://evilpiepirate.org/git/bcachefs-tools.git" |
101 | 100 |
else |
102 | 101 |
SRC_URI="https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-${PV}.tar.zst |
103 |
${CARGO_CRATE_URIS} |
|
104 |
https://github.com/koverstreet/bcachefs-tools/commit/67c9b378c7e7820b91033004b032e236a8069b4a.patch |
|
105 |
-> bcachefs-tools-1.20.0-fix-fuse-build.patch |
|
106 |
" |
|
102 |
${CARGO_CRATE_URIS}" |
|
107 | 103 |
SRC_URI+=" verify-sig? ( https://evilpiepirate.org/bcachefs-tools/bcachefs-tools-${PV}.tar.sign )" |
108 | 104 |
S="${WORKDIR}/${P}" |
109 |
KEYWORDS="amd64 arm64" |
|
105 |
KEYWORDS="~amd64 ~arm64" |
|
110 | 106 |
fi |
111 | 107 | |
112 | 108 |
LICENSE="Apache-2.0 BSD GPL-2 MIT" |
... | ... | |
146 | 142 | |
147 | 143 |
QA_FLAGS_IGNORED="/sbin/bcachefs" |
148 | 144 | |
149 |
PATCHES=( |
|
150 |
"${DISTDIR}/bcachefs-tools-1.20.0-fix-fuse-build.patch" |
|
151 |
) |
|
152 | ||
153 | 145 |
python_check_deps() { |
154 | 146 |
python_has_version "dev-python/docutils[${PYTHON_USEDEP}]" |
155 | 147 |
} |
156 | 148 | |
157 | 149 |
pkg_setup() { |
150 |
rust_pkg_setup |
|
158 | 151 |
llvm-r1_pkg_setup |
159 | 152 |
python-any-r1_pkg_setup |
160 | 153 |
} |
161 | 154 | |
162 | 155 |
src_unpack() { |
163 |
# Upstream signs the uncompressed tarball |
|
164 |
if use verify-sig; then |
|
165 |
einfo "Unpacking ${P}.tar.zst ..." |
|
166 |
verify-sig_verify_detached - "${DISTDIR}"/${P}.tar.sign \ |
|
167 |
< <(zstd -fdc "${DISTDIR}"/${P}.tar.zst | tee >(tar -xf -)) |
|
168 |
assert "Unpack failed" |
|
169 |
fi |
|
170 | ||
171 | 156 |
if [[ ${PV} == "9999" ]]; then |
172 | 157 |
git-r3_src_unpack |
173 | 158 |
S="${S}/rust-src" cargo_live_src_unpack |
... | ... | |
175 | 160 |
unpacker ${P}.tar.zst |
176 | 161 |
cargo_src_unpack |
177 | 162 |
fi |
178 | ||
179 | 163 |
} |
180 | 164 | |
181 | 165 |
src_prepare() { |
... | ... | |
196 | 180 | |
197 | 181 |
default |
198 | 182 | |
199 |
# This version mangles the symbolic link, |
|
200 |
# please check if this can be removed before bumping |
|
201 |
rm "${S}"/bcachefs |
|
202 |
ln -s "${S}"/target/release/bcachefs bcachefs |
|
203 | ||
204 | 183 |
local shell |
205 | 184 |
for shell in bash fish zsh; do |
206 | 185 |
./bcachefs completions ${shell} > ${shell}.completion || die |