Source: rdma-core
Version: 17.1-1
Severity: normal
Tags: patch
User: debian-ri...@lists.debian.org
Usertags: riscv64

Hello,

The current version of this package doesn't build for the riscv64 port.

First it fails to be considered to build (due to missing valgrind) and, when
fixing that problem, FBTFS, because of missing files (see at bottom).

I applied the same fix as for many other arches, which is to add the arch to the
list of NO_COHERENT_DMA_ARCHS in debian/rules.

I am not sure if support could be added at a later date, but for the time being,
seems to be the best way to get it working -- I don't know enough details of the
architecture or the assembly language to get the necessary incantations in
place.

So please, consider to apply the patch attached, to add support for the new
architecture.


Thanks and cheers.
--
Manuel A. Fernandez Montecelo <m...@debian.org>


===========================================================
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install --fail-missing -X"etc/init.d/srpd" -X"usr/sbin/run_srp_daemon" 
-X"usr/sbin/srp_daemon.sh"
dh_install: Please use dh_missing --list-missing/--fail-missing instead
dh_install: This feature will be removed in compat 12.
dh_install: Cannot find (any matches for) "etc/modprobe.d/mlx4.conf" (tried in 
., debian/tmp)

dh_install: rdma-core missing files: etc/modprobe.d/mlx4.conf
dh_install: Cannot find (any matches for) "usr/lib/*/libmlx4.so.*" (tried in ., 
debian/tmp)

dh_install: ibverbs-providers missing files: usr/lib/*/libmlx4.so.*
dh_install: Cannot find (any matches for) "usr/lib/*/libmlx5.so.*" (tried in ., 
debian/tmp)

dh_install: ibverbs-providers missing files: usr/lib/*/libmlx5.so.*
dh_install: Cannot find (any matches for) "usr/include/infiniband/mlx4dv.h" 
(tried in ., debian/tmp)

dh_install: libibverbs-dev missing files: usr/include/infiniband/mlx4dv.h
dh_install: Cannot find (any matches for) "usr/include/infiniband/mlx5dv.h" 
(tried in ., debian/tmp)

dh_install: libibverbs-dev missing files: usr/include/infiniband/mlx5dv.h
dh_install: Cannot find (any matches for) "usr/lib/*/libmlx4.so" (tried in ., 
debian/tmp)

dh_install: libibverbs-dev missing files: usr/lib/*/libmlx4.so
dh_install: Cannot find (any matches for) "usr/lib/*/libmlx5.so" (tried in ., 
debian/tmp)

dh_install: libibverbs-dev missing files: usr/lib/*/libmlx5.so
dh_install: Cannot find (any matches for) "usr/share/man/man3/mlx4dv_*.3" 
(tried in ., debian/tmp)

dh_install: libibverbs-dev missing files: usr/share/man/man3/mlx4dv_*.3
dh_install: Cannot find (any matches for) "usr/share/man/man3/mlx5dv_*.3" 
(tried in ., debian/tmp)

dh_install: libibverbs-dev missing files: usr/share/man/man3/mlx5dv_*.3
dh_install: Cannot find (any matches for) "usr/share/man/man7/mlx4dv.7" (tried 
in ., debian/tmp)

dh_install: libibverbs-dev missing files: usr/share/man/man7/mlx4dv.7
dh_install: Cannot find (any matches for) "usr/share/man/man7/mlx5dv.7" (tried 
in ., debian/tmp)

dh_install: libibverbs-dev missing files: usr/share/man/man7/mlx5dv.7
dh_install: missing files, aborting

make[1]: *** [debian/rules:60: override_dh_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit 
status 2
===========================================================
diff -Nru rdma-core-17.1/debian/changelog rdma-core-17.1/debian/changelog
--- rdma-core-17.1/debian/changelog     2018-03-19 13:32:31.000000000 +0100
+++ rdma-core-17.1/debian/changelog     2018-04-05 22:59:07.000000000 +0200
@@ -1,3 +1,13 @@
+rdma-core (17.1-1~0.riscv64.1) unreleased; urgency=medium
+
+  * Non-maintainer upload.
+  * Add support for riscv64:
+    - Disable valgrind build-dependency, not available
+    - Add to NO_COHERENT_DMA_ARCHS in d/rules (FTBFS otherwise, code not
+      ready yet)
+
+ -- Manuel A. Fernandez Montecelo <m...@debian.org>  Thu, 05 Apr 2018 22:59:07 
+0200
+
 rdma-core (17.1-1) unstable; urgency=medium
 
   * New upstream bugfix release.
diff -Nru rdma-core-17.1/debian/control rdma-core-17.1/debian/control
--- rdma-core-17.1/debian/control       2018-03-19 13:30:01.000000000 +0100
+++ rdma-core-17.1/debian/control       2018-04-05 22:59:07.000000000 +0200
@@ -12,7 +12,7 @@
                ninja-build,
                pkg-config,
                python,
-               valgrind [!alpha !armel !hppa !ia64 !m68k !powerpcspe !sh4 
!sparc64 !x32]
+               valgrind [!alpha !armel !hppa !ia64 !m68k !powerpcspe !sh4 
!sparc64 !x32 !riscv64]
 Standards-Version: 4.1.3
 Vcs-Git: https://github.com/linux-rdma/rdma-core.git
 Vcs-Browser: https://github.com/linux-rdma/rdma-core
diff -Nru rdma-core-17.1/debian/rules rdma-core-17.1/debian/rules
--- rdma-core-17.1/debian/rules 2018-03-19 13:30:01.000000000 +0100
+++ rdma-core-17.1/debian/rules 2018-04-05 22:59:07.000000000 +0200
@@ -4,7 +4,7 @@
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-NO_COHERENT_DMA_ARCHS = alpha armel armhf hppa m68k mips mips64el mipsel sh4
+NO_COHERENT_DMA_ARCHS = alpha armel armhf hppa m68k mips mips64el mipsel 
riscv64 sh4
 
 %:
        dh $@ --builddirectory=build-deb

Reply via email to