Skip to content

Commit fea785d

Browse files
p5vvoland
andcommitted
fix: update binutils workaround to match containerd packaging
Co-authored-by: Paweł Gronowski <[email protected]> Signed-off-by: Robert Sturla <[email protected]>
1 parent 489ccf5 commit fea785d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rpm/fedora-42/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ RUN dnf install -y rpm-build dnf-plugins-core
4242
# - https://src.fedoraproject.org/rpms/golang/c/a867bd88a656c1d6e91e7b18bab696dc3fcf1e77?branch=rawhide
4343
#
4444
# As a workaround; install binutils-gold
45-
RUN if [ "$(arch)" = 'aarch64' ]; then dnf -y install binutils-gold; fi
45+
RUN if [ "$(rpm --query --queryformat='%{ARCH}' rpm)" = 'aarch64' ] && ! command -v ld.gold; then dnf -y install binutils-gold; fi
46+
4647
COPY --link SPECS /root/rpmbuild/SPECS
4748
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec
4849
COPY --link --from=golang /usr/local/go /usr/local/go

0 commit comments

Comments
 (0)