From 07049508cff2f08712fda2b0f5602bd49fadd7aa Mon Sep 17 00:00:00 2001 From: vasilito Date: Thu, 9 Jul 2026 01:54:41 +0300 Subject: [PATCH] Fix python312 + icu cross-compilation blockers python312: Added --disable-test-modules to host build configure flags. The host build (needed as dev-dependency for cross-compile) was trying to compile test modules (_testmultiphase, xxlimited, etc.) which fail on this system. The cross-compile already had this flag. icu: Added --disable-tools to cross-compile configure flags. The ICU data tools (genrb, derb) try to link against cross-compiled static libraries, causing C++ vtable linker errors (undefined reference to vtable for UTF16CollationIterator). Tools are built in the host step; cross-compile only needs the libraries. Combined with zsh --srcdir, base staging mkdir, and netstack fix, these unblock the redbear-mini build. --- local/recipes/libs/icu/recipe.toml | 1 + recipes/dev/python312/recipe.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/local/recipes/libs/icu/recipe.toml b/local/recipes/libs/icu/recipe.toml index 3431ca1224..d028ba4cf4 100644 --- a/local/recipes/libs/icu/recipe.toml +++ b/local/recipes/libs/icu/recipe.toml @@ -48,6 +48,7 @@ ln -sf mh-linux "${ICU_SRC}/config/mh-unknown" --disable-samples \ --disable-extras \ --disable-docs \ + --disable-tools \ --enable-static \ --disable-shared \ --with-data-packaging=static \ diff --git a/recipes/dev/python312/recipe.toml b/recipes/dev/python312/recipe.toml index 986e413486..1d68bbe4e7 100644 --- a/recipes/dev/python312/recipe.toml +++ b/recipes/dev/python312/recipe.toml @@ -48,7 +48,7 @@ if [ "$TARGET" != "$COOKBOOK_HOST_TARGET" ]; then ac_cv_exeext="" ) else - COOKBOOK_CONFIGURE_FLAGS=(--prefix=/usr) + COOKBOOK_CONFIGURE_FLAGS=(--prefix=/usr --disable-test-modules) fi if [ "${COOKBOOK_DYNAMIC}" != "1" ]; then