Hello, I'm reporting this tar error.
*Summary:* a Dockerfile arm build (QEMU) fail on this command: RUN tar xzf /tmp/Python-3.10.9.tgz -C /tmp *Issue:* [36m#21 [stage-1 10/29] RUN tar xzf /tmp/Python-3.10.9.tgz -C /tmp[0m [36m#21 0.269 tar: Python-3.10.9/Mac: Cannot mkdir: Invalid argument[0m [36m#21 0.269 tar: Python-3.10.9/Mac/README.rst: Cannot open: Invalid argument[0m [36m#21 0.269 tar: Python-3.10.9/Mac/Icons: Cannot mkdir: Invalid argument[0m [36m#21 0.269 tar: Python-3.10.9/Mac/Icons/PythonLauncher.icns: Cannot open: Invalid argument[0m [36m#21 0.270 tar: Python-3.10.9/Mac/Icons/IDLE.icns: Cannot open: Invalid argument[0m [36m#21 0.271 tar: Python-3.10.9/Mac/Icons/PythonCompiled.icns: Cannot open: Invalid argument[0m [36m#21 0.271 tar: Python-3.10.9/Mac/Icons/ReadMe.txt: Cannot open: Invalid argument[0m [36m#21 0.272 tar: Python-3.10.9/Mac/Icons/PythonSource.icns: Cannot open: Invalid argument[0m *Details to reproduce* *1/* get a rockylinux 9 amd64 VM. *2/ *create below Dockerfile: FROM rockylinux:9.3.20231119 WORKDIR /tmp USER root RUN dnf update -y RUN curl -L https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tgz --output /tmp/ Python-3.10.9.tgz RUN tar xzf /tmp/Python-3.10.9.tgz -C /tmp *3/* run: docker buildx build --platform=linux/arm64 . -t tar_error_arm --no-cache *We avoid error in 3 ways:* *1/ *By excluding tar from updated packages: RUN dnf update -y --exclude=tar *2/* By COPY the tar in Dockerfile instead of download it with curl. *3/ *By adding "-h" option to the tar: RUN tar xzf /tmp/Python-3.10.9.tgz -C /tmp -h We believe arm tar version tar-1.34-9.el9_7.aarch64 is bugged as opposed to tar-1.34-7.el9_7.aarch64 which seem to work fine.
