diff --git a/archivers/pigz/Makefile b/archivers/pigz/Makefile index d2472be890a..01c58d77e9f 100644 --- a/archivers/pigz/Makefile +++ b/archivers/pigz/Makefile @@ -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/ diff --git a/archivers/pigz/distinfo b/archivers/pigz/distinfo index 1ecb41147fc..2b3f896bf39 100644 --- a/archivers/pigz/distinfo +++ b/archivers/pigz/distinfo @@ -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 diff --git a/archivers/pigz/patches/patch-pigz_c b/archivers/pigz/patches/patch-pigz_c index 0a614ea12f9..30ee6823753 100644 --- a/archivers/pigz/patches/patch-pigz_c +++ b/archivers/pigz/patches/patch-pigz_c @@ -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 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 // 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