f2fs-tools: backport LFS64 removal

musl 1.2.4 no longer provides these functions.
This commit is contained in:
Alyssa Ross 2024-03-02 20:37:29 +01:00
parent def8887b92
commit 53301a34ea
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,6 @@
{ lib, stdenv, fetchzip, autoreconfHook, libselinux, libuuid, pkg-config }:
{ lib, stdenv, fetchzip, fetchpatch
, autoreconfHook, libselinux, libuuid, pkg-config
}:
stdenv.mkDerivation rec {
pname = "f2fs-tools";
@ -12,7 +14,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libselinux libuuid ];
patches = [ ./f2fs-tools-cross-fix.patch ];
patches = [
./f2fs-tools-cross-fix.patch
(fetchpatch {
name = "lfs64.patch";
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/patch/?id=b15b6cc56ac7764be17acbdbf96448f388992adc";
hash = "sha256-9XrNf9MMMDGOsuP3DvUhm30Sa2xICDtXbUIvM/TP35o=";
})
];
meta = with lib; {
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/";