diff --git a/pkgs/os-specific/linux/cryptsetup/default.nix b/pkgs/os-specific/linux/cryptsetup/default.nix index 6730687a3194..62f3f0c4db14 100644 --- a/pkgs/os-specific/linux/cryptsetup/default.nix +++ b/pkgs/os-specific/linux/cryptsetup/default.nix @@ -1,21 +1,18 @@ -{ lib, stdenv, fetchurl, lvm2, json_c +{ lib, stdenv, fetchurl, lvm2, json_c, asciidoctor , openssl, libuuid, pkg-config, popt }: stdenv.mkDerivation rec { pname = "cryptsetup"; - version = "2.4.3"; + version = "2.5.0"; outputs = [ "bin" "out" "dev" "man" ]; separateDebugInfo = true; src = fetchurl { - url = "mirror://kernel/linux/utils/cryptsetup/v2.4/${pname}-${version}.tar.xz"; - sha256 = "sha256-/A35RRiBciZOxb8dC9oIJk+tyKP4VtR+upHzH+NUtQc="; + url = "mirror://kernel/linux/utils/cryptsetup/v2.5/${pname}-${version}.tar.xz"; + sha256 = "sha256-kYSm672c5+shEVLn90GmyC8tHMDiSoTsnFKTnu4PBUI="; }; - # Disable 4 test cases that fail in a sandbox - patches = [ ./disable-failing-tests.patch ]; - postPatch = '' patchShebangs tests @@ -39,7 +36,7 @@ stdenv.mkDerivation rec { "--with-luks2-external-tokens-path=/" ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config asciidoctor ]; buildInputs = [ lvm2 json_c openssl libuuid popt ]; # The test [7] header backup in compat-test fails with a mysterious diff --git a/pkgs/os-specific/linux/cryptsetup/disable-failing-tests.patch b/pkgs/os-specific/linux/cryptsetup/disable-failing-tests.patch deleted file mode 100644 index 1504bf3e1511..000000000000 --- a/pkgs/os-specific/linux/cryptsetup/disable-failing-tests.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -ur a/tests/blockwise-compat b/tests/blockwise-compat ---- a/tests/blockwise-compat 2018-09-08 12:23:11.706555098 +0200 -+++ b/tests/blockwise-compat 2018-09-08 12:24:24.444393460 +0200 -@@ -148,15 +148,11 @@ - # device/file fn_name length - RUN "P" $1 read_buffer $BSIZE - RUN "P" $1 read_buffer $((2*BSIZE)) -- RUN "F" $1 read_buffer $((BSIZE-1)) -- RUN "F" $1 read_buffer $((BSIZE+1)) - RUN "P" $1 read_buffer 0 - - RUN "P" $1 write_buffer $BSIZE - RUN "P" $1 write_buffer $((2*BSIZE)) - -- RUN "F" $1 write_buffer $((BSIZE-1)) -- RUN "F" $1 write_buffer $((BSIZE+1)) - RUN "F" $1 write_buffer 0 - - # basic blockwise functions