Hi Michael,
I think I've fixed this RC bug as well. I've written to Ralf Hoffmann,
notifying him about the problem and a possible solution. I've uploaded
another NMU, so that avfs can build again on all architectures.
If Ralf releases another upstream version with updated library version
info, that can be uploaded to fix #1061322. Otherwise, the library
should probably be renamed to allow a transition.
Regards,
Tobias
diff --git a/debian/changelog b/debian/changelog
index 7221231..1dcf491 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+avfs (1.1.5-1.3) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add new patch for time_t transition, addressing #1061322.
+ The bug is not closed with this upload, because the
+ library should be either renamed or get an update of the
+ version information. Upstream has been contacted about
+ this.
+
+ -- Dr. Tobias Quathamer <to...@debian.org> Mon, 20 Jan 2025 15:29:14 +0100
+
avfs (1.1.5-1.2) unstable; urgency=medium
* Non-maintainer upload.
diff --git a/debian/patches/Use-time_t-instead-of-long.patch b/debian/patches/Use-time_t-instead-of-long.patch
new file mode 100644
index 0000000..037fd4a
--- /dev/null
+++ b/debian/patches/Use-time_t-instead-of-long.patch
@@ -0,0 +1,29 @@
+From: "Dr. Tobias Quathamer" <to...@debian.org>
+Date: Mon, 20 Jan 2025 14:47:23 +0100
+Subject: Use time_t instead of long
+
+---
+ include/avfs.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/avfs.h b/include/avfs.h
+index 9cc0c5c..e3801c1 100644
+--- a/include/avfs.h
++++ b/include/avfs.h
+@@ -13,6 +13,7 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <pthread.h>
++#include <time.h>
+
+ /* The following 3 includes are not needed except for some
+ * systems which redefine open to open64 etc. (namely Sun)
+@@ -39,7 +40,7 @@ typedef avuint avuid_t;
+ typedef avuint avgid_t;
+ typedef avuquad avino_t;
+ typedef avquad avoff_t;
+-typedef long avtime_t;
++typedef time_t avtime_t;
+ typedef avuint avsize_t;
+ typedef int avssize_t;
+ typedef avulong avblksize_t;
diff --git a/debian/patches/series b/debian/patches/series
index 4cc6a84..9b5d907 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ extfs
configure
udar
add_atomic_library.patch
+Use-time_t-instead-of-long.patch