Skip to content

Commit d6d8e7d

Browse files
Switch to amazonlinux:2023
1 parent 72789d9 commit d6d8e7d

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

build/posix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ sed -i'.bak' "/subdir('man')/{N;N;N;N;d;}" meson.build
442442
CFLAGS="${CFLAGS} -O3" CXXFLAGS="${CXXFLAGS} -O3" meson setup _build --default-library=shared --buildtype=release --strip --prefix=${TARGET} ${MESON} \
443443
-Ddeprecated=false -Dexamples=false -Dauto_features=enabled -Dintrospection=disabled -Dmodules=disabled -Dcfitsio=disabled -Dfftw=disabled \
444444
${WITHOUT_HIGHWAY:+-Dhighway=disabled} -Dorc=disabled -Dmagick=disabled -Dmatio=disabled -Dnifti=disabled -Dopenexr=disabled \
445-
-Dopenslide=disabled -Dpdfium=disabled -Dpoppler=disabled -Dquantizr=disabled \
445+
-Dopenslide=disabled -Dpdfium=disabled -Dpoppler=disabled -Dquantizr=disabled -Draw=disabled \
446446
-Dppm=false -Danalyze=false -Dradiance=false \
447447
${LINUX:+-Dcpp_link_args="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--version-script=$DEPS/vips/vips.map $EXCLUDE_LIBS"}
448448
meson install -C _build --tag runtime,devel

platforms/linux-arm64v8/Dockerfile

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
1-
FROM --platform=linux/arm64 rockylinux:8
1+
FROM arm64v8/amazonlinux:2023
22
LABEL maintainer="Lovell Fuller <npm@lovell.info>"
33

4-
# Create Rocky Linux 8 (glibc 2.28) container suitable for building Linux ARM64v8-A binaries
4+
# Create Amazon Linux 2023 (glibc 2.34) container suitable for building Linux ARM64v8-A binaries
55

66
# Path settings
77
ENV \
88
RUSTUP_HOME="/usr/local/rustup" \
99
CARGO_HOME="/usr/local/cargo" \
10-
PATH="/usr/local/cargo/bin:/opt/rh/gcc-toolset-15/root/usr/bin:$PATH"
10+
PATH="/usr/local/cargo/bin:$PATH"
1111

1212
# Build dependencies
1313
RUN \
1414
dnf update -y && \
15-
dnf install -y epel-release && \
16-
dnf config-manager --set-enabled powertools && \
1715
dnf install -y --setopt=tsflags=nodocs \
1816
autoconf \
1917
automake \
2018
bzip2 \
2119
cmake \
2220
curl-devel \
23-
findutils \
24-
gcc-toolset-15-gcc \
25-
gcc-toolset-15-gcc-c++ \
21+
gcc \
22+
gcc-c++ \
23+
binutils \
2624
gettext \
2725
git \
2826
gperf \
2927
jq \
3028
make \
3129
openssl-devel \
3230
patch \
33-
pkgconf \
34-
python3.12-pip \
31+
pkgconfig \
32+
python3 \
33+
python3-pip \
3534
tar \
3635
xz \
3736
&& \
@@ -42,16 +41,15 @@ RUN \
4241
--default-toolchain nightly \
4342
&& \
4443
cargo install cargo-c --locked && \
45-
pip3.12 install meson ninja
44+
pip3 install meson ninja tomli
4645

4746
# Compiler settings
4847
ENV \
49-
PKG_CONFIG="aarch64-linux-gnu-pkgconf --static" \
48+
PKG_CONFIG="pkg-config --static" \
5049
PLATFORM="linux-arm64v8" \
5150
FLAGS="-march=armv8-a" \
5251
RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" \
5352
MESON="--cross-file=/root/meson.ini"
5453

5554
COPY Toolchain.cmake /root/
5655
COPY meson.ini /root/
57-
COPY aarch64-linux-gnu-pkgconf /usr/bin

0 commit comments

Comments
 (0)