4bbb7e41e1
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.
44 lines
1.5 KiB
TOML
44 lines
1.5 KiB
TOML
[source]
|
|
tar = "https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.xz"
|
|
blake3 = "9dd90be8df4d0474b941e2ca14ac76d11b7ccb46edb26344b60d866178bbcc98"
|
|
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_INIT
|
|
export ac_cv_func___fseterr=yes
|
|
export ac_cv_type_sigset_t=yes
|
|
export ac_cv_type_posix_spawnattr_t=yes
|
|
export ac_cv_type_posix_spawn_file_actions_t=yes
|
|
export ac_cv_header_spawn_h=yes
|
|
export ac_cv_func_posix_spawn=yes
|
|
export ac_cv_func_posix_spawnp=yes
|
|
export gl_cv_header_spawn_h_self_contained=yes
|
|
export gl_cv_header_spawn_h_POSIX_SPAWN_RESETIDS=yes
|
|
export gl_cv_header_spawn_h_POSIX_SPAWN_SETPGROUP=yes
|
|
export gl_cv_header_spawn_h_POSIX_SPAWN_SETSIGDEF=yes
|
|
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
|
|
)
|
|
sleep 1
|
|
touch "${COOKBOOK_SOURCE}/aclocal.m4" \
|
|
"${COOKBOOK_SOURCE}/configure" \
|
|
"${COOKBOOK_SOURCE}/Makefile.in" \
|
|
"${COOKBOOK_SOURCE}/config.h.in" 2>/dev/null || true
|
|
"${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}" YACC=/usr/bin/bison
|
|
"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" YACC=/usr/bin/bison
|
|
"${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}" YACC=/usr/bin/bison
|
|
"""
|
|
|
|
[package]
|
|
description = "GNU parser generator (yacc-compatible)"
|
|
dependencies = ["m4"]
|