From e72cec0b1ac0620b62b568a2eaeb346324234f10 Mon Sep 17 00:00:00 2001 From: vasilito Date: Thu, 9 Jul 2026 23:45:39 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20mc=20=E2=80=94=20force=20mounted-fs=20co?= =?UTF-8?q?nfigure=20check=20on=20Redox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mc's configure cannot detect a mount method on Redox (no getmntinfo, next_dev, fs_stat_dev). Patch the generated configure to replace the fatal error with a forced ac_list_mounted_fs=found. Also add autoconf cache overrides for getmntinfo and sys/mount.h. --- local/recipes/tui/mc/recipe.toml | 9 +++++++++ 1 file changed, 9 insertions(+) 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+=(