fix: mc — force mounted-fs configure check on Redox

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.
This commit is contained in:
2026-07-09 23:45:39 +03:00
parent dd54e7cab6
commit e72cec0b1a
+9
View File
@@ -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+=(