diff --git a/logrotate-3.21.0-use-zstd-by-default.patch b/logrotate-3.21.0-use-zstd-by-default.patch new file mode 100644 index 0000000000000000000000000000000000000000..018df0a94dcf4e93cdda2633d4637501d8174f47 --- /dev/null +++ b/logrotate-3.21.0-use-zstd-by-default.patch @@ -0,0 +1,105 @@ +--- logrotate-3.21.0/logrotate.8.orig 2023-05-15 13:36:47.706523283 +0800 ++++ logrotate-3.21.0/logrotate.8 2023-05-15 13:40:31.694523283 +0800 +@@ -507,12 +507,12 @@ + .TP + \fBcompresscmd\fR + Specifies which command to use to compress log files. The default is +-\fBgzip\fR(1). See also \fBcompress\fR. ++\fBzstd\fR(1). See also \fBcompress\fR. + + .TP + \fBuncompresscmd\fR + Specifies which command to use to uncompress log files. The default is +-\fBgunzip\fR(1). ++\fBunzstd\fR(1). + + .TP + \fBcompressext\fR +@@ -523,7 +523,7 @@ + .TP + \fBcompressoptions\fR + Command line options may be passed to the compression program, if one is +-in use. The default, for \fBgzip\fR(1), is "\-6" (biased towards high ++in use. The default, for \fBzstd\fR(1), is "\-3" (biased towards high + compression at the expense of speed). + If you use a different compression command, you may need to change the + \fBcompressoptions\fR to match. +@@ -769,8 +769,8 @@ + .SH "SEE ALSO" + + .BR chmod (2), +-.BR gunzip (1), +-.BR gzip (1), ++.BR unzstd (1), ++.BR zstd (1), + .BR mail (1), + .BR shred (1), + .BR strftime (3), +--- logrotate-3.21.0/logrotate.8.in.orig 2023-05-15 13:40:47.055523283 +0800 ++++ logrotate-3.21.0/logrotate.8.in 2023-05-15 13:41:28.460523283 +0800 +@@ -507,12 +507,12 @@ + .TP + \fBcompresscmd\fR + Specifies which command to use to compress log files. The default is +-\fBgzip\fR(1). See also \fBcompress\fR. ++\fBzstd\fR(1). See also \fBcompress\fR. + + .TP + \fBuncompresscmd\fR + Specifies which command to use to uncompress log files. The default is +-\fBgunzip\fR(1). ++\fBunzstd\fR(1). + + .TP + \fBcompressext\fR +@@ -523,7 +523,7 @@ + .TP + \fBcompressoptions\fR + Command line options may be passed to the compression program, if one is +-in use. The default, for \fBgzip\fR(1), is "\-6" (biased towards high ++in use. The default, for \fBzstd\fR(1), is "\-3" (biased towards high + compression at the expense of speed). + If you use a different compression command, you may need to change the + \fBcompressoptions\fR to match. +@@ -769,8 +769,8 @@ + .SH "SEE ALSO" + + .BR chmod (2), +-.BR gunzip (1), +-.BR gzip (1), ++.BR unzstd (1), ++.BR zstd (1), + .BR mail (1), + .BR shred (1), + .BR strftime (3), +--- logrotate-3.21.0/test/test-0108.sh.orig 2023-05-15 14:06:11.509410174 +0800 ++++ logrotate-3.21.0/test/test-0108.sh 2023-05-15 14:08:40.203410174 +0800 +@@ -17,8 +17,8 @@ + + $RLR test-config.108 --force || exit 23 + +-atime=$($STAT_ATIME_FORMAT test.log.1.gz) +-mtime=$($STAT_MTIME_FORMAT test.log.1.gz) ++atime=$($STAT_ATIME_FORMAT test.log.1.zst) ++mtime=$($STAT_MTIME_FORMAT test.log.1.zst) + expected_time=946684800 + + if [ "$atime" -ne $expected_time ]; then +@@ -34,5 +34,5 @@ + # check last, to not modify atime + checkoutput < - 3.21.0-2 +- Use zstd compression by default + * Wed Dec 14 2022 Heng Qi - 3.21.0-1 - update to 3.21.0