From 80a76fab89d6f1a3077a5121afd42d58397eb71e Mon Sep 17 00:00:00 2001 From: Wildan M Date: Wed, 17 Sep 2025 22:06:14 +0700 Subject: [PATCH] Fix ARCH --- recipes/wip/dev/lang/python312/recipe.toml | 3 ++- recipes/wip/dev/lang/python39/recipe.toml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/recipes/wip/dev/lang/python312/recipe.toml b/recipes/wip/dev/lang/python312/recipe.toml index 1e2327c55..ada36f03b 100644 --- a/recipes/wip/dev/lang/python312/recipe.toml +++ b/recipes/wip/dev/lang/python312/recipe.toml @@ -18,12 +18,13 @@ dependencies = [ script = """ DYNAMIC_INIT export PYTHONDONTWRITEBYTECODE=1 +ARCH="${TARGET%%-*}" COOKBOOK_CONFIGURE_FLAGS=( --prefix=/usr --disable-ipv6 --host=${GNU_TARGET} - --build=x86_64 + --build=$ARCH --with-build-python # --with-openssl="${COOKBOOK_SYSROOT}/usr" --with-ensurepip=install diff --git a/recipes/wip/dev/lang/python39/recipe.toml b/recipes/wip/dev/lang/python39/recipe.toml index c612cadee..537c920a4 100644 --- a/recipes/wip/dev/lang/python39/recipe.toml +++ b/recipes/wip/dev/lang/python39/recipe.toml @@ -18,6 +18,7 @@ dependencies = [ script = """ DYNAMIC_INIT export PYTHONDONTWRITEBYTECODE=1 +ARCH="${TARGET%%-*}" # Python cross-compilation requires the same Python version on the build machine BUILDMACH_TARGET="$(gcc -dumpmachine)" @@ -46,8 +47,8 @@ COOKBOOK_CONFIGURE_FLAGS=( --prefix=/usr --disable-ipv6 --host=${GNU_TARGET} - --build=x86_64 - --with-openssl="${COOKBOOK_SYSROOT}/usr" + --build=$ARCH +# --with-openssl="${COOKBOOK_SYSROOT}/usr" --with-ensurepip=install ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no