Bug#988274: schroot: support zstd compression for file based chroots

2021-05-09 Thread Helmut Grohne
Package: schroot
Version: 1.6.10-12
Severity: wishlist
Tags: patch upstream

Please support zstd as a compressor for file backed chroots. zstd is
relatively new, but it provides exceptionally good decompression speeds
at reaonsable compression ratios. I'm attaching a patch to add the
support.

Helmut
--- schroot-1.6.10.orig/etc/setup.d/05file
+++ schroot-1.6.10/etc/setup.d/05file
@@ -38,6 +38,8 @@
 filetype="tzo"
 elif echo "$CHROOT_FILE" | egrep -q '(\.tar\.lz4|\.tlz4)$'; then
 filetype="tlz4"
+elif echo "$CHROOT_FILE" | egrep -q '\.tar\.zstd$'; then
+filetype="tzstd"
 else
 fatal "Unsupported filetype for $CHROOT_FILE"
 fi
@@ -62,6 +64,8 @@
 tar $TAR_VERBOSE --lzop -xf "$CHROOT_FILE"
 elif [ "$filetype" = "tlz4" ]; then
 lz4 -cd "$CHROOT_FILE" | tar $TAR_VERBOSE -x
+elif [ "$filetype" = "tzstd" ]; then
+zstd -cd "$CHROOT_FILE" | tar "$TAR_VERBOSE" -x
 else
 fatal "Unsupported filetype for $CHROOT_FILE"
 fi
@@ -86,6 +90,8 @@
 tar $TAR_VERBOSE --lzop -cf "$NEWFILE" .
 elif [ "$filetype" = "tlz4" ]; then
 tar $TAR_VERBOSE -c . | lz4 > "$NEWFILE"
+elif [ "$filetype" = "tzstd" ]; then
+tar "$TAR_VERBOSE" -c . | zstd > "$NEWFILE"
 else
 fatal "Unsupported filetype for $CHROOT_FILE"
 fi


Bug#988090: planned removal of db5.3 will break python's dbm.ndbm and therefore apt-listchanges

2021-05-09 Thread Matthias Klose
correcting ...

dbm/ndbm will be shipped, but based on gdbm-compat, in the python3-gdbm package.
The on-disk format of the generated database is likely incompatible with the one
generated by the db5.3 backed _dbm module.