Add support for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-01-11 12:26:29 +02:00
parent 2c97dc253a
commit 6dade0bdbc
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3

View File

@ -57,7 +57,7 @@
# ppc64le excluded pending resolution of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104172
#%%ifarch aarch64 ppc64le s390x x86_64
%ifarch aarch64 s390x x86_64
%ifarch aarch64 s390x x86_64 riscv64
%bcond_without vfs_cephfs
%bcond_without ceph_mutex
%else
@ -80,7 +80,7 @@
%if 0%{?fedora}
%ifarch aarch64 ppc64le s390x x86_64
%ifarch aarch64 ppc64le s390x x86_64 riscv64
%bcond_without vfs_glusterfs
%else
%bcond_with vfs_glusterfs
@ -109,7 +109,7 @@
# Build vfs_io_uring module by default on 64bit Fedora
%if 0%{?fedora} || 0%{?rhel} >= 8
%ifarch aarch64 ppc64le s390x x86_64
%ifarch aarch64 ppc64le s390x x86_64 riscv64
%bcond_without vfs_io_uring
%else
%bcond_with vfs_io_uring
@ -205,7 +205,7 @@
Name: samba
Version: %{samba_version}
Release: %{samba_release}%{?dist}
Release: %{samba_release}.0.riscv64%{?dist}
%if 0%{?fedora}
Epoch: 2
@ -332,7 +332,7 @@ BuildRequires: zlib-devel >= 1.2.3
BuildRequires: pkgconfig(libsystemd)
%ifnarch i686
%ifnarch i686 riscv64
%if 0%{?fedora} >= 37
BuildRequires: mold
%endif
@ -1275,7 +1275,7 @@ export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
# Use the mold linker if possible
export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
%ifnarch i686
%ifnarch i686 riscv64
%if 0%{?fedora} >= 37
export LDFLAGS="%{__global_ldflags} -fuse-ld=mold"
export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
@ -4468,6 +4468,10 @@ fi
%endif
%changelog
* Thu Jan 11 2024 David Abdurachmanov <davidlt@rivosinc.com> - 4.19.4-2.0.riscv64
- Add support for riscv64
- Disable Mold linker on riscv64
* Tue Jan 09 2024 Andreas Schneider <asn@redhat.com> - 4.19.4-2
- resolves: rhbz#2256326 - Create all groups using systemd