Skip to content

Commit 66f9143

Browse files
committed
packaging: Don't build rpm for ppc64le arch
ppc64le architecture not supported by OpenShift Local as of now and it also create confusion because ppc64le package contains the amd64 binary.
1 parent 9c3edd3 commit 66f9143

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packaging/rpm/crc.spec.in

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ Name: %{goname}
3030
Release: 1%{?dist}
3131
Summary: CRC's main executable
3232
License: APL 2.0
33-
ExcludeArch: armv7hl i686
33+
ExcludeArch: armv7hl i686 ppc64le s390x
3434
URL: %{gourl}
35-
ExcludeArch: s390x
3635
Source0: %{gosource}
3736

3837
#generate_buildrequires
@@ -81,14 +80,7 @@ install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/macos-universal/crc %{build
8180
%check
8281
# with fedora macros: gocheck
8382
export GOFLAGS="-mod=vendor"
84-
# crc uses `go test -race`, which triggers gvisor issues on ppc64le:
85-
# vendor/gvisor.dev/gvisor/pkg/sync/race_unsafe.go:47:6: missing function body
86-
# and a ppc64le implementation is indeed missing on ppc64le:
87-
# https://github.com/google/gvisor/blob/master/pkg/sync/race_unsafe.go
88-
# https://github.com/google/gvisor/tree/master/pkg/sync
89-
%ifnarch ppc64le
9083
make test
91-
%endif
9284

9385
%files
9486
%license %{golicenses}

0 commit comments

Comments
 (0)