Bug#996262: libticables: Patch to add riscv64 support

Aurelien Jarno aurel32 at debian.org
Tue Oct 12 18:18:06 BST 2021


Source: libticables
Version: 1.3.5+dfsg-3
Severity: normal
Tags: ftbfs patch upstream
User: debian-riscv at lists.debian.org
Usertags: riscv64

Hi,

libticables fails to build on riscv64:
https://buildd.debian.org/status/fetch.php?pkg=libticables&arch=riscv64&ver=1.3.5%2Bdfsg-3&stamp=1558232490&raw=0

This is due to a missing detection for the riscv64 architecture in the
configure script. Please find attached a path inspired from the mips64el
and ppc64el ones to add support for riscv64. Could you please include it
in the next upload?

Thanks,
Aurelien
-------------- next part --------------
diff -Nru libticables-1.3.5+dfsg/debian/patches/ftbfs-riscv64-configure.patch libticables-1.3.5+dfsg/debian/patches/ftbfs-riscv64-configure.patch
--- libticables-1.3.5+dfsg/debian/patches/ftbfs-riscv64-configure.patch	1970-01-01 00:00:00.000000000 +0000
+++ libticables-1.3.5+dfsg/debian/patches/ftbfs-riscv64-configure.patch	2021-10-12 05:46:27.000000000 +0000
@@ -0,0 +1,16 @@
+Description: Fix ftbfs on riscv64.
+ Modifies configure.ac to fix ftbfs on riscv64.
+Author: Aurelien Jarno <aurel32 at debian.org>
+Forwarded: no
+Last-Update: 2021-10-12
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -161,6 +161,7 @@ case "$host" in
+   powerpc64*-*-linux-*)  ARCH="-D__PPC__  -D__LINUX__" ;;
+   powerpc-apple-darwin*) ARCH="-D__PPC__  -D__MACOSX__" ;;
+   powerpc64-apple-darwin*) ARCH="-D__PPC__  -D__MACOSX__" ;;
++  riscv64-*-linux-*)     ARCH="-D__RISCV__ -D__LINUX__" ;;
+   s390*-*-linux-*)       ARCH="-D__LINUX__" ;;
+   sh*-*-linux-*)         ARCH="-D__LINUX__" ;;
+   sparc*-*-linux-*)      ARCH="-D__SPARC__ -D__LINUX__" ;;
diff -Nru libticables-1.3.5+dfsg/debian/patches/series libticables-1.3.5+dfsg/debian/patches/series
--- libticables-1.3.5+dfsg/debian/patches/series	2018-05-25 09:07:23.000000000 +0000
+++ libticables-1.3.5+dfsg/debian/patches/series	2021-10-12 05:46:27.000000000 +0000
@@ -1,2 +1,3 @@
 ftbfs-ppc64el-configure.patch
 ftbfs-mips64el-configure.patch
+ftbfs-riscv64-configure.patch


More information about the debian-science-maintainers mailing list