1
0
mirror of https://github.com/docker/docker-ce-packaging.git synced 2025-04-19 00:04:03 +03:00

fix: update binutils workaround to match containerd packaging

Co-authored-by: Paweł Gronowski <pawel.gronowski@docker.com>
Signed-off-by: Robert Sturla <robertsturla@outlook.com>
This commit is contained in:
Robert Sturla 2025-03-28 09:36:11 +00:00
parent 489ccf578d
commit fea785d7d0

View File

@ -42,7 +42,8 @@ RUN dnf install -y rpm-build dnf-plugins-core
# - https://src.fedoraproject.org/rpms/golang/c/a867bd88a656c1d6e91e7b18bab696dc3fcf1e77?branch=rawhide
#
# As a workaround; install binutils-gold
RUN if [ "$(arch)" = 'aarch64' ]; then dnf -y install binutils-gold; fi
RUN if [ "$(rpm --query --queryformat='%{ARCH}' rpm)" = 'aarch64' ] && ! command -v ld.gold; then dnf -y install binutils-gold; fi
COPY --link SPECS /root/rpmbuild/SPECS
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec
COPY --link --from=golang /usr/local/go /usr/local/go