diff --git a/local/recipes/tui/mc/recipe.toml b/local/recipes/tui/mc/recipe.toml index 5c810b9b35..6dec214fec 100644 --- a/local/recipes/tui/mc/recipe.toml +++ b/local/recipes/tui/mc/recipe.toml @@ -32,6 +32,15 @@ export ac_cv_func_ptsname=no export ac_cv_func_openpty=no export ac_cv_header_arpa_nameser_h=no export ac_cv_header_resolv_h=no +export ac_cv_func_getmntinfo=yes +export ac_cv_header_sys_mount_h=yes +export fu_cv_sys_mounted_getmntinfo2=no +export gl_cv_list_mounted_fs=yes + +# mc's configure script cannot detect a mounted-filesystem method on Redox +# (no getmntinfo, no next_dev, no fs_stat_dev). Force the check to pass +# by patching the generated configure to skip the fatal error. +sed -i 's/as_fn_error $? "could not determine how to read list of mounted file systems"/ac_list_mounted_fs=found # Redox: forced/' "${COOKBOOK_SOURCE}/configure" # Configure with minimal features for initial port COOKBOOK_CONFIGURE_FLAGS+=(