Package: sysdig
Version: 0.27.1-0.2
Tags: patch
thanks
Hi Evgeni and Harlan,
attached is a patch to make sysdig available on riscv64. The new #ifdef
has been already used at other places, so it should not create problems.
Thorsten
diff -Nru sysdig-0.27.1/debian/changelog sysdig-0.27.1/debian/changelog
--- sysdig-0.27.1/debian/changelog 2021-03-08 05:55:11.000000000 +0100
+++ sysdig-0.27.1/debian/changelog 2021-07-13 18:55:11.000000000 +0200
@@ -1,3 +1,10 @@
+sysdig (0.27.1-0.3) unstable; urgency=medium
+
+ * Non-maintainer upload
+ * Fix FTBFS on riscv64.
+
+ -- Thorsten Alteholz <deb...@alteholz.de> Tue, 13 Jul 2021 18:55:11 +0200
+
sysdig (0.27.1-0.2) unstable; urgency=medium
* Non-maintainer upload
diff -Nru sysdig-0.27.1/debian/patches/fix-riscv64-ftbfs.patch
sysdig-0.27.1/debian/patches/fix-riscv64-ftbfs.patch
--- sysdig-0.27.1/debian/patches/fix-riscv64-ftbfs.patch 1970-01-01
01:00:00.000000000 +0100
+++ sysdig-0.27.1/debian/patches/fix-riscv64-ftbfs.patch 2021-07-13
18:55:11.000000000 +0200
@@ -0,0 +1,15 @@
+Description: only add syscall to table if available
+Index: sysdig-0.27.1/driver/syscall_table.c
+===================================================================
+--- sysdig-0.27.1.orig/driver/syscall_table.c 2021-07-14 09:27:39.000000000
+0200
++++ sysdig-0.27.1/driver/syscall_table.c 2021-07-14 10:42:50.329609547
+0200
+@@ -654,7 +654,9 @@
+ [__NR_futimesat - SYSCALL_TABLE_ID0] = PPM_SC_FUTIMESAT,
+ #endif
+ [__NR_unlinkat - SYSCALL_TABLE_ID0] = PPM_SC_UNLINKAT,
++#ifdef __NR_renameat
+ [__NR_renameat - SYSCALL_TABLE_ID0] = PPM_SC_RENAMEAT,
++#endif
+ [__NR_linkat - SYSCALL_TABLE_ID0] = PPM_SC_LINKAT,
+ [__NR_symlinkat - SYSCALL_TABLE_ID0] = PPM_SC_SYMLINKAT,
+ [__NR_readlinkat - SYSCALL_TABLE_ID0] = PPM_SC_READLINKAT,
diff -Nru sysdig-0.27.1/debian/patches/series
sysdig-0.27.1/debian/patches/series
--- sysdig-0.27.1/debian/patches/series 2021-03-08 00:40:18.000000000 +0100
+++ sysdig-0.27.1/debian/patches/series 2021-07-13 18:55:11.000000000 +0200
@@ -1,3 +1,4 @@
fix-arm64-ftbfs.patch
fix-luajit.patch
0001-UBUNTU-SAUCE-armhf-fix-64bit-mod-by-using-div64_u64_.patch
+fix-riscv64-ftbfs.patch