]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: install gcc-toolset-11-libatomic-devel in x86_64 also
authorCasey Bodley <cbodley@redhat.com>
Wed, 10 Aug 2022 22:23:34 +0000 (18:23 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Aug 2022 22:23:44 +0000 (18:23 -0400)
otherwise after enabling gcc-toolset-11, cmake fails with:

- Performing Test HAVE_LIBATOMIC - Failed
CMake Error at cmake/modules/CheckCxxAtomic.cmake:66 (message):
  Host compiler /opt/rh/gcc-toolset-11/root/usr/bin/g++ requires libatomic,
  but it is not found

Signed-off-by: Casey Bodley <cbodley@redhat.com>
ceph.spec.in

index aa534fd88250bbfa95a4cc063b3a588538def8d1..315e72f8ff85f8e72ac118acc885d81da0be28aa 100644 (file)
@@ -209,10 +209,8 @@ BuildRequires:     gcc-c++ >= 11
 %if 0%{?rhel} == 8
 BuildRequires: %{gts_prefix}-gcc-c++
 BuildRequires: %{gts_prefix}-build
-%ifarch aarch64
 BuildRequires: %{gts_prefix}-libatomic-devel
 %endif
-%endif
 %if 0%{?fedora} || 0%{?rhel} == 9
 BuildRequires:  libatomic
 %endif