From 4bbb7e41e13299fb7ceaa334483a7f438442e2d9 Mon Sep 17 00:00:00 2001 From: vasilito Date: Fri, 10 Jul 2026 11:41:56 +0300 Subject: [PATCH] bison: add sched.h cache variables for gnulib cross-compile Gnulib generates lib/sched.h which wraps the system sched.h via #include_next, but the #if @HAVE_SCHED_H@ guard evaluates to 0 during cross-compilation, preventing sched_param typedef from being visible. Adding ac_cv_header_sched_h=yes fixes the guard. --- local/recipes/dev/bison/recipe.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/local/recipes/dev/bison/recipe.toml b/local/recipes/dev/bison/recipe.toml index 80cde0bdd3..40cc06e75d 100644 --- a/local/recipes/dev/bison/recipe.toml +++ b/local/recipes/dev/bison/recipe.toml @@ -21,6 +21,10 @@ export gl_cv_header_spawn_h_POSIX_SPAWN_SETSIGMASK=yes export gl_cv_header_spawn_h_POSIX_SPAWN_SETSCHEDULER=yes export gl_cv_header_spawn_h_POSIX_SPAWN_SETSCHEDPARAM=yes export gl_cv_header_spawn_h_POSIX_SPAWN_USEVFORK=yes +export ac_cv_header_sched_h=yes +export gl_cv_header_sched_h=yes +export ac_cv_type_struct_sched_param=yes +export ac_cv_type_sched_param=yes COOKBOOK_CONFIGURE_FLAGS+=( --disable-nls )