head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC5:1.1.1.4.14.1 netbsd-11-0-RC4:1.1.1.4.14.1 xz-5-8-3:1.1.1.5 netbsd-11-0-RC3:1.1.1.4 netbsd-11-0-RC2:1.1.1.4 netbsd-11-0-RC1:1.1.1.4 perseant-exfatfs-base-20250801:1.1.1.4 netbsd-11:1.1.1.4.0.14 netbsd-11-base:1.1.1.4 netbsd-10-1-RELEASE:1.1.1.4 perseant-exfatfs-base-20240630:1.1.1.4 perseant-exfatfs:1.1.1.4.0.12 perseant-exfatfs-base:1.1.1.4 netbsd-8-3-RELEASE:1.1.1.3 netbsd-9-4-RELEASE:1.1.1.4 netbsd-10-0-RELEASE:1.1.1.4 netbsd-10-0-RC6:1.1.1.4 netbsd-10-0-RC5:1.1.1.4 netbsd-10-0-RC4:1.1.1.4 netbsd-10-0-RC3:1.1.1.4 netbsd-10-0-RC2:1.1.1.4 netbsd-10-0-RC1:1.1.1.4 netbsd-10:1.1.1.4.0.10 netbsd-10-base:1.1.1.4 netbsd-9-3-RELEASE:1.1.1.4 cjep_sun2x-base1:1.1.1.4 cjep_sun2x:1.1.1.4.0.8 cjep_sun2x-base:1.1.1.4 cjep_staticlib_x-base1:1.1.1.4 netbsd-9-2-RELEASE:1.1.1.4 cjep_staticlib_x:1.1.1.4.0.6 cjep_staticlib_x-base:1.1.1.4 netbsd-9-1-RELEASE:1.1.1.4 phil-wifi-20200421:1.1.1.4 phil-wifi-20200411:1.1.1.4 is-mlppp:1.1.1.4.0.4 is-mlppp-base:1.1.1.4 phil-wifi-20200406:1.1.1.4 netbsd-8-2-RELEASE:1.1.1.3 netbsd-9-0-RELEASE:1.1.1.4 netbsd-9-0-RC2:1.1.1.4 netbsd-9-0-RC1:1.1.1.4 phil-wifi-20191119:1.1.1.4 netbsd-9:1.1.1.4.0.2 netbsd-9-base:1.1.1.4 phil-wifi-20190609:1.1.1.4 netbsd-8-1-RELEASE:1.1.1.3 netbsd-8-1-RC1:1.1.1.3 pgoyette-compat-merge-20190127:1.1.1.3.14.1 pgoyette-compat-20190127:1.1.1.4 pgoyette-compat-20190118:1.1.1.4 pgoyette-compat-1226:1.1.1.4 pgoyette-compat-1126:1.1.1.4 pgoyette-compat-1020:1.1.1.4 pgoyette-compat-0930:1.1.1.4 xz-5-2-4:1.1.1.4 pgoyette-compat-0906:1.1.1.3 netbsd-7-2-RELEASE:1.1.1.2 pgoyette-compat-0728:1.1.1.3 netbsd-8-0-RELEASE:1.1.1.3 phil-wifi:1.1.1.3.0.16 phil-wifi-base:1.1.1.3 pgoyette-compat-0625:1.1.1.3 netbsd-8-0-RC2:1.1.1.3 pgoyette-compat-0521:1.1.1.3 pgoyette-compat-0502:1.1.1.3 pgoyette-compat-0422:1.1.1.3 netbsd-8-0-RC1:1.1.1.3 pgoyette-compat-0415:1.1.1.3 pgoyette-compat-0407:1.1.1.3 pgoyette-compat-0330:1.1.1.3 pgoyette-compat-0322:1.1.1.3 pgoyette-compat-0315:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.2 pgoyette-compat:1.1.1.3.0.14 pgoyette-compat-base:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.2 matt-nb8-mediatek:1.1.1.3.0.12 matt-nb8-mediatek-base:1.1.1.3 perseant-stdc-iso10646:1.1.1.3.0.10 perseant-stdc-iso10646-base:1.1.1.3 netbsd-8:1.1.1.3.0.8 netbsd-8-base:1.1.1.3 prg-localcount2-base3:1.1.1.3 prg-localcount2-base2:1.1.1.3 prg-localcount2-base1:1.1.1.3 prg-localcount2:1.1.1.3.0.6 prg-localcount2-base:1.1.1.3 pgoyette-localcount-20170426:1.1.1.3 bouyer-socketcan-base1:1.1.1.3 pgoyette-localcount-20170320:1.1.1.3 netbsd-7-1:1.1.1.2.0.16 netbsd-7-1-RELEASE:1.1.1.2 netbsd-7-1-RC2:1.1.1.2 netbsd-7-nhusb-base-20170116:1.1.1.2 bouyer-socketcan:1.1.1.3.0.4 bouyer-socketcan-base:1.1.1.3 pgoyette-localcount-20170107:1.1.1.3 netbsd-7-1-RC1:1.1.1.2 pgoyette-localcount-20161104:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.2 localcount-20160914:1.1.1.3 netbsd-7-nhusb:1.1.1.2.0.14 netbsd-7-nhusb-base:1.1.1.2 pgoyette-localcount-20160806:1.1.1.3 pgoyette-localcount-20160726:1.1.1.3 pgoyette-localcount:1.1.1.3.0.2 pgoyette-localcount-base:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.2 netbsd-7-0:1.1.1.2.0.12 netbsd-7-0-RELEASE:1.1.1.2 netbsd-7-0-RC3:1.1.1.2 netbsd-7-0-RC2:1.1.1.2 netbsd-7-0-RC1:1.1.1.2 xz-5-2-1:1.1.1.3 netbsd-6-0-6-RELEASE:1.1.1.1.8.1 netbsd-6-1-5-RELEASE:1.1.1.1.8.1 netbsd-7:1.1.1.2.0.10 netbsd-7-base:1.1.1.2 yamt-pagecache-base9:1.1.1.2 yamt-pagecache-tag8:1.1.1.1.6.1 netbsd-6-1-4-RELEASE:1.1.1.1.8.1 netbsd-6-0-5-RELEASE:1.1.1.1.8.1 tls-earlyentropy:1.1.1.2.0.8 tls-earlyentropy-base:1.1.1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.2 riastradh-drm2-base3:1.1.1.2 netbsd-6-1-3-RELEASE:1.1.1.1.8.1 netbsd-6-0-4-RELEASE:1.1.1.1.8.1 netbsd-6-1-2-RELEASE:1.1.1.1.8.1 netbsd-6-0-3-RELEASE:1.1.1.1.8.1 netbsd-6-1-1-RELEASE:1.1.1.1.8.1 riastradh-drm2-base2:1.1.1.2 riastradh-drm2-base1:1.1.1.2 riastradh-drm2:1.1.1.2.0.4 riastradh-drm2-base:1.1.1.2 netbsd-6-1:1.1.1.1.8.1.0.6 netbsd-6-0-2-RELEASE:1.1.1.1.8.1 netbsd-6-1-RELEASE:1.1.1.1.8.1 netbsd-6-1-RC4:1.1.1.1.8.1 netbsd-6-1-RC3:1.1.1.1.8.1 agc-symver:1.1.1.2.0.6 agc-symver-base:1.1.1.2 netbsd-6-1-RC2:1.1.1.1.8.1 netbsd-6-1-RC1:1.1.1.1.8.1 yamt-pagecache-base8:1.1.1.2 netbsd-6-0-1-RELEASE:1.1.1.1.8.1 yamt-pagecache-base7:1.1.1.2 matt-nb6-plus-nbase:1.1.1.1.8.1 yamt-pagecache-base6:1.1.1.2 netbsd-6-0:1.1.1.1.8.1.0.4 netbsd-6-0-RELEASE:1.1.1.1.8.1 netbsd-6-0-RC2:1.1.1.1.8.1 tls-maxphys:1.1.1.2.0.2 tls-maxphys-base:1.1.1.2 matt-nb6-plus:1.1.1.1.8.1.0.2 matt-nb6-plus-base:1.1.1.1.8.1 netbsd-6-0-RC1:1.1.1.1.8.1 yamt-pagecache-base5:1.1.1.2 yamt-pagecache-base4:1.1.1.2 xz-5-0-3:1.1.1.2 netbsd-6:1.1.1.1.0.8 netbsd-6-base:1.1.1.1 yamt-pagecache-base3:1.1.1.1 yamt-pagecache-base2:1.1.1.1 yamt-pagecache:1.1.1.1.0.6 yamt-pagecache-base:1.1.1.1 cherry-xenmp:1.1.1.1.0.4 cherry-xenmp-base:1.1.1.1 bouyer-quota2-nbase:1.1.1.1 bouyer-quota2:1.1.1.1.0.2 bouyer-quota2-base:1.1.1.1 matt-mips64-premerge-20101231:1.1.1.1 xz-5-0-0:1.1.1.1 XZ:1.1.1; locks; strict; comment @# @; 1.1 date 2010.11.02.15.20.20; author joerg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2010.11.02.15.20.20; author joerg; state Exp; branches 1.1.1.1.6.1 1.1.1.1.8.1; next 1.1.1.2; 1.1.1.2 date 2012.02.28.13.46.53; author joerg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2015.04.17.18.24.54; author christos; state Exp; branches 1.1.1.3.14.1 1.1.1.3.16.1; next 1.1.1.4; commitid juY9PuCdiOh0oYhy; 1.1.1.4 date 2018.09.24.22.36.01; author joerg; state Exp; branches 1.1.1.4.14.1; next 1.1.1.5; commitid qbIr2HhHGiIvppTA; 1.1.1.5 date 2026.04.08.20.28.13; author christos; state Exp; branches; next ; commitid E7kpWUUfSey5ccBG; 1.1.1.1.6.1 date 2012.04.17.00.05.03; author yamt; state Exp; branches; next ; 1.1.1.1.8.1 date 2012.03.07.22.33.24; author riz; state Exp; branches; next ; 1.1.1.3.14.1 date 2018.09.30.01.45.30; author pgoyette; state Exp; branches; next ; commitid SQ44grEPCeKPh4UA; 1.1.1.3.16.1 date 2019.06.10.22.05.06; author christos; state Exp; branches; next ; commitid jtc8rnCzWiEEHGqB; 1.1.1.4.14.1 date 2026.05.07.17.41.22; author martin; state Exp; branches; next ; commitid UDYUnD7C1YWLlUEG; desc @@ 1.1 log @Initial revision @ text @ XZ Utils Installation ===================== 0. Preface 1. Supported platforms 1.1. Compilers 1.2. Platform-specific notes 1.2.1. IRIX 1.2.2. MINIX 3 1.2.3. OpenVMS 1.2.4. Tru64 1.2.5. Windows 1.2.6. DOS 1.3. Adding support for new platforms 2. configure options 2.1. Static vs. dynamic linking of liblzma 2.2. Optimizing xzdec and lzmadec 3. xzgrep and other scripts 3.1. Dependencies 3.2. PATH 4. Troubleshooting 4.1. "No C99 compiler was found." 4.2. "No POSIX conforming shell (sh) was found." 4.3. configure works but build fails at crc32_x86.S 4.4. Lots of warnings about symbol visibility 0. Preface ---------- If you aren't familiar with building packages that use GNU Autotools, see the file INSTALL.generic for generic instructions before reading further. If you are going to build a package for distribution, see also the file PACKAGERS. It contains information that should help making the binary packages as good as possible, but the information isn't very interesting to those making local builds for private use or for use in special situations like embedded systems. 1. Supported platforms ---------------------- XZ Utils are developed on GNU/Linux, but they should work on many POSIX-like operating systems like *BSDs and Solaris, and even on a few non-POSIX operating systems. 1.1. Compilers A C99 compiler is required to compile XZ Utils. If you use GCC, you need at least version 3.x.x. GCC version 2.xx.x doesn't support some C99 features used in XZ Utils source code, thus GCC 2 won't compile XZ Utils. XZ Utils takes advantage of some GNU C extensions when building with GCC. Because these extensions are used only when building with GCC, it should be possible to use any C99 compiler. 1.2. Platform-specific notes 1.2.1. IRIX MIPSpro 7.4.4m has been reported to produce broken code if using the -O2 optimization flag ("make check" fails). Using -O1 should work. 1.2.2. MINIX 3 The default install of MINIX 3 includes Amsterdam Compiler Kit (ACK), which doesn't support C99. Install GCC to compile XZ Utils. MINIX 3.1.8 (and possibly some other versions too) has bugs in /usr/include/stdint.h, which has to be patched before XZ Utils can be compiled correctly. See . XZ Utils doesn't have code to detect the amount of physical RAM and number of CPU cores on MINIX 3. See section 4.4 in this file about symbol visibility warnings (you may want to pass gl_cv_cc_visibility=no to configure). 1.2.3. OpenVMS XZ Utils can be built for OpenVMS, but the build system files are not included in the XZ Utils source package. The required OpenVMS-specific files are maintained by Jouk Jansen and can be downloaded here: http://nchrem.tnw.tudelft.nl/openvms/software2.html#xzutils 1.2.4. Tru64 If you try to use the native C compiler on Tru64 (passing CC=cc to configure), you may need the workaround mention in section 4.1 in this file (pass also ac_cv_prog_cc_c99= to configure). 1.2.5. Windows Building XZ Utils on Windows is supported under MinGW + MSYS, MinGW-w64 + MSYS, and Cygwin. There is windows/build.bash to ease packaging XZ Utils with MinGW(-w64) + MSYS into a redistributable .zip or .7z file. See windows/INSTALL-Windows.txt for more information. It might be possible to build liblzma with a non-GNU toolchain too, but that will probably require writing a separate makefile. Building the command line tools with non-GNU toolchains will be harder than building only liblzma. Even if liblzma is built with MinGW, the resulting DLL or static library can be used by other compilers and linkers, including MSVC. Thus, it shouldn't be a problem to use MinGW to build liblzma even if you cannot use MinGW to build the rest of your project. See windows/README-Windows.txt for details. 1.2.6. DOS There is an experimental Makefile in the "dos" directory to build XZ Utils on DOS using DJGPP. Support for long file names (LFN) is needed. See dos/README for more information. GNU Autotools based build hasn't been tried on DOS. If you try, I would like to hear if it worked. 1.3. Adding support for new platforms If you have written patches to make XZ Utils to work on previously unsupported platform, please send the patches to me! I will consider including them to the official version. It's nice to minimize the need of third-party patching. One exception: Don't request or send patches to change the whole source package to C89. I find C99 substantially nicer to write and maintain. However, the public library headers must be in C89 to avoid frustrating those who maintain programs, which are strictly in C89 or C++. 2. configure options -------------------- In most cases, the defaults are what you want. Many of the options below are useful only when building a size-optimized version of liblzma or command line tools. --enable-encoders=LIST --disable-encoders Specify a comma-separated LIST of filter encoders to build. See "./configure --help" for exact list of available filter encoders. The default is to build all supported encoders. If LIST is empty or --disable-encoders is used, no filter encoders will be built and also the code shared between encoders will be omitted. Disabling encoders will remove some symbols from the liblzma ABI, so this option should be used only when it is known to not cause problems. --enable-decoders=LIST --disable-decoders This is like --enable-encoders but for decoders. The default is to build all supported decoders. --enable-match-finders=LIST liblzma includes two categories of match finders: hash chains and binary trees. Hash chains (hc3 and hc4) are quite fast but they don't provide the best compression ratio. Binary trees (bt2, bt3 and bt4) give excellent compression ratio, but they are slower and need more memory than hash chains. You need to enable at least one match finder to build the LZMA1 or LZMA2 filter encoders. Usually hash chains are used only in the fast mode, while binary trees are used to when the best compression ratio is wanted. The default is to build all the match finders if LZMA1 or LZMA2 filter encoders are being built. --enable-checks=LIST liblzma support multiple integrity checks. CRC32 is mandatory, and cannot be omitted. See "./configure --help" for exact list of available integrity check types. liblzma and the command line tools can decompress files which use unsupported integrity check type, but naturally the file integrity cannot be verified in that case. Disabling integrity checks may remove some symbols from the liblzma ABI, so this option should be used only when it is known to not cause problems. --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo Don't build and install the command line tool mentioned in the option name. NOTE: Disabling xz will skip some tests in "make check". NOTE: If xzdec is disabled and lzmadec is left enabled, a dangling man page symlink lzmadec.1 -> xzdec.1 is created. --disable-lzma-links Don't create symlinks for LZMA Utils compatibility. This includes lzma, unlzma, and lzcat. If scripts are installed, also lzdiff, lzcmp, lzgrep, lzegrep, lzfgrep, lzmore, and lzless will be omitted if this option is used. --disable-scripts Don't install the scripts xzdiff, xzgrep, xzmore, xzless, and their symlinks. --disable-assembler liblzma includes some assembler optimizations. Currently there is only assembler code for CRC32 and CRC64 for 32-bit x86. All the assembler code in liblzma is position-independent code, which is suitable for use in shared libraries and position-independent executables. So far only i386 instructions are used, but the code is optimized for i686 class CPUs. If you are compiling liblzma exclusively for pre-i686 systems, you may want to disable the assembler code. --enable-unaligned-access Allow liblzma to use unaligned memory access for 16-bit and 32-bit loads and stores. This should be enabled only when the hardware supports this, i.e. when unaligned access is fast. Some operating system kernels emulate unaligned access, which is extremely slow. This option shouldn't be used on systems that rely on such emulation. Unaligned access is enabled by default on x86, x86-64, and big endian PowerPC. --enable-small Reduce the size of liblzma by selecting smaller but semantically equivalent version of some functions, and omit precomputed lookup tables. This option tends to make liblzma slightly slower. Note that while omitting the precomputed tables makes liblzma smaller on disk, the tables are still needed at run time, and need to be computed at startup. This also means that the RAM holding the tables won't be shared between applications linked against shared liblzma. This option doesn't modify CFLAGS to tell the compiler to optimize for size. You need to add -Os or equivalent flag(s) to CFLAGS manually. --enable-assume-ram=SIZE On the most common operating systems, XZ Utils is able to detect the amount of physical memory on the system. This information is used by the options --memlimit-compress, --memlimit-decompress, and --memlimit when setting the limit to a percentage of total RAM. On some systems, there is no code to detect the amount of RAM though. Using --enable-assume-ram one can set how much memory to assume on these systems. SIZE is given as MiB. The default is 128 MiB. Feel free to send patches to add support for detecting the amount of RAM on the operating system you use. See src/common/tuklib_physmem.c for details. --disable-threads Disable threading support. This makes some things thread-unsafe, meaning that if multithreaded application calls liblzma functions from more than one thread, something bad may happen. Use this option if threading support causes you trouble, or if you know that you will use liblzma only from single-threaded applications and want to avoid dependency on libpthread. --enable-debug This enables the assert() macro and possibly some other run-time consistency checks. It makes the code slower, so you normally don't want to have this enabled. --enable-werror If building with GCC, make all compiler warnings an error, that abort the compilation. This may help catching bugs, and should work on most systems. This has no effect on the resulting binaries. 2.1. Static vs. dynamic linking of liblzma On 32-bit x86, linking against static liblzma can give a minor speed improvement. Static libraries on x86 are usually compiled as position-dependent code (non-PIC) and shared libraries are built as position-independent code (PIC). PIC wastes one register, which can make the code slightly slower compared to a non-PIC version. (Note that this doesn't apply to x86-64.) If you want to link xz against static liblzma, the simplest way is to pass --disable-shared to configure. If you want also shared liblzma, run configure again and run "make install" only for src/liblzma. 2.2. Optimizing xzdec and lzmadec xzdec and lzmadec are intended to be relatively small instead of optimizing for the best speed. Thus, it is a good idea to build xzdec and lzmadec separately: - To link the tools against static liblzma, pass --disable-shared to configure. - To select somewhat size-optimized variant of some things in liblzma, pass --enable-small to configure. - Tell the compiler to optimize for size instead of speed. E.g. with GCC, put -Os into CFLAGS. - xzdec and lzmadec will never use multithreading capabilities of liblzma. You can avoid dependency on libpthread by passing --disable-threads to configure. - There are and will be no translated messages for xzdec and lzmadec, so it is fine to pass also --disable-nls to configure. - Only decoder code is needed, so you can speed up the build slightly by passing --disable-encoders to configure. This shouldn't affect the final size of the executables though, because the linker is able to omit the encoder code anyway. If you have no use for xzdec or lzmadec, you can disable them with --disable-xzdec and --disable-lzmadec. 3. xzgrep and other scripts --------------------------- 3.1. Dependencies POSIX shell (sh) and bunch of other standard POSIX tools are required to run the scripts. The configure script tries to find a POSIX compliant sh, but if it fails, you can force the shell by passing gl_cv_posix_shell=/path/to/posix-sh as an argument to the configure script. Some of the scripts require also mktemp. The original mktemp can be found from . On GNU, most will use the mktemp program from GNU coreutils instead of the original implementation. Both mktemp versions are fine for XZ Utils (and practically for everything else too). 3.2. PATH The scripts assume that the required tools (standard POSIX utilities, mktemp, and xz) are in PATH; the scripts don't set the PATH themselves. Some people like this while some think this is a bug. Those in the latter group can easily patch the scripts before running the configure script by taking advantage of a placeholder line in the scripts. For example, to make the scripts prefix /usr/bin:/bin to PATH: perl -pi -e 's|^#SET_PATH.*$|PATH=/usr/bin:/bin:\$PATH|' \ src/scripts/xz*.in 4. Troubleshooting ------------------ 4.1. "No C99 compiler was found." You need a C99 compiler to build XZ Utils. If the configure script cannot find a C99 compiler and you think you have such a compiler installed, set the compiler command by passing CC=/path/to/c99 as an argument to the configure script. If you get this error even when you think your compiler supports C99, you can override the test by passing ac_cv_prog_cc_c99= as an argument to the configure script. The test for C99 compiler is not perfect (and it is not as easy to make it perfect as it sounds), so sometimes this may be needed. You will get a compile error if your compiler doesn't support enough C99. 4.2. "No POSIX conforming shell (sh) was found." xzgrep and other scripts need a shell that (roughly) conforms to POSIX. The configure script tries to find such a shell. If it fails, you can force the shell to be used by passing gl_cv_posix_shell=/path/to/posix-sh as an argument to the configure script. 4.3. configure works but build fails at crc32_x86.S The easy fix is to pass --disable-assembler to the configure script. The configure script determines if assembler code can be used by looking at the configure triplet; there is currently no check if the assembler code can actually actually be built. The x86 assembler code should work on x86 GNU/Linux, *BSDs, Solaris, Darwin, MinGW, Cygwin, and DJGPP. On other x86 systems, there may be problems and the assembler code may need to be disabled with the configure option. If you get this error when building for x86-64, you have specified or the configure script has misguessed your architecture. Pass the correct configure triplet using the --build=CPU-COMPANY-SYSTEM option (see INSTALL.generic). 4.4. Lots of warnings about symbol visibility On some systems where symbol visibility isn't supported, GCC may still accept the visibility options and attributes, which will make configure think that visibility is supported. This will result in many compiler warnings. You can avoid the warnings by forcing the visibility support off by passing gl_cv_cc_visibility=no as an argument to the configure script. This has no effect on the resulting binaries, but fewer warnings looks nicer and may allow using --enable-werror. @ 1.1.1.1 log @Import stripped down version of xz-5.0.0. All non-public domain parts are removed to provide a prestine version. @ text @@ 1.1.1.1.6.1 log @sync with head @ text @d12 3 a14 4 1.2.4. Solaris, OpenSolaris, and derivatives 1.2.5. Tru64 1.2.6. Windows 1.2.7. DOS a70 4 A problem has been reported when using shared liblzma. Passing --disable-shared to configure works around this. Alternatively, putting "-64" to CFLAGS to build a 64-bit version might help too. d99 1 a99 11 1.2.4. Solaris, OpenSolaris, and derivatives The following linker error has been reported on some x86 systems: ld: fatal: relocation error: R_386_GOTOFF: ... This can be worked around by passing gl_cv_cc_visibility=no as an argument to the configure script. 1.2.5. Tru64 d106 1 a106 1 1.2.6. Windows d126 1 a126 1 1.2.7. DOS @ 1.1.1.1.8.1 log @Pull up following revision(s) (requested by joerg in ticket #71): distrib/sets/lists/comp/ad.mips64eb: revision 1.71 distrib/sets/lists/base/md.amd64: revision 1.158 distrib/sets/lists/base/ad.mips64eb: revision 1.84 distrib/sets/lists/base/shl.mi: revision 1.618 distrib/sets/lists/comp/shl.mi: revision 1.211 external/public-domain/xz/dist/configure.ac: revision 1.3 distrib/sets/lists/base/md.sparc64: revision 1.149 external/public-domain/xz/prepare-import.sh: revision 1.2 distrib/sets/lists/comp/ad.mips64el: revision 1.71 distrib/sets/lists/base/ad.mips64el: revision 1.83 external/public-domain/xz/lib/shlib_version: revision 1.2 distrib/sets/lists/comp/md.amd64: revision 1.157 distrib/sets/lists/comp/md.sparc64: revision 1.140 external/public-domain/xz/prepare-import.sh patch external/public-domain/xz/dist/ChangeLog patch external/public-domain/xz/dist/INSTALL patch external/public-domain/xz/dist/NEWS patch external/public-domain/xz/dist/THANKS patch external/public-domain/xz/dist/configure.ac patch external/public-domain/xz/dist/doc/lzma-file-format.txt patch external/public-domain/xz/dist/doc/examples/xz_pipe_comp.c new external/public-domain/xz/dist/doc/examples/xz_pipe_decomp.c new external/public-domain/xz/dist/po/cs.gmo patch external/public-domain/xz/dist/po/cs.po patch external/public-domain/xz/dist/po/de.gmo patch external/public-domain/xz/dist/po/de.po patch external/public-domain/xz/dist/po/fr.gmo new external/public-domain/xz/dist/po/fr.po new external/public-domain/xz/dist/po/it.gmo patch external/public-domain/xz/dist/po/it.po patch external/public-domain/xz/dist/po/pl.gmo new external/public-domain/xz/dist/po/pl.po new external/public-domain/xz/dist/src/common/sysdefs.h patch external/public-domain/xz/dist/src/liblzma/api/lzma/block.h patch external/public-domain/xz/dist/src/liblzma/api/lzma/container.h patch external/public-domain/xz/dist/src/liblzma/api/lzma/filter.h patch external/public-domain/xz/dist/src/liblzma/api/lzma/lzma.h patch external/public-domain/xz/dist/src/liblzma/api/lzma/version.h patch external/public-domain/xz/dist/src/liblzma/common/alone_decoder.c patch external/public-domain/xz/dist/src/liblzma/common/alone_encoder.c patch external/public-domain/xz/dist/src/liblzma/common/block_buffer_encoder.c patch external/public-domain/xz/dist/src/liblzma/common/block_encoder.c patch external/public-domain/xz/dist/src/liblzma/common/common.c patch external/public-domain/xz/dist/src/liblzma/common/common.h patch external/public-domain/xz/dist/src/liblzma/common/filter_common.c patch external/public-domain/xz/dist/src/liblzma/common/index_decoder.c patch external/public-domain/xz/dist/src/liblzma/common/index_encoder.c patch external/public-domain/xz/dist/src/liblzma/common/stream_buffer_encoder.c patch external/public-domain/xz/dist/src/liblzma/common/stream_encoder.c patch external/public-domain/xz/dist/src/liblzma/delta/delta_encoder.c patch external/public-domain/xz/dist/src/liblzma/lz/lz_decoder.c patch external/public-domain/xz/dist/src/liblzma/lz/lz_encoder.c patch external/public-domain/xz/dist/src/liblzma/lzma/lzma2_decoder.c patch external/public-domain/xz/dist/src/liblzma/lzma/lzma2_encoder.c patch external/public-domain/xz/dist/src/liblzma/simple/arm.c patch external/public-domain/xz/dist/src/liblzma/simple/armthumb.c patch external/public-domain/xz/dist/src/liblzma/simple/ia64.c patch external/public-domain/xz/dist/src/liblzma/simple/powerpc.c patch external/public-domain/xz/dist/src/liblzma/simple/simple_coder.c patch external/public-domain/xz/dist/src/liblzma/simple/sparc.c patch external/public-domain/xz/dist/src/lzmainfo/lzmainfo.c patch external/public-domain/xz/dist/src/xz/coder.c patch external/public-domain/xz/dist/src/xz/file_io.c patch external/public-domain/xz/dist/src/xz/hardware.h patch external/public-domain/xz/dist/src/xz/message.c patch external/public-domain/xz/dist/src/xz/message.h patch external/public-domain/xz/dist/src/xz/options.c patch external/public-domain/xz/dist/src/xz/signals.c patch external/public-domain/xz/dist/src/xz/suffix.c patch external/public-domain/xz/dist/src/xz/util.h patch external/public-domain/xz/dist/src/xz/xz.1 patch external/public-domain/xz/dist/src/xzdec/xzdec.c patch external/public-domain/xz/dist/tests/compress_prepared_bcj_sparc.base64 patch external/public-domain/xz/dist/tests/compress_prepared_bcj_x86.base64 patch external/public-domain/xz/dist/tests/files/README patch external/public-domain/xz/dist/tests/files/bad-0cat-alone.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-0cat-header_magic.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-0catpad-empty.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-block_header-1.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-block_header-2.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-block_header-3.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-block_header-4.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-block_header-5.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-check-crc32.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-check-crc64.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-check-sha256.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-1.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-2.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-3.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-4.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-5.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-6.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-7.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-lzma2-8.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-stream_flags-1.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-stream_flags-2.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-stream_flags-3.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-vli-1.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-1-vli-2.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-2-compressed_data_padding.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-2-index-1.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-2-index-2.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-2-index-3.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-2-index-4.xz.base64 patch external/public-domain/xz/dist/tests/files/bad-2-index-5.xz.base64 patch external/public-domain/xz/dist/tests/files/good-0cat-empty.xz.base64 patch external/public-domain/xz/dist/tests/files/good-0catpad-empty.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-3delta-lzma2.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-block_header-1.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-block_header-2.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-block_header-3.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-check-crc32.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-check-crc64.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-check-none.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-check-sha256.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-delta-lzma2.tiff.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-lzma2-1.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-lzma2-2.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-lzma2-3.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-lzma2-4.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-lzma2-5.xz.base64 new external/public-domain/xz/dist/tests/files/good-1-sparc-lzma2.xz.base64 patch external/public-domain/xz/dist/tests/files/good-1-x86-lzma2.xz.base64 patch external/public-domain/xz/dist/tests/files/good-2-lzma2.xz.base64 patch external/public-domain/xz/dist/tests/files/unsupported-block_header.xz.base64 patch external/public-domain/xz/dist/tests/files/unsupported-check.xz.base64 patch external/public-domain/xz/dist/tests/files/unsupported-filter_flags-1.xz.base64 patch external/public-domain/xz/dist/tests/files/unsupported-filter_flags-2.xz.base64 patch external/public-domain/xz/dist/tests/files/unsupported-filter_flags-3.xz.base64 patch external/public-domain/xz/lib/shlib_version patch Import XZ 5.0.3: - memory leak in liblzma fixed - better validation - correct behavior for suid/sgid/sticky bit and hard links with xz --force - cleanup and new translations @ text @d12 3 a14 4 1.2.4. Solaris, OpenSolaris, and derivatives 1.2.5. Tru64 1.2.6. Windows 1.2.7. DOS a70 4 A problem has been reported when using shared liblzma. Passing --disable-shared to configure works around this. Alternatively, putting "-64" to CFLAGS to build a 64-bit version might help too. d99 1 a99 11 1.2.4. Solaris, OpenSolaris, and derivatives The following linker error has been reported on some x86 systems: ld: fatal: relocation error: R_386_GOTOFF: ... This can be worked around by passing gl_cv_cc_visibility=no as an argument to the configure script. 1.2.5. Tru64 d106 1 a106 1 1.2.6. Windows d126 1 a126 1 1.2.7. DOS @ 1.1.1.2 log @Import XZ 5.0.3: - memory leak in liblzma fixed - better validation - correct behavior for suid/sgid/sticky bit and hard links with xz --force - cleanup and new translations @ text @d12 3 a14 4 1.2.4. Solaris, OpenSolaris, and derivatives 1.2.5. Tru64 1.2.6. Windows 1.2.7. DOS a70 4 A problem has been reported when using shared liblzma. Passing --disable-shared to configure works around this. Alternatively, putting "-64" to CFLAGS to build a 64-bit version might help too. d99 1 a99 11 1.2.4. Solaris, OpenSolaris, and derivatives The following linker error has been reported on some x86 systems: ld: fatal: relocation error: R_386_GOTOFF: ... This can be worked around by passing gl_cv_cc_visibility=no as an argument to the configure script. 1.2.5. Tru64 d106 1 a106 1 1.2.6. Windows d126 1 a126 1 1.2.7. DOS @ 1.1.1.3 log @Date: 2015-02-26 16:53:44 +0200 Bump version and soname for 5.2.1. Date: 2015-02-26 13:01:09 +0200 Update NEWS for 5.2.1. Date: 2015-02-22 19:38:48 +0200 xz: Use pipe2() if available. Date: 2015-02-21 23:40:26 +0200 liblzma: Fix a compression-ratio regression in LZMA1/2 in fast mode. The bug was added in the commit f48fce093b07aeda95c18850f5e086d9f2383380 and thus affected 5.1.4beta and 5.2.0. Luckily the bug cannot cause data corruption or other nasty things. Date: 2015-02-21 23:00:19 +0200 xz: Fix the fcntl() usage when creating a pipe for the self-pipe trick. Now it reads the old flags instead of blindly setting O_NONBLOCK. The old code may have worked correctly, but this is better. Date: 2015-02-10 15:29:34 +0200 Update THANKS. Date: 2015-02-10 15:28:30 +0200 tuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available. In FreeBSD, cpuset_getaffinity() is the preferred way to get the number of available cores. Thanks to Rui Paulo for the patch. I edited it slightly, but hopefully I didn't break anything. Date: 2015-02-09 22:08:37 +0200 xzdiff: Make the mktemp usage compatible with FreeBSD's mktemp. Thanks to Rui Paulo for the fix. Date: 2015-02-03 21:45:53 +0200 Add a few casts to tuklib_integer.h to silence possible warnings. I heard that Visual Studio 2013 gave warnings without the casts. Thanks to Gabi Davar. Date: 2015-01-26 21:24:39 +0200 liblzma: Set LZMA_MEMCMPLEN_EXTRA depending on the compare method. Date: 2015-01-26 20:40:16 +0200 Update THANKS. Date: 2015-01-26 20:39:28 +0200 liblzma: Silence harmless Valgrind errors. Thanks to Torsten Rupp for reporting this. I had forgotten to run Valgrind before the 5.2.0 release. Date: 2015-01-09 21:50:19 +0200 xz: Fix comments. Date: 2015-01-09 21:35:06 +0200 Update THANKS. Date: 2015-01-09 21:34:06 +0200 xz: Don't fail if stdout doesn't support O_NONBLOCK. This is similar to the case with stdin. Thanks to Brad Smith for the bug report and testing on OpenBSD. Date: 2015-01-07 19:18:20 +0200 xz: Fix a memory leak in DOS-specific code. Date: 2015-01-07 19:08:06 +0200 xz: Don't fail if stdin doesn't support O_NONBLOCK. It's a problem at least on OpenBSD which doesn't support O_NONBLOCK on e.g. /dev/null. I'm not surprised if it's a problem on other OSes too since this behavior is allowed in POSIX-1.2008. The code relying on this behavior was committed in June 2013 and included in 5.1.3alpha released on 2013-10-26. Clearly the development releases only get limited testing. Date: 2015-01-06 20:30:15 +0200 Tests: Don't hide unexpected error messages in test_files.sh. Hiding them makes no sense since normally there's no error when testing the "good" files. With "bad" files errors are expected and then it makes sense to keep the messages hidden. Date: 2014-12-30 11:17:16 +0200 Update Solaris notes in INSTALL. Mention the possible "make check" failure on Solaris in the Solaris-specific section of INSTALL. It was already in section 4.5 but it is better mention it in the OS-specific section too. Date: 2014-12-26 12:00:05 +0200 Build: POSIX shell isn't required if scripts are disabled. Date: 2014-12-21 20:48:37 +0200 DOS: Update Makefile. Date: 2014-12-21 19:50:38 +0200 Windows: Fix bin_i486 to bin_i686 in build.bash. Date: 2014-12-21 18:58:44 +0200 Docs: Use lzma_cputhreads() in 04_compress_easy_mt.c. Date: 2014-12-21 18:56:44 +0200 Docs: Update docs/examples/00_README.txt. Date: 2014-12-21 18:11:17 +0200 Bump version and soname for 5.2.0. I know that soname != app version, but I skip AGE=1 in -version-info to make the soname match the liblzma version anyway. It doesn't hurt anything as long as it doesn't conflict with library versioning rules. Date: 2014-12-21 18:05:03 +0200 Avoid variable-length arrays in the debug programs. Date: 2014-12-21 18:01:45 +0200 Build: Include 04_compress_easy_mt.c in the tarball. Date: 2014-12-21 18:00:38 +0200 Fix build when --disable-threads is used. Date: 2014-12-21 15:56:15 +0100 po/fr: improve wording for help for --lzma1/--lzma2. Date: 2014-12-21 15:55:48 +0100 po/fr: missing line in translation of --extreme. Date: 2014-12-21 14:32:33 +0200 Update NEWS for 5.2.0. Date: 2014-12-21 14:32:22 +0200 Update NEWS for 5.0.8. Date: 2014-12-21 14:07:54 +0200 xz: Fix a comment. Date: 2014-12-20 20:43:14 +0200 Update INSTALL about the dependencies of the scripts. Date: 2014-12-20 20:42:33 +0200 Windows: Update build instructions. Date: 2014-12-20 20:41:48 +0200 Windows: Update the build script and README-Windows.txt. The 32-bit build is now for i686 or newer because the prebuilt MinGW-w64 toolchains include i686 code in the executables even if one uses -march=i486. The build script builds 32-bit SSE2 enabled version too. Run-time detection of SSE2 support would be nice (on any OS) but it's not implemented in XZ Utils yet. Date: 2014-12-19 15:51:50 +0200 Windows: Define TUKLIB_SYMBOL_PREFIX in config.h. It is to keep all symbols in the lzma_ namespace. Date: 2014-12-16 21:00:09 +0200 xz: Update the man page about --threads. Date: 2014-12-16 20:57:43 +0200 xz: Update the man page about --block-size. Date: 2014-12-10 22:26:57 +0100 po/fr: several more translation updates: reword and handle --ignore-check. Date: 2014-12-10 22:23:01 +0100 po/fr: yet another place where my email address had to be updated. Date: 2014-12-10 22:22:20 +0100 po/fr: fix several typos that have been around since the beginning. Date: 2014-12-03 20:02:31 +0100 po/fr: last batch of new translations for now. Four new error messages. Date: 2014-12-03 20:01:32 +0100 po/fr: translations for --threads, --block-size and --block-list. Date: 2014-12-03 20:00:53 +0100 po/fr: remove fuzzy marker for error messages that will be kept in English. The following is a copy of a comment inside fr.po: Note from translator on "file status flags". The following entry is kept un-translated on purpose. It is difficult to translate and should only happen in exceptional circumstances which means that translating would: - lose some of the meaning - make it more difficult to look up in search engines; it might happen one in a million times, if we dilute the error message in 20 languages, it will be almost impossible to find an explanation and support for the error. Date: 2014-12-03 19:58:25 +0100 po/fr: several minor updates and better wording. Meaning doesn't change at all: it's only for better wording and/or formatting of a few strings. Date: 2014-12-03 19:56:12 +0100 po/fr: update my email address and copyright years. Date: 2014-11-26 10:08:26 +0100 fr.po: commit file after only "update-po" so actual is readable. Date: 2014-12-02 20:04:07 +0200 liblzma: Document how lzma_mt.block_size affects memory usage. Date: 2014-11-28 20:07:18 +0200 Update INSTALL about a "make check" failure in test_scripts.sh. Date: 2014-11-26 20:12:27 +0200 Remove LZMA_UNSTABLE macro. Date: 2014-11-26 20:10:33 +0200 liblzma: Update lzma_stream_encoder_mt() API docs. Date: 2014-11-25 12:32:05 +0200 liblzma: Verify the filter chain in threaded encoder initialization. This way an invalid filter chain is detected at the Stream encoder initialization instead of delaying it to the first call to lzma_code() which triggers the initialization of the actual filter encoder(s). Date: 2014-11-17 19:11:49 +0200 Build: Update m4/ax_pthread.m4 from Autoconf Archive. Date: 2014-11-17 18:52:21 +0200 Build: Replace obsolete AC_HELP_STRING with AS_HELP_STRING. Date: 2014-11-17 18:43:19 +0200 Build: Fix Autoconf warnings about escaped backquotes. Thanks to Daniel Richard G. for pointing out that it's good to sometimes run autoreconf -fi with -Wall. Date: 2014-11-10 18:54:40 +0200 xzdiff: Use mkdir if mktemp isn't available. Date: 2014-11-10 18:45:01 +0200 xzdiff: Create a temporary directory to hold a temporary file. This avoids the possibility of "File name too long" when creating a temp file when the input file name is very long. This also means that other users on the system can no longer see the input file names in /tmp (or whatever $TMPDIR is) since the temporary directory will have a generic name. This usually doesn't matter since on many systems one can see the arguments given to all processes anyway. The number X chars to mktemp where increased from 6 to 10. Note that with some shells temp files or dirs won't be used at all. Date: 2014-11-10 15:38:47 +0200 liblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage(). It read the filter chain from a wrong variable. This is a similar bug that was fixed in 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e. Date: 2014-11-10 14:49:55 +0200 Update THANKS. Date: 2014-10-29 21:28:25 +0200 Update .gitignore files. Date: 2014-10-29 21:15:35 +0200 Build: Prepare to support Automake's subdir-objects. Due to a bug in Automake, subdir-objects won't be enabled for now. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17354 Thanks to Daniel Richard G. for the original patches. Date: 2014-10-24 20:09:29 +0300 Translations: Update the Italian translation. Thanks to Milo Casagrande. Date: 2014-10-18 18:51:45 +0300 Translations: Update the Polish translation. Thanks to Jakub Bogusz. Date: 2014-10-14 17:30:30 +0200 l10n: de.po: Change translator email address. Although the old address is still working, the new one should be preferred. So this commit changes all three places in de.po accordingly. Signed-off-by: Andre Noll Date: 2014-10-14 17:30:29 +0200 l10n: de.po: Update German translation Signed-off-by: Andre Noll Date: 2014-10-14 17:30:28 +0200 l10n: de.po: Fix typo: Schießen -> Schließen. That's a funny one since "schießen" means to shoot :) Signed-off-by: Andre Noll Date: 2014-10-09 19:42:26 +0300 Update THANKS. Date: 2014-10-09 19:41:51 +0300 Add support for AmigaOS/AROS to tuklib_physmem(). Thanks to Fredrik Wikstrom. Date: 2014-10-09 18:42:14 +0300 xzgrep: Avoid passing both -q and -l to grep. The behavior of grep -ql varies: - GNU grep behaves like grep -q. - OpenBSD grep behaves like grep -l. POSIX doesn't make it 100 % clear what behavior is expected. Anyway, using both -q and -l at the same time makes no sense so both options simply should never be used at the same time. Thanks to Christian Weisgerber. Date: 2014-09-25 09:22:45 +0700 l10n: vi.po: Update Vietnamese translation Signed-off-by: Trần Ngọc Quân Date: 2014-09-25 18:38:48 +0300 Build: Detect supported compiler warning flags better. Clang and nowadays also GCC accept any -Wfoobar option but then may give a warning that an unknown warning option was specified. To avoid adding unsupported warning options, the options are now tested with -Werror. Thanks to Charles Diza. Date: 2014-09-20 21:01:21 +0300 Update NEWS for 5.0.7. Date: 2014-09-20 19:42:56 +0300 liblzma: Fix a portability problem in Makefile.am. POSIX supports $< only in inference rules (suffix rules). Using it elsewhere is a GNU make extension and doesn't work e.g. with OpenBSD make. Thanks to Christian Weisgerber for the patch. Date: 2014-09-14 21:54:09 +0300 Bump the version number to 5.1.4beta. Date: 2014-09-14 21:50:13 +0300 Update NEWS for 5.0.6 and 5.1.4beta. Date: 2014-09-14 21:02:41 +0300 Update TODO. Date: 2014-08-05 22:32:36 +0300 xz: Add --ignore-check. Date: 2014-08-05 22:15:07 +0300 liblzma: Add support for LZMA_IGNORE_CHECK. Date: 2014-08-05 22:03:30 +0300 liblzma: Add support for lzma_block.ignore_check. Note that this slightly changes how lzma_block_header_decode() has been documented. Earlier it said that the .version is set to the lowest required value, but now it says that the .version field is kept unchanged if possible. In practice this doesn't affect any old code, because before this commit the only possible .version was 0. Date: 2014-08-04 19:25:58 +0300 liblzma: Use lzma_memcmplen() in the BT3 match finder. I had missed this when writing the commit 5db75054e900fa06ef5ade5f2c21dffdd5d16141. Thanks to Jun I Jin. Date: 2014-08-04 00:25:44 +0300 Update THANKS. Date: 2014-08-03 21:32:25 +0300 liblzma: SHA-256: Optimize the Maj macro slightly. The Maj macro is used where multiple things are added together, so making Maj a sum of two expressions allows some extra freedom for the compiler to schedule the instructions. I learned this trick from . Date: 2014-08-03 21:08:12 +0300 liblzma: SHA-256: Optimize the way rotations are done. This looks weird because the rotations become sequential, but it helps quite a bit on both 32-bit and 64-bit x86: - It requires fewer instructions on two-operand instruction sets like x86. - It requires one register less which matters especially on 32-bit x86. I hope this doesn't hurt other archs. I didn't invent this idea myself, but I don't remember where I saw it first. Date: 2014-08-03 20:38:13 +0300 liblzma: SHA-256: Remove the GCC #pragma that became unneeded. The unrolling in the previous commit should avoid the situation where a compiler may think that an uninitialized variable might be accessed. Date: 2014-08-03 20:33:38 +0300 liblzma: SHA-256: Unroll a little more. This way a branch isn't needed for each operation to choose between blk0 and blk2, and still the code doesn't grow as much as it would with full unrolling. Date: 2014-08-03 19:56:43 +0300 liblzma: SHA-256: Do the byteswapping without a temporary buffer. Date: 2014-07-25 22:38:28 +0300 liblzma: Use lzma_memcmplen() in normal mode of LZMA. Two locations were not changed yet because the simplest change assumes that the initial "len" may be greater than "limit". Date: 2014-07-25 22:30:38 +0300 liblzma: Simplify LZMA fast mode code by using memcmp(). Date: 2014-07-25 22:29:49 +0300 liblzma: Use lzma_memcmplen() in fast mode of LZMA. Date: 2014-07-25 21:16:23 +0300 Update THANKS. Date: 2014-07-25 21:15:07 +0300 liblzma: Use lzma_memcmplen() in the match finders. This doesn't change the match finder output. Date: 2014-07-25 20:57:20 +0300 liblzma: Add lzma_memcmplen() for fast memory comparison. This commit just adds the function. Its uses will be in separate commits. This hasn't been tested much yet and it's perhaps a bit early to commit it but if there are bugs they should get found quite quickly. Thanks to Jun I Jin from Intel for help and for pointing out that string comparison needs to be optimized in liblzma. Date: 2014-07-12 21:10:09 +0300 Update THANKS. Date: 2014-07-12 20:06:08 +0300 Translations: Add Vietnamese translation. Thanks to Trần Ngọc Quân. Date: 2014-06-29 20:54:14 +0300 xz: Update the help message of a few options. Updated: --threads, --block-size, and --block-list Added: --flush-timeout Date: 2014-06-18 22:07:06 +0300 xz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores(). Date: 2014-06-18 22:04:24 +0300 liblzma: Add lzma_cputhreads(). Date: 2014-06-18 19:11:52 +0300 xz: Check for filter chain compatibility for --flush-timeout. This avoids LZMA_PROG_ERROR from lzma_code() with filter chains that don't support LZMA_SYNC_FLUSH. Date: 2014-06-13 19:21:54 +0300 xzgrep: List xzgrep_expected_output in tests/Makefile.am. Date: 2014-06-13 18:58:22 +0300 xzgrep: Improve the test script. Now it should be close to the functionality of the original version by Pavel Raiskup. Date: 2014-06-11 21:03:25 +0300 xzgrep: Add a test for the previous fix. This is a simplified version of Pavel Raiskup's original patch. Date: 2014-06-11 20:43:28 +0300 xzgrep: exit 0 when at least one file matches. Mimic the original grep behavior and return exit_success when at least one xz compressed file matches given pattern. Original bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=1108085 Thanks to Pavel Raiskup for the patch. Date: 2014-06-09 21:21:24 +0300 xz: Force single-threaded mode when --flush-timeout is used. Date: 2014-05-25 22:05:39 +0300 Update THANKS. Date: 2014-05-25 21:45:56 +0300 liblzma: Use lzma_alloc_zero() in LZ encoder initialization. This avoids a memzero() call for a newly-allocated memory, which can be expensive when encoding small streams with an over-sized dictionary. To avoid using lzma_alloc_zero() for memory that doesn't need to be zeroed, lzma_mf.son is now allocated separately, which requires handling it separately in normalize() too. Thanks to Vincenzo Innocente for reporting the problem. Date: 2014-05-25 19:25:57 +0300 liblzma: Add the internal function lzma_alloc_zero(). Date: 2014-05-08 18:03:09 +0300 xz: Fix uint64_t vs. size_t which broke 32-bit build. Thanks to Christian Hesse. Date: 2014-05-04 11:09:11 +0300 Docs: Update comments to refer to lzma/lzma12.h in example programs. Date: 2014-05-04 11:07:17 +0300 liblzma: Rename the private API header lzma/lzma.h to lzma/lzma12.h. It can be confusing that two header files have the same name. The public API file is still lzma.h. Date: 2014-04-25 17:53:42 +0300 Build: Fix the combination of --disable-xzdec --enable-lzmadec. In this case "make install" could fail if the man page directory didn't already exist at the destination. If it did exist, a dangling symlink was created there. Now the link is omitted instead. This isn't the best fix but it's better than the old behavior. Date: 2014-04-25 17:44:26 +0300 Build: Add --disable-doc to configure. Date: 2014-04-24 18:06:24 +0300 Update INSTALL. Add a note about failing "make check". The source of the problem should be fixed in libtool (if it really is a libtool bug and not mine) but I'm unable to spend time on that for now. Thanks to Nelson H. F. Beebe for reporting the issue. Add a note about a possible need to run "ldconfig" after "make install". Date: 2014-04-09 17:26:10 +0300 xz: Rename a variable to avoid a namespace collision on Solaris. I don't know the details but I have an impression that there's no problem in practice if using GCC since people have built xz with GCC (without patching xz), but renaming the variable cannot hurt either. Thanks to Mark Ashley. Date: 2014-01-29 20:19:41 +0200 Docs: Add example program for threaded encoding. I didn't add -DLZMA_UNSTABLE to Makefile so one has to specify it manually as long as LZMA_UNSTABLE is needed. Date: 2014-01-29 20:13:51 +0200 liblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt(). It read the filter chain from a wrong variable. Date: 2014-01-20 11:20:40 +0200 liblzma: Fix typo in a comment. Date: 2014-01-12 19:38:43 +0200 Windows: Add config.h for building liblzma with MSVC 2013. This is for building liblzma. Building xz tool too requires a little more work. Maybe it will be supported, but for most MSVC users it's enough to be able to build liblzma. C99 support in MSVC 2013 is almost usable which is a big improvement over earlier versions. It's "almost" because there's a dumb bug that breaks mixed declarations after an "if" statements unless the "if" statement uses braces: https://connect.microsoft.com/VisualStudio/feedback/details/808650/visual-studio-2013-c99-compiler-bug https://connect.microsoft.com/VisualStudio/feedback/details/808472/c99-support-of-mixed-declarations-and-statements-fails-with-certain-types-and-constructs Hopefully it will get fixed. Then liblzma should be compilable with MSVC 2013 without patching. Date: 2014-01-12 17:41:14 +0200 xz: Fix a comment. Date: 2014-01-12 17:04:33 +0200 Windows: Add MSVC defines for inline and restrict keywords. Date: 2014-01-12 16:44:52 +0200 liblzma: Avoid C99 compound literal arrays. MSVC 2013 doesn't like them. Maybe they aren't so good for readability either since many aren't used to them. Date: 2014-01-12 12:50:30 +0200 liblzma: Remove a useless C99ism from sha256.c. Unsurprisingly it makes no difference in compiled output. Date: 2014-01-12 12:17:08 +0200 xz: Fix use of wrong variable. Since the only call to suffix_set() uses optarg as the argument, fixing this bug doesn't change the behavior of the program. Date: 2014-01-12 12:11:36 +0200 Fix typos in comments. Date: 2013-11-26 18:20:16 +0200 Update THANKS. Date: 2013-11-26 18:20:09 +0200 liblzma: Document the need for block->check for lzma_block_header_decode(). Thanks to Tomer Chachamu. Date: 2013-11-12 16:38:57 +0200 xz: Update the man page about --block-size and --block-list. Date: 2013-11-12 16:30:53 +0200 Update THANKS. Date: 2013-11-12 16:29:48 +0200 xz: Make --block-list and --block-size work together in single-threaded. Previously, --block-list and --block-size only worked together in threaded mode. Boundaries are specified by --block-list, but --block-size specifies the maximum size for a Block. Now this works in single-threaded mode too. Thanks to James M Leddy for the original patch. Date: 2013-10-26 13:26:14 +0300 Bump the version number to 5.1.3alpha. Date: 2013-10-26 13:25:02 +0300 Update NEWS for 5.1.3alpha. Date: 2013-10-26 12:47:04 +0300 Update TODO. Date: 2013-10-25 22:41:28 +0300 xz: Document behavior of --block-list with threads. This needs to be updated before 5.2.0. Date: 2013-10-22 20:03:12 +0300 xz: Document --flush-timeout=TIMEOUT on the man page. Date: 2013-10-22 19:51:55 +0300 xz: Take advantage of LZMA_FULL_BARRIER with --block-list. Now if --block-list is used in threaded mode, the encoder won't need to flush at each Block boundary specified via --block-list. This improves performance a lot, making threading helpful with --block-list. The flush timer was reset after LZMA_FULL_FLUSH but since LZMA_FULL_BARRIER doesn't flush, resetting the timer is no longer done. Date: 2013-10-02 20:05:23 +0300 liblzma: Support LZMA_FULL_FLUSH and _BARRIER in threaded encoder. Now --block-list=SIZES works with in the threaded mode too, although the performance is still bad due to the use of LZMA_FULL_FLUSH instead of the new LZMA_FULL_BARRIER. Date: 2013-10-02 12:55:11 +0300 liblzma: Add LZMA_FULL_BARRIER support to single-threaded encoder. In the single-threaded encoder LZMA_FULL_BARRIER is simply an alias for LZMA_FULL_FLUSH. Date: 2013-09-17 11:57:51 +0300 liblzma: Add block_buffer_encoder.h into Makefile.inc. This should have been in b465da5988dd59ad98fda10c2e4ea13d0b9c73bc. Date: 2013-09-17 11:55:38 +0300 xz: Add a missing test for TUKLIB_DOSLIKE. Date: 2013-09-17 11:52:28 +0300 Add native threading support on Windows. Now liblzma only uses "mythread" functions and types which are defined in mythread.h matching the desired threading method. Before Windows Vista, there is no direct equivalent to pthread condition variables. Since this package doesn't use pthread_cond_broadcast(), pre-Vista threading can still be kept quite simple. The pre-Vista code doesn't use anything that wasn't already available in Windows 95, so the binaries should run even on Windows 95 if someone happens to care. Date: 2013-09-11 14:40:35 +0300 Build: Remove a comment about Automake 1.10 from configure.ac. The previous commit supports silent rules and that requires Automake 1.11. Date: 2013-09-09 20:37:03 +0300 Build: Create liblzma.pc in a src/liblzma/Makefile.am. Previously it was done in configure, but doing that goes against the Autoconf manual. Autoconf requires that it is possible to override e.g. prefix after running configure and that doesn't work correctly if liblzma.pc is created by configure. A potential downside of this change is that now e.g. libdir in liblzma.pc is a standalone string instead of being defined via ${prefix}, so if one overrides prefix when running pkg-config the libdir won't get the new value. I don't know if this matters in practice. Thanks to Vincent Torri. Date: 2013-08-04 15:24:09 +0300 Fix the previous commit which broke the build. Apparently I didn't even compile-test the previous commit. Thanks to Christian Hesse. Date: 2013-08-03 13:52:58 +0300 Windows: Add Windows support to tuklib_cpucores(). It is used for Cygwin too. I'm not sure if that is a good or bad idea. Thanks to Vincent Torri. Date: 2013-08-02 15:59:46 +0200 macosx: separate liblzma package Date: 2013-08-02 15:58:44 +0200 macosx: set minimum to leopard Date: 2011-08-07 13:13:30 +0200 move configurables into variables Date: 2013-07-15 14:08:41 +0300 Update THANKS. Date: 2013-07-15 14:08:02 +0300 Build: Fix the detection of missing CRC32. Thanks to Vincent Torri. Date: 2013-07-04 14:18:46 +0300 xz: Add preliminary support for --flush-timeout=TIMEOUT. When --flush-timeout=TIMEOUT is used, xz will use LZMA_SYNC_FLUSH if read() would block and at least TIMEOUT milliseconds has elapsed since the previous flush. This can be useful in realtime-like use cases where the data is simultanously decompressed by another process (possibly on a different computer). If new uncompressed input data is produced slowly, without this option xz could buffer the data for a long time until it would become decompressible from the output. If TIMEOUT is 0, the feature is disabled. This is the default. This commit affects the compression side. Using xz for the decompression side for the above purpose doesn't work yet so well because there is quite a bit of input and output buffering when decompressing. The --long-help or man page were not updated yet. The details of this feature may change. Date: 2013-07-04 13:41:03 +0300 xz: Don't set src_eof=true after an I/O error because it's useless. Date: 2013-07-04 13:25:11 +0300 xz: Fix the test when to read more input. Testing for end of file was no longer correct after full flushing became possible with --block-size=SIZE and --block-list=SIZES. There was no bug in practice though because xz just made a few unneeded zero-byte reads. Date: 2013-07-04 12:51:57 +0300 xz: Move some of the timing code into mytime.[hc]. This switches units from microseconds to milliseconds. New clock_gettime(CLOCK_MONOTONIC) will be used if available. There is still a fallback to gettimeofday(). Date: 2013-07-01 14:35:03 +0300 Update THANKS. Date: 2013-07-01 14:34:11 +0300 xz: Silence a warning seen with _FORTIFY_SOURCE=2. Thanks to Christian Hesse. @ text @d9 7 a15 8 1.2.1. AIX 1.2.2. IRIX 1.2.3. MINIX 3 1.2.4. OpenVMS 1.2.5. Solaris, OpenSolaris, and derivatives 1.2.6. Tru64 1.2.7. Windows 1.2.8. DOS a27 2 4.5. "make check" fails 4.6. liblzma.so (or similar) not found when running xz d66 1 a66 8 1.2.1. AIX If you use IBM XL C compiler, pass CC=xlc_r to configure. If you use CC=xlc instead, you must disable threading support with --disable-threads (usually not recommended). 1.2.2. IRIX d77 1 a77 1 1.2.3. MINIX 3 d82 3 a84 2 MINIX 3.1.8 and older have bugs in /usr/include/stdint.h, which has to be patched before XZ Utils can be compiled correctly. See a86 3 MINIX 3.2.0 and later use a different libc and aren't affected by the above bug. d94 1 a94 1 1.2.4. OpenVMS d104 1 a104 1 1.2.5. Solaris, OpenSolaris, and derivatives a112 4 test_scripts.sh in "make check" may fail if good enough tools are missing from PATH (/usr/xpg4/bin or /usr/xpg6/bin). See sections 4.5 and 3.2 for more information. d114 1 a114 1 1.2.6. Tru64 d121 1 a121 1 1.2.7. Windows d129 2 a130 2 It may be possible to build liblzma with other toolchains too, but that will probably require writing a separate makefile. Building d134 4 a137 7 Starting with XZ Utils 5.2.0, building liblzma (not the whole XZ Utils) should work with MSVC 2013 update 2 or later using windows/config.h. No project files or makefiles are included yet, so the build process isn't as convenient yet as it could be. Even if liblzma is built with MinGW(-w64), the resulting DLL can be used by other compilers and linkers, including MSVC. See d141 1 a141 1 1.2.8. DOS a243 6 --disable-doc Don't install the documentation files to $docdir (often /usr/doc/xz or /usr/local/doc/xz). Man pages will still be installed. The $docdir can be changed with --docdir=DIR. d300 10 a309 36 --enable-threads=METHOD Threading support is enabled by default so normally there is no need to specify this option. Supported values for METHOD: yes Autodetect the threading method. If none is found, configure will give an error. posix Use POSIX pthreads. This is the default except on Windows outside Cygwin. win95 Use Windows 95 compatible threads. This is compatible with Windows XP and later too. This is the default for 32-bit x86 Windows builds. The `win95' threading is incompatible with --enable-small. vista Use Windows Vista compatible threads. The resulting binaries won't run on Windows XP or older. This is the default for Windows excluding 32-bit x86 builds (that is, on x86-64 the default is `vista'). no Disable threading support. This is the same as using --disable-threads. NOTE: If combined with --enable-small, the resulting liblzma won't be thread safe, that is, if a multi-threaded application calls any liblzma functions from more than one thread, something bad may happen. --enable-symbol-versions Use symbol versioning for liblzma. This is enabled by default on GNU/Linux, other GNU-based systems, and FreeBSD. d380 5 a384 10 xzdiff (xzcmp/lzdiff/lzcmp) may use mktemp if it is available. As a fallback xzdiff will use mkdir to securely create a temporary directory. Having mktemp available is still recommended since the mkdir fallback method isn't as robust as mktemp is. The original mktemp can be found from . On GNU, most will use the mktemp program from GNU coreutils instead of the original implementation. Both mktemp versions are fine. In addition to using xz to decompress .xz files, xzgrep and xzdiff use gzip, bzip2, and lzop to support .gz, bz2, and .lzo files. d425 1 a425 2 script. Alternatively you can omit the installation of scripts and this error by passing --disable-scripts to configure. a455 33 4.5. "make check" fails If the other tests pass but test_scripts.sh fails, then the problem is in the scripts in src/scripts. Comparing the contents of tests/xzgrep_test_output to tests/xzgrep_expected_output might give a good idea about problems in xzgrep. One possibility is that some tools are missing from the current PATH or the tools lack support for some POSIX features. This can happen at least on Solaris where the tools in /bin may be ancient but good enough tools are available in /usr/xpg4/bin or /usr/xpg6/bin. One fix for this problem is described in section 3.2 of this file. If tests other than test_scripts.sh fail, a likely reason is that libtool links the test programs against an installed version of liblzma instead of the version that was just built. This is obviously a bug which seems to happen on some platforms. A workaround is to uninstall the old liblzma versions first. If the problem isn't any of those described above, then it's likely a bug in XZ Utils or in the compiler. See the platform-specific notes in this file for possible known problems. Please report a bug if you cannot solve the problem. See README for contact information. 4.6. liblzma.so (or similar) not found when running xz If you installed the package with "make install" and get an error about liblzma.so (or a similarly named file) being missing, try running "ldconfig" to update the run-time linker cache (if your operating system has such a command). @ 1.1.1.3.16.1 log @Sync with HEAD @ text @d139 5 a143 19 Building XZ Utils on Windows is supported under the following environments: - MinGW-w64 + MSYS (32-bit and 64-bit x86): This is used for building the official binary packages for Windows. There is windows/build.bash to ease packaging XZ Utils with MinGW(-w64) + MSYS into a redistributable .zip or .7z file. See windows/INSTALL-MinGW.txt for more information. - MinGW + MSYS (32-bit x86): I haven't recently tested this. - Cygwin 1.7.35 and later: NOTE that using XZ Utils >= 5.2.0 under Cygwin older than 1.7.35 can lead to DATA LOSS! If you must use an old Cygwin version, stick to XZ Utils 5.0.x which is safe under older Cygwin versions. You can check the Cygwin version with the command "cygcheck -V". - Microsoft Visual Studio 2013 update 2 or later (MSVC for short): See windows/INSTALL-MSVC.txt for more information. d150 5 a239 36 --enable-external-sha256 Try to use SHA-256 code from the operating system libc or similar base system libraries. This doesn't try to use OpenSSL or libgcrypt or such libraries. The reasons to use this option: - It makes liblzma slightly smaller. - It might improve SHA-256 speed if the implementation in the operating is very good (but see below). External SHA-256 is disabled by default for two reasons: - On some operating systems the symbol names of the SHA-256 functions conflict with OpenSSL's libcrypto. This causes weird problems such as decompression errors if an application is linked against both liblzma and libcrypto. This problem affects at least FreeBSD 10 and older and MINIX 3.3.0 and older, but other OSes that provide a function "SHA256_Init" might also be affected. FreeBSD 11 has the problem fixed. NetBSD had the problem but it was fixed it in 2009 already. OpenBSD uses "SHA256Init" and thus never had a conflict with libcrypto. - The SHA-256 code in liblzma is faster than the SHA-256 code provided by some operating systems. If you are curious, build two copies of xz (internal and external SHA-256) and compare the decompression (xz --test) times: dd if=/dev/zero bs=1024k count=1024 \ | xz -v -0 -Csha256 > foo.xz time xz --test foo.xz a356 28 --enable-sandbox=METHOD This feature is EXPERIMENTAL in the XZ Utils 5.2.x and disabled by default. If you test this, look especially if message translations and locale-specific decimal and thousand separators (e.g. xz --list foo.xz) work the same way as they do without sandboxing. There is limited sandboxing support in the xz tool. If built with sandbox support, it's used automatically when (de)compressing exactly one file to standard output and the options --files or --files0 weren't used. This is a common use case, for example, (de)compressing .tar.xz files via GNU tar. The sandbox is also used for single-file `xz --test' or `xz --list'. Supported METHODs: auto Look for a supported sandboxing method and use it if found. If no method is found, then sandboxing isn't used. no Disable sandboxing support. capsicum Use Capsicum (FreeBSD >= 10) for sandboxing. If no Capsicum support is found, configure will give an error. @ 1.1.1.3.14.1 log @Ssync with HEAD @ text @d139 5 a143 19 Building XZ Utils on Windows is supported under the following environments: - MinGW-w64 + MSYS (32-bit and 64-bit x86): This is used for building the official binary packages for Windows. There is windows/build.bash to ease packaging XZ Utils with MinGW(-w64) + MSYS into a redistributable .zip or .7z file. See windows/INSTALL-MinGW.txt for more information. - MinGW + MSYS (32-bit x86): I haven't recently tested this. - Cygwin 1.7.35 and later: NOTE that using XZ Utils >= 5.2.0 under Cygwin older than 1.7.35 can lead to DATA LOSS! If you must use an old Cygwin version, stick to XZ Utils 5.0.x which is safe under older Cygwin versions. You can check the Cygwin version with the command "cygcheck -V". - Microsoft Visual Studio 2013 update 2 or later (MSVC for short): See windows/INSTALL-MSVC.txt for more information. d150 5 a239 36 --enable-external-sha256 Try to use SHA-256 code from the operating system libc or similar base system libraries. This doesn't try to use OpenSSL or libgcrypt or such libraries. The reasons to use this option: - It makes liblzma slightly smaller. - It might improve SHA-256 speed if the implementation in the operating is very good (but see below). External SHA-256 is disabled by default for two reasons: - On some operating systems the symbol names of the SHA-256 functions conflict with OpenSSL's libcrypto. This causes weird problems such as decompression errors if an application is linked against both liblzma and libcrypto. This problem affects at least FreeBSD 10 and older and MINIX 3.3.0 and older, but other OSes that provide a function "SHA256_Init" might also be affected. FreeBSD 11 has the problem fixed. NetBSD had the problem but it was fixed it in 2009 already. OpenBSD uses "SHA256Init" and thus never had a conflict with libcrypto. - The SHA-256 code in liblzma is faster than the SHA-256 code provided by some operating systems. If you are curious, build two copies of xz (internal and external SHA-256) and compare the decompression (xz --test) times: dd if=/dev/zero bs=1024k count=1024 \ | xz -v -0 -Csha256 > foo.xz time xz --test foo.xz a356 28 --enable-sandbox=METHOD This feature is EXPERIMENTAL in the XZ Utils 5.2.x and disabled by default. If you test this, look especially if message translations and locale-specific decimal and thousand separators (e.g. xz --list foo.xz) work the same way as they do without sandboxing. There is limited sandboxing support in the xz tool. If built with sandbox support, it's used automatically when (de)compressing exactly one file to standard output and the options --files or --files0 weren't used. This is a common use case, for example, (de)compressing .tar.xz files via GNU tar. The sandbox is also used for single-file `xz --test' or `xz --list'. Supported METHODs: auto Look for a supported sandboxing method and use it if found. If no method is found, then sandboxing isn't used. no Disable sandboxing support. capsicum Use Capsicum (FreeBSD >= 10) for sandboxing. If no Capsicum support is found, configure will give an error. @ 1.1.1.4 log @Import xz 5.2.4. @ text @d139 5 a143 19 Building XZ Utils on Windows is supported under the following environments: - MinGW-w64 + MSYS (32-bit and 64-bit x86): This is used for building the official binary packages for Windows. There is windows/build.bash to ease packaging XZ Utils with MinGW(-w64) + MSYS into a redistributable .zip or .7z file. See windows/INSTALL-MinGW.txt for more information. - MinGW + MSYS (32-bit x86): I haven't recently tested this. - Cygwin 1.7.35 and later: NOTE that using XZ Utils >= 5.2.0 under Cygwin older than 1.7.35 can lead to DATA LOSS! If you must use an old Cygwin version, stick to XZ Utils 5.0.x which is safe under older Cygwin versions. You can check the Cygwin version with the command "cygcheck -V". - Microsoft Visual Studio 2013 update 2 or later (MSVC for short): See windows/INSTALL-MSVC.txt for more information. d150 5 a239 36 --enable-external-sha256 Try to use SHA-256 code from the operating system libc or similar base system libraries. This doesn't try to use OpenSSL or libgcrypt or such libraries. The reasons to use this option: - It makes liblzma slightly smaller. - It might improve SHA-256 speed if the implementation in the operating is very good (but see below). External SHA-256 is disabled by default for two reasons: - On some operating systems the symbol names of the SHA-256 functions conflict with OpenSSL's libcrypto. This causes weird problems such as decompression errors if an application is linked against both liblzma and libcrypto. This problem affects at least FreeBSD 10 and older and MINIX 3.3.0 and older, but other OSes that provide a function "SHA256_Init" might also be affected. FreeBSD 11 has the problem fixed. NetBSD had the problem but it was fixed it in 2009 already. OpenBSD uses "SHA256Init" and thus never had a conflict with libcrypto. - The SHA-256 code in liblzma is faster than the SHA-256 code provided by some operating systems. If you are curious, build two copies of xz (internal and external SHA-256) and compare the decompression (xz --test) times: dd if=/dev/zero bs=1024k count=1024 \ | xz -v -0 -Csha256 > foo.xz time xz --test foo.xz a356 28 --enable-sandbox=METHOD This feature is EXPERIMENTAL in the XZ Utils 5.2.x and disabled by default. If you test this, look especially if message translations and locale-specific decimal and thousand separators (e.g. xz --list foo.xz) work the same way as they do without sandboxing. There is limited sandboxing support in the xz tool. If built with sandbox support, it's used automatically when (de)compressing exactly one file to standard output and the options --files or --files0 weren't used. This is a common use case, for example, (de)compressing .tar.xz files via GNU tar. The sandbox is also used for single-file `xz --test' or `xz --list'. Supported METHODs: auto Look for a supported sandboxing method and use it if found. If no method is found, then sandboxing isn't used. no Disable sandboxing support. capsicum Use Capsicum (FreeBSD >= 10) for sandboxing. If no Capsicum support is found, configure will give an error. @ 1.1.1.4.14.1 log @Pull up the following, requested by christos in ticket #270: external/public-domain/xz/dist/doc/examples/11_file_info.c up to 1.1.1.1 external/public-domain/xz/dist/po/pt_BR.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/ca.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/ca.po up to 1.1.1.1 external/public-domain/xz/dist/po/da.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/da.po up to 1.1.1.1 external/public-domain/xz/dist/po/eo.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/eo.po up to 1.1.1.1 external/public-domain/xz/dist/po/es.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/es.po up to 1.1.1.1 external/public-domain/xz/dist/po/fi.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/fi.po up to 1.1.1.1 external/public-domain/xz/dist/po/hr.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/hr.po up to 1.1.1.1 external/public-domain/xz/dist/po/hu.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/hu.po up to 1.1.1.1 external/public-domain/xz/dist/po/ka.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/ka.po up to 1.1.1.1 external/public-domain/xz/dist/po/ko.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/ko.po up to 1.1.1.1 external/public-domain/xz/dist/po/nl.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/nl.po up to 1.1.1.1 external/public-domain/xz/dist/po/pt.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/pt.po up to 1.1.1.1 external/public-domain/xz/dist/po/pt_BR.po up to 1.1.1.1 external/public-domain/xz/dist/po/ro.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/ro.po up to 1.1.1.1 external/public-domain/xz/dist/po/sr.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/sr.po up to 1.1.1.1 external/public-domain/xz/dist/po/sv.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/sv.po up to 1.1.1.1 external/public-domain/xz/dist/po/tr.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/tr.po up to 1.1.1.1 external/public-domain/xz/dist/po/uk.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/uk.po up to 1.1.1.1 external/public-domain/xz/dist/po/zh_CN.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/zh_CN.po up to 1.1.1.1 external/public-domain/xz/dist/po/zh_TW.gmo up to 1.1.1.1 external/public-domain/xz/dist/po/zh_TW.po up to 1.1.1.1 external/public-domain/xz/dist/src/common/my_landlock.h up to 1.1.1.1 external/public-domain/xz/dist/src/common/tuklib_mbstr_nonprint.c up to 1.1.1.1 external/public-domain/xz/dist/src/common/tuklib_mbstr_nonprint.h up to 1.1.1.1 external/public-domain/xz/dist/src/common/tuklib_mbstr_wrap.c up to 1.1.1.1 external/public-domain/xz/dist/src/common/tuklib_mbstr_wrap.h up to 1.1.1.1 external/public-domain/xz/dist/src/common/w32_application.manifest up to 1.1.1.1 external/public-domain/xz/dist/src/common/w32_application.manifest.comments.txt up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/check/crc_common.h up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/check/crc_x86_clmul.h up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/check/crc32_arm64.h up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/check/crc32_loongarch.h up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/check/crc_clmul_consts_gen.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/file_info.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/index_decoder.h up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/lzip_decoder.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/lzip_decoder.h up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/microlzma_decoder.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/microlzma_encoder.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/stream_decoder_mt.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/common/string_conversion.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/simple/arm64.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/simple/riscv.c up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/liblzma_generic.map up to 1.1.1.1 external/public-domain/xz/dist/src/liblzma/liblzma_linux.map up to 1.1.1.1 external/public-domain/xz/dist/src/xz/sandbox.c up to 1.1.1.1 external/public-domain/xz/dist/src/xz/sandbox.h up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-v0-trailing-1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-2-v0-v1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-check-crc32-2.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-lzma2-10.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-lzma2-9.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-lzma2-11.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v0-uncomp-size.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-crc32.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-dict-1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-dict-2.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-magic-1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-magic-2.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-member-size.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-trailing-magic.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-1-v1-uncomp-size.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-3-index-uncomp-overflow.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-too_big_size-with_eopm.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-too_small_size-without_eopm-1.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-too_small_size-without_eopm-2.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-too_small_size-without_eopm-3.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/bad-unknown_size-without_eopm.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-arm64-lzma2-1.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-arm64-lzma2-2.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-empty-bcj-lzma2.xz.base64 up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-v0.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-v1-trailing-1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-v1-trailing-2.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-1-v1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-2-v1-v0.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-2-v1-v1.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-known_size-with_eopm.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-known_size-without_eopm.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/good-unknown_size-with_eopm.lzma up to 1.1.1.1 external/public-domain/xz/dist/tests/files/unsupported-1-v234.lz up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_decode_alone.options up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_decode_stream.options up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_decode_stream_mt.options up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_encode_stream.options up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_lzma.dict up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_xz.dict up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/fuzz_common.h up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/fuzz_decode_alone.c up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/fuzz_decode_stream.c up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/fuzz_decode_stream_mt.c up to 1.1.1.1 external/public-domain/xz/dist/tests/ossfuzz/fuzz_encode_stream.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_compress_generated_abc up to 1.1.1.1 external/public-domain/xz/dist/tests/test_compress_generated_random up to 1.1.1.1 external/public-domain/xz/dist/tests/test_compress_generated_text up to 1.1.1.1 external/public-domain/xz/dist/tests/test_filter_str.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_hardware.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_index_hash.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_lzip_decoder.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_memlimit.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_microlzma.c up to 1.1.1.1 external/public-domain/xz/dist/tests/test_suffix.sh up to 1.1.1.1 external/public-domain/xz/dist/tests/test_vli.c up to 1.1.1.1 external/public-domain/xz/dist/tests/tests.cmake up to 1.1.1.1 external/public-domain/xz/dist/tests/tests_w32res.rc up to 1.1.1.1 external/public-domain/xz/dist/tests/tuktest.h up to 1.1.1.1 external/public-domain/xz/dist/build-aux/license-check.sh up to 1.1.1.1 external/public-domain/xz/dist/build-aux/test-driver up to 1.1.1.1 external/public-domain/xz/dist/cmake/remove-ordinals.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_common.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_cpucores.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_integer.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_large_file_support.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_mbstr.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_physmem.cmake up to 1.1.1.1 external/public-domain/xz/dist/cmake/tuklib_progname.cmake up to 1.1.1.1 external/public-domain/xz/dist/CMakeLists.txt up to 1.1.1.1 external/public-domain/xz/dist/COPYING.0BSD up to 1.1.1.1 external/public-domain/xz/dist/doxygen/Doxyfile up to 1.1.1.1 external/public-domain/xz/dist/doxygen/update-doxygen up to 1.1.1.1 external/public-domain/xz/dist/po4a/po4a.conf up to 1.1.1.1 external/public-domain/xz/dist/po4a/ar.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/de.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/fr.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/it.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/ko.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ar/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/de/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/fr/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/fr/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/fr/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/fr/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/it/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ko/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/pt_BR/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/pt_BR/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/pt_BR/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/pt_BR/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/ro/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sr/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/sv/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/lzmainfo.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/xz.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/xzdec.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/xzdiff.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/xzgrep.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/xzless.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/man/uk/xzmore.1 up to 1.1.1.1 external/public-domain/xz/dist/po4a/pt_BR.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/ro.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/sr.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/sv.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/uk.po up to 1.1.1.1 external/public-domain/xz/dist/po4a/update-po up to 1.1.1.1 external/public-domain/xz/dist/po4a/xz-man.pot up to 1.1.1.1 external/public-domain/xz/dist/doc/examples_old/xz_pipe_comp.c delete external/public-domain/xz/dist/doc/examples_old/xz_pipe_decomp.c delete external/public-domain/xz/dist/macosx/build.sh delete external/public-domain/xz/dist/src/liblzma/liblzma.map delete external/public-domain/xz/dist/src/liblzma/check/crc32_table.c delete external/public-domain/xz/dist/src/liblzma/check/crc64_table.c delete external/public-domain/xz/dist/src/liblzma/check/crc_macros.h delete external/public-domain/xz/dist/tests/files/good-1-sparc-lzma2.xz.base64 delete external/public-domain/xz/dist/tests/files/good-1-x86-lzma2.xz.base64 delete external/public-domain/xz/dist/tests/bcj_test.c delete external/public-domain/xz/dist/tests/compress_prepared_bcj_sparc.base64 delete external/public-domain/xz/dist/tests/compress_prepared_bcj_x86.base64 delete external/public-domain/xz/Makefile.inc up to 1.7 external/public-domain/xz/prepare-import.sh up to 1.6 external/public-domain/xz/bin/lzmainfo/Makefile up to 1.3 external/public-domain/xz/bin/xz/Makefile up to 1.8 external/public-domain/xz/dist/AUTHORS up to 1.1.1.3 external/public-domain/xz/dist/COPYING up to 1.1.1.3 external/public-domain/xz/dist/ChangeLog up to 1.1.1.5 external/public-domain/xz/dist/INSTALL up to 1.1.1.5 external/public-domain/xz/dist/NEWS up to 1.1.1.5 external/public-domain/xz/dist/PACKAGERS up to 1.1.1.2 external/public-domain/xz/dist/README up to 1.1.1.4 external/public-domain/xz/dist/THANKS up to 1.1.1.5 external/public-domain/xz/dist/TODO up to 1.1.1.3 external/public-domain/xz/dist/config.h.in up to 1.1.1.4 external/public-domain/xz/dist/configure up to 1.3 external/public-domain/xz/dist/configure.ac up to 1.6 external/public-domain/xz/dist/build-aux/compile up to 1.1.1.2 external/public-domain/xz/dist/build-aux/config.guess up to 1.3 external/public-domain/xz/dist/build-aux/config.rpath up to 1.1.1.2 external/public-domain/xz/dist/build-aux/config.sub up to 1.1.1.2 external/public-domain/xz/dist/build-aux/depcomp up to 1.1.1.2 external/public-domain/xz/dist/build-aux/install-sh up to 1.1.1.2 external/public-domain/xz/dist/build-aux/ltmain.sh up to 1.1.1.2 external/public-domain/xz/dist/build-aux/manconv.sh up to 1.1.1.2 external/public-domain/xz/dist/build-aux/missing up to 1.1.1.2 external/public-domain/xz/dist/build-aux/version.sh up to 1.1.1.2 external/public-domain/xz/dist/doc/faq.txt up to 1.1.1.4 external/public-domain/xz/dist/doc/lzma-file-format.txt up to 1.1.1.3 external/public-domain/xz/dist/doc/xz-file-format.txt up to 1.1.1.2 external/public-domain/xz/dist/doc/examples/01_compress_easy.c up to 1.1.1.2 external/public-domain/xz/dist/doc/examples/02_decompress.c up to 1.1.1.3 external/public-domain/xz/dist/doc/examples/03_compress_custom.c up to 1.1.1.2 external/public-domain/xz/dist/doc/examples/04_compress_easy_mt.c up to 1.1.1.2 external/public-domain/xz/dist/m4/tuklib_common.m4 up to 1.1.1.2 external/public-domain/xz/dist/m4/tuklib_cpucores.m4 up to 1.1.1.4 external/public-domain/xz/dist/m4/tuklib_integer.m4 up to 1.1.1.3 external/public-domain/xz/dist/m4/tuklib_mbstr.m4 up to 1.1.1.2 external/public-domain/xz/dist/m4/tuklib_physmem.m4 up to 1.1.1.4 external/public-domain/xz/dist/m4/tuklib_progname.m4 up to 1.1.1.2 external/public-domain/xz/dist/po/cs.gmo up to 1.1.1.5 external/public-domain/xz/dist/po/cs.po up to 1.1.1.5 external/public-domain/xz/dist/po/de.gmo up to 1.1.1.5 external/public-domain/xz/dist/po/de.po up to 1.1.1.5 external/public-domain/xz/dist/po/fr.gmo up to 1.1.1.4 external/public-domain/xz/dist/po/fr.po up to 1.1.1.4 external/public-domain/xz/dist/po/it.gmo up to 1.1.1.5 external/public-domain/xz/dist/po/it.po up to 1.1.1.5 external/public-domain/xz/dist/po/pl.gmo up to 1.1.1.4 external/public-domain/xz/dist/po/pl.po up to 1.1.1.4 external/public-domain/xz/dist/po/vi.gmo up to 1.1.1.3 external/public-domain/xz/dist/po/vi.po up to 1.1.1.3 external/public-domain/xz/dist/src/common/common_w32res.rc up to 1.1.1.3 external/public-domain/xz/dist/src/common/mythread.h up to 1.1.1.3 external/public-domain/xz/dist/src/common/sysdefs.h up to 1.1.1.4 external/public-domain/xz/dist/src/common/tuklib_common.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_config.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_cpucores.c up to 1.1.1.4 external/public-domain/xz/dist/src/common/tuklib_cpucores.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_exit.c up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_exit.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_gettext.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_integer.h up to 1.2 external/public-domain/xz/dist/src/common/tuklib_mbstr.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_mbstr_fw.c up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_mbstr_width.c up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_open_stdxxx.c up to 1.1.1.3 external/public-domain/xz/dist/src/common/tuklib_open_stdxxx.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_physmem.c up to 1.1.1.4 external/public-domain/xz/dist/src/common/tuklib_physmem.h up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_progname.c up to 1.1.1.2 external/public-domain/xz/dist/src/common/tuklib_progname.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/liblzma.pc.in up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/liblzma_w32res.rc up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/validate_map.sh up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/api/lzma.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/api/lzma/base.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/api/lzma/bcj.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/api/lzma/block.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/api/lzma/check.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/api/lzma/container.h up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/api/lzma/delta.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/api/lzma/filter.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/api/lzma/hardware.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/api/lzma/index.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/api/lzma/index_hash.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/api/lzma/lzma12.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/api/lzma/stream_flags.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/api/lzma/version.h up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/api/lzma/vli.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/check.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/check.h up to 1.5 external/public-domain/xz/dist/src/liblzma/check/crc32_fast.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/check/crc32_small.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc32_table_be.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc32_table_le.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc32_tablegen.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc32_x86.S up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc64_fast.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc64_small.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc64_table_be.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc64_table_le.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc64_tablegen.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/crc64_x86.S up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/check/sha256.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/alone_decoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/alone_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/alone_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/auto_decoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/block_buffer_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/block_buffer_encoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/block_buffer_encoder.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/block_decoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/block_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/block_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/block_encoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/block_header_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/block_header_encoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/block_util.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/common.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/common.h up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/easy_buffer_encoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/easy_decoder_memusage.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/easy_encoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/easy_encoder_memusage.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/easy_preset.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/easy_preset.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/filter_buffer_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_buffer_encoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_common.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/filter_common.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_encoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_encoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_flags_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/filter_flags_encoder.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/hardware_cputhreads.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/hardware_physmem.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/index.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/index.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/index_decoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/index_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/index_encoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/index_hash.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/memcmplen.h up to 1.2 external/public-domain/xz/dist/src/liblzma/common/outqueue.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/outqueue.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/stream_buffer_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/stream_buffer_encoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/stream_decoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/common/stream_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/stream_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/common/stream_encoder_mt.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/common/stream_flags_common.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/stream_flags_common.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/stream_flags_decoder.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/stream_flags_encoder.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/vli_decoder.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/vli_encoder.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/common/vli_size.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/delta/delta_common.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/delta/delta_common.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/delta/delta_decoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/delta/delta_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/delta/delta_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/delta/delta_encoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/delta/delta_private.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lz/lz_decoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/lz/lz_decoder.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lz/lz_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/lz/lz_encoder.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lz/lz_encoder_hash.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lz/lz_encoder_hash_table.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/lz/lz_encoder_mf.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lzma/fastpos.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lzma/fastpos_table.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/lzma/fastpos_tablegen.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/lzma/lzma2_decoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/lzma/lzma2_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lzma/lzma2_encoder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/lzma/lzma2_encoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lzma/lzma_common.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lzma/lzma_decoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lzma/lzma_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_optimum_fast.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_optimum_normal.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_presets.c up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_private.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/rangecoder/price.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/rangecoder/price_table.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/rangecoder/price_tablegen.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/rangecoder/range_common.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/rangecoder/range_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/rangecoder/range_encoder.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/simple/arm.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/simple/armthumb.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/simple/ia64.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/simple/powerpc.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/simple/simple_coder.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/simple/simple_coder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/simple/simple_decoder.c up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/simple/simple_decoder.h up to 1.1.1.3 external/public-domain/xz/dist/src/liblzma/simple/simple_encoder.c up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/simple/simple_encoder.h up to 1.1.1.2 external/public-domain/xz/dist/src/liblzma/simple/simple_private.h up to 1.1.1.4 external/public-domain/xz/dist/src/liblzma/simple/sparc.c up to 1.1.1.5 external/public-domain/xz/dist/src/liblzma/simple/x86.c up to 1.1.1.4 external/public-domain/xz/dist/src/lzmainfo/lzmainfo.1 up to 1.1.1.3 external/public-domain/xz/dist/src/lzmainfo/lzmainfo.c up to 1.1.1.3 external/public-domain/xz/dist/src/lzmainfo/lzmainfo_w32res.rc up to 1.1.1.2 external/public-domain/xz/dist/src/xz/args.c up to 1.4 external/public-domain/xz/dist/src/xz/args.h up to 1.1.1.4 external/public-domain/xz/dist/src/xz/coder.c up to 1.1.1.5 external/public-domain/xz/dist/src/xz/coder.h up to 1.1.1.3 external/public-domain/xz/dist/src/xz/file_io.c up to 1.1.1.5 external/public-domain/xz/dist/src/xz/file_io.h up to 1.1.1.4 external/public-domain/xz/dist/src/xz/hardware.c up to 1.1.1.3 external/public-domain/xz/dist/src/xz/hardware.h up to 1.1.1.4 external/public-domain/xz/dist/src/xz/list.c up to 1.4 external/public-domain/xz/dist/src/xz/list.h up to 1.1.1.2 external/public-domain/xz/dist/src/xz/main.c up to 1.1.1.4 external/public-domain/xz/dist/src/xz/main.h up to 1.1.1.2 external/public-domain/xz/dist/src/xz/message.c up to 1.1.1.5 external/public-domain/xz/dist/src/xz/message.h up to 1.1.1.3 external/public-domain/xz/dist/src/xz/mytime.c up to 1.1.1.2 external/public-domain/xz/dist/src/xz/mytime.h up to 1.1.1.2 external/public-domain/xz/dist/src/xz/options.c up to 1.1.1.5 external/public-domain/xz/dist/src/xz/options.h up to 1.1.1.2 external/public-domain/xz/dist/src/xz/private.h up to 1.1.1.4 external/public-domain/xz/dist/src/xz/signals.c up to 1.1.1.4 external/public-domain/xz/dist/src/xz/signals.h up to 1.1.1.2 external/public-domain/xz/dist/src/xz/suffix.c up to 1.1.1.4 external/public-domain/xz/dist/src/xz/suffix.h up to 1.1.1.2 external/public-domain/xz/dist/src/xz/util.c up to 1.1.1.3 external/public-domain/xz/dist/src/xz/util.h up to 1.1.1.3 external/public-domain/xz/dist/src/xz/xz.1 up to 1.1.1.5 external/public-domain/xz/dist/src/xz/xz_w32res.rc up to 1.1.1.2 external/public-domain/xz/dist/src/xzdec/lzmadec_w32res.rc up to 1.1.1.2 external/public-domain/xz/dist/src/xzdec/xzdec.1 up to 1.1.1.4 external/public-domain/xz/dist/src/xzdec/xzdec.c up to 1.1.1.4 external/public-domain/xz/dist/src/xzdec/xzdec_w32res.rc up to 1.1.1.2 external/public-domain/xz/dist/tests/create_compress_files.c up to 1.1.1.3 external/public-domain/xz/dist/tests/test_bcj_exact_size.c up to 1.1.1.3 external/public-domain/xz/dist/tests/test_block_header.c up to 1.1.1.2 external/public-domain/xz/dist/tests/test_check.c up to 1.1.1.2 external/public-domain/xz/dist/tests/test_compress.sh up to 1.1.1.2 external/public-domain/xz/dist/tests/test_files.sh up to 1.1.1.3 external/public-domain/xz/dist/tests/test_filter_flags.c up to 1.1.1.2 external/public-domain/xz/dist/tests/test_index.c up to 1.1.1.3 external/public-domain/xz/dist/tests/test_scripts.sh up to 1.1.1.2 external/public-domain/xz/dist/tests/test_stream_flags.c up to 1.1.1.2 external/public-domain/xz/dist/tests/tests.h up to 1.1.1.2 external/public-domain/xz/dist/tests/files/README up to 1.1.1.4 external/public-domain/xz/dist/tests/files/bad-0cat-alone.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-0cat-header_magic.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-0catpad-empty.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-block_header-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-block_header-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-block_header-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-block_header-4.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-block_header-5.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-block_header-6.xz.base64 up to 1.1.1.3 external/public-domain/xz/dist/tests/files/bad-1-check-crc32.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-check-crc64.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-check-sha256.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-4.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-5.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-6.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-7.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-lzma2-8.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-stream_flags-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-stream_flags-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-stream_flags-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-vli-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-1-vli-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-2-compressed_data_padding.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-2-index-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-2-index-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-2-index-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-2-index-4.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/bad-2-index-5.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-0cat-empty.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-0catpad-empty.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-3delta-lzma2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-block_header-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-block_header-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-block_header-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-check-crc32.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-check-crc64.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-check-none.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-check-sha256.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-delta-lzma2.tiff.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-lzma2-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-lzma2-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-lzma2-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-lzma2-4.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/good-1-lzma2-5.xz.base64 up to 1.1.1.4 external/public-domain/xz/dist/tests/files/good-2-lzma2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/unsupported-block_header.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/unsupported-check.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/unsupported-filter_flags-1.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/unsupported-filter_flags-2.xz.base64 up to 1.1.1.5 external/public-domain/xz/dist/tests/files/unsupported-filter_flags-3.xz.base64 up to 1.1.1.5 external/public-domain/xz/include/config.h up to 1.10 external/public-domain/xz/lib/Makefile up to 1.13 external/public-domain/xz/lib/lzma.expsym up to 1.3 external/public-domain/xz/lib/shlib_version up to 1.4 Update xz to 5.8.3. @ text @a16 1 1.2.9. z/OS d18 1 a18 1 2. configure and CMake options d24 7 a30 10 4. Tests 4.1 Testing in parallel 4.2 Cross compiling 5. Troubleshooting 5.1. "No C99 compiler was found." 5.2. "No POSIX conforming shell (sh) was found." 5.3. configure works but build fails at crc32_x86.S 5.4. Lots of warnings about symbol visibility 5.5. "make check" fails 5.6. liblzma.so (or similar) not found when running xz a74 5 If building a 32-bit executable, the address space available to xz might be limited to 256 MiB by default. To increase the address space to 2 GiB, pass LDFLAGS=-Wl,-bmaxdata:0x80000000 as an argument to configure. d89 9 a97 1 Version 3.3.0 and later are supported. d99 5 a103 7 Multithreading isn't supported because MINIX 3 doesn't have pthreads. The option --disable-threads must be passed to configure as this isn't autodetected. Note that disabling threads causes "make check" to show a few tests as skipped ("SKIP"). It's only due to a few threading-dependent subtests are skipped. See the matching tests/test_*.log files. d126 2 a127 5 missing from PATH (/usr/xpg4/bin or /usr/xpg6/bin). Nowadays /usr/xpg4/bin is added to the script PATH by default on Solaris (see --enable-path-for-scripts=PREFIX in section 2), but old xz releases needed extra steps. See sections 5.5 and 3.2 for more information. d133 1 a133 1 configure), you may need the workaround mention in section 5.1 in d139 2 a140 2 The "windows" directory contains instructions for a few types of builds: d142 25 a166 28 - INSTALL-MinGW-w64_with_CMake.txt Simple instructions how to build XZ Utils natively on Windows using only CMake and a prebuilt toolchain (GCC + MinGW-w64 or Clang/LLVM + MinGW-w64). - INSTALL-MinGW-w64_with_Autotools.txt Native build under MSYS2 or cross-compilation from GNU/Linux using a bash script that creates a .zip and .7z archives of the binaries and documentation. The related file README-Windows.txt is for the resulting binary package. - INSTALL-MSVC.txt Building with MSVC / Visual Studio and CMake. - liblzma-crt-mixing.txt Documentation what to take into account as a programmer if liblzma.dll and the application don't use the same CRT (MSVCRT or UCRT). Other choices: - Cygwin: https://cygwin.com/ Building on Cygwin can be done like on many POSIX operating systems. XZ Utils >= 5.2.0 isn't compatible with Cygwin older than 1.7.35 (data loss!). 1.7.35 was released on 2015-03-04. - MSYS2: https://www.msys2.org/ d171 3 a173 22 There is a Makefile in the "dos" directory to build XZ Utils on DOS using DJGPP. Support for long file names (LFN) is needed at build time but the resulting xz.exe works without LFN support too. See dos/INSTALL.txt and dos/README.txt for more information. 1.2.9. z/OS To build XZ Utils on z/OS UNIX System Services using xlc, pass these options to the configure script: CC='xlc -qhaltonmsg=CCN3296' CPPFLAS='-D_UNIX03_THREADS -D_XOPEN_SOURCE=600'. The first makes xlc throw an error if a header file is missing, which is required to make the tests in configure work. The CPPFLAGS are needed to get pthread support (some other CPPFLAGS may work too; if there are problems, try -D_UNIX95_THREADS instead of -D_UNIX03_THREADS). test_scripts.sh in "make check" will fail even if the scripts actually work because the test data includes compressed files with US-ASCII text. No other tests should fail. If test_files.sh fails, check that the included .xz test files weren't affected by EBCDIC conversion. d175 2 a176 2 XZ Utils doesn't have code to detect the amount of physical RAM and number of CPU cores on z/OS. d193 2 a194 2 2. configure and CMake options ------------------------------ a199 25 configure options are those that begin with two dashes "--" or "gl_". CMake options begin with "XZ_", "TUKLIB_", or "CMAKE_". To use them on the command line, prefix them with "-D", for example, "cmake -DCMAKE_COMPILE_WARNING_AS_ERROR=ON". CMAKE_BUILD_TYPE=TYPE CMake only: For release builds, CMAKE_BUILD_TYPE=Release is fine. On targets where CMake defaults to -O3, the default value is overridden to -O2. Empty value (CMAKE_BUILD_TYPE=) is fine if using custom optimization options. *In this package* the empty build type also disables debugging code just like "Release" does. To enable debugging code with empty build type, use -UNDEBUG in the CFLAGS environment variable or in the CMAKE_C_FLAGS CMake variable to override -DNDEBUG. Non-standard build types like "None" do NOT disable debugging code! Such non-standard build types should be avoided for production builds! d202 4 a205 13 XZ_ENCODERS=LIST Specify a LIST of filter encoders to build. In the configure option the list is comma separated. CMake lists are semicolon separated. To see the exact list of available filter encoders: - Autotools: ./configure --help - CMake: Configure the tree normally first, then use "cmake -LH ." to list the cache variables. The default is to build all supported encoders. a216 1 XZ_DECODERS=LIST a220 1 XZ_MATCH_FINDERS=LIST a236 1 XZ_CHECKS=LIST d238 2 a239 3 mandatory, and cannot be omitted. Supported check types are "crc32", "crc64", and "sha256". By default all supported check types are enabled. a249 1 XZ_EXTERNAL_SHA256=ON a284 15 --disable-microlzma XZ_MICROLZMA_ENCODER=OFF XZ_MICROLZMA_DECODER=OFF Don't build MicroLZMA encoder and decoder. This omits lzma_microlzma_encoder() and lzma_microlzma_decoder() API functions from liblzma. These functions are needed by specific applications only. They were written for erofs-utils but they may be used by others too. --disable-lzip-decoder XZ_LZIP_DECODER=OFF Disable decompression support for .lz (lzip) files. This omits the API function lzma_lzip_decoder() from liblzma and .lz support from the xz tool. a288 4 XZ_TOOL_XZ=OFF XZ_TOOL_XZDEC=OFF XZ_TOOL_LZMADEC=OFF XZ_TOOL_LZMAINFO=OFF a297 4 XZ_TOOL_SYMLINKS=OFF Don't create the unxz and xzcat symlinks. (There is no "configure" option to disable these symlinks.) a298 1 XZ_TOOL_SYMLINKS_LZMA=OFF a304 1 XZ_TOOL_SCRIPTS=OFF a308 1 XZ_DOC=OFF a313 9 --enable-doxygen XZ_DOXYGEN=ON Enable generation of the HTML version of the liblzma API documentation using Doxygen. The resulting files are installed to $docdir/api. This option assumes that the 'doxygen' tool is available. NOTE: --disable-doc or XZ_DOC=OFF don't affect this. d315 9 a323 10 XZ_ASM_I386=OFF This disables CRC32 and CRC64 assembly code on 32-bit x86. This option currently does nothing on other architectures (not even on x86-64). The 32-bit x86 assembly is position-independent code which is suitable for use in shared libraries and position-independent executables. It uses only i386 instructions but the code is optimized for i686 class CPUs. If you are compiling liblzma exclusively for d327 7 a333 2 The assembly code is compatible with only certain OSes and toolchains (it's not compatible with MSVC). d335 2 a336 101 Since XZ Utils 5.7.1alpha, the 32-bit x86 assembly code co-exists with the modern CLMUL code: CLMUL is used if support for it is detected at runtime. On old processors the assembly code is used. --disable-clmul-crc XZ_CLMUL_CRC=OFF Disable the use of carryless multiplication for CRC calculation even if compiler support for it is detected. The code uses runtime detection of SSSE3, SSE4.1, and CLMUL instructions on x86. On 32-bit x86 this currently is used only if --disable-assembler is used (this might be fixed in the future). The code works on E2K too. If using compiler options that unconditionally allow the required extensions (-msse4.1 -mpclmul) then runtime detection isn't used and the generic code is omitted. --disable-arm64-crc32 XZ_ARM64_CRC32=OFF Disable the use of the ARM64 CRC32 instruction extension even if compiler support for it is detected. The code will detect support for the instruction at runtime. If using compiler options that unconditionally allow the required extensions (-march=armv8-a+crc or -march=armv8.1-a and later) then runtime detection isn't used and the generic code is omitted. --disable-loongarch-crc32 XZ_LOONGARCH_CRC32=OFF Disable the use of the 64-bit LoongArch CRC32 instruction extension even if compiler support for it is detected. There is no runtime detection because all 64-bit LoongArch processors should support the CRC32 instructions. --enable-unaligned-access TUKLIB_FAST_UNALIGNED_ACCESS=ON Allow liblzma to use unaligned memory access for 16-bit, 32-bit, and 64-bit loads and stores. This should be enabled only when the hardware supports this, that is, when unaligned access is fast. Some operating system kernels emulate unaligned access, which is extremely slow. This option shouldn't be used on systems that rely on such emulation. Unaligned access is enabled by default on these: - 32-bit x86 - 64-bit x86-64 - 32-bit big endian PowerPC - 64-bit big endian PowerPC - 64-bit little endian PowerPC - some RISC-V [1] - some 32-bit ARM [2] - some 64-bit ARM64 [2] (NOTE: Autodetection bug if using GCC -mstrict-align, see below.) [1] Unaligned access is enabled by default if configure sees that the C compiler #defines __riscv_misaligned_fast. [2] Unaligned access is enabled by default if configure sees that the C compiler #defines __ARM_FEATURE_UNALIGNED: - ARMv7 + GCC or Clang: It works. The options -munaligned-access and -mno-unaligned-access affect this macro correctly. - ARM64 + Clang: It works. The options -munaligned-access, -mno-unaligned-access, and -mstrict-align affect this macro correctly. Clang >= 17 supports -mno-strict-align too. - ARM64 + GCC: It partially works. The macro is always #defined by GCC versions at least up to 13.2, even when using -mstrict-align. If building for strict-align ARM64, the configure option --disable-unaligned-access should be used if using a GCC version that has this issue because otherwise the performance may be degraded. It likely won't crash due to how unaligned access is done in the C code. --enable-unsafe-type-punning TUKLIB_USE_UNSAFE_TYPE_PUNNING=ON This enables use of code like uint8_t *buf8 = ...; *(uint32_t *)buf8 = ...; which violates strict aliasing rules and may result in broken code. There should be no need to use this option with recent GCC or Clang versions on any arch as just as fast code can be generated in a safe way too (using __builtin_assume_aligned + memcpy). However, this option might improve performance in some other cases, especially with old compilers (for example, GCC 3 and early 4.x on x86, GCC < 6 on ARMv6 and ARMv7). a338 1 XZ_SMALL=ON a354 1 XZ_ASSUME_RAM=SIZE a370 1 XZ_THREADS=METHOD d385 2 a386 4 Windows builds. Unless the compiler supports __attribute__((__constructor__)), the 'win95' threading is incompatible with --enable-small. d392 1 a392 1 x86-64 the default is 'vista'). d396 1 a396 3 NOTE: If combined with --enable-small and the compiler doesn't support __attribute__((__constructor__)), the d403 13 a415 11 XZ_SANDBOX=METHOD There is limited sandboxing support in the xz and xzdec tools. If built with sandbox support, xz uses it automatically when (de)compressing exactly one file to standard output when the options --files or --files0 aren't used. This is a common use case, for example, (de)compressing .tar.xz files via GNU tar. The sandbox is also used for single-file 'xz --test' or 'xz --list'. xzdec always uses the sandbox, except when more than one file are decompressed. In this case it will enable the sandbox for the last file that is decompressed. a421 1 This is the default. d426 1 a426 1 Use Capsicum (FreeBSD >= 10.2) for d430 4 a433 49 pledge Use pledge(2) (OpenBSD >= 5.9) for sandboxing. If pledge(2) isn't found, configure will give an error. landlock Use Landlock (Linux >= 5.13) for sandboxing. If no Landlock support is found, configure will give an error. --enable-symbol-versions[=VARIANT] XZ_SYMBOL_VERSIONING=VARIANT Use symbol versioning for liblzma shared library. This is enabled by default on GNU/Linux (glibc only), other GNU-based systems, and FreeBSD. Symbol versioning is never used for static liblzma. This option is ignored when not building a shared library. Supported VARIANTs: no Disable symbol versioning. This is the same as using --disable-symbol-versions. auto Autodetect between "no", "linux", and "generic". yes Autodetect between "linux" and "generic". This forces symbol versioning to be used when building a shared library. generic Generic version is the default for FreeBSD and GNU/Linux on MicroBlaze. This is also used on GNU/Linux when building with NVIDIA HPC Compiler because the compiler doesn't support the features required for the "linux" variant below. linux Special version for GNU/Linux (glibc only). This adds a few extra symbol versions for compatibility with binaries that have been linked against a liblzma version that has been patched with "xz-5.2.2-compat-libs.patch" from RHEL/CentOS 7. That patch was used by some build tools outside of RHEL/CentOS 7 too. a439 10 In CMake, the build type (CMAKE_BUILD_TYPE) controls if -DNDEBUG is passed to the compiler. *In this package*, an empty build type disables debugging code too. Non-standard build types like "None" do NOT disable debugging code! To enable debugging code with empty build type in CMake, use -UNDEBUG in the CFLAGS environment variable or in the CMAKE_C_FLAGS CMake variable to override -DNDEBUG. a440 1 CMAKE_COMPILE_WARNING_AS_ERROR=ON (CMake >= 3.24) a445 48 --enable-path-for-scripts=PREFIX (CMake determines this from the path of XZ_POSIX_SHELL) If PREFIX isn't empty, PATH=PREFIX:$PATH will be set in the beginning of the scripts (xzgrep and others). The default is empty except on Solaris the default is /usr/xpg4/bin. This can be useful if the default PATH doesn't contain modern POSIX tools (as can be the case on Solaris) or if one wants to ensure that the correct xz binary is in the PATH for the scripts. Note that the latter use can break "make check" if the prefixed PATH causes a wrong xz binary (other than the one that was just built) to be used. Older xz releases support a different method for setting the PATH for the scripts. It is described in section 3.2 and is supported in this xz version too. gl_cv_posix_shell=/path/to/bin/sh XZ_POSIX_SHELL=/path/to/bin/sh POSIX shell to use for xzgrep and other scripts. - configure should autodetect this well enough. Typically it's /bin/sh but in some cases, like Solaris, something else is used. - CMake build uses /bin/sh except on Solaris the default is /usr/xpg4/bin/sh. CMAKE_DLL_NAME_WITH_SOVERSION=ON CMake on native Windows (not Cygwin) only: This changes the filename liblzma.dll to liblzma-5.dll. The unversioned filename liblzma.dll has been used since XZ Utils 5.0.0 when creating binary packages using the included windows/build.bash. The same unversioned filename is the default with CMake. However, there are popular builds that, very understandably and reasonably, use the versioned filename produced by GNU Libtool. This option should usually be left to its default value (OFF). It can be set to ON if the liblzma DLL filename must be compatible with the versioned filename produced by GNU Libtool. For example, binaries distributed in MSYS2 use a versioned DLL filename. d475 1 a475 1 For example, with GCC, put -Os into CFLAGS. d508 1 a508 1 mktemp can be found from . On GNU, most will a517 5 The method described below is supported by older xz releases. It is supported by the current version too, but the newer --enable-path-for-scripts=PREFIX described in section 2 may be more convenient. d519 4 a522 5 mktemp, and xz) are in PATH; the scripts don't set the PATH themselves (except as described for --enable-path-for-scripts=PREFIX). Some people like this while some think this is a bug. Those in the latter group can easily patch the scripts before running the configure script by taking advantage of a placeholder line in the scripts. d530 1 a530 45 4. Tests -------- The test framework can be built and run by executing "make check" in the build directory. The tests are a mix of executables and POSIX shell scripts (sh). All tests should pass if the default configuration is used. Disabling features through the configure options may cause some tests to be skipped. If any tests do not pass, see section 5.5. 4.1. Testing in parallel The tests can be run in parallel using the "-j" make option on systems that support it. For instance, "make -j4 check" will run up to four tests simultaneously. 4.2. Cross compiling The tests can be built without running them: make check TESTS= The TESTS variable is the list of tests you wish to run. Leaving it empty will compile the tests without running any. If the tests are copied to a target machine to execute, the test data files in the directory tests/files must also be copied. The tests search for the data files using the environment variable $srcdir, expecting to find the data files under $srcdir/files/. If $srcdir isn't set then it defaults to the current directory. The shell script tests can be copied from the source directory to the target machine to execute. In addition to the test files, these tests will expect the following relative file paths to execute properly: ./create_compress_files ../config.h ../src/xz/xz ../src/xzdec/xzdec ../src/scripts/xzdiff ../src/scripts/xzgrep 5. Troubleshooting d533 1 a533 1 5.1. "No C99 compiler was found." d548 1 a548 1 5.2. "No POSIX conforming shell (sh) was found." d558 1 a558 1 5.3. configure works but build fails at crc32_x86.S d564 1 a564 1 the assembler code can actually be built. The x86 assembler d575 1 a575 1 5.4. Lots of warnings about symbol visibility d587 1 a587 1 5.5. "make check" fails d596 2 a597 3 tools are available in /usr/xpg4/bin or /usr/xpg6/bin. For possible fixes, see --enable-path-for-scripts=PREFIX in section 2 and the older alternative method described in section 3.2 of this file. d612 1 a612 1 5.6. liblzma.so (or similar) not found when running xz @ 1.1.1.5 log @Import xz-5.8.3 (previous was 5.2.4) 5.8.3 (2026-03-31) * liblzma: - Fix a buffer overflow in lzma_index_append(): If lzma_index_decoder() was used to decode an Index that contained no Records, the resulting lzma_index was left in a state where where a subsequent lzma_index_append() would allocate too little memory, and a buffer overflow would occur. The lzma_index functions are rarely used by applications directly. In the few applications that do use these functions, the combination of function calls required to trigger this bug are unlikely to exist, because there typically is no reason to append Records to a decoded lzma_index. Thus, it's likely that this bug cannot be triggered in any real-world application. The bug was reported and discovered by Cantina using their AppSec agent, Apex. - Fix the build on Windows ARM64EC. - Add "License: 0BSD" to liblzma.pc. * xz: - Fix invalid memory access in --files and --files0. All of the following must be true to trigger it: 1. A string being read (which supposedly is a filename) is at least SIZE_MAX / 2 bytes long. This size is plausible on 32-bit platforms (2 GiB - 1 B). 2. realloc(ptr, SIZE_MAX / 2 + 1) must succeed. On glibc >= 2.30 it shouldn't because the value exceeds PTRDIFF_MAX. 3. An integer overflow results in a realloc(ptr, 0) call. If it doesn't return NULL, then invalid memory access will occur. - On QNX, don't use fsync() on directories because it fails. * Autotools: Enable 32-bit x86 assembler on Hurd by default. It was already enabled in the CMake-based build. * Translations: Add Arabic man page translations. For the changelog of previous versions please see: https://github.com/tukaani-project/xz/releases/tag/vM.m.p The changes are too big to include here, since this package has not been updated for a while. @ text @a16 1 1.2.9. z/OS d18 1 a18 1 2. configure and CMake options d24 7 a30 10 4. Tests 4.1 Testing in parallel 4.2 Cross compiling 5. Troubleshooting 5.1. "No C99 compiler was found." 5.2. "No POSIX conforming shell (sh) was found." 5.3. configure works but build fails at crc32_x86.S 5.4. Lots of warnings about symbol visibility 5.5. "make check" fails 5.6. liblzma.so (or similar) not found when running xz a74 5 If building a 32-bit executable, the address space available to xz might be limited to 256 MiB by default. To increase the address space to 2 GiB, pass LDFLAGS=-Wl,-bmaxdata:0x80000000 as an argument to configure. d89 9 a97 1 Version 3.3.0 and later are supported. d99 5 a103 7 Multithreading isn't supported because MINIX 3 doesn't have pthreads. The option --disable-threads must be passed to configure as this isn't autodetected. Note that disabling threads causes "make check" to show a few tests as skipped ("SKIP"). It's only due to a few threading-dependent subtests are skipped. See the matching tests/test_*.log files. d126 2 a127 5 missing from PATH (/usr/xpg4/bin or /usr/xpg6/bin). Nowadays /usr/xpg4/bin is added to the script PATH by default on Solaris (see --enable-path-for-scripts=PREFIX in section 2), but old xz releases needed extra steps. See sections 5.5 and 3.2 for more information. d133 1 a133 1 configure), you may need the workaround mention in section 5.1 in d139 2 a140 2 The "windows" directory contains instructions for a few types of builds: d142 25 a166 28 - INSTALL-MinGW-w64_with_CMake.txt Simple instructions how to build XZ Utils natively on Windows using only CMake and a prebuilt toolchain (GCC + MinGW-w64 or Clang/LLVM + MinGW-w64). - INSTALL-MinGW-w64_with_Autotools.txt Native build under MSYS2 or cross-compilation from GNU/Linux using a bash script that creates a .zip and .7z archives of the binaries and documentation. The related file README-Windows.txt is for the resulting binary package. - INSTALL-MSVC.txt Building with MSVC / Visual Studio and CMake. - liblzma-crt-mixing.txt Documentation what to take into account as a programmer if liblzma.dll and the application don't use the same CRT (MSVCRT or UCRT). Other choices: - Cygwin: https://cygwin.com/ Building on Cygwin can be done like on many POSIX operating systems. XZ Utils >= 5.2.0 isn't compatible with Cygwin older than 1.7.35 (data loss!). 1.7.35 was released on 2015-03-04. - MSYS2: https://www.msys2.org/ d171 3 a173 22 There is a Makefile in the "dos" directory to build XZ Utils on DOS using DJGPP. Support for long file names (LFN) is needed at build time but the resulting xz.exe works without LFN support too. See dos/INSTALL.txt and dos/README.txt for more information. 1.2.9. z/OS To build XZ Utils on z/OS UNIX System Services using xlc, pass these options to the configure script: CC='xlc -qhaltonmsg=CCN3296' CPPFLAS='-D_UNIX03_THREADS -D_XOPEN_SOURCE=600'. The first makes xlc throw an error if a header file is missing, which is required to make the tests in configure work. The CPPFLAGS are needed to get pthread support (some other CPPFLAGS may work too; if there are problems, try -D_UNIX95_THREADS instead of -D_UNIX03_THREADS). test_scripts.sh in "make check" will fail even if the scripts actually work because the test data includes compressed files with US-ASCII text. No other tests should fail. If test_files.sh fails, check that the included .xz test files weren't affected by EBCDIC conversion. d175 2 a176 2 XZ Utils doesn't have code to detect the amount of physical RAM and number of CPU cores on z/OS. d193 2 a194 2 2. configure and CMake options ------------------------------ a199 25 configure options are those that begin with two dashes "--" or "gl_". CMake options begin with "XZ_", "TUKLIB_", or "CMAKE_". To use them on the command line, prefix them with "-D", for example, "cmake -DCMAKE_COMPILE_WARNING_AS_ERROR=ON". CMAKE_BUILD_TYPE=TYPE CMake only: For release builds, CMAKE_BUILD_TYPE=Release is fine. On targets where CMake defaults to -O3, the default value is overridden to -O2. Empty value (CMAKE_BUILD_TYPE=) is fine if using custom optimization options. *In this package* the empty build type also disables debugging code just like "Release" does. To enable debugging code with empty build type, use -UNDEBUG in the CFLAGS environment variable or in the CMAKE_C_FLAGS CMake variable to override -DNDEBUG. Non-standard build types like "None" do NOT disable debugging code! Such non-standard build types should be avoided for production builds! d202 4 a205 13 XZ_ENCODERS=LIST Specify a LIST of filter encoders to build. In the configure option the list is comma separated. CMake lists are semicolon separated. To see the exact list of available filter encoders: - Autotools: ./configure --help - CMake: Configure the tree normally first, then use "cmake -LH ." to list the cache variables. The default is to build all supported encoders. a216 1 XZ_DECODERS=LIST a220 1 XZ_MATCH_FINDERS=LIST a236 1 XZ_CHECKS=LIST d238 2 a239 3 mandatory, and cannot be omitted. Supported check types are "crc32", "crc64", and "sha256". By default all supported check types are enabled. a249 1 XZ_EXTERNAL_SHA256=ON a284 15 --disable-microlzma XZ_MICROLZMA_ENCODER=OFF XZ_MICROLZMA_DECODER=OFF Don't build MicroLZMA encoder and decoder. This omits lzma_microlzma_encoder() and lzma_microlzma_decoder() API functions from liblzma. These functions are needed by specific applications only. They were written for erofs-utils but they may be used by others too. --disable-lzip-decoder XZ_LZIP_DECODER=OFF Disable decompression support for .lz (lzip) files. This omits the API function lzma_lzip_decoder() from liblzma and .lz support from the xz tool. a288 4 XZ_TOOL_XZ=OFF XZ_TOOL_XZDEC=OFF XZ_TOOL_LZMADEC=OFF XZ_TOOL_LZMAINFO=OFF a297 4 XZ_TOOL_SYMLINKS=OFF Don't create the unxz and xzcat symlinks. (There is no "configure" option to disable these symlinks.) a298 1 XZ_TOOL_SYMLINKS_LZMA=OFF a304 1 XZ_TOOL_SCRIPTS=OFF a308 1 XZ_DOC=OFF a313 9 --enable-doxygen XZ_DOXYGEN=ON Enable generation of the HTML version of the liblzma API documentation using Doxygen. The resulting files are installed to $docdir/api. This option assumes that the 'doxygen' tool is available. NOTE: --disable-doc or XZ_DOC=OFF don't affect this. d315 9 a323 10 XZ_ASM_I386=OFF This disables CRC32 and CRC64 assembly code on 32-bit x86. This option currently does nothing on other architectures (not even on x86-64). The 32-bit x86 assembly is position-independent code which is suitable for use in shared libraries and position-independent executables. It uses only i386 instructions but the code is optimized for i686 class CPUs. If you are compiling liblzma exclusively for d327 7 a333 2 The assembly code is compatible with only certain OSes and toolchains (it's not compatible with MSVC). d335 2 a336 101 Since XZ Utils 5.7.1alpha, the 32-bit x86 assembly code co-exists with the modern CLMUL code: CLMUL is used if support for it is detected at runtime. On old processors the assembly code is used. --disable-clmul-crc XZ_CLMUL_CRC=OFF Disable the use of carryless multiplication for CRC calculation even if compiler support for it is detected. The code uses runtime detection of SSSE3, SSE4.1, and CLMUL instructions on x86. On 32-bit x86 this currently is used only if --disable-assembler is used (this might be fixed in the future). The code works on E2K too. If using compiler options that unconditionally allow the required extensions (-msse4.1 -mpclmul) then runtime detection isn't used and the generic code is omitted. --disable-arm64-crc32 XZ_ARM64_CRC32=OFF Disable the use of the ARM64 CRC32 instruction extension even if compiler support for it is detected. The code will detect support for the instruction at runtime. If using compiler options that unconditionally allow the required extensions (-march=armv8-a+crc or -march=armv8.1-a and later) then runtime detection isn't used and the generic code is omitted. --disable-loongarch-crc32 XZ_LOONGARCH_CRC32=OFF Disable the use of the 64-bit LoongArch CRC32 instruction extension even if compiler support for it is detected. There is no runtime detection because all 64-bit LoongArch processors should support the CRC32 instructions. --enable-unaligned-access TUKLIB_FAST_UNALIGNED_ACCESS=ON Allow liblzma to use unaligned memory access for 16-bit, 32-bit, and 64-bit loads and stores. This should be enabled only when the hardware supports this, that is, when unaligned access is fast. Some operating system kernels emulate unaligned access, which is extremely slow. This option shouldn't be used on systems that rely on such emulation. Unaligned access is enabled by default on these: - 32-bit x86 - 64-bit x86-64 - 32-bit big endian PowerPC - 64-bit big endian PowerPC - 64-bit little endian PowerPC - some RISC-V [1] - some 32-bit ARM [2] - some 64-bit ARM64 [2] (NOTE: Autodetection bug if using GCC -mstrict-align, see below.) [1] Unaligned access is enabled by default if configure sees that the C compiler #defines __riscv_misaligned_fast. [2] Unaligned access is enabled by default if configure sees that the C compiler #defines __ARM_FEATURE_UNALIGNED: - ARMv7 + GCC or Clang: It works. The options -munaligned-access and -mno-unaligned-access affect this macro correctly. - ARM64 + Clang: It works. The options -munaligned-access, -mno-unaligned-access, and -mstrict-align affect this macro correctly. Clang >= 17 supports -mno-strict-align too. - ARM64 + GCC: It partially works. The macro is always #defined by GCC versions at least up to 13.2, even when using -mstrict-align. If building for strict-align ARM64, the configure option --disable-unaligned-access should be used if using a GCC version that has this issue because otherwise the performance may be degraded. It likely won't crash due to how unaligned access is done in the C code. --enable-unsafe-type-punning TUKLIB_USE_UNSAFE_TYPE_PUNNING=ON This enables use of code like uint8_t *buf8 = ...; *(uint32_t *)buf8 = ...; which violates strict aliasing rules and may result in broken code. There should be no need to use this option with recent GCC or Clang versions on any arch as just as fast code can be generated in a safe way too (using __builtin_assume_aligned + memcpy). However, this option might improve performance in some other cases, especially with old compilers (for example, GCC 3 and early 4.x on x86, GCC < 6 on ARMv6 and ARMv7). a338 1 XZ_SMALL=ON a354 1 XZ_ASSUME_RAM=SIZE a370 1 XZ_THREADS=METHOD d385 2 a386 4 Windows builds. Unless the compiler supports __attribute__((__constructor__)), the 'win95' threading is incompatible with --enable-small. d392 1 a392 1 x86-64 the default is 'vista'). d396 1 a396 3 NOTE: If combined with --enable-small and the compiler doesn't support __attribute__((__constructor__)), the d403 13 a415 11 XZ_SANDBOX=METHOD There is limited sandboxing support in the xz and xzdec tools. If built with sandbox support, xz uses it automatically when (de)compressing exactly one file to standard output when the options --files or --files0 aren't used. This is a common use case, for example, (de)compressing .tar.xz files via GNU tar. The sandbox is also used for single-file 'xz --test' or 'xz --list'. xzdec always uses the sandbox, except when more than one file are decompressed. In this case it will enable the sandbox for the last file that is decompressed. a421 1 This is the default. d426 1 a426 1 Use Capsicum (FreeBSD >= 10.2) for d430 4 a433 49 pledge Use pledge(2) (OpenBSD >= 5.9) for sandboxing. If pledge(2) isn't found, configure will give an error. landlock Use Landlock (Linux >= 5.13) for sandboxing. If no Landlock support is found, configure will give an error. --enable-symbol-versions[=VARIANT] XZ_SYMBOL_VERSIONING=VARIANT Use symbol versioning for liblzma shared library. This is enabled by default on GNU/Linux (glibc only), other GNU-based systems, and FreeBSD. Symbol versioning is never used for static liblzma. This option is ignored when not building a shared library. Supported VARIANTs: no Disable symbol versioning. This is the same as using --disable-symbol-versions. auto Autodetect between "no", "linux", and "generic". yes Autodetect between "linux" and "generic". This forces symbol versioning to be used when building a shared library. generic Generic version is the default for FreeBSD and GNU/Linux on MicroBlaze. This is also used on GNU/Linux when building with NVIDIA HPC Compiler because the compiler doesn't support the features required for the "linux" variant below. linux Special version for GNU/Linux (glibc only). This adds a few extra symbol versions for compatibility with binaries that have been linked against a liblzma version that has been patched with "xz-5.2.2-compat-libs.patch" from RHEL/CentOS 7. That patch was used by some build tools outside of RHEL/CentOS 7 too. a439 10 In CMake, the build type (CMAKE_BUILD_TYPE) controls if -DNDEBUG is passed to the compiler. *In this package*, an empty build type disables debugging code too. Non-standard build types like "None" do NOT disable debugging code! To enable debugging code with empty build type in CMake, use -UNDEBUG in the CFLAGS environment variable or in the CMAKE_C_FLAGS CMake variable to override -DNDEBUG. a440 1 CMAKE_COMPILE_WARNING_AS_ERROR=ON (CMake >= 3.24) a445 48 --enable-path-for-scripts=PREFIX (CMake determines this from the path of XZ_POSIX_SHELL) If PREFIX isn't empty, PATH=PREFIX:$PATH will be set in the beginning of the scripts (xzgrep and others). The default is empty except on Solaris the default is /usr/xpg4/bin. This can be useful if the default PATH doesn't contain modern POSIX tools (as can be the case on Solaris) or if one wants to ensure that the correct xz binary is in the PATH for the scripts. Note that the latter use can break "make check" if the prefixed PATH causes a wrong xz binary (other than the one that was just built) to be used. Older xz releases support a different method for setting the PATH for the scripts. It is described in section 3.2 and is supported in this xz version too. gl_cv_posix_shell=/path/to/bin/sh XZ_POSIX_SHELL=/path/to/bin/sh POSIX shell to use for xzgrep and other scripts. - configure should autodetect this well enough. Typically it's /bin/sh but in some cases, like Solaris, something else is used. - CMake build uses /bin/sh except on Solaris the default is /usr/xpg4/bin/sh. CMAKE_DLL_NAME_WITH_SOVERSION=ON CMake on native Windows (not Cygwin) only: This changes the filename liblzma.dll to liblzma-5.dll. The unversioned filename liblzma.dll has been used since XZ Utils 5.0.0 when creating binary packages using the included windows/build.bash. The same unversioned filename is the default with CMake. However, there are popular builds that, very understandably and reasonably, use the versioned filename produced by GNU Libtool. This option should usually be left to its default value (OFF). It can be set to ON if the liblzma DLL filename must be compatible with the versioned filename produced by GNU Libtool. For example, binaries distributed in MSYS2 use a versioned DLL filename. d475 1 a475 1 For example, with GCC, put -Os into CFLAGS. d508 1 a508 1 mktemp can be found from . On GNU, most will a517 5 The method described below is supported by older xz releases. It is supported by the current version too, but the newer --enable-path-for-scripts=PREFIX described in section 2 may be more convenient. d519 4 a522 5 mktemp, and xz) are in PATH; the scripts don't set the PATH themselves (except as described for --enable-path-for-scripts=PREFIX). Some people like this while some think this is a bug. Those in the latter group can easily patch the scripts before running the configure script by taking advantage of a placeholder line in the scripts. d530 1 a530 45 4. Tests -------- The test framework can be built and run by executing "make check" in the build directory. The tests are a mix of executables and POSIX shell scripts (sh). All tests should pass if the default configuration is used. Disabling features through the configure options may cause some tests to be skipped. If any tests do not pass, see section 5.5. 4.1. Testing in parallel The tests can be run in parallel using the "-j" make option on systems that support it. For instance, "make -j4 check" will run up to four tests simultaneously. 4.2. Cross compiling The tests can be built without running them: make check TESTS= The TESTS variable is the list of tests you wish to run. Leaving it empty will compile the tests without running any. If the tests are copied to a target machine to execute, the test data files in the directory tests/files must also be copied. The tests search for the data files using the environment variable $srcdir, expecting to find the data files under $srcdir/files/. If $srcdir isn't set then it defaults to the current directory. The shell script tests can be copied from the source directory to the target machine to execute. In addition to the test files, these tests will expect the following relative file paths to execute properly: ./create_compress_files ../config.h ../src/xz/xz ../src/xzdec/xzdec ../src/scripts/xzdiff ../src/scripts/xzgrep 5. Troubleshooting d533 1 a533 1 5.1. "No C99 compiler was found." d548 1 a548 1 5.2. "No POSIX conforming shell (sh) was found." d558 1 a558 1 5.3. configure works but build fails at crc32_x86.S d564 1 a564 1 the assembler code can actually be built. The x86 assembler d575 1 a575 1 5.4. Lots of warnings about symbol visibility d587 1 a587 1 5.5. "make check" fails d596 2 a597 3 tools are available in /usr/xpg4/bin or /usr/xpg6/bin. For possible fixes, see --enable-path-for-scripts=PREFIX in section 2 and the older alternative method described in section 3.2 of this file. d612 1 a612 1 5.6. liblzma.so (or similar) not found when running xz @