Package: dm-writeboost-dkms Version: 2.2.10-1 Severity: important Dear Maintainer,
dm-writeboost-dkms 2.2.10-1 FTBFS: /var/lib/dkms/dm-writeboost/2.2.10/build/dm-writeboost-daemon.c: In function ‘writeback_modulator_proc’: /var/lib/dkms/dm-writeboost/2.2.10/build/dm-writeboost-daemon.c:486:26: error: implicit declaration of function ‘part_stat_read’ [-Werror=implicit-function-declaration] 486 | new = jiffies_to_msecs(part_stat_read(hd, io_ticks)); | ^~~~~~~~~~~~~~ /var/lib/dkms/dm-writeboost/2.2.10/build/dm-writeboost-daemon.c:486:45: error: ‘io_ticks’ undeclared (first use in this function) 486 | new = jiffies_to_msecs(part_stat_read(hd, io_ticks)); | ^~~~~~~~ /var/lib/dkms/dm-writeboost/2.2.10/build/dm-writeboost-daemon.c:486:45: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors It's just missing an header, the attached debdiff fixes it. -- System Information: Debian Release: bullseye/sid APT prefers focal-updates APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal-proposed'), (500, 'focal'), (100, 'focal-backports') Architecture: amd64 (x86_64) Kernel: Linux 5.4.0-31-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dm-writeboost-dkms depends on: ii dkms 2.8.1-5ubuntu1 Versions of packages dm-writeboost-dkms recommends: ii dmsetup 2:1.02.167-1ubuntu1 ii kmod 27-1ubuntu2 pn writeboost <none> dm-writeboost-dkms suggests no packages.
diff -Nru dm-writeboost-2.2.10/debian/changelog dm-writeboost-2.2.10/debian/changelog --- dm-writeboost-2.2.10/debian/changelog 2018-11-10 00:16:06.000000000 +0000 +++ dm-writeboost-2.2.10/debian/changelog 2020-05-13 12:40:47.000000000 +0000 @@ -1,3 +1,9 @@ +dm-writeboost (2.2.10-2) unstable; urgency=medium + + * Fix build by including missing part_stat header + + -- Paolo Pisati <paolo.pis...@canonical.com> Wed, 13 May 2020 12:40:47 +0000 + dm-writeboost (2.2.10-1) unstable; urgency=medium * New upstream release [November 2018]. diff -Nru dm-writeboost-2.2.10/debian/patches/0001-fix-missing-stat-header.patch dm-writeboost-2.2.10/debian/patches/0001-fix-missing-stat-header.patch --- dm-writeboost-2.2.10/debian/patches/0001-fix-missing-stat-header.patch 1970-01-01 00:00:00.000000000 +0000 +++ dm-writeboost-2.2.10/debian/patches/0001-fix-missing-stat-header.patch 2020-05-13 12:40:47.000000000 +0000 @@ -0,0 +1,25 @@ +From 358e980fc487e6ff551a44dfed481910aee9dd52 Mon Sep 17 00:00:00 2001 +From: Paolo Pisati <paolo.pis...@canonical.com> +Date: Wed, 13 May 2020 13:10:03 +0000 +Subject: [PATCH] fix missing stat header + +Signed-off-by: Paolo Pisati <paolo.pis...@canonical.com> +--- + src/dm-writeboost-daemon.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/dm-writeboost-daemon.c b/src/dm-writeboost-daemon.c +index 89eb142..efa2f26 100644 +--- a/src/dm-writeboost-daemon.c ++++ b/src/dm-writeboost-daemon.c +@@ -21,6 +21,7 @@ + #include "dm-writeboost-metadata.h" + #include "dm-writeboost-daemon.h" + ++#include <linux/part_stat.h> + #include <linux/rbtree.h> + + /*----------------------------------------------------------------------------*/ +-- +2.25.1 + diff -Nru dm-writeboost-2.2.10/debian/patches/series dm-writeboost-2.2.10/debian/patches/series --- dm-writeboost-2.2.10/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ dm-writeboost-2.2.10/debian/patches/series 2020-05-13 12:40:47.000000000 +0000 @@ -0,0 +1 @@ +0001-fix-missing-stat-header.patch