From 84c24bbbca16a50a5f50cf14799541e02c8bb6fe Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 18 Oct 2023 00:43:23 +0200 Subject: [PATCH] erofs-utils: set explicit MAX_BLOCK_SIZE eliminates an impurity through sysconf(_SC_PAGESIZE) when the setting is not specified (cherry picked from commit 3e980612c622c413460df3f216a6f2b73bd54841) --- pkgs/tools/filesystems/erofs-utils/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/erofs-utils/default.nix b/pkgs/tools/filesystems/erofs-utils/default.nix index 739ff4ede44c..2ef0a87691ad 100644 --- a/pkgs/tools/filesystems/erofs-utils/default.nix +++ b/pkgs/tools/filesystems/erofs-utils/default.nix @@ -25,7 +25,9 @@ stdenv.mkDerivation rec { buildInputs = [ util-linux lz4 zlib ] ++ lib.optionals fuseSupport [ fuse ]; - configureFlags = lib.optionals fuseSupport [ "--enable-fuse" ]; + configureFlags = [ + "MAX_BLOCK_SIZE=4096" + ] ++ lib.optional fuseSupport "--enable-fuse"; meta = with lib; { description = "Userspace utilities for linux-erofs file system";