Merge pull request #283570 from NickCao/stratis

stratisd: 3.6.3 -> 3.6.4

authored by Nick Cao and committed by GitHub 0debdf82 02c5a931

+46 -53
+38 -27
pkgs/tools/filesystems/stratisd/Cargo.lock
··· 413 413 414 414 [[package]] 415 415 name = "errno" 416 - version = "0.2.8" 417 - source = "registry+https://github.com/rust-lang/crates.io-index" 418 - checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" 419 - dependencies = [ 420 - "errno-dragonfly", 421 - "libc", 422 - "winapi", 423 - ] 424 - 425 - [[package]] 426 - name = "errno" 427 416 version = "0.3.1" 428 417 source = "registry+https://github.com/rust-lang/crates.io-index" 429 418 checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" ··· 676 665 677 666 [[package]] 678 667 name = "itertools" 679 - version = "0.11.0" 668 + version = "0.12.0" 680 669 source = "registry+https://github.com/rust-lang/crates.io-index" 681 - checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" 670 + checksum = "25db6b064527c5d482d0423354fcd07a89a2dfe07b67892e62411946db7f07b0" 682 671 dependencies = [ 683 672 "either", 684 673 ] ··· 837 826 checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" 838 827 839 828 [[package]] 840 - name = "loopdev" 841 - version = "0.4.0" 842 - source = "git+https://github.com/mulkieran/loopdev?branch=bump-bindgen-reduce-version-0.68.1#63e6105d5599d9df00041de873d7fc91f53b9f20" 829 + name = "loopdev-3" 830 + version = "0.5.0" 831 + source = "registry+https://github.com/rust-lang/crates.io-index" 832 + checksum = "378e7ca4e85e592564e6a96c362303972b5c7860367014383aadc10a8704fc38" 843 833 dependencies = [ 844 834 "bindgen", 845 - "errno 0.2.8", 835 + "errno", 846 836 "libc", 847 837 ] 848 838 ··· 857 847 version = "0.7.1" 858 848 source = "registry+https://github.com/rust-lang/crates.io-index" 859 849 checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" 850 + dependencies = [ 851 + "autocfg", 852 + ] 853 + 854 + [[package]] 855 + name = "memoffset" 856 + version = "0.9.0" 857 + source = "registry+https://github.com/rust-lang/crates.io-index" 858 + checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" 860 859 dependencies = [ 861 860 "autocfg", 862 861 ] ··· 900 899 "bitflags 1.3.2", 901 900 "cfg-if 1.0.0", 902 901 "libc", 903 - "memoffset", 902 + "memoffset 0.7.1", 904 903 "pin-utils", 905 904 "static_assertions", 905 + ] 906 + 907 + [[package]] 908 + name = "nix" 909 + version = "0.27.1" 910 + source = "registry+https://github.com/rust-lang/crates.io-index" 911 + checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" 912 + dependencies = [ 913 + "bitflags 2.4.0", 914 + "cfg-if 1.0.0", 915 + "libc", 916 + "memoffset 0.9.0", 906 917 ] 907 918 908 919 [[package]] ··· 1010 1021 1011 1022 [[package]] 1012 1023 name = "pretty-hex" 1013 - version = "0.3.0" 1024 + version = "0.4.1" 1014 1025 source = "registry+https://github.com/rust-lang/crates.io-index" 1015 - checksum = "c6fa0831dd7cc608c38a5e323422a0077678fa5744aa2be4ad91c4ece8eec8d5" 1026 + checksum = "bbc83ee4a840062f368f9096d80077a9841ec117e17e7f700df81958f1451254" 1016 1027 1017 1028 [[package]] 1018 1029 name = "proc-macro2" ··· 1154 1165 checksum = "d4eb579851244c2c03e7c24f501c3432bed80b8f720af1d6e5b0e0f01555a035" 1155 1166 dependencies = [ 1156 1167 "bitflags 1.3.2", 1157 - "errno 0.3.1", 1168 + "errno", 1158 1169 "io-lifetimes", 1159 1170 "libc", 1160 1171 "linux-raw-sys", ··· 1229 1240 1230 1241 [[package]] 1231 1242 name = "shlex" 1232 - version = "1.1.0" 1243 + version = "1.3.0" 1233 1244 source = "registry+https://github.com/rust-lang/crates.io-index" 1234 - checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" 1245 + checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1235 1246 1236 1247 [[package]] 1237 1248 name = "signal-hook-registry" ··· 1269 1280 1270 1281 [[package]] 1271 1282 name = "stratisd" 1272 - version = "3.6.3" 1283 + version = "3.6.4" 1273 1284 dependencies = [ 1274 1285 "assert_cmd", 1275 1286 "assert_matches", ··· 1287 1298 "env_logger", 1288 1299 "futures", 1289 1300 "iocuddle", 1290 - "itertools 0.11.0", 1301 + "itertools 0.12.0", 1291 1302 "lazy_static", 1292 1303 "libblkid-rs", 1293 1304 "libc", ··· 1296 1307 "libmount", 1297 1308 "libudev", 1298 1309 "log", 1299 - "loopdev", 1300 - "nix 0.26.2", 1310 + "loopdev-3", 1311 + "nix 0.27.1", 1301 1312 "pkg-config", 1302 1313 "predicates", 1303 1314 "pretty-hex",
+8 -26
pkgs/tools/filesystems/stratisd/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 - , fetchpatch 5 4 , rustPlatform 6 5 , cargo 7 6 , rustc ··· 28 27 29 28 stdenv.mkDerivation rec { 30 29 pname = "stratisd"; 31 - version = "3.6.3"; 30 + version = "3.6.4"; 32 31 33 32 src = fetchFromGitHub { 34 33 owner = "stratis-storage"; 35 34 repo = pname; 36 35 rev = "refs/tags/stratisd-v${version}"; 37 - hash = "sha256-Wu3SkuHyMCBape+pMymQntXRtdMIlF5wz75kKxaZlms="; 36 + hash = "sha256-0zSMFjAzTtTmpSCqlIq5GXk3/AhlhtECFZXmo6xcjWA="; 38 37 }; 39 38 40 39 cargoDeps = rustPlatform.importCargoLock { 41 40 lockFile = ./Cargo.lock; 42 - outputHashes = { 43 - "loopdev-0.4.0" = "sha256-YS0hqxphxbbImT/mn/XBzkgabK2kbIym5VqG3XDVAx8="; 44 - }; 45 41 }; 46 42 47 - patches = [ 48 - # Can be removed with the next release after v. 3.6.3 49 - (fetchpatch { 50 - name = "remove-unused-imports.patch"; 51 - url = "https://github.com/stratis-storage/stratisd/commit/78440de6e6ed8eab5ddd25dbdfb7804d0698f2a2.patch"; 52 - hash = "sha256-RW2nyAWaoIbqrgbhCApQsMXkJWtWoOWL3VO7fIImJgY="; 53 - }) 54 - 55 - # Can be removed with the next release after v. 3.6.3 56 - (fetchpatch { 57 - name = "flag-import-not-used-in-build-as-test-only.patch"; 58 - url = "https://github.com/stratis-storage/stratisd/commit/0d1c67f71338d0ee6c1e6aa06f7fd6264ce9a4c5.patch"; 59 - hash = "sha256-6Nb8izUqYUirjy0dTFhITxoM/AKoChoc0w6Qm9K6+7I="; 60 - }) 61 - ]; 62 - 63 43 postPatch = '' 64 44 substituteInPlace udev/61-stratisd.rules \ 65 45 --replace stratis-base32-decode "$out/lib/udev/stratis-base32-decode" \ ··· 116 96 # remove files for supporting dracut 117 97 postInstall = '' 118 98 mkdir -p "$initrd/bin" 119 - cp "dracut/90stratis/stratis-rootfs-setup" "$initrd/bin" 99 + cp "$out/lib/dracut/modules.d/90stratis/stratis-rootfs-setup" "$initrd/bin" 120 100 mkdir -p "$initrd/lib/systemd/system" 121 - substitute "dracut/90stratis/stratisd-min.service" "$initrd/lib/systemd/system/stratisd-min.service" \ 122 - --replace /usr "$out" \ 101 + substitute "$out/lib/dracut/modules.d/90stratis/stratisd-min.service" \ 102 + "$initrd/lib/systemd/system/stratisd-min.service" \ 123 103 --replace mkdir "${coreutils}/bin/mkdir" 124 104 mkdir -p "$initrd/lib/udev/rules.d" 125 105 cp udev/61-stratisd.rules "$initrd/lib/udev/rules.d" ··· 127 107 rm -r "$out/lib/systemd/system-generators" 128 108 ''; 129 109 130 - passthru.tests = nixosTests.stratis; 110 + passthru.tests = nixosTests.stratis // { 111 + inherit (nixosTests.installer-systemd-stage-1) stratisRoot; 112 + }; 131 113 132 114 meta = with lib; { 133 115 description = "Easy to use local storage management for Linux";