Source: nfs-ganesha
Version: 4.3-8
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
The nfs-ganesha source package lacks LoongArch architecture support.
We need to add build support for loongarch64 in debian/control and
debian/rules.
Please consider the patch I have attached.
The nfs-ganesha source package was compiled successfully on my local
environment, for examples,
```
root@localhost:/home/buildd/nfs-ganesha-4.3# ls ../
nfs-ganesha_4.3-8.debian.tar.xz
nfs-ganesha_4.3-8.dsc
nfs-ganesha_4.3-8_loong64.buildinfo
nfs-ganesha_4.3-8_loong64.changes
nfs-ganesha_4.3-8_loong64.deb
nfs-ganesha_4.3.orig.tar.gz
nfs-ganesha-add-loongarch64-support.debdiff
nfs-ganesha-ceph_4.3-8_loong64.deb
nfs-ganesha-ceph-dbgsym_4.3-8_loong64.deb
nfs-ganesha-dbgsym_4.3-8_loong64.deb
nfs-ganesha-doc_4.3-8_all.deb
nfs-ganesha-gluster_4.3-8_loong64.deb
......
```
If you have any questions, you can contact me at any time.
thanks,
Dandan Zhang
diff -Nru nfs-ganesha-4.3/debian/control nfs-ganesha-4.3/debian/control
--- nfs-ganesha-4.3/debian/control 2023-10-30 21:32:53.000000000 +0000
+++ nfs-ganesha-4.3/debian/control 2023-10-30 21:32:53.000000000 +0000
@@ -18,15 +18,15 @@
libcap-dev,
libcephfs-dev,
libdbus-1-dev,
- libglusterfs-dev (>= 9.0) [amd64 arm64 ia64 mips64el ppc64 ppc64el riscv64
s390x sparc64],
+ libglusterfs-dev (>= 9.0) [amd64 arm64 ia64 loong64 mips64el ppc64 ppc64el
riscv64 s390x sparc64],
libkrb5-dev,
liblttng-ctl-dev,
liblttng-ust-dev,
libnfsidmap-dev,
libntirpc-dev (>= 4.3),
libpython3-all-dev,
- librados-dev [amd64 arm64 mips64el ppc64el riscv64 s390x],
- librgw-dev [amd64 arm64 mips64el ppc64el riscv64 s390x],
+ librados-dev [amd64 arm64 loong64 mips64el ppc64el riscv64 s390x],
+ librgw-dev [amd64 arm64 loong64 mips64el ppc64el riscv64 s390x],
liburcu-dev,
libwbclient-dev,
lttng-tools,
@@ -60,7 +60,7 @@
This package contains the binaries
Package: nfs-ganesha-ceph
-Architecture: amd64 arm64 mips64el ppc64el riscv64 s390x
+Architecture: amd64 arm64 loong64 mips64el ppc64el riscv64 s390x
Section: libs
Depends:
nfs-ganesha (=${binary:Version}),
@@ -94,7 +94,7 @@
Package: nfs-ganesha-gluster
Multi-Arch: same
-Architecture: amd64 arm64 ia64 mips64el ppc64 ppc64el riscv64 s390x sparc64
+Architecture: amd64 arm64 ia64 loong64 mips64el ppc64 ppc64el riscv64 s390x
sparc64
Section: libs
Depends:
libglusterfs0 (>= 6.0),
@@ -190,7 +190,7 @@
Package: nfs-ganesha-rados-grace
Multi-Arch: foreign
-Architecture: amd64 arm64 mips64el ppc64el riscv64 s390x
+Architecture: amd64 arm64 loong64 mips64el ppc64el riscv64 s390x
Depends:
nfs-ganesha (=${binary:Version}),
${misc:Depends},
@@ -205,7 +205,7 @@
Package: nfs-ganesha-rgw
Multi-Arch: same
-Architecture: amd64 arm64 mips64el ppc64el riscv64 s390x
+Architecture: amd64 arm64 loong64 mips64el ppc64el riscv64 s390x
Section: libs
Depends:
nfs-ganesha (=${binary:Version}),
diff -Nru nfs-ganesha-4.3/debian/rules nfs-ganesha-4.3/debian/rules
--- nfs-ganesha-4.3/debian/rules 2023-10-30 21:32:53.000000000 +0000
+++ nfs-ganesha-4.3/debian/rules 2023-10-30 21:32:53.000000000 +0000
@@ -19,7 +19,7 @@
else
FSALGLUSTER=-DUSE_FSAL_GLUSTER=NO
endif
-ifneq (,$(findstring $(DEB_HOST_ARCH),"amd64 arm64 mips64el ppc64el riscv64
s390x"))
+ifneq (,$(findstring $(DEB_HOST_ARCH),"amd64 arm64 loong64 mips64el ppc64el
riscv64 s390x"))
FSALCEPH=-DUSE_FSAL_CEPH=YES -DUSE_FSAL_RGW=YES
RADOSOPT=-DUSE_RADOS_RECOV=YES -DRADOS_URLS=YES
else