Bump to xz 5.2.2 #2 88/102588/1 accepted/tizen/3.0/base/20170106.094451 accepted/tizen/base/20161209.100251 submit/tizen_3.0_base/20170105.045531 submit/tizen_base/20161206.070730
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Dec 2016 06:53:37 +0000 (15:53 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 6 Dec 2016 06:53:37 +0000 (15:53 +0900)
[Model] ALL
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] liblzma.h invalid merging
[Cause & Measure] fix merge
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I1bd84e6ab5710ae8967c7ae9339a921ac478bc32
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
src/liblzma/api/lzma.h
src/liblzma/api/lzma/lzma.h [deleted file]
windows/INSTALL-Windows.txt [deleted file]

index e7e6f90..ce675a7 100644 (file)
@@ -294,7 +294,7 @@ extern "C" {
 #include "lzma/filter.h"
 #include "lzma/bcj.h"
 #include "lzma/delta.h"
-#include "lzma/lzma.h"
+#include "lzma/lzma12.h"
 
 /* Container formats */
 #include "lzma/container.h"
diff --git a/src/liblzma/api/lzma/lzma.h b/src/liblzma/api/lzma/lzma.h
deleted file mode 100644 (file)
index 3f8e095..0000000
+++ /dev/null
@@ -1,420 +0,0 @@
-/**
- * \file        lzma/lzma.h
- * \brief       LZMA1 and LZMA2 filters
- */
-
-/*
- * Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
- *
- * See ../lzma.h for information about liblzma as a whole.
- */
-
-#ifndef LZMA_H_INTERNAL
-#      error Never include this file directly. Use <lzma.h> instead.
-#endif
-
-
-/**
- * \brief       LZMA1 Filter ID
- *
- * LZMA1 is the very same thing as what was called just LZMA in LZMA Utils,
- * 7-Zip, and LZMA SDK. It's called LZMA1 here to prevent developers from
- * accidentally using LZMA when they actually want LZMA2.
- *
- * LZMA1 shouldn't be used for new applications unless you _really_ know
- * what you are doing. LZMA2 is almost always a better choice.
- */
-#define LZMA_FILTER_LZMA1       LZMA_VLI_C(0x4000000000000001)
-
-/**
- * \brief       LZMA2 Filter ID
- *
- * Usually you want this instead of LZMA1. Compared to LZMA1, LZMA2 adds
- * support for LZMA_SYNC_FLUSH, uncompressed chunks (smaller expansion
- * when trying to compress uncompressible data), possibility to change
- * lc/lp/pb in the middle of encoding, and some other internal improvements.
- */
-#define LZMA_FILTER_LZMA2       LZMA_VLI_C(0x21)
-
-
-/**
- * \brief       Match finders
- *
- * Match finder has major effect on both speed and compression ratio.
- * Usually hash chains are faster than binary trees.
- *
- * If you will use LZMA_SYNC_FLUSH often, the hash chains may be a better
- * choice, because binary trees get much higher compression ratio penalty
- * with LZMA_SYNC_FLUSH.
- *
- * The memory usage formulas are only rough estimates, which are closest to
- * reality when dict_size is a power of two. The formulas are  more complex
- * in reality, and can also change a little between liblzma versions. Use
- * lzma_raw_encoder_memusage() to get more accurate estimate of memory usage.
- */
-typedef enum {
-       LZMA_MF_HC3     = 0x03,
-               /**<
-                * \brief       Hash Chain with 2- and 3-byte hashing
-                *
-                * Minimum nice_len: 3
-                *
-                * Memory usage:
-                *  - dict_size <= 16 MiB: dict_size * 7.5
-                *  - dict_size > 16 MiB: dict_size * 5.5 + 64 MiB
-                */
-
-       LZMA_MF_HC4     = 0x04,
-               /**<
-                * \brief       Hash Chain with 2-, 3-, and 4-byte hashing
-                *
-                * Minimum nice_len: 4
-                *
-                * Memory usage:
-                *  - dict_size <= 32 MiB: dict_size * 7.5
-                *  - dict_size > 32 MiB: dict_size * 6.5
-                */
-
-       LZMA_MF_BT2     = 0x12,
-               /**<
-                * \brief       Binary Tree with 2-byte hashing
-                *
-                * Minimum nice_len: 2
-                *
-                * Memory usage: dict_size * 9.5
-                */
-
-       LZMA_MF_BT3     = 0x13,
-               /**<
-                * \brief       Binary Tree with 2- and 3-byte hashing
-                *
-                * Minimum nice_len: 3
-                *
-                * Memory usage:
-                *  - dict_size <= 16 MiB: dict_size * 11.5
-                *  - dict_size > 16 MiB: dict_size * 9.5 + 64 MiB
-                */
-
-       LZMA_MF_BT4     = 0x14
-               /**<
-                * \brief       Binary Tree with 2-, 3-, and 4-byte hashing
-                *
-                * Minimum nice_len: 4
-                *
-                * Memory usage:
-                *  - dict_size <= 32 MiB: dict_size * 11.5
-                *  - dict_size > 32 MiB: dict_size * 10.5
-                */
-} lzma_match_finder;
-
-
-/**
- * \brief       Test if given match finder is supported
- *
- * Return true if the given match finder is supported by this liblzma build.
- * Otherwise false is returned. It is safe to call this with a value that
- * isn't listed in lzma_match_finder enumeration; the return value will be
- * false.
- *
- * There is no way to list which match finders are available in this
- * particular liblzma version and build. It would be useless, because
- * a new match finder, which the application developer wasn't aware,
- * could require giving additional options to the encoder that the older
- * match finders don't need.
- */
-extern LZMA_API(lzma_bool) lzma_mf_is_supported(lzma_match_finder match_finder)
-               lzma_nothrow lzma_attr_const;
-
-
-/**
- * \brief       Compression modes
- *
- * This selects the function used to analyze the data produced by the match
- * finder.
- */
-typedef enum {
-       LZMA_MODE_FAST = 1,
-               /**<
-                * \brief       Fast compression
-                *
-                * Fast mode is usually at its best when combined with
-                * a hash chain match finder.
-                */
-
-       LZMA_MODE_NORMAL = 2
-               /**<
-                * \brief       Normal compression
-                *
-                * This is usually notably slower than fast mode. Use this
-                * together with binary tree match finders to expose the
-                * full potential of the LZMA1 or LZMA2 encoder.
-                */
-} lzma_mode;
-
-
-/**
- * \brief       Test if given compression mode is supported
- *
- * Return true if the given compression mode is supported by this liblzma
- * build. Otherwise false is returned. It is safe to call this with a value
- * that isn't listed in lzma_mode enumeration; the return value will be false.
- *
- * There is no way to list which modes are available in this particular
- * liblzma version and build. It would be useless, because a new compression
- * mode, which the application developer wasn't aware, could require giving
- * additional options to the encoder that the older modes don't need.
- */
-extern LZMA_API(lzma_bool) lzma_mode_is_supported(lzma_mode mode)
-               lzma_nothrow lzma_attr_const;
-
-
-/**
- * \brief       Options specific to the LZMA1 and LZMA2 filters
- *
- * Since LZMA1 and LZMA2 share most of the code, it's simplest to share
- * the options structure too. For encoding, all but the reserved variables
- * need to be initialized unless specifically mentioned otherwise.
- * lzma_lzma_preset() can be used to get a good starting point.
- *
- * For raw decoding, both LZMA1 and LZMA2 need dict_size, preset_dict, and
- * preset_dict_size (if preset_dict != NULL). LZMA1 needs also lc, lp, and pb.
- */
-typedef struct {
-       /**
-        * \brief       Dictionary size in bytes
-        *
-        * Dictionary size indicates how many bytes of the recently processed
-        * uncompressed data is kept in memory. One method to reduce size of
-        * the uncompressed data is to store distance-length pairs, which
-        * indicate what data to repeat from the dictionary buffer. Thus,
-        * the bigger the dictionary, the better the compression ratio
-        * usually is.
-        *
-        * Maximum size of the dictionary depends on multiple things:
-        *  - Memory usage limit
-        *  - Available address space (not a problem on 64-bit systems)
-        *  - Selected match finder (encoder only)
-        *
-        * Currently the maximum dictionary size for encoding is 1.5 GiB
-        * (i.e. (UINT32_C(1) << 30) + (UINT32_C(1) << 29)) even on 64-bit
-        * systems for certain match finder implementation reasons. In the
-        * future, there may be match finders that support bigger
-        * dictionaries.
-        *
-        * Decoder already supports dictionaries up to 4 GiB - 1 B (i.e.
-        * UINT32_MAX), so increasing the maximum dictionary size of the
-        * encoder won't cause problems for old decoders.
-        *
-        * Because extremely small dictionaries sizes would have unneeded
-        * overhead in the decoder, the minimum dictionary size is 4096 bytes.
-        *
-        * \note        When decoding, too big dictionary does no other harm
-        *              than wasting memory.
-        */
-       uint32_t dict_size;
-#      define LZMA_DICT_SIZE_MIN       UINT32_C(4096)
-#      define LZMA_DICT_SIZE_DEFAULT   (UINT32_C(1) << 23)
-
-       /**
-        * \brief       Pointer to an initial dictionary
-        *
-        * It is possible to initialize the LZ77 history window using
-        * a preset dictionary. It is useful when compressing many
-        * similar, relatively small chunks of data independently from
-        * each other. The preset dictionary should contain typical
-        * strings that occur in the files being compressed. The most
-        * probable strings should be near the end of the preset dictionary.
-        *
-        * This feature should be used only in special situations. For
-        * now, it works correctly only with raw encoding and decoding.
-        * Currently none of the container formats supported by
-        * liblzma allow preset dictionary when decoding, thus if
-        * you create a .xz or .lzma file with preset dictionary, it
-        * cannot be decoded with the regular decoder functions. In the
-        * future, the .xz format will likely get support for preset
-        * dictionary though.
-        */
-       const uint8_t *preset_dict;
-
-       /**
-        * \brief       Size of the preset dictionary
-        *
-        * Specifies the size of the preset dictionary. If the size is
-        * bigger than dict_size, only the last dict_size bytes are
-        * processed.
-        *
-        * This variable is read only when preset_dict is not NULL.
-        * If preset_dict is not NULL but preset_dict_size is zero,
-        * no preset dictionary is used (identical to only setting
-        * preset_dict to NULL).
-        */
-       uint32_t preset_dict_size;
-
-       /**
-        * \brief       Number of literal context bits
-        *
-        * How many of the highest bits of the previous uncompressed
-        * eight-bit byte (also known as `literal') are taken into
-        * account when predicting the bits of the next literal.
-        *
-        * E.g. in typical English text, an upper-case letter is
-        * often followed by a lower-case letter, and a lower-case
-        * letter is usually followed by another lower-case letter.
-        * In the US-ASCII character set, the highest three bits are 010
-        * for upper-case letters and 011 for lower-case letters.
-        * When lc is at least 3, the literal coding can take advantage of
-        * this property in the uncompressed data.
-        *
-        * There is a limit that applies to literal context bits and literal
-        * position bits together: lc + lp <= 4. Without this limit the
-        * decoding could become very slow, which could have security related
-        * results in some cases like email servers doing virus scanning.
-        * This limit also simplifies the internal implementation in liblzma.
-        *
-        * There may be LZMA1 streams that have lc + lp > 4 (maximum possible
-        * lc would be 8). It is not possible to decode such streams with
-        * liblzma.
-        */
-       uint32_t lc;
-#      define LZMA_LCLP_MIN    0
-#      define LZMA_LCLP_MAX    4
-#      define LZMA_LC_DEFAULT  3
-
-       /**
-        * \brief       Number of literal position bits
-        *
-        * lp affects what kind of alignment in the uncompressed data is
-        * assumed when encoding literals. A literal is a single 8-bit byte.
-        * See pb below for more information about alignment.
-        */
-       uint32_t lp;
-#      define LZMA_LP_DEFAULT  0
-
-       /**
-        * \brief       Number of position bits
-        *
-        * pb affects what kind of alignment in the uncompressed data is
-        * assumed in general. The default means four-byte alignment
-        * (2^ pb =2^2=4), which is often a good choice when there's
-        * no better guess.
-        *
-        * When the aligment is known, setting pb accordingly may reduce
-        * the file size a little. E.g. with text files having one-byte
-        * alignment (US-ASCII, ISO-8859-*, UTF-8), setting pb=0 can
-        * improve compression slightly. For UTF-16 text, pb=1 is a good
-        * choice. If the alignment is an odd number like 3 bytes, pb=0
-        * might be the best choice.
-        *
-        * Even though the assumed alignment can be adjusted with pb and
-        * lp, LZMA1 and LZMA2 still slightly favor 16-byte alignment.
-        * It might be worth taking into account when designing file formats
-        * that are likely to be often compressed with LZMA1 or LZMA2.
-        */
-       uint32_t pb;
-#      define LZMA_PB_MIN      0
-#      define LZMA_PB_MAX      4
-#      define LZMA_PB_DEFAULT  2
-
-       /** Compression mode */
-       lzma_mode mode;
-
-       /**
-        * \brief       Nice length of a match
-        *
-        * This determines how many bytes the encoder compares from the match
-        * candidates when looking for the best match. Once a match of at
-        * least nice_len bytes long is found, the encoder stops looking for
-        * better candidates and encodes the match. (Naturally, if the found
-        * match is actually longer than nice_len, the actual length is
-        * encoded; it's not truncated to nice_len.)
-        *
-        * Bigger values usually increase the compression ratio and
-        * compression time. For most files, 32 to 128 is a good value,
-        * which gives very good compression ratio at good speed.
-        *
-        * The exact minimum value depends on the match finder. The maximum
-        * is 273, which is the maximum length of a match that LZMA1 and
-        * LZMA2 can encode.
-        */
-       uint32_t nice_len;
-
-       /** Match finder ID */
-       lzma_match_finder mf;
-
-       /**
-        * \brief       Maximum search depth in the match finder
-        *
-        * For every input byte, match finder searches through the hash chain
-        * or binary tree in a loop, each iteration going one step deeper in
-        * the chain or tree. The searching stops if
-        *  - a match of at least nice_len bytes long is found;
-        *  - all match candidates from the hash chain or binary tree have
-        *    been checked; or
-        *  - maximum search depth is reached.
-        *
-        * Maximum search depth is needed to prevent the match finder from
-        * wasting too much time in case there are lots of short match
-        * candidates. On the other hand, stopping the search before all
-        * candidates have been checked can reduce compression ratio.
-        *
-        * Setting depth to zero tells liblzma to use an automatic default
-        * value, that depends on the selected match finder and nice_len.
-        * The default is in the range [4, 200] or so (it may vary between
-        * liblzma versions).
-        *
-        * Using a bigger depth value than the default can increase
-        * compression ratio in some cases. There is no strict maximum value,
-        * but high values (thousands or millions) should be used with care:
-        * the encoder could remain fast enough with typical input, but
-        * malicious input could cause the match finder to slow down
-        * dramatically, possibly creating a denial of service attack.
-        */
-       uint32_t depth;
-
-       /*
-        * Reserved space to allow possible future extensions without
-        * breaking the ABI. You should not touch these, because the names
-        * of these variables may change. These are and will never be used
-        * with the currently supported options, so it is safe to leave these
-        * uninitialized.
-        */
-       uint32_t reserved_int1;
-       uint32_t reserved_int2;
-       uint32_t reserved_int3;
-       uint32_t reserved_int4;
-       uint32_t reserved_int5;
-       uint32_t reserved_int6;
-       uint32_t reserved_int7;
-       uint32_t reserved_int8;
-       lzma_reserved_enum reserved_enum1;
-       lzma_reserved_enum reserved_enum2;
-       lzma_reserved_enum reserved_enum3;
-       lzma_reserved_enum reserved_enum4;
-       void *reserved_ptr1;
-       void *reserved_ptr2;
-
-} lzma_options_lzma;
-
-
-/**
- * \brief       Set a compression preset to lzma_options_lzma structure
- *
- * 0 is the fastest and 9 is the slowest. These match the switches -0 .. -9
- * of the xz command line tool. In addition, it is possible to bitwise-or
- * flags to the preset. Currently only LZMA_PRESET_EXTREME is supported.
- * The flags are defined in container.h, because the flags are used also
- * with lzma_easy_encoder().
- *
- * The preset values are subject to changes between liblzma versions.
- *
- * This function is available only if LZMA1 or LZMA2 encoder has been enabled
- * when building liblzma.
- *
- * \return      On success, false is returned. If the preset is not
- *              supported, true is returned.
- */
-extern LZMA_API(lzma_bool) lzma_lzma_preset(
-               lzma_options_lzma *options, uint32_t preset) lzma_nothrow;
diff --git a/windows/INSTALL-Windows.txt b/windows/INSTALL-Windows.txt
deleted file mode 100644 (file)
index bb4a4d6..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-
-Building XZ Utils on Windows
-============================
-
-Introduction
-------------
-
-    This document explains shortly where to get and how to install the
-    build tool that are needed to build XZ Utils on Windows. The final
-    binary package will be standalone in sense that it will depend only
-    on DLLs that are included in all Windows installations.
-
-    These instructions don't apply to Cygwin. XZ Utils can be built under
-    Cygwin in the same way as many other packages.
-
-    These instructions don't apply to MinGW and MSYS developers either,
-    who may want to package XZ Utils for MinGW or MSYS distributions.
-    You know who you are, and will probably use quite different configure
-    options etc. than what is described here.
-
-
-Installing the toolchain(s)
----------------------------
-
-    Some of the following is needed:
-      - MSYS is always needed to use the GNU Autotools based build system.
-      - MinGW builds 32-bit x86 binaries.
-      - MingW-w32 builds 32-bit x86 executables too.
-      - MinGW-w64 builds 64-bit x86-64 binaries.
-
-    So you need to pick between MinGW and MinGW-w32 when building
-    32-bit version. You don't need both.
-
-    You might find 7-Zip <http://7-zip.org/> handy when extracting
-    some files (especially the .tar.lzma files). The ready-made
-    build script will also use 7-Zip to create the distributable
-    .zip and .7z files.
-
-    I used the following directory structure but you can use whatever
-    you want. Just note that I will use these in my examples. Each of
-    these should have a subdirectory "bin":
-
-        C:\devel\tools\msys
-        C:\devel\tools\mingw
-        C:\devel\tools\mingw-w32
-        C:\devel\tools\mingw-w64
-
-
-Installing MSYS
-
-    You can download MSYS from MinGW's Sourceforge page:
-
-        http://sourceforge.net/projects/mingw/files/
-
-    It's under "MSYS Base System". I recommend using MSYS 1.0.11
-    (MSYS-1.0.11.exe or msysCORE-1.0.11-bin.tar.gz) because that
-    package includes all the required tools. At least some of the
-    later versions include only a subset and thus you would need to
-    download the rest separately. The old version will work fine for
-    building XZ Utils.
-
-    You can use either the .exe or .tar.gz package. I prefer .tar.gz,
-    because it can be extracted into any directory and later removed
-    without worrying about uninstallers.
-
-
-Installing MinGW
-
-    You can download the required packages from MinGW's Sourceforge page:
-
-        http://sourceforge.net/projects/mingw/files/
-
-    These version numbers were the latest when I wrote this document, but
-    you probably should pick the latest versions:
-
-        MinGW Runtime -> mingwrt-3.17-mingw32-dev.tar.gz
-        MinGW API for MS-Windows -> w32api-3.14-mingw32-dev.tar.gz
-        GNU Binutils -> binutils-2.20-1-bin.tar.gz
-        GCC Version 4 -> gcc-full-4.4.0-mingw32-bin-2.tar.lzma
-
-    The full GCC package is quite big, but if you want a smaller
-    download, you will need to download more than one file, so I'm
-    using the full package in this document for simplicity.
-
-    Extract the packages in the above order, possibly overwriting files
-    from packages that were extracted earlier.
-
-
-Installing MinGW-w32 or MinGW-w64
-
-    You can find the latest MinGW-w32 and MinGW-w64 builds here:
-
-        http://sourceforge.net/projects/mingw-w64/files/
-
-    Locate the appropriate files:
-
-        Toolchains targeting Win32 -> mingw-w32-*-mingw*.zip
-        Toolchains targeting Win64 -> mingw-w64-*-mingw*.zip
-
-    I don't know what is the most recommended one. I used sezero's
-    versions from "Personal Builds", since they seemed to have
-    a stable GCC (judging from the GCC version number only).
-
-    If you will install both MinGW-w32 and MinGW-w64, remember to
-    extract them into different directories.
-
-
-Building XZ Utils
------------------
-
-    Start MSYS by going to the directory C:\devel\tools\msys and running
-    msys.bat there (double-click or use command prompt). It will start
-    at "home" directory, which is C:\devel\tools\msys\home\YourUserName.
-
-    If you have xz-5.x.x.tar.gz in C:\devel, you should be able to build
-    it now with the following commands:
-
-        cd /c/devel
-        tar xzf xz-5.x.x.tar.gz
-        cd xz-5.x.x
-        bash windows/build.bash
-
-    If you used some other directory than C:\devel\tools for the build
-    tools, edit the variables near the beginning of build.bash first.
-
-    If you want to build manually, read the buildit() function in
-    build.bash. Look especially at the latter configure invocation.
-
-    Be patient. Running configure and other scripts used by the build
-    system is (very) slow under Windows.
-
-
-Using a snapshot from the Git repository
-
-    To use a snapshot, the build system files need to be generated with
-    autogen.sh or "autoreconf -fi" before trying to build using the
-    above build instructions. You can install the relevant extra packages
-    from MinGW or use Cygwin or use e.g. a GNU/Linux system to create a
-    source package with the required build system files.
-