diff --git a/srcpkgs/bcachefs-tools/patches/32bit.patch b/srcpkgs/bcachefs-tools/patches/32bit.patch new file mode 100644 index 00000000000..e03ffac99b6 --- /dev/null +++ b/srcpkgs/bcachefs-tools/patches/32bit.patch @@ -0,0 +1,15 @@ +--- a/include/linux/atomic.h ++++ b/include/linux/atomic.h +@@ -300,6 +300,12 @@ + DEF_ATOMIC_OPS(atomic64, s64) + #else + s64 atomic64_read(const atomic64_t *v); ++static inline s64 atomic64_read_acquire(const atomic64_t *v) \ ++{ \ ++ s64 ret = atomic64_read(&v->counter); \ ++ smp_mb__after_atomic(); \ ++ return ret; \ ++} \ + void atomic64_set(atomic64_t *v, s64); + + s64 atomic64_add_return(s64, atomic64_t *); diff --git a/srcpkgs/bcachefs-tools/template b/srcpkgs/bcachefs-tools/template index 0ba3bf2c5ee..35fa36d13a3 100644 --- a/srcpkgs/bcachefs-tools/template +++ b/srcpkgs/bcachefs-tools/template @@ -6,7 +6,7 @@ revision=1 build_style=gnu-makefile make_install_args="ROOT_SBINDIR=/usr/bin" make_use_env=yes -hostmakedepends="pkg-config cargo clang" +hostmakedepends="pkg-config cargo clang liburcu-devel" makedepends="rust attr-devel keyutils-devel libaio-devel libblkid-devel liblz4-devel libscrypt-devel libsodium-devel libudev-devel liburcu-devel libuuid-devel libzstd-devel zlib-devel"