Package Details: bcachefs-tools-git 1:1.36.1.r275.g8542892-4

Git Clone URL: https://aur.archlinux.org/bcachefs-tools-git.git (read-only, click to copy)
Package Base: bcachefs-tools-git
Description: Bcachefs userspace tools (Git version) with FUSE support enabled
Upstream URL: https://github.com/koverstreet/bcachefs-tools
Licenses: GPL-2.0-only
Conflicts: bcachefs-tools
Provides: bcachefs-tools
Submitter: QuartzDragon
Maintainer: neycrol
Last Packager: neycrol
Votes: 11
Popularity: 0.77
First Submitted: 2018-11-16 21:14 (UTC)
Last Updated: 2026-02-23 16:07 (UTC)

Required by (4)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

intelfx commented on 2026-02-24 02:25 (UTC)

Thank you. (In hindsight, I realize my message was worded way too aggressively. My apologies for that.)

neycrol commented on 2026-02-23 16:17 (UTC)

Thanks for the feedback, @intelfx.

After carefully reviewing the VCS packaging guidelines, I agree with most of your points. I’ve reworked and polished the package accordingly, and the updated version is now published.

Appreciate you taking the time to point these out.

intelfx commented on 2026-02-08 16:31 (UTC) (edited on 2026-02-08 16:32 (UTC) by intelfx)

@neycrol

Is there any reason you dropped soname dependencies, and changed pkgver() to use current date instead of a git tag (which is expressly discouraged by the packaging guidelines for VCS packages)? Both of these changes are wrong and should be reverted. Please keep your package in sync with extra/bcachefs-tools unless you have a good reason to deviate.

Continuing, RUSTFLAGS="... -C link-arg=$LDFLAGS ... is bogus and will break the build as soon as the user's LDFLAGS happen to contain a space.

Please use cargo fetch --locked --target "$(rustc --print host-tuple)" instead of deriving a tuple by hand.


There are other things as well but these are most visible.

neycrol commented on 2025-12-09 17:27 (UTC) (edited on 2026-02-03 13:18 (UTC) by neycrol)

Update 2026-02-03: The PKGBUILD has been updated and the previous gist/patch is now obsolete. 
Please ignore the old patch instructions and use the current AUR PKGBUILD as the source of truth.


Hi QuartzDragon, thanks for maintaining this!

I've encountered issues recovering a bcachefs partition on Kernel 6.18+ because the in-tree module is gone, and the current PKGBUILD lacks FUSE support (which is now the only way to mount/repair in many scenarios).

I have refactored the PKGBUILD to fix this and clean up a few other things.

Changes:

    Enable FUSE: Added BCACHEFS_FUSE=1 and fuse3 dependency. (Verified working for recovery).

    Fix DKMS Conflict: Explicitly rm -rf /usr/src in package(). The upstream Makefile forces a DKMS source install which conflicts with dedicated DKMS packages (like bcachefs-dkms , bcachefs-kernel-dkms-git). This package should strictly provide tools.

Modernize:

    Removed obsolete manual hook installation (upstream Makefile handles paths correctly now via vars).

    Added Rust/Cargo handling in prepare() for better offline build support.

    Fixed Shell Completions installation.

    Removed _FORTIFY_SOURCE hacks (Builds and runs fine without them on current Arch).

I've uploaded both the full PKGBUILD and a diff/patch here:

https://gist.githubusercontent.com/Neycrol/e05f12ab5fed532c78e64d6ddc936f24/raw/PKGBUILD

You can apply the patch directly via:

curl -L https://gist.githubusercontent.com/Neycrol/e05f12ab5fed532c78e64d6ddc936f24/raw/fix_bcachefs_tools.patch | git apply -v

Tested and verified on CachyOS (Arch) with Kernel 6.18.

Hope this helps!

freswa commented on 2025-09-27 10:17 (UTC)

Mind to add the split package for bcachefs-dkms here?

kode54 commented on 2025-05-28 08:05 (UTC)

Check ~/.cache/paru for source directories.

This commit from last December removed the patch in question, so you should not be seeing it anywhere when building:

https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=bcachefs-tools-git&id=1b3efbb3c642c7dc709b81932fb027caf7884d10

gkmcd commented on 2025-05-27 07:22 (UTC)

@kode54 I've tried to install this package for the first time with paru -Syu bcachefs-tools-git. I'm not sure where any old source would come from?

I've also tried clearing all cached package with -Scc, which did not help.

What do you mean, update your package source?

kode54 commented on 2025-05-26 10:36 (UTC)

How can you be having the same issue as @nathanielcwm? That patch does not exist any more. Please update your package source before rebuilding.

gkmcd commented on 2025-05-26 08:28 (UTC)

Can't install, same error as @nathanielcwm below.

kode54 commented on 2025-05-02 20:14 (UTC)

By the way, it doesn't require a new release, but you don't need to include git as a depends, just a makedepends. Feel free to update that at any time, and thanks for responding so quickly. :)