e2fsprogs: avoid incompatible features in mke2fs

by a patch taken from Debian's 1.47.0-2.  Discussion:
https://github.com/NixOS/nixpkgs/pull/229454#issuecomment-1601698426
This commit is contained in:
Vladimír Čunát 2023-06-23 08:16:49 +02:00
parent d6b30bd457
commit c311c7c5cc
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -29,6 +29,13 @@ stdenv.mkDerivation rec {
excludes = [ "lib/ext2fs/hashmap.h" ];
extraPrefix = "";
})
# Avoid trouble with older systems like NixOS 23.05.
# TODO: most likely drop this at some point, e.g. when 23.05 loses support.
(fetchurl {
name = "mke2fs-avoid-incompatible-features.patch";
url = "https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/plain/debian/patches/disable-metadata_csum_seed-and-orphan_file-by-default?h=debian/master&id=3fb3d18baba90e5d48d94f4c0b79b2d271b0c913";
hash = "sha256-YD11K4s2bqv0rvzrxtaiodzLp3ztULlOlPUf1XcpxRY=";
})
];
configureFlags =