diff --git a/pkgs/tools/filesystems/ceph/9.0.3-i686-fix.patch b/pkgs/tools/filesystems/ceph/9.0.3-i686-fix.patch new file mode 100644 index 000000000000..142bcabec544 --- /dev/null +++ b/pkgs/tools/filesystems/ceph/9.0.3-i686-fix.patch @@ -0,0 +1,25 @@ +From 1213dde3d207d0d91ccecfca4dd6af1bdee0ed65 Mon Sep 17 00:00:00 2001 +From: Kefu Chai +Date: Fri, 17 Jul 2015 01:12:03 +0800 +Subject: [PATCH] cls: fix the build on i386 + +this is a leftover of 0dae022 + +Signed-off-by: Kefu Chai +--- + src/cls/cephfs/cls_cephfs.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/cls/cephfs/cls_cephfs.h b/src/cls/cephfs/cls_cephfs.h +index 3cee0db..d4a5f23 100644 +--- a/src/cls/cephfs/cls_cephfs.h ++++ b/src/cls/cephfs/cls_cephfs.h +@@ -118,7 +118,7 @@ class AccumulateResult + // Largest object seen + uint64_t max_obj_size; + // Highest mtime seen +- time_t max_mtime; ++ int64_t max_mtime; + + AccumulateResult() + : ceiling_obj_index(0), ceiling_obj_size(0), max_obj_size(0), max_mtime(0) diff --git a/pkgs/tools/filesystems/ceph/dev.nix b/pkgs/tools/filesystems/ceph/dev.nix index 2d0a1a633063..23757278b6f0 100644 --- a/pkgs/tools/filesystems/ceph/dev.nix +++ b/pkgs/tools/filesystems/ceph/dev.nix @@ -9,5 +9,8 @@ callPackage ./generic.nix (args // rec { sha256 = "08ccy735srzmi505qlrpqdh5js40mpd5k1vdhnysknra0vqlpmdx"; }; - patches = [ ./fix-pythonpath.patch ]; + patches = [ + ./fix-pythonpath.patch + ./9.0.3-i686-fix.patch + ]; })