#34 Add support for riscv64
Merged 2 months ago by rjones. Opened 2 months ago by rjones.
rpms/ rjones/samba riscv64-support  into  rawhide

Add support for riscv64
David Abdurachmanov • 2 months ago  
file modified
+5 -5
@@ -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
@@ -332,7 +332,7 @@ 

  

  BuildRequires: pkgconfig(libsystemd)

  

- %ifnarch i686

+ %ifnarch i686 riscv64

  %if 0%{?fedora} >= 37

  BuildRequires: mold

  %endif
@@ -1272,7 +1272,7 @@ 

  # 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')"

Signed-off-by: David Abdurachmanov davidlt@rivosinc.com

Note I wasn't able to test build this change on riscv64 since we only have older versions of certain dependencies right now:

    cepces-certmonger >= 0.3.8 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    krb5-server >= 1.20.1 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    libldb-devel >= 2.9.0 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    libtalloc-devel >= 2.4.2 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    libtdb-devel >= 1.4.10 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    libtevent-devel >= 0.16.1 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    python3-ldb >= 2.9.0 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    python3-ldb-devel >= 2.9.0 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    python3-talloc-devel >= 2.4.2 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    python3-tdb >= 1.4.10 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64
    python3-tevent >= 0.16.1 is needed by samba-2:4.20.0-0.3.rc2.fc41.riscv64

rebased onto eccf82d

2 months ago

Merging as the change is simple and no response from the packager.

Pull-Request has been merged by rjones

2 months ago
Metadata