pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/archivers/pxz



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Fri Apr 16 16:16:05 UTC 2021

Added Files:
        pkgsrc/archivers/pxz: DESCR Makefile PLIST distinfo
        pkgsrc/archivers/pxz/patches: patch-pxz.c

Log Message:
archivers/pxz: import pxz-4.999.9beta

Parallel XZ is a compression utility that takes advantage of running LZMA
compression of different parts of an input file on multiple cores and
processors simultaneously.
Its primary goal is to utilize all resources to speed up compression time
with minimal possible influence on compression ratio.

Packaged by ISIHARA Takanori and me in pkgsrc-wip/pxz.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/archivers/pxz/DESCR \
    pkgsrc/archivers/pxz/Makefile pkgsrc/archivers/pxz/PLIST \
    pkgsrc/archivers/pxz/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/archivers/pxz/patches/patch-pxz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/archivers/pxz/DESCR
diff -u /dev/null pkgsrc/archivers/pxz/DESCR:1.1
--- /dev/null   Fri Apr 16 16:16:05 2021
+++ pkgsrc/archivers/pxz/DESCR  Fri Apr 16 16:16:05 2021
@@ -0,0 +1,5 @@
+Parallel XZ is a compression utility that takes advantage of running LZMA
+compression of different parts of an input file on multiple cores and
+processors simultaneously.
+Its primary goal is to utilize all resources to speed up compression time
+with minimal possible influence on compression ratio.
Index: pkgsrc/archivers/pxz/Makefile
diff -u /dev/null pkgsrc/archivers/pxz/Makefile:1.1
--- /dev/null   Fri Apr 16 16:16:05 2021
+++ pkgsrc/archivers/pxz/Makefile       Fri Apr 16 16:16:05 2021
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2021/04/16 16:16:05 ryoon Exp $
+
+GITHUB_PROJECT=        pxz
+GITHUB_TAG=    124382a6d0832b13b7c091f72264f8f3f463070a
+DISTNAME=      pxz-4.999.9beta
+CATEGORIES=    archivers
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jnovy/}
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://jnovy.fedorapeople.org/pxz/
+COMMENT=       Parallel LZMA compressor using liblzma
+LICENSE=       gnu-gpl-v2
+
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/pxz ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/pxz.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/archivers/pxz/PLIST
diff -u /dev/null pkgsrc/archivers/pxz/PLIST:1.1
--- /dev/null   Fri Apr 16 16:16:05 2021
+++ pkgsrc/archivers/pxz/PLIST  Fri Apr 16 16:16:05 2021
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/16 16:16:05 ryoon Exp $
+bin/pxz
+man/man1/pxz.1
Index: pkgsrc/archivers/pxz/distinfo
diff -u /dev/null pkgsrc/archivers/pxz/distinfo:1.1
--- /dev/null   Fri Apr 16 16:16:05 2021
+++ pkgsrc/archivers/pxz/distinfo       Fri Apr 16 16:16:05 2021
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/04/16 16:16:05 ryoon Exp $
+
+SHA1 (pxz-4.999.9beta-124382a6d0832b13b7c091f72264f8f3f463070a.tar.gz) = 403d83c0b0e1430491857fbd88c4ade12891c8ce
+RMD160 (pxz-4.999.9beta-124382a6d0832b13b7c091f72264f8f3f463070a.tar.gz) = e68c7d049e9714a0b1f177395c6ebafc104c283f
+SHA512 (pxz-4.999.9beta-124382a6d0832b13b7c091f72264f8f3f463070a.tar.gz) = 
7675e3839764afc27e737d596080440d98c45e27b355036551acb5a1c09851abf26c419d431a62d5c635e5c11c3e638980e7516c1c774cc991b3ededef4b388a
+Size (pxz-4.999.9beta-124382a6d0832b13b7c091f72264f8f3f463070a.tar.gz) = 12291 bytes
+SHA1 (patch-pxz.c) = 23009478fbf4796805828bfb59bfeb912a49a895

Index: pkgsrc/archivers/pxz/patches/patch-pxz.c
diff -u /dev/null pkgsrc/archivers/pxz/patches/patch-pxz.c:1.1
--- /dev/null   Fri Apr 16 16:16:05 2021
+++ pkgsrc/archivers/pxz/patches/patch-pxz.c    Fri Apr 16 16:16:05 2021
@@ -0,0 +1,53 @@
+$NetBSD: patch-pxz.c,v 1.1 2021/04/16 16:16:05 ryoon Exp $
+
+fixed complie error.
+fixed CVE. 
+
+cf. FreeBSD's ports
+cf. Debian's deb fix CVE patch
+
+--- pxz.c.orig 2019-05-07 15:08:53.000000000 +0000
++++ pxz.c
+@@ -23,11 +23,17 @@
+ 
+ #include <string.h>
+ #include <stdio.h>
++#if !defined(__FreeBSD__) && !defined(__NetBSD__)
+ #include <stdio_ext.h>
++#endif
+ #include <stdlib.h>
+ #include <inttypes.h>
+ #include <unistd.h>
++#if defined(__FreeBSD__) || defined(__NetBSD__)
++#include <err.h>
++#else
+ #include <error.h>
++#endif
+ #include <errno.h>
+ #include <sys/stat.h>
+ #include <sys/mman.h>
+@@ -42,6 +48,10 @@
+ #include <omp.h>
+ #endif
+ 
++#if defined(__FreeBSD__) || defined(__NetBSD__)
++#define error errc
++#endif
++
+ #ifndef XZ_BINARY
+ #define XZ_BINARY "xz"
+ #endif
+@@ -132,6 +142,13 @@ const struct option long_opts[] = {
+       { NULL,             0,                 NULL,   0 }
+ };
+ 
++#if defined(__FreeBSD__) || defined(__NetBSD__)
++static size_t __fpending (FILE *fp)
++{
++      return (fp->_p - fp->_bf._base);
++}
++#endif
++
+ void __attribute__((noreturn)) run_xz( char **argv, char **envp ) {
+       execve(XZ_BINARY, argv, envp);
+       error(0, errno, "execution of "XZ_BINARY" binary failed");



Home | Main Index | Thread Index | Old Index