summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/64bit.diff21
-rw-r--r--debian/patches/series1
3 files changed, 29 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 6d81f3b8..67e530ad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+rumpkernel (0~20191130-8) unreleased; urgency=medium
+
+ [ Damien Zammit ]
+ * patches/64bit.diff: Enable 64bit offsets to fix access to large disks.
+
+ -- Samuel Thibault <sthibault@debian.org> Tue, 24 Aug 2021 11:50:53 +0000
+
rumpkernel (0~20191130-7) unreleased; urgency=medium
* patches/dealloc.diff: Add missing port deallocation.
diff --git a/debian/patches/64bit.diff b/debian/patches/64bit.diff
new file mode 100644
index 00000000..eb362d41
--- /dev/null
+++ b/debian/patches/64bit.diff
@@ -0,0 +1,21 @@
+From: Damien Zammit <damien@zamaudio.com>
+Subject: [PATCH] rumpkernel: Add -D_FILE_OFFSET_BITS=64 for large off_t
+
+This enables large disks to work in librump.
+
+---
+ buildrump.sh/buildrump.sh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/buildrump.sh/buildrump.sh
++++ b/buildrump.sh/buildrump.sh
+@@ -1126,7 +1131,7 @@ evalplatform ()
+ *-gnu*)
+ EXTRA_RUMPCOMMON='-ldl'
+ EXTRA_RUMPCLIENT='-lpthread'
+- appendvar EXTRA_CFLAGS -DMAXHOSTNAMELEN=256 -DPATH_MAX=1024
++ appendvar EXTRA_CFLAGS -D_FILE_OFFSET_BITS=64 -DMAXHOSTNAMELEN=256 -DPATH_MAX=1024
+ ;;
+ *-openbsd*)
+ EXTRA_RUMPCLIENT='-lpthread'
+
diff --git a/debian/patches/series b/debian/patches/series
index e118839e..fac2ca97 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ ahcisata-atapi.diff
print-error.diff
intr_lock.diff
dealloc.diff
+64bit.diff