We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489ccf5 commit fea785dCopy full SHA for fea785d
rpm/fedora-42/Dockerfile
@@ -42,7 +42,8 @@ RUN dnf install -y rpm-build dnf-plugins-core
42
# - https://src.fedoraproject.org/rpms/golang/c/a867bd88a656c1d6e91e7b18bab696dc3fcf1e77?branch=rawhide
43
#
44
# As a workaround; install binutils-gold
45
-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
46
+
47
COPY --link SPECS /root/rpmbuild/SPECS
48
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec
49
COPY --link --from=golang /usr/local/go /usr/local/go
0 commit comments