Skip to content

Commit

Permalink
packaging: Don't build rpm for ppc64le arch
Browse files Browse the repository at this point in the history
ppc64le architecture not supported by OpenShift Local as of now and it
also create confusion because ppc64le package contains the amd64 binary.
  • Loading branch information
praveenkumar committed Jun 27, 2024
1 parent 9c3edd3 commit 66f9143
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packaging/rpm/crc.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ Name: %{goname}
Release: 1%{?dist}
Summary: CRC's main executable
License: APL 2.0
ExcludeArch: armv7hl i686
ExcludeArch: armv7hl i686 ppc64le s390x
URL: %{gourl}
ExcludeArch: s390x
Source0: %{gosource}

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

%files
%license %{golicenses}
Expand Down

0 comments on commit 66f9143

Please sign in to comment.