Fix NPB test image cross-build for arm64

Fix by adding chmod -R a+rX after tar extraction to ensure all files
are readable and executables/directories are accessible.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2026-01-20 22:15:49 -05:00
parent 63459fb128
commit ff7b1dac18
No known key found for this signature in database
GPG key ID: 6DEA177048756885
4 changed files with 6 additions and 4 deletions

View file

@ -20,7 +20,8 @@ CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
RUN apt-get update && apt-get install -y libc6-dev g++ bzip2 dpkg-dev build-essential gfortran
ADD http://www.nas.nasa.gov/assets/npb/NPB3.4.3.tar.gz .
RUN tar xzf NPB3.4.3.tar.gz
# Fix permissions for cross-build with QEMU emulation
RUN tar xzf NPB3.4.3.tar.gz && chmod -R a+rX NPB3.4.3
WORKDIR ./NPB3.4.3/NPB3.4-OMP
RUN if [ $(arch) != "x86_64" ]; then \

View file

@ -1 +1 @@
1.4
1.5

View file

@ -20,7 +20,8 @@ CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
RUN apt-get update && apt-get install -y build-essential gfortran
ADD http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz .
RUN tar xzf NPB3.3.1.tar.gz
# Fix permissions for cross-build with QEMU emulation
RUN tar xzf NPB3.3.1.tar.gz && chmod -R a+rX NPB3.3.1
WORKDIR ./NPB3.3.1/NPB3.3-OMP

View file

@ -1 +1 @@
1.3
1.4