From 65f279da7660d735244171d82299c43f18018178 Mon Sep 17 00:00:00 2001 From: Joaquin Anton Guirao Date: Wed, 15 Jan 2025 18:47:33 +0100 Subject: [PATCH] Fix Signed-off-by: Joaquin Anton Guirao --- docker/Dockerfile.build.aarch64-linux | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.build.aarch64-linux b/docker/Dockerfile.build.aarch64-linux index e8be40a853..6d7976cd2a 100644 --- a/docker/Dockerfile.build.aarch64-linux +++ b/docker/Dockerfile.build.aarch64-linux @@ -111,9 +111,11 @@ RUN export PYVERS="3.8.5 3.9.0 3.10.0 3.11.0 3.12.0 3.13.0" && \ cd / && rm -rf /tmp/Python*; \ done && \ # hack - patch the host pythonX-config to return --extension-suffix for the target - find /usr/ -iname x86_64-linux-gnu-python* -exec sed -i "s/\(SO.*\)\(x86_64\)\(.*\)/\1aarch64\3/" {} && \ + for pythonconfig in $(ls /usr/bin/x86_64-linux-gnu-python*-config); do \ + sed -i "s/\(SO.*\)\(x86_64\)\(.*\)/\1aarch64\3/" ${pythonconfig}; \ + done && \ # avoid fatal error: aarch64-linux-gnu/python3.8/pyconfig.h: No such file or directory - mkdir /usr/include/aarch64-linux-gnu/ && \ + mkdir -p /usr/include/aarch64-linux-gnu/ && \ cp -r /usr/include/x86_64-linux-gnu/python* /usr/include/aarch64-linux-gnu/; VOLUME /dali