Update to pigz 2.7

- Improved display of multiple-member gzip files
- Better gzip compatibility
- Bug fixes
This commit is contained in:
kn 2022-01-16 14:43:49 +00:00
parent c83d5804e6
commit a8dbab4cf4
3 changed files with 8 additions and 8 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.10 2021/02/08 20:21:31 kn Exp $
# $OpenBSD: Makefile,v 1.11 2022/01/16 14:43:49 kn Exp $
# __builtin_clz
NOT_FOR_ARCHS= ${GCC3_ARCHS}
COMMENT = parallel implementation of gzip utilizing multiple cores
DISTNAME = pigz-2.6
DISTNAME = pigz-2.7
CATEGORIES = archivers
HOMEPAGE = https://zlib.net/pigz/

View File

@ -1,2 +1,2 @@
SHA256 (pigz-2.6.tar.gz) = Lu17DXRJ0dcJA/KmLNYAXSYus6jJ6YaHvIy7WAnbKn0=
SIZE (pigz-2.6.tar.gz) = 106840
SHA256 (pigz-2.7.tar.gz) = tMnmA0SgjV2zfKetAKWyx2zLlVY1S3ItVtVcp+ixxwc=
SIZE (pigz-2.7.tar.gz) = 108102

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-pigz_c,v 1.3 2021/02/08 20:21:31 kn Exp $
$OpenBSD: patch-pigz_c,v 1.4 2022/01/16 14:43:49 kn Exp $
The unconditional define of _POSIX_C_SOURCE in pigz 2.5 (changed to
_XOPEN_SOURCE in pigz 2.6) causes <sys/cdefs.h> to define __POSIX_VISIBLE and
@ -10,7 +10,7 @@ Define _BSD_SOURCE to get it back and use pledge.
Index: pigz.c
--- pigz.c.orig
+++ pigz.c
@@ -337,6 +337,7 @@
@@ -344,6 +344,7 @@
#define _FILE_OFFSET_BITS 64 // Use large file functions
#define _LARGE_FILES // Same thing for AIX
#define _XOPEN_SOURCE 700 // For POSIX 2008
@ -18,7 +18,7 @@ Index: pigz.c
// Included headers and what is expected from each.
#include <stdio.h> // fflush(), fprintf(), fputs(), getchar(), putc(),
@@ -4562,6 +4563,11 @@ int main(int argc, char **argv) {
@@ -4601,6 +4602,11 @@ int main(int argc, char **argv) {
char *opts, *p; // environment default options, marker
ball_t err; // error information from throw()
@ -30,7 +30,7 @@ Index: pigz.c
g.ret = 0;
try {
// initialize globals
@@ -4668,6 +4674,12 @@ int main(int argc, char **argv) {
@@ -4707,6 +4713,12 @@ int main(int argc, char **argv) {
else if (option(argv[n])) // process argument
argv[n] = NULL; // remove if option
option(NULL); // check for missing parameter