]> granicus.if.org Git - xz/log
xz
10 years agopo/fr: translations for --threads, --block-size and --block-list.
Adrien Nader [Wed, 3 Dec 2014 19:01:32 +0000 (20:01 +0100)]
po/fr: translations for --threads, --block-size and --block-list.

10 years agopo/fr: remove fuzzy marker for error messages that will be kept in English.
Adrien Nader [Wed, 3 Dec 2014 19:00:53 +0000 (20:00 +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.

10 years agopo/fr: several minor updates and better wording.
Adrien Nader [Wed, 3 Dec 2014 18:58:25 +0000 (19:58 +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.

10 years agopo/fr: update my email address and copyright years.
Adrien Nader [Wed, 3 Dec 2014 18:56:12 +0000 (19:56 +0100)]
po/fr: update my email address and copyright years.

10 years agofr.po: commit file after only "update-po" so actual is readable.
Adrien Nader [Wed, 26 Nov 2014 09:08:26 +0000 (10:08 +0100)]
fr.po: commit file after only "update-po" so actual is readable.

10 years agoliblzma: Document how lzma_mt.block_size affects memory usage.
Lasse Collin [Tue, 2 Dec 2014 18:04:07 +0000 (20:04 +0200)]
liblzma: Document how lzma_mt.block_size affects memory usage.

10 years agoUpdate INSTALL about a "make check" failure in test_scripts.sh.
Lasse Collin [Fri, 28 Nov 2014 18:07:18 +0000 (20:07 +0200)]
Update INSTALL about a "make check" failure in test_scripts.sh.

10 years agoRemove LZMA_UNSTABLE macro.
Lasse Collin [Wed, 26 Nov 2014 18:12:27 +0000 (20:12 +0200)]
Remove LZMA_UNSTABLE macro.

10 years agoliblzma: Update lzma_stream_encoder_mt() API docs.
Lasse Collin [Wed, 26 Nov 2014 18:10:33 +0000 (20:10 +0200)]
liblzma: Update lzma_stream_encoder_mt() API docs.

10 years agoliblzma: Verify the filter chain in threaded encoder initialization.
Lasse Collin [Tue, 25 Nov 2014 10:32:05 +0000 (12:32 +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).

10 years agoBuild: Update m4/ax_pthread.m4 from Autoconf Archive.
Lasse Collin [Mon, 17 Nov 2014 17:11:49 +0000 (19:11 +0200)]
Build: Update m4/ax_pthread.m4 from Autoconf Archive.

10 years agoBuild: Replace obsolete AC_HELP_STRING with AS_HELP_STRING.
Lasse Collin [Mon, 17 Nov 2014 16:52:21 +0000 (18:52 +0200)]
Build: Replace obsolete AC_HELP_STRING with AS_HELP_STRING.

10 years agoBuild: Fix Autoconf warnings about escaped backquotes.
Lasse Collin [Mon, 17 Nov 2014 16:43:19 +0000 (18:43 +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.

10 years agoxzdiff: Use mkdir if mktemp isn't available.
Lasse Collin [Mon, 10 Nov 2014 16:54:40 +0000 (18:54 +0200)]
xzdiff: Use mkdir if mktemp isn't available.

10 years agoxzdiff: Create a temporary directory to hold a temporary file.
Lasse Collin [Mon, 10 Nov 2014 16:45:01 +0000 (18:45 +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.

10 years agoliblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage().
Lasse Collin [Mon, 10 Nov 2014 13:38:47 +0000 (15:38 +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.

10 years agoUpdate THANKS.
Lasse Collin [Mon, 10 Nov 2014 12:49:55 +0000 (14:49 +0200)]
Update THANKS.

10 years agoUpdate .gitignore files.
Lasse Collin [Wed, 29 Oct 2014 19:28:25 +0000 (21:28 +0200)]
Update .gitignore files.

10 years agoBuild: Prepare to support Automake's subdir-objects.
Lasse Collin [Wed, 29 Oct 2014 19:15:35 +0000 (21:15 +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.

10 years agoTranslations: Update the Italian translation.
Lasse Collin [Fri, 24 Oct 2014 17:09:29 +0000 (20:09 +0300)]
Translations: Update the Italian translation.

Thanks to Milo Casagrande.

10 years agoTranslations: Update the Polish translation.
Lasse Collin [Sat, 18 Oct 2014 15:51:45 +0000 (18:51 +0300)]
Translations: Update the Polish translation.

Thanks to Jakub Bogusz.

10 years agol10n: de.po: Change translator email address.
Andre Noll [Tue, 14 Oct 2014 15:30:30 +0000 (17: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 <maan@tuebingen.mpg.de>
10 years agol10n: de.po: Update German translation
Andre Noll [Tue, 14 Oct 2014 15:30:29 +0000 (17:30 +0200)]
l10n: de.po: Update German translation

Signed-off-by: Andre Noll <maan@systemlinux.org>
10 years agol10n: de.po: Fix typo: Schießen -> Schließen.
Andre Noll [Tue, 14 Oct 2014 15:30:28 +0000 (17:30 +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 <maan@systemlinux.org>
10 years agoUpdate THANKS.
Lasse Collin [Thu, 9 Oct 2014 16:42:26 +0000 (19:42 +0300)]
Update THANKS.

10 years agoAdd support for AmigaOS/AROS to tuklib_physmem().
Lasse Collin [Thu, 9 Oct 2014 16:41:51 +0000 (19:41 +0300)]
Add support for AmigaOS/AROS to tuklib_physmem().

Thanks to Fredrik Wikstrom.

10 years agoxzgrep: Avoid passing both -q and -l to grep.
Lasse Collin [Thu, 9 Oct 2014 15:42:14 +0000 (18:42 +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.

10 years agol10n: vi.po: Update Vietnamese translation
Trần Ngọc Quân [Thu, 25 Sep 2014 02:22:45 +0000 (09:22 +0700)]
l10n: vi.po: Update Vietnamese translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
10 years agoBuild: Detect supported compiler warning flags better.
Lasse Collin [Thu, 25 Sep 2014 15:38:48 +0000 (18:38 +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.

10 years agoUpdate NEWS for 5.0.7.
Lasse Collin [Sat, 20 Sep 2014 18:01:21 +0000 (21:01 +0300)]
Update NEWS for 5.0.7.

10 years agoliblzma: Fix a portability problem in Makefile.am.
Lasse Collin [Sat, 20 Sep 2014 16:42:56 +0000 (19:42 +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.

10 years agoBump the version number to 5.1.4beta. v5.1.4beta
Lasse Collin [Sun, 14 Sep 2014 18:54:09 +0000 (21:54 +0300)]
Bump the version number to 5.1.4beta.

10 years agoUpdate NEWS for 5.0.6 and 5.1.4beta.
Lasse Collin [Sun, 14 Sep 2014 18:50:13 +0000 (21:50 +0300)]
Update NEWS for 5.0.6 and 5.1.4beta.

10 years agoUpdate TODO.
Lasse Collin [Sun, 14 Sep 2014 18:02:41 +0000 (21:02 +0300)]
Update TODO.

10 years agoxz: Add --ignore-check.
Lasse Collin [Tue, 5 Aug 2014 19:32:36 +0000 (22:32 +0300)]
xz: Add --ignore-check.

10 years agoliblzma: Add support for LZMA_IGNORE_CHECK.
Lasse Collin [Tue, 5 Aug 2014 19:15:07 +0000 (22:15 +0300)]
liblzma: Add support for LZMA_IGNORE_CHECK.

10 years agoliblzma: Add support for lzma_block.ignore_check.
Lasse Collin [Tue, 5 Aug 2014 19:03:30 +0000 (22:03 +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.

10 years agoliblzma: Use lzma_memcmplen() in the BT3 match finder.
Lasse Collin [Mon, 4 Aug 2014 16:25:58 +0000 (19:25 +0300)]
liblzma: Use lzma_memcmplen() in the BT3 match finder.

I had missed this when writing the commit
5db75054e900fa06ef5ade5f2c21dffdd5d16141.

Thanks to Jun I Jin.

10 years agoUpdate THANKS.
Lasse Collin [Sun, 3 Aug 2014 21:25:44 +0000 (00:25 +0300)]
Update THANKS.

10 years agoliblzma: SHA-256: Optimize the Maj macro slightly.
Lasse Collin [Sun, 3 Aug 2014 18:32:25 +0000 (21:32 +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
<http://www.hackersdelight.org/corres.txt>.

10 years agoliblzma: SHA-256: Optimize the way rotations are done.
Lasse Collin [Sun, 3 Aug 2014 18:08:12 +0000 (21:08 +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.

10 years agoliblzma: SHA-256: Remove the GCC #pragma that became unneeded.
Lasse Collin [Sun, 3 Aug 2014 17:38:13 +0000 (20:38 +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.

10 years agoliblzma: SHA-256: Unroll a little more.
Lasse Collin [Sun, 3 Aug 2014 17:33:38 +0000 (20:33 +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.

10 years agoliblzma: SHA-256: Do the byteswapping without a temporary buffer.
Lasse Collin [Sun, 3 Aug 2014 16:56:43 +0000 (19:56 +0300)]
liblzma: SHA-256: Do the byteswapping without a temporary buffer.

10 years agoliblzma: Use lzma_memcmplen() in normal mode of LZMA.
Lasse Collin [Fri, 25 Jul 2014 19:38:28 +0000 (22:38 +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".

10 years agoliblzma: Simplify LZMA fast mode code by using memcmp().
Lasse Collin [Fri, 25 Jul 2014 19:30:38 +0000 (22:30 +0300)]
liblzma: Simplify LZMA fast mode code by using memcmp().

10 years agoliblzma: Use lzma_memcmplen() in fast mode of LZMA.
Lasse Collin [Fri, 25 Jul 2014 19:29:49 +0000 (22:29 +0300)]
liblzma: Use lzma_memcmplen() in fast mode of LZMA.

10 years agoUpdate THANKS.
Lasse Collin [Fri, 25 Jul 2014 18:16:23 +0000 (21:16 +0300)]
Update THANKS.

10 years agoliblzma: Use lzma_memcmplen() in the match finders.
Lasse Collin [Fri, 25 Jul 2014 18:15:07 +0000 (21:15 +0300)]
liblzma: Use lzma_memcmplen() in the match finders.

This doesn't change the match finder output.

10 years agoliblzma: Add lzma_memcmplen() for fast memory comparison.
Lasse Collin [Fri, 25 Jul 2014 17:57:20 +0000 (20:57 +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.

10 years agoUpdate THANKS.
Lasse Collin [Sat, 12 Jul 2014 18:10:09 +0000 (21:10 +0300)]
Update THANKS.

10 years agoTranslations: Add Vietnamese translation.
Lasse Collin [Sat, 12 Jul 2014 17:06:08 +0000 (20:06 +0300)]
Translations: Add Vietnamese translation.

Thanks to Trần Ngọc Quân.

10 years agoxz: Update the help message of a few options.
Lasse Collin [Sun, 29 Jun 2014 17:54:14 +0000 (20:54 +0300)]
xz: Update the help message of a few options.

Updated: --threads, --block-size, and --block-list
Added: --flush-timeout

10 years agoxz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores().
Lasse Collin [Wed, 18 Jun 2014 19:07:06 +0000 (22:07 +0300)]
xz: Use lzma_cputhreads() instead of own copy of tuklib_cpucores().

10 years agoliblzma: Add lzma_cputhreads().
Lasse Collin [Wed, 18 Jun 2014 19:04:24 +0000 (22:04 +0300)]
liblzma: Add lzma_cputhreads().

10 years agoxz: Check for filter chain compatibility for --flush-timeout.
Lasse Collin [Wed, 18 Jun 2014 16:11:52 +0000 (19:11 +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.

10 years agoxzgrep: List xzgrep_expected_output in tests/Makefile.am.
Lasse Collin [Fri, 13 Jun 2014 16:21:54 +0000 (19:21 +0300)]
xzgrep: List xzgrep_expected_output in tests/Makefile.am.

10 years agoxzgrep: Improve the test script.
Lasse Collin [Fri, 13 Jun 2014 15:58:22 +0000 (18:58 +0300)]
xzgrep: Improve the test script.

Now it should be close to the functionality of the original
version by Pavel Raiskup.

10 years agoxzgrep: Add a test for the previous fix.
Lasse Collin [Wed, 11 Jun 2014 18:03:25 +0000 (21:03 +0300)]
xzgrep: Add a test for the previous fix.

This is a simplified version of Pavel Raiskup's
original patch.

10 years agoxzgrep: exit 0 when at least one file matches.
Lasse Collin [Wed, 11 Jun 2014 17:43:28 +0000 (20:43 +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.

10 years agoxz: Force single-threaded mode when --flush-timeout is used.
Lasse Collin [Mon, 9 Jun 2014 18:21:24 +0000 (21:21 +0300)]
xz: Force single-threaded mode when --flush-timeout is used.

10 years agoUpdate THANKS.
Lasse Collin [Sun, 25 May 2014 19:05:39 +0000 (22:05 +0300)]
Update THANKS.

10 years agoliblzma: Use lzma_alloc_zero() in LZ encoder initialization.
Lasse Collin [Sun, 25 May 2014 18:45:56 +0000 (21:45 +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.

10 years agoliblzma: Add the internal function lzma_alloc_zero().
Lasse Collin [Sun, 25 May 2014 16:25:57 +0000 (19:25 +0300)]
liblzma: Add the internal function lzma_alloc_zero().

10 years agoxz: Fix uint64_t vs. size_t which broke 32-bit build.
Lasse Collin [Thu, 8 May 2014 15:03:09 +0000 (18:03 +0300)]
xz: Fix uint64_t vs. size_t which broke 32-bit build.

Thanks to Christian Hesse.

10 years agoDocs: Update comments to refer to lzma/lzma12.h in example programs.
Lasse Collin [Sun, 4 May 2014 08:09:11 +0000 (11:09 +0300)]
Docs: Update comments to refer to lzma/lzma12.h in example programs.

10 years agoliblzma: Rename the private API header lzma/lzma.h to lzma/lzma12.h.
Lasse Collin [Sun, 4 May 2014 08:07:17 +0000 (11:07 +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.

10 years agoBuild: Fix the combination of --disable-xzdec --enable-lzmadec.
Lasse Collin [Fri, 25 Apr 2014 14:53:42 +0000 (17:53 +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.

10 years agoBuild: Add --disable-doc to configure.
Lasse Collin [Fri, 25 Apr 2014 14:44:26 +0000 (17:44 +0300)]
Build: Add --disable-doc to configure.

10 years agoUpdate INSTALL.
Lasse Collin [Thu, 24 Apr 2014 15:06:24 +0000 (18:06 +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".

10 years agoxz: Rename a variable to avoid a namespace collision on Solaris.
Lasse Collin [Wed, 9 Apr 2014 14:26:10 +0000 (17:26 +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.

10 years agoDocs: Add example program for threaded encoding.
Lasse Collin [Wed, 29 Jan 2014 18:19:41 +0000 (20:19 +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.

10 years agoliblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt().
Lasse Collin [Wed, 29 Jan 2014 18:13:51 +0000 (20:13 +0200)]
liblzma: Fix lzma_mt.preset not working with lzma_stream_encoder_mt().

It read the filter chain from a wrong variable.

10 years agoliblzma: Fix typo in a comment.
Lasse Collin [Mon, 20 Jan 2014 09:20:40 +0000 (11:20 +0200)]
liblzma: Fix typo in a comment.

11 years agoWindows: Add config.h for building liblzma with MSVC 2013.
Lasse Collin [Sun, 12 Jan 2014 17:38:43 +0000 (19:38 +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.

11 years agoxz: Fix a comment.
Lasse Collin [Sun, 12 Jan 2014 15:41:14 +0000 (17:41 +0200)]
xz: Fix a comment.

11 years agoWindows: Add MSVC defines for inline and restrict keywords.
Lasse Collin [Sun, 12 Jan 2014 15:04:33 +0000 (17:04 +0200)]
Windows: Add MSVC defines for inline and restrict keywords.

11 years agoliblzma: Avoid C99 compound literal arrays.
Lasse Collin [Sun, 12 Jan 2014 14:44:52 +0000 (16:44 +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.

11 years agoliblzma: Remove a useless C99ism from sha256.c.
Lasse Collin [Sun, 12 Jan 2014 10:50:30 +0000 (12:50 +0200)]
liblzma: Remove a useless C99ism from sha256.c.

Unsurprisingly it makes no difference in compiled output.

11 years agoxz: Fix use of wrong variable.
Lasse Collin [Sun, 12 Jan 2014 10:17:08 +0000 (12:17 +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.

11 years agoFix typos in comments.
Lasse Collin [Sun, 12 Jan 2014 10:11:36 +0000 (12:11 +0200)]
Fix typos in comments.

11 years agoUpdate THANKS.
Lasse Collin [Tue, 26 Nov 2013 16:20:16 +0000 (18:20 +0200)]
Update THANKS.

11 years agoliblzma: Document the need for block->check for lzma_block_header_decode().
Lasse Collin [Tue, 26 Nov 2013 16:20:09 +0000 (18:20 +0200)]
liblzma: Document the need for block->check for lzma_block_header_decode().

Thanks to Tomer Chachamu.

11 years agoxz: Update the man page about --block-size and --block-list.
Lasse Collin [Tue, 12 Nov 2013 14:38:57 +0000 (16:38 +0200)]
xz: Update the man page about --block-size and --block-list.

11 years agoUpdate THANKS.
Lasse Collin [Tue, 12 Nov 2013 14:30:53 +0000 (16:30 +0200)]
Update THANKS.

11 years agoxz: Make --block-list and --block-size work together in single-threaded.
Lasse Collin [Tue, 12 Nov 2013 14:29:48 +0000 (16:29 +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.

11 years agoBump the version number to 5.1.3alpha. v5.1.3alpha
Lasse Collin [Sat, 26 Oct 2013 10:26:14 +0000 (13:26 +0300)]
Bump the version number to 5.1.3alpha.

11 years agoUpdate NEWS for 5.1.3alpha.
Lasse Collin [Sat, 26 Oct 2013 10:25:02 +0000 (13:25 +0300)]
Update NEWS for 5.1.3alpha.

11 years agoUpdate TODO.
Lasse Collin [Sat, 26 Oct 2013 09:47:04 +0000 (12:47 +0300)]
Update TODO.

11 years agoxz: Document behavior of --block-list with threads.
Lasse Collin [Fri, 25 Oct 2013 19:41:28 +0000 (22:41 +0300)]
xz: Document behavior of --block-list with threads.

This needs to be updated before 5.2.0.

11 years agoxz: Document --flush-timeout=TIMEOUT on the man page.
Lasse Collin [Tue, 22 Oct 2013 17:03:12 +0000 (20:03 +0300)]
xz: Document --flush-timeout=TIMEOUT on the man page.

11 years agoxz: Take advantage of LZMA_FULL_BARRIER with --block-list.
Lasse Collin [Tue, 22 Oct 2013 16:51:55 +0000 (19:51 +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.

11 years agoliblzma: Support LZMA_FULL_FLUSH and _BARRIER in threaded encoder.
Lasse Collin [Wed, 2 Oct 2013 17:05:23 +0000 (20:05 +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.

11 years agoliblzma: Add LZMA_FULL_BARRIER support to single-threaded encoder.
Lasse Collin [Wed, 2 Oct 2013 09:55:11 +0000 (12:55 +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.

11 years agoliblzma: Add block_buffer_encoder.h into Makefile.inc.
Lasse Collin [Tue, 17 Sep 2013 08:57:51 +0000 (11:57 +0300)]
liblzma: Add block_buffer_encoder.h into Makefile.inc.

This should have been in b465da5988dd59ad98fda10c2e4ea13d0b9c73bc.

11 years agoxz: Add a missing test for TUKLIB_DOSLIKE.
Lasse Collin [Tue, 17 Sep 2013 08:55:38 +0000 (11:55 +0300)]
xz: Add a missing test for TUKLIB_DOSLIKE.

11 years agoAdd native threading support on Windows.
Lasse Collin [Tue, 17 Sep 2013 08:52:28 +0000 (11:52 +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.

11 years agoBuild: Remove a comment about Automake 1.10 from configure.ac.
Lasse Collin [Wed, 11 Sep 2013 11:40:35 +0000 (14:40 +0300)]
Build: Remove a comment about Automake 1.10 from configure.ac.

The previous commit supports silent rules and that requires
Automake 1.11.

11 years agoBuild: Create liblzma.pc in a src/liblzma/Makefile.am.
Lasse Collin [Mon, 9 Sep 2013 17:37:03 +0000 (20:37 +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.

11 years agoFix the previous commit which broke the build.
Lasse Collin [Sun, 4 Aug 2013 12:24:09 +0000 (15:24 +0300)]
Fix the previous commit which broke the build.

Apparently I didn't even compile-test the previous commit.

Thanks to Christian Hesse.