freebsd-ports/archivers/py-bup/files/patch-test_ext_test-sparse-files
Thierry Thomas 8a56a24e86 archivers/py-bup: upgrade to 0.32
This release should work with Python-3.9.

Release notes at
	<https://github.com/bup/bup/blob/master/note/0.32-from-0.31.md>.

PR:		262303
Approved by:	maintainer’s time-out
2022-03-26 10:20:18 +01:00

15 lines
534 B
Text

--- test/ext/test-sparse-files.orig 2021-01-09 22:11:10 UTC
+++ test/ext/test-sparse-files
@@ -31,6 +31,12 @@ if [ "$probe_size" -ge "$((data_size / 1024))" ]; then
exit 0
fi
+if [ "$(current-filesystem)" == "zfs" ]; then
+ WVSTART "WARNING!! If zfs compression is enabled in the current " \
+ "filesytem, sparse test might fail!!. " \
+ " See https://groups.google.com/forum/#!topic/bup-list/NZCJ5wHwbFE"
+fi
+
WVSTART "sparse restore on $(current-filesystem), assuming ${block_size}B blocks"
WVPASS bup init