summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-03-23 08:43:12 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-03-23 08:44:11 +0200
commit34d68f5bbe8ae463cf03086821a23649f04daf64 (patch)
treedcf51b7cf1d0855f871f1f662151aa96bf00b9c1 /dev-libs/raft/files
parentnet-misc/gsutil: drop old 4.50 (diff)
downloadgentoo-34d68f5bbe8ae463cf03086821a23649f04daf64.tar.gz
gentoo-34d68f5bbe8ae463cf03086821a23649f04daf64.tar.bz2
gentoo-34d68f5bbe8ae463cf03086821a23649f04daf64.zip
dev-libs/raft: bump 0.10.0
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/raft/files')
-rw-r--r--dev-libs/raft/files/raft-0.10.0-toggle-zfs.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-libs/raft/files/raft-0.10.0-toggle-zfs.patch b/dev-libs/raft/files/raft-0.10.0-toggle-zfs.patch
new file mode 100644
index 00000000000..f31b599b610
--- /dev/null
+++ b/dev-libs/raft/files/raft-0.10.0-toggle-zfs.patch
@@ -0,0 +1,21 @@
+diff -Naur a/configure.ac b/configure.ac
+--- a/configure.ac 2021-03-16 14:45:58.000000000 +0200
++++ b/configure.ac 2021-03-23 07:45:06.875557286 +0200
+@@ -47,13 +47,10 @@
+ # Checks for header files.
+ AC_CHECK_HEADERS([stdlib.h string.h stdio.h assert.h unistd.h linux/io_uring.h linux/aio_abi.h])
+
+-# Check if zfs >= 0.8.0 is available (for direct I/O support).
+-AC_CHECK_PROG(have_zfs, zfs, yes)
+-AS_IF([test x"$have_zfs" = x"yes"],
+- [AX_COMPARE_VERSION($(cat /sys/module/zfs/version | cut -f 1 -d -), [ge], [0.8.0],
+- [AC_DEFINE(RAFT_HAVE_ZFS_WITH_DIRECT_IO)], [])
+- ],
+- [])
++# zfs support. We have 0.8.6 as stable in Gentoo, which is plenty above the required minimum.
++AC_ARG_WITH([zfs], AS_HELP_STRING([--with-zfs], [Build with zfs support (default: disabled)]))
++AS_IF([test "x$with_zfs" = "xyes"],
++ [AC_DEFINE(RAFT_HAVE_ZFS_WITH_DIRECT_IO)], [])
+
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_TYPE_SIZE_T