Package Details: bcachefs-tools-git 1:1.37.2.r0.g82c7fba-2

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)
Upstream URL: https://github.com/koverstreet/bcachefs-tools
Licenses: GPL-2.0-only
Conflicts: bcachefs-tools
Provides: bcachefs-tools
Submitter: QuartzDragon
Maintainer: neycrol (intelfx)
Last Packager: intelfx
Votes: 11
Popularity: 0.40
First Submitted: 2018-11-16 21:14 (UTC)
Last Updated: 2026-03-17 19:47 (UTC)

Required by (5)

Sources (1)

Pinned Comments

intelfx commented on 2026-03-17 10:31 (UTC) (edited on 2026-03-17 10:33 (UTC) by intelfx)

This package is now a split package, installing both userspace tools and DKMS module sources, similar to extra/bcachefs-{tools,dkms}.
Additionally, starting with v1.37.0, FUSE support is unconditionally enabled in bcachefs-tools.

Any issues with the package can be discussed on #bcachefs or #bcachefs:matrix.bcachefs.org.

Latest Comments

1 2 3 4 5 Next › Last »

intelfx commented on 2026-03-23 23:06 (UTC)

Now that bcachefs-kernel-dkms-git is being deprecated, I had to rollback to 68f3f723779a for things to work properly.

@ticpu, the current package uses the same split between tools and DKMS as the package in [extra] (which is also tne general practice in Arch, see e.g. nvidia module). Does it not work for you?

If you need any help integrating the other changes such as the -debug split, I volunteer as Co-Maintainer as well.

I'm not aware of any issues building this package with options=(debug) either. The -debug packages are well-formed. What is it that you suggest to integrate?

ticpu commented on 2026-03-23 15:07 (UTC) (edited on 2026-03-23 15:09 (UTC) by ticpu)

Now that bcachefs-kernel-dkms-git is being deprecated, I had to rollback to 68f3f723779a for things to work properly.

This commit removed DKMS with a dubious commit message:

commit 598ab6dd10f7ba0948c2d65eda692bd69340aceb
Author: neycrol <330578697@qq.com>
Date:   Tue Feb 3 21:04:41 2026 +0800

 chore: normalize pkgver and cleanup

If you need any help integrating the other changes such as the -debug split, I volunteer as Co-Maintainer as well.

intelfx commented on 2026-03-17 10:31 (UTC) (edited on 2026-03-17 10:33 (UTC) by intelfx)

This package is now a split package, installing both userspace tools and DKMS module sources, similar to extra/bcachefs-{tools,dkms}.
Additionally, starting with v1.37.0, FUSE support is unconditionally enabled in bcachefs-tools.

Any issues with the package can be discussed on #bcachefs or #bcachefs:matrix.bcachefs.org.

intelfx commented on 2026-03-17 09:38 (UTC) (edited on 2026-03-17 09:39 (UTC) by intelfx)

Yes, I'm an active user of bcachefs and I'd be glad to co-maintain.

neycrol commented on 2026-03-17 08:38 (UTC)

@intelfx Thanks for the patch series — I've looked through them and they make sense. I'm a bit short on time for personal reasons at the moment, so I haven't been able to test them properly. Would you be interested in co-maintaining this package? That way you could apply and iterate on these changes directly. Let me know.

intelfx commented on 2026-03-17 08:17 (UTC) (edited on 2026-03-17 08:17 (UTC) by intelfx)

Hi, given the situation with bcachefs-kernel-dkms-git, would you please consider applying this patch to provide DKMS kernel module code in this package as well?

https://0x0.st/PLks.mbox

The last patch in the series creates a split pkgbase for -tools and -dkms, mirroring the package in [extra].

Feel free to apply or ignore any of the previous patches; those are cleanups I have locally.

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!