Merge pull request #38954 from xeji/p/extundelete

extundelete: fix build with e2fsprogs 1.44
This commit is contained in:
Jörg Thalheim 2018-04-15 19:35:00 +01:00 committed by GitHub
commit c79f3d8efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
buildInputs = [ e2fsprogs ];
# inode field i_dir_acl was repurposed as i_size_high in e2fsprogs 1.44,
# breaking the build
patchPhase = ''
substituteInPlace src/insertionops.cc \
--replace "Directory ACL:" "High 32 bits of size:" \
--replace "inode.i_dir_acl" "inode.i_size_high"
'';
meta = with stdenv.lib; {
description = "Utility that can recover deleted files from an ext3 or ext4 partition";
homepage = http://extundelete.sourceforge.net/;