Enable riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-04-18 10:33:00 +03:00
parent aaedf07964
commit 6872e799fd
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 11 additions and 2 deletions

View File

@ -36,7 +36,7 @@
%bcond_with rbd_rwl_cache %bcond_with rbd_rwl_cache
%endif %endif
%if 0%{?fedora} || 0%{?rhel} %if 0%{?fedora} || 0%{?rhel}
%ifarch s390x %{arm64} %ifarch s390x %{arm64} riscv64
%bcond_with system_pmdk %bcond_with system_pmdk
%else %else
%bcond_without system_pmdk %bcond_without system_pmdk
@ -160,7 +160,7 @@
################################################################################# #################################################################################
Name: ceph Name: ceph
Version: 17.2.6 Version: 17.2.6
Release: 1%{?dist} Release: 1.0.riscv64%{?dist}
%if 0%{?fedora} || 0%{?rhel} %if 0%{?fedora} || 0%{?rhel}
Epoch: 2 Epoch: 2
%endif %endif
@ -281,7 +281,9 @@ BuildRequires: snappy-devel
BuildRequires: sqlite-devel BuildRequires: sqlite-devel
BuildRequires: sudo BuildRequires: sudo
BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(udev)
%ifarch %{valgrind_arches}
BuildRequires: valgrind-devel BuildRequires: valgrind-devel
%endif
BuildRequires: which BuildRequires: which
BuildRequires: xfsprogs-devel BuildRequires: xfsprogs-devel
BuildRequires: xmlstarlet BuildRequires: xmlstarlet
@ -1334,6 +1336,10 @@ export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="$RPM_LD_FLAGS" export LDFLAGS="$RPM_LD_FLAGS"
%ifarch riscv64
export LDFLAGS="-latomic $LDFLAGS"
%endif
# Workaround to https://tracker.ceph.com/issues/56610 # Workaround to https://tracker.ceph.com/issues/56610
%if 0%{?fedora} >= 37 || 0%{?rhel} >= 10 %if 0%{?fedora} >= 37 || 0%{?rhel} >= 10
export CFLAGS="$RPM_OPT_FLAGS -DFMT_DEPRECATED_OSTREAM" export CFLAGS="$RPM_OPT_FLAGS -DFMT_DEPRECATED_OSTREAM"
@ -2617,6 +2623,9 @@ exit 0
%config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml %config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml
%changelog %changelog
* Tue Apr 18 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2:17.2.6-1.0.riscv64
- Enable riscv64
* Fri Apr 7 2023 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:17.2.6-1 * Fri Apr 7 2023 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:17.2.6-1
- ceph-17.2.6 GA - ceph-17.2.6 GA