archivers/xz: update to 5.4.1
Significant changes: * threaded .xz decompressor * decompression support for the .lz (lzip) file format * upstream pledge(2) sandboxing Also use the package description provided by upstream.
This commit is contained in:
parent
49926ec984
commit
2d4552cab6
|
@ -1,7 +1,7 @@
|
|||
COMMENT= LZMA compression and decompression tools
|
||||
COMMENT= library and tools for XZ and LZMA compressed files
|
||||
|
||||
DISTNAME= xz-5.2.9
|
||||
SHARED_LIBS= lzma 2.1 # 7.9
|
||||
DISTNAME= xz-5.4.1
|
||||
SHARED_LIBS= lzma 2.2 # 9.1
|
||||
CATEGORIES= archivers
|
||||
DPB_PROPERTIES= parallel
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (xz-5.2.9.tar.gz) = 6YLqMbgVQ9fuK2+jTCrRF2DhxQxvRHWt2LoPLwBfB7Q=
|
||||
SIZE (xz-5.2.9.tar.gz) = 2122988
|
||||
SHA256 (xz-5.4.1.tar.gz) = 5LD4FYLvoVXM8nu4gnUlSkKdRJaOSI/JS4BvKmHNPiI=
|
||||
SIZE (xz-5.4.1.tar.gz) = 2528617
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Index: config.h.in
|
||||
--- config.h.in.orig
|
||||
+++ config.h.in
|
||||
@@ -388,7 +388,11 @@
|
||||
@@ -409,7 +409,11 @@
|
||||
|
||||
/* Define to 1 if the system supports fast unaligned access to 16-bit and
|
||||
32-bit integers. */
|
||||
/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit,
|
||||
and 64-bit integers. */
|
||||
-#undef TUKLIB_FAST_UNALIGNED_ACCESS
|
||||
+#include <endian.h>
|
||||
+#if !defined(__STRICT_ALIGNMENT)
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
--- src/xz/main.c.orig Tue Sep 29 12:57:36 2015
|
||||
+++ src/xz/main.c Fri Aug 12 22:49:04 2016
|
||||
@@ -163,12 +163,25 @@ main(int argc, char **argv)
|
||||
// on the command line, thus this must be done before args_parse().
|
||||
hardware_init();
|
||||
|
||||
+ if (pledge("stdio rpath wpath cpath fattr proc", NULL) == -1)
|
||||
+ message_fatal(_("pledge"));
|
||||
+
|
||||
// Parse the command line arguments and get an array of filenames.
|
||||
// This doesn't return if something is wrong with the command line
|
||||
// arguments. If there are no arguments, one filename ("-") is still
|
||||
// returned to indicate stdin.
|
||||
args_info args;
|
||||
args_parse(&args, argc, argv);
|
||||
+
|
||||
+ // No files on the command line and no --files.
|
||||
+ if ((args.arg_count == 1 && strcmp(args.arg_names[0], "-") == 0) &&
|
||||
+ args.files_name == NULL) {
|
||||
+ if (pledge("stdio proc", NULL) == -1)
|
||||
+ message_fatal(_("pledge"));
|
||||
+ } else if (opt_stdout || opt_mode == MODE_LIST) {
|
||||
+ if (pledge("stdio rpath proc", NULL) == -1)
|
||||
+ message_fatal(_("pledge"));
|
||||
+ }
|
||||
|
||||
if (opt_mode != MODE_LIST && opt_robot)
|
||||
message_fatal(_("Compression and decompression with --robot "
|
|
@ -1,8 +1,6 @@
|
|||
LZMA is a general-purpose compression algorithm designed by Igor
|
||||
Pavlov as part of 7-Zip. It provides high compression ratio while
|
||||
keeping the decompression speed fast.
|
||||
|
||||
XZ Utils are an attempt to make LZMA compression easy to use on
|
||||
free (as in freedom) operating systems. This is achieved by providing
|
||||
tools and libraries which are similar to use than the equivalents
|
||||
of the most popular existing compression algorithms.
|
||||
XZ Utils provide a general purpose data compression library and
|
||||
command line tools. The native file format is the .xz format, but
|
||||
also the legacy .lzma format is supported. The .xz format supports
|
||||
multiple compression algorithms, of which LZMA2 is currently the
|
||||
primary algorithm. With typical files, XZ Utils create about 30 %
|
||||
smaller files than gzip.
|
||||
|
|
Loading…
Reference in New Issue