diff mbox series

[v1,1/2] package/coreutils: fix cross-compile (add gl_cv_macro_MB_CUR_MAX_good=yes)

Message ID 20230503185144.13679-1-ps.report@gmx.net
State Accepted
Headers show
Series [v1,1/2] package/coreutils: fix cross-compile (add gl_cv_macro_MB_CUR_MAX_good=yes) | expand

Commit Message

Peter Seiderer May 3, 2023, 6:51 p.m. UTC
- add 'gl_cv_macro_MB_CUR_MAX_good=yes' to COREUTILS_CONF_ENV to fix
  cross-compile failure since bump to 9.3

Fixes:

  checking whether MB_CUR_MAX is correct... configure: error: in '.../build/coreutils-9.3':
  configure: error: cannot run test program while cross compiling
  See 'config.log' for more details

Reported-by: Christian Stewart <christian@aperture.us>
Link: https://lore.kernel.org/buildroot/CA+h8R2qSe6OepJMJr+KOUOAOqCRD9EX690Y+Yq4kx-M6x4uQBw@mail.gmail.com/
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 package/coreutils/coreutils.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Yann E. MORIN May 4, 2023, 8:20 p.m. UTC | #1
Peter, All,

On 2023-05-03 20:51 +0200, Peter Seiderer spake thusly:
> - add 'gl_cv_macro_MB_CUR_MAX_good=yes' to COREUTILS_CONF_ENV to fix
>   cross-compile failure since bump to 9.3
> 
> Fixes:
> 
>   checking whether MB_CUR_MAX is correct... configure: error: in '.../build/coreutils-9.3':
>   configure: error: cannot run test program while cross compiling
>   See 'config.log' for more details
> 
> Reported-by: Christian Stewart <christian@aperture.us>
> Link: https://lore.kernel.org/buildroot/CA+h8R2qSe6OepJMJr+KOUOAOqCRD9EX690Y+Yq4kx-M6x4uQBw@mail.gmail.com/
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/coreutils/coreutils.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
> index 2c12e8ef2f..cf42a8aff8 100644
> --- a/package/coreutils/coreutils.mk
> +++ b/package/coreutils/coreutils.mk
> @@ -51,6 +51,7 @@ COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
>  	gl_cv_func_tzset_clobber=no \
>  	gl_cv_func_working_mkstemp=yes \
>  	gl_cv_func_working_utimes=yes \
> +	gl_cv_macro_MB_CUR_MAX_good=yes \
>  	gl_getline_needs_run_time_check=no \
>  	gl_cv_have_proc_uptime=yes \
>  	utils_cv_localtime_cache=no \
> -- 
> 2.40.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
diff mbox series

Patch

diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 2c12e8ef2f..cf42a8aff8 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -51,6 +51,7 @@  COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
 	gl_cv_func_tzset_clobber=no \
 	gl_cv_func_working_mkstemp=yes \
 	gl_cv_func_working_utimes=yes \
+	gl_cv_macro_MB_CUR_MAX_good=yes \
 	gl_getline_needs_run_time_check=no \
 	gl_cv_have_proc_uptime=yes \
 	utils_cv_localtime_cache=no \