From 0a2ddd0f3248a754f8be06048b56b02657cab5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Tue, 17 Nov 2026 17:29:33 +0100 Subject: [PATCH] conda recipe: restore full tool paths in CMAKE_ARGS (#1688) gcc_linux-64 16.2.0 build 3 (conda-forge/ctng-compiler-activation-feedstock#209) passes bare tool names such as -DCMAKE_AR=x86_64-conda-linux-gnu-ar. CMake resolves the untyped value relative to SRC_DIR, so archiving the first static library fails with 'ar: not found'. Prefix the names with BUILD_PREFIX/bin again; values that are already absolute are left alone. (cherry picked from commit 45d8648fdff859fb23492b425e9b90c66750428d) --- conda-recipes/python-client/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conda-recipes/python-client/meta.yaml b/conda-recipes/python-client/meta.yaml index d7411571e..aed1f4c21 100644 --- a/conda-recipes/python-client/meta.yaml +++ b/conda-recipes/python-client/meta.yaml @@ -9,6 +9,10 @@ package: build: number: 0 script: + # gcc_linux-64 16.2.0 build 3 passes bare tool names in CMAKE_ARGS + # (-DCMAKE_AR=x86_64-conda-linux-gnu-ar), which CMake resolves relative to + # SRC_DIR. Restore the full paths; no-op when they are already absolute. + - 'export CMAKE_ARGS="${CMAKE_ARGS//=${HOST}-/=${BUILD_PREFIX}/bin/${HOST}-}"' # [not win] - unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv --config-settings=cmake.define.SLS_USE_SYSTEM_ZMQ=ON # [not win] requirements: