]> granicus.if.org Git - xz/log
xz
5 years agoUpdate THANKS. v5.2
Lasse Collin [Wed, 1 May 2019 13:52:36 +0000 (16:52 +0300)]
Update THANKS.

5 years agoWindows: Update VS version in windows/vs2019/config.h.
Lasse Collin [Wed, 1 May 2019 13:43:16 +0000 (16:43 +0300)]
Windows: Update VS version in windows/vs2019/config.h.

5 years agoWindows: Upgrade solution itself
Julien Marrec [Thu, 25 Apr 2019 15:44:06 +0000 (17:44 +0200)]
Windows: Upgrade solution itself

5 years agoWindows: Upgrade solution with VS2019
Julien Marrec [Thu, 25 Apr 2019 15:40:24 +0000 (17:40 +0200)]
Windows: Upgrade solution with VS2019

5 years agoWindows: Duplicate windows/vs2017 before upgrading
Julien Marrec [Thu, 25 Apr 2019 15:39:32 +0000 (17:39 +0200)]
Windows: Duplicate windows/vs2017 before upgrading

5 years agoWindows/VS2017: Omit WindowsTargetPlatformVersion from project files.
Lasse Collin [Sun, 13 Jan 2019 15:29:23 +0000 (17:29 +0200)]
Windows/VS2017: Omit WindowsTargetPlatformVersion from project files.

I understood that if a WTPV is specified, it's often wrong
because different VS installations have different SDK version
installed. Omitting the WTPV tag makes VS2017 default to
Windows SDK 8.1 which often is also missing, so in any case
people may need to specify the WTPV before building. But some
day in the future a missing WTPV tag will start to default to
the latest installed SDK which sounds reasonable:

https://developercommunity.visualstudio.com/content/problem/140294/windowstargetplatformversion-makes-it-impossible-t.html

Thanks to "dom".

6 years agoBump version and soname for 5.2.4. v5.2.4
Lasse Collin [Sun, 29 Apr 2018 16:00:06 +0000 (19:00 +0300)]
Bump version and soname for 5.2.4.

6 years agoextra/scanlzma: Fix compiler warnings.
Lasse Collin [Sun, 29 Apr 2018 15:48:00 +0000 (18:48 +0300)]
extra/scanlzma: Fix compiler warnings.

6 years agoAdd NEWS for 5.2.4.
Lasse Collin [Sun, 29 Apr 2018 15:15:37 +0000 (18:15 +0300)]
Add NEWS for 5.2.4.

6 years agoUpdate THANKS.
Lasse Collin [Tue, 6 Feb 2018 17:36:30 +0000 (19:36 +0200)]
Update THANKS.

6 years agonothrow: use noexcept for C++11 and newer
Ben Boeckel [Mon, 29 Jan 2018 18:58:18 +0000 (13:58 -0500)]
nothrow: use noexcept for C++11 and newer

In C++11, the `throw()` specifier is deprecated and `noexcept` is
preffered instead.

6 years agoliblzma: Remove incorrect #ifdef from range_common.h.
Lasse Collin [Tue, 6 Feb 2018 16:02:48 +0000 (18:02 +0200)]
liblzma: Remove incorrect #ifdef from range_common.h.

In most cases it was harmless but it could affect some
custom build systems.

Thanks to Pippijn van Steenhoven.

6 years agoUpdate THANKS.
Lasse Collin [Wed, 10 Jan 2018 20:10:39 +0000 (22:10 +0200)]
Update THANKS.

6 years agotuklib_integer: New Intel C compiler needs immintrin.h.
Lasse Collin [Wed, 10 Jan 2018 19:54:27 +0000 (21:54 +0200)]
tuklib_integer: New Intel C compiler needs immintrin.h.

Thanks to Melanie Blower (Intel) for the patch.

6 years agoUpdate THANKS.
Lasse Collin [Sun, 24 Sep 2017 17:04:24 +0000 (20:04 +0300)]
Update THANKS.

6 years agoWindows: Fix paths in VS project files.
Lasse Collin [Sat, 16 Sep 2017 17:36:20 +0000 (20:36 +0300)]
Windows: Fix paths in VS project files.

Some paths use slashes instead of backslashes as directory
separators... now it should work (I tested VS2013 version).

6 years agoWindows: Add project files for VS2017.
Lasse Collin [Sat, 16 Sep 2017 09:54:23 +0000 (12:54 +0300)]
Windows: Add project files for VS2017.

These files match the v5.2 branch (no file info decoder).

6 years agoWindows: Move VS2013 files into windows/vs2013 directory.
Lasse Collin [Sat, 16 Sep 2017 09:39:43 +0000 (12:39 +0300)]
Windows: Move VS2013 files into windows/vs2013 directory.

6 years agoFix or hide warnings from GCC 7's -Wimplicit-fallthrough.
Lasse Collin [Mon, 14 Aug 2017 17:08:33 +0000 (20:08 +0300)]
Fix or hide warnings from GCC 7's -Wimplicit-fallthrough.

6 years agoDocs: Fix a typo in a comment in doc/examples/02_decompress.c.
Alexey Tourbin [Tue, 16 May 2017 20:56:35 +0000 (23:56 +0300)]
Docs: Fix a typo in a comment in doc/examples/02_decompress.c.

6 years agoxz: Fix "xz --list --robot missing_or_bad_file.xz".
Lasse Collin [Tue, 23 May 2017 15:34:43 +0000 (18:34 +0300)]
xz: Fix "xz --list --robot missing_or_bad_file.xz".

It ended up printing an uninitialized char-array when trying to
print the check names (column 7) on the "totals" line.

This also changes the column 12 (minimum xz version) to
50000002 (xz 5.0.0) instead of 0 when there are no valid
input files.

Thanks to kidmin for the bug report.

6 years agoBuild: Omit pre-5.0.0 entries from the generated ChangeLog.
Lasse Collin [Mon, 24 Apr 2017 16:48:47 +0000 (19:48 +0300)]
Build: Omit pre-5.0.0 entries from the generated ChangeLog.

It makes ChangeLog significantly smaller.

6 years agoUpdate the Git repository URL to HTTPS in ChangeLog.
Lasse Collin [Mon, 24 Apr 2017 16:30:22 +0000 (19:30 +0300)]
Update the Git repository URL to HTTPS in ChangeLog.

6 years agoUpdate the home page URLs to HTTPS.
Lasse Collin [Wed, 19 Apr 2017 19:17:35 +0000 (22:17 +0300)]
Update the home page URLs to HTTPS.

7 years agoxz: Use POSIX_FADV_RANDOM for in "xz --list" mode.
Lasse Collin [Thu, 30 Mar 2017 19:01:54 +0000 (22:01 +0300)]
xz: Use POSIX_FADV_RANDOM for in "xz --list" mode.

xz --list is random access so POSIX_FADV_SEQUENTIAL was clearly
wrong.

7 years agoliblzma: Fix lzma_memlimit_set(strm, 0).
Lasse Collin [Thu, 30 Mar 2017 16:47:45 +0000 (19:47 +0300)]
liblzma: Fix lzma_memlimit_set(strm, 0).

The 0 got treated specially in a buggy way and as a result
the function did nothing. The API doc said that 0 was supposed
to return LZMA_PROG_ERROR but it didn't.

Now 0 is treated as if 1 had been specified. This is done because
0 is already used to indicate an error from lzma_memlimit_get()
and lzma_memusage().

In addition, lzma_memlimit_set() no longer checks that the new
limit is at least LZMA_MEMUSAGE_BASE. It's counter-productive
for the Index decoder and was actually needed only by the
auto decoder. Auto decoder has now been modified to check for
LZMA_MEMUSAGE_BASE.

7 years agoliblzma: Similar memlimit fix for stream_, alone_, and auto_decoder.
Lasse Collin [Thu, 30 Mar 2017 16:16:55 +0000 (19:16 +0300)]
liblzma: Similar memlimit fix for stream_, alone_, and auto_decoder.

7 years agoliblzma: Fix handling of memlimit == 0 in lzma_index_decoder().
Lasse Collin [Thu, 30 Mar 2017 15:58:18 +0000 (18:58 +0300)]
liblzma: Fix handling of memlimit == 0 in lzma_index_decoder().

It returned LZMA_PROG_ERROR, which was done to avoid zero as
the limit (because it's a special value elsewhere), but using
LZMA_PROG_ERROR is simply inconvenient and can cause bugs.

The fix/workaround is to treat 0 as if it were 1 byte. It's
effectively the same thing. The only weird consequence is
that then lzma_memlimit_get() will return 1 even when 0 was
specified as the limit.

This fixes a very rare corner case in xz --list where a specific
memory usage limit and a multi-stream file could print the
error message "Internal error (bug)" instead of saying that
the memory usage limit is too low.

7 years agoBump version and soname for 5.2.3. v5.2.3
Lasse Collin [Fri, 30 Dec 2016 11:26:36 +0000 (13:26 +0200)]
Bump version and soname for 5.2.3.

7 years agoUpdate NEWS for 5.2.3.
Lasse Collin [Fri, 30 Dec 2016 11:25:10 +0000 (13:25 +0200)]
Update NEWS for 5.2.3.

7 years agoxz: Fix the Capsicum rights on user_abort_pipe.
Lasse Collin [Wed, 1 Apr 2015 11:45:25 +0000 (14:45 +0300)]
xz: Fix the Capsicum rights on user_abort_pipe.

7 years agoMention potential sandboxing bugs in INSTALL.
Lasse Collin [Wed, 28 Dec 2016 19:05:22 +0000 (21:05 +0200)]
Mention potential sandboxing bugs in INSTALL.

7 years agoliblzma: Avoid multiple definitions of lzma_coder structures.
Lasse Collin [Mon, 21 Nov 2016 18:24:50 +0000 (20:24 +0200)]
liblzma: Avoid multiple definitions of lzma_coder structures.

Only one definition was visible in a translation unit.
It avoided a few casts and temp variables but seems that
this hack doesn't work with link-time optimizations in compilers
as it's not C99/C11 compliant.

Fixes:
http://www.mail-archive.com/xz-devel@tukaani.org/msg00279.html

7 years agoDocument --enable-sandbox configure option in INSTALL.
Lasse Collin [Mon, 26 Dec 2016 18:50:25 +0000 (20:50 +0200)]
Document --enable-sandbox configure option in INSTALL.

7 years agoxz: Add support for sandboxing with Capsicum (disabled by default).
Lasse Collin [Tue, 31 Mar 2015 19:19:34 +0000 (22:19 +0300)]
xz: Add support for sandboxing with Capsicum (disabled by default).

In the v5.2 branch this feature is considered experimental
and thus disabled by default.

The sandboxing is used conditionally as described in main.c.
This isn't optimal but it was much easier to implement than
a full sandboxing solution and it still covers the most common
use cases where xz is writing to standard output. This should
have practically no effect on performance even with small files
as fork() isn't needed.

C and locale libraries can open files as needed. This has been
fine in the past, but it's a problem with things like Capsicum.
io_sandbox_enter() tries to ensure that various locale-related
files have been loaded before cap_enter() is called, but it's
possible that there are other similar problems which haven't
been seen yet.

Currently Capsicum is available on FreeBSD 10 and later
and there is a port to Linux too.

Thanks to Loganaden Velvindron for help.

7 years agoFix bugs and otherwise improve ax_check_capsicum.m4.
Lasse Collin [Tue, 31 Mar 2015 18:12:30 +0000 (21:12 +0300)]
Fix bugs and otherwise improve ax_check_capsicum.m4.

AU_ALIAS was removed because the new version is incompatible
with the old version.

It no longer checks for <sys/capability.h> separately.
It's enough to test for it as part of AC_CHECK_DECL.
The defines HAVE_CAPSICUM_SYS_CAPSICUM_H and
HAVE_CAPSICUM_SYS_CAPABILITY_H were removed as unneeded.
HAVE_SYS_CAPSICUM_H from AC_CHECK_HEADERS is enough.

It no longer does a useless search for the Capsicum library
if the header wasn't found.

Fixed a bug in ACTION-IF-FOUND (the first argument). Specifying
the argument omitted the default action but the given action
wasn't used instead.

AC_DEFINE([HAVE_CAPSICUM]) is now always called when Capsicum
support is found. Previously it was part of the default
ACTION-IF-FOUND which a custom action would override. Now
the default action only prepends ${CAPSICUM_LIB} to LIBS.

The documentation was updated.

Since there as no serial number, "#serial 2" was added.

7 years agoAdd m4/ax_check_capsicum.m4 for detecting Capsicum support.
Lasse Collin [Tue, 31 Mar 2015 16:20:24 +0000 (19:20 +0300)]
Add m4/ax_check_capsicum.m4 for detecting Capsicum support.

The file was loaded from this web page:
https://github.com/google/capsicum-test/blob/dev/autoconf/m4/ax_check_capsicum.m4

Thanks to Loganaden Velvindron for pointing it out for me.

7 years agoliblzma: Fix a memory leak in error path of lzma_index_dup().
Lasse Collin [Mon, 12 Oct 2015 17:29:09 +0000 (20:29 +0300)]
liblzma: Fix a memory leak in error path of lzma_index_dup().

lzma_index_dup() calls index_dup_stream() which, in case of
an error, calls index_stream_end() to free memory allocated
by index_stream_init(). However, it illogically didn't
actually free the memory. To make it logical, the tree
handling code was modified a bit in addition to changing
index_stream_end().

Thanks to Evan Nemerson for the bug report.

7 years agoUpdate THANKS.
Lasse Collin [Mon, 24 Oct 2016 15:53:25 +0000 (18:53 +0300)]
Update THANKS.

7 years agotuklib_cpucores: Add support for sched_getaffinity().
Lasse Collin [Mon, 24 Oct 2016 15:51:36 +0000 (18:51 +0300)]
tuklib_cpucores: Add support for sched_getaffinity().

It's available in glibc (GNU/Linux, GNU/kFreeBSD). It's better
than sysconf(_SC_NPROCESSORS_ONLN) because sched_getaffinity()
gives the number of cores available to the process instead of
the total number of cores online.

As a side effect, this commit fixes a bug on GNU/kFreeBSD where
configure would detect the FreeBSD-specific cpuset_getaffinity()
but it wouldn't actually work because on GNU/kFreeBSD it requires
using -lfreebsd-glue when linking. Now the glibc-specific function
will be used instead.

Thanks to Sebastian Andrzej Siewior for the original patch
and testing.

7 years agoxz: Fix copying of timestamps on Windows.
Lasse Collin [Thu, 30 Jun 2016 17:27:36 +0000 (20:27 +0300)]
xz: Fix copying of timestamps on Windows.

xz used to call utime() on Windows, but its result gets lost
on close(). Using _futime() seems to work.

Thanks to Martok for reporting the bug:
http://www.mail-archive.com/xz-devel@tukaani.org/msg00261.html

7 years agoxz: Silence warnings from -Wlogical-op.
Lasse Collin [Thu, 16 Jun 2016 19:46:02 +0000 (22:46 +0300)]
xz: Silence warnings from -Wlogical-op.

Thanks to Evan Nemerson.

7 years agoBuild: Fix = to += for xz_SOURCES in src/xz/Makefile.am.
Lasse Collin [Sun, 10 Apr 2016 17:55:49 +0000 (20:55 +0300)]
Build: Fix = to += for xz_SOURCES in src/xz/Makefile.am.

Thanks to Christian Kujau.

7 years agoBuild: Bump GNU Gettext version requirement to 0.19.
Lasse Collin [Sun, 10 Apr 2016 17:54:17 +0000 (20:54 +0300)]
Build: Bump GNU Gettext version requirement to 0.19.

It silences a few warnings and most people probably have
0.19 even on stable distributions.

Thanks to Christian Kujau.

7 years agoliblzma: Disable external SHA-256 by default.
Lasse Collin [Sun, 13 Mar 2016 18:21:49 +0000 (20:21 +0200)]
liblzma: Disable external SHA-256 by default.

This is the sane thing to do. The conflict with OpenSSL
on some OSes and especially that the OS-provided versions
can be significantly slower makes it clear that it was
a mistake to have the external SHA-256 support enabled by
default.

Those who want it can now pass --enable-external-sha256 to
configure. INSTALL was updated with notes about OSes where
this can be a bad idea.

The SHA-256 detection code in configure.ac had some bugs that
could lead to a build failure in some situations. These were
fixed, although it doesn't matter that much now that the
external SHA-256 is disabled by default.

MINIX >= 3.2.0 uses NetBSD's libc and thus has SHA256_Init
in libc instead of libutil. Support for the libutil version
was removed.

7 years agoUpdate THANKS.
Lasse Collin [Thu, 10 Mar 2016 18:27:05 +0000 (20:27 +0200)]
Update THANKS.

7 years agoBuild: Avoid SHA256_Init on FreeBSD and MINIX 3.
Lasse Collin [Thu, 10 Mar 2016 18:26:49 +0000 (20:26 +0200)]
Build: Avoid SHA256_Init on FreeBSD and MINIX 3.

On FreeBSD 10 and older, SHA256_Init from libmd conflicts
with libcrypto from OpenSSL. The OpenSSL version has
different sizeof(SHA256_CTX) and it can cause weird
problems if wrong SHA256_Init gets used.

Looking at the source, MINIX 3 seems to have a similar issue but
I'm not sure. To be safe, I disabled SHA256_Init on MINIX 3 too.

NetBSD has SHA256_Init in libc and they had a similar problem,
but they already fixed it in 2009.

Thanks to Jim Wilcoxson for the bug report that helped
in finding the problem.

7 years agotuklib_physmem: Hopefully silence a warning on Windows.
Lasse Collin [Sun, 8 Nov 2015 18:16:10 +0000 (20:16 +0200)]
tuklib_physmem: Hopefully silence a warning on Windows.

7 years agoUpdate THANKS.
Lasse Collin [Wed, 4 Nov 2015 21:17:43 +0000 (23:17 +0200)]
Update THANKS.

7 years agoliblzma: Make Valgrind happier with optimized (gcc -O2) liblzma.
Lasse Collin [Wed, 4 Nov 2015 21:14:00 +0000 (23:14 +0200)]
liblzma: Make Valgrind happier with optimized (gcc -O2) liblzma.

When optimizing, GCC can reorder code so that an uninitialized
value gets used in a comparison, which makes Valgrind unhappy.
It doesn't happen when compiled with -O0, which I tend to use
when running Valgrind.

Thanks to Rich Prohaska. I remember this being mentioned long
ago by someone else but nothing was done back then.

7 years agoliblzma: Rename lzma_presets.c back to lzma_encoder_presets.c.
Lasse Collin [Tue, 3 Nov 2015 18:55:45 +0000 (20:55 +0200)]
liblzma: Rename lzma_presets.c back to lzma_encoder_presets.c.

It would be too annoying to update other build systems
just because of this.

7 years agoBuild: Disable xzdec, lzmadec, and lzmainfo when they cannot be built.
Lasse Collin [Tue, 3 Nov 2015 18:47:07 +0000 (20:47 +0200)]
Build: Disable xzdec, lzmadec, and lzmainfo when they cannot be built.

They all need decoder support and if that isn't available,
there's no point trying to build them.

7 years agoBuild: Simplify $enable_{encoders,decoders} usage a bit.
Lasse Collin [Tue, 3 Nov 2015 18:35:19 +0000 (20:35 +0200)]
Build: Simplify $enable_{encoders,decoders} usage a bit.

7 years agoWindows/MSVC: Update config.h.
Lasse Collin [Tue, 3 Nov 2015 18:31:31 +0000 (20:31 +0200)]
Windows/MSVC: Update config.h.

7 years agoDOS: Update config.h.
Lasse Collin [Tue, 3 Nov 2015 18:29:58 +0000 (20:29 +0200)]
DOS: Update config.h.

7 years agoxz: Make xz buildable even when encoders or decoders are disabled.
Lasse Collin [Tue, 3 Nov 2015 18:29:33 +0000 (20:29 +0200)]
xz: Make xz buildable even when encoders or decoders are disabled.

The patch is quite long but it's mostly about adding new #ifdefs
to omit code when encoders or decoders have been disabled.

This adds two new #defines to config.h: HAVE_ENCODERS and
HAVE_DECODERS.

7 years agoBuild: Build LZMA1/2 presets also when only decoder is wanted.
Lasse Collin [Tue, 3 Nov 2015 16:06:40 +0000 (18:06 +0200)]
Build: Build LZMA1/2 presets also when only decoder is wanted.

People shouldn't rely on the presets when decoding raw streams,
but xz uses the presets as the starting point for raw decoder
options anyway.

lzma_encocder_presets.c was renamed to lzma_presets.c to
make it clear it's not used solely by the encoder code.

7 years agoBuild: Fix configure to handle LZMA1 dependency with LZMA2.
Lasse Collin [Tue, 3 Nov 2015 15:54:48 +0000 (17:54 +0200)]
Build: Fix configure to handle LZMA1 dependency with LZMA2.

Now it gives an error if LZMA1 encoder/decoder is missing
when LZMA2 encoder/decoder was requested. Even better would
be LZMA2 implicitly enabling LZMA1 but it would need more code.

7 years agoBuild: Don't omit lzma_cputhreads() unless using --disable-threads.
Lasse Collin [Tue, 3 Nov 2015 15:41:54 +0000 (17:41 +0200)]
Build: Don't omit lzma_cputhreads() unless using --disable-threads.

Previously it was omitted if encoders were disabled
with --disable-encoders. It didn't make sense and
it also broke the build.

7 years agoliblzma: Fix a build failure related to external SHA-256 support.
Lasse Collin [Mon, 2 Nov 2015 16:16:51 +0000 (18:16 +0200)]
liblzma: Fix a build failure related to external SHA-256 support.

If an appropriate header and structure were found by configure,
but a library with a usable SHA-256 functions wasn't, the build
failed.

7 years agoxz: Always close the file before trying to delete it.
Lasse Collin [Mon, 2 Nov 2015 13:19:10 +0000 (15:19 +0200)]
xz: Always close the file before trying to delete it.

unlink() can return EBUSY in errno for open files on some
operating systems and file systems.

7 years agoUpdate THANKS.
Lasse Collin [Mon, 12 Oct 2015 18:08:42 +0000 (21:08 +0300)]
Update THANKS.

7 years agoTests: Add tests for the two bugs fixed in index.c.
Lasse Collin [Mon, 12 Oct 2015 18:07:41 +0000 (21:07 +0300)]
Tests: Add tests for the two bugs fixed in index.c.

7 years agoliblzma: Fix lzma_index_dup() for empty Streams.
Lasse Collin [Mon, 12 Oct 2015 17:45:15 +0000 (20:45 +0300)]
liblzma: Fix lzma_index_dup() for empty Streams.

Stream Flags and Stream Padding weren't copied from
empty Streams.

7 years agoliblzma: Add a note to index.c for those using static analyzers.
Lasse Collin [Mon, 12 Oct 2015 17:31:44 +0000 (20:31 +0300)]
liblzma: Add a note to index.c for those using static analyzers.

8 years agoBump version and soname for 5.2.2. v5.2.2
Lasse Collin [Tue, 29 Sep 2015 10:59:35 +0000 (13:59 +0300)]
Bump version and soname for 5.2.2.

8 years agoUpdate NEWS for 5.2.2.
Lasse Collin [Tue, 29 Sep 2015 10:57:28 +0000 (13:57 +0300)]
Update NEWS for 5.2.2.

8 years agoFix typo in German translation.
Andre Noll [Thu, 28 May 2015 13:50:00 +0000 (15:50 +0200)]
Fix typo in German translation.

As pointed out by Robert Pollak, there's a typo in the German
translation of the compression preset option (-0 ... -9) help text.
"The compressor" translates to "der Komprimierer", and the genitive
form is "des Komprimierers". The old word makes no sense at all.

8 years agoUpdate German translation, mostly wrt orthography
Hauke Henningsen [Mon, 17 Aug 2015 02:59:54 +0000 (04:59 +0200)]
Update German translation, mostly wrt orthography

Provide an update of the German translation.
* A lot of compound words were previously written with spaces, while
  German orthography is relatively clear in that the components
  should not be separated.
* When referring to the actual process of (de)compression rather than the
  concept, replace “(De-)Kompression” with “(De-)Komprimierung”.
  Previously, both forms were used in this context and are now used in a
  manner consistent with “Komprimierung” being more likely to refer to
  a process.
* Consistently translate “standard input”/“output”
* Use “Zeichen” instead of false friend “Charakter” for “character”
* Insert commas around relative clauses (as required in German)
* Some other minor corrections
* Capitalize “ß” as “ẞ”
* Consistently start option descriptions in --help with capital letters

Acked-By: Andre Noll <maan@tuebingen.mpg.de>
* Update after msgmerge

8 years agoBuild: Minor Cygwin cleanup.
Lasse Collin [Tue, 11 Aug 2015 10:23:04 +0000 (13:23 +0300)]
Build: Minor Cygwin cleanup.

Some tests used "cygwin*" and some used "cygwin". I changed
them all to use "cygwin". Shouldn't affect anything in practice.

8 years agoBuild: Support building of MSYS2 binaries.
Lasse Collin [Tue, 11 Aug 2015 10:21:52 +0000 (13:21 +0300)]
Build: Support building of MSYS2 binaries.

8 years agoWindows: Define DLL_EXPORT when building liblzma.dll with MSVC.
Lasse Collin [Sun, 9 Aug 2015 18:06:26 +0000 (21:06 +0300)]
Windows: Define DLL_EXPORT when building liblzma.dll with MSVC.

src/liblzma/common/common.h uses it to set __declspec(dllexport)
for the API symbols.

Thanks to Adam Walling.

8 years agoWindows: Omit unneeded header files from MSVC project files.
Lasse Collin [Sun, 9 Aug 2015 18:02:20 +0000 (21:02 +0300)]
Windows: Omit unneeded header files from MSVC project files.

8 years agoliblzma: A MSVC-specific hack isn't needed with MSVC 2013 and newer.
Lasse Collin [Sun, 12 Jul 2015 17:48:19 +0000 (20:48 +0300)]
liblzma: A MSVC-specific hack isn't needed with MSVC 2013 and newer.

8 years agoUpdate THANKS.
Lasse Collin [Fri, 19 Jun 2015 17:38:55 +0000 (20:38 +0300)]
Update THANKS.

8 years agoWindows: Update the docs.
Lasse Collin [Fri, 19 Jun 2015 17:21:30 +0000 (20:21 +0300)]
Windows: Update the docs.

8 years agoWindows: Add MSVC project files for building liblzma.
Lasse Collin [Fri, 19 Jun 2015 14:25:31 +0000 (17:25 +0300)]
Windows: Add MSVC project files for building liblzma.

Thanks to Adam Walling for creating these files.

9 years agoTests: Fix a memory leak in test_bcj_exact_size.
Lasse Collin [Wed, 13 May 2015 17:57:55 +0000 (20:57 +0300)]
Tests: Fix a memory leak in test_bcj_exact_size.

Thanks to Cristian Rodríguez.

9 years agoFix NEWS about threading in 5.2.0.
Lasse Collin [Tue, 12 May 2015 15:08:24 +0000 (18:08 +0300)]
Fix NEWS about threading in 5.2.0.

Thanks to Andy Hochhaus.

9 years agoxz: Document that threaded decompression hasn't been implemented yet.
Lasse Collin [Mon, 11 May 2015 18:26:16 +0000 (21:26 +0300)]
xz: Document that threaded decompression hasn't been implemented yet.

9 years agoUpdate THANKS.
Lasse Collin [Mon, 20 Apr 2015 17:20:29 +0000 (20:20 +0300)]
Update THANKS.

9 years agoRevert "xz: Use pipe2() if available."
Lasse Collin [Mon, 20 Apr 2015 16:59:18 +0000 (19:59 +0300)]
Revert "xz: Use pipe2() if available."

This reverts commit 7a11c4a8e5e15f13d5fa59233b3172e65428efdd.
It is a problem when libc has pipe2() but the kernel is too
old to have pipe2() and thus pipe2() fails. In xz it's pointless
to have a fallback for non-functioning pipe2(); it's better to
avoid pipe2() completely.

Thanks to Michael Fox for the bug report.

9 years agoUpdate THANKS.
Lasse Collin [Sun, 29 Mar 2015 19:14:47 +0000 (22:14 +0300)]
Update THANKS.

9 years agoFix the detection of installed RAM on QNX.
Lasse Collin [Sun, 29 Mar 2015 19:13:48 +0000 (22:13 +0300)]
Fix the detection of installed RAM on QNX.

The earlier version compiled but didn't actually work
since sysconf(_SC_PHYS_PAGES) always fails (or so I was told).

Thanks to Ole André Vadla Ravnås for the patch and testing.

9 years agoFix CPU core count detection on QNX.
Lasse Collin [Fri, 27 Mar 2015 20:39:07 +0000 (22:39 +0200)]
Fix CPU core count detection on QNX.

It tried to use sysctl() on QNX but
  - it broke the build because sysctl() needs -lsocket on QNX;
  - sysctl() doesn't work for detecting the core count on QNX
    even if it compiled.

sysconf() works. An alternative would have been to use
QNX-specific SYSPAGE_ENTRY(num_cpu) from <sys/syspage.h>.

Thanks to Ole André Vadla Ravnås.

9 years agoxz: size_t/uint32_t cleanup in options.c.
Lasse Collin [Sat, 7 Mar 2015 20:05:57 +0000 (22:05 +0200)]
xz: size_t/uint32_t cleanup in options.c.

9 years agoxz: Fix a comment and silence a warning in message.c.
Lasse Collin [Sat, 7 Mar 2015 20:04:23 +0000 (22:04 +0200)]
xz: Fix a comment and silence a warning in message.c.

9 years agoliblzma: Silence more uint32_t vs. size_t warnings.
Lasse Collin [Sat, 7 Mar 2015 20:01:00 +0000 (22:01 +0200)]
liblzma: Silence more uint32_t vs. size_t warnings.

9 years agoxz: Make arg_count an unsigned int to silence a warning.
Lasse Collin [Sat, 7 Mar 2015 17:54:00 +0000 (19:54 +0200)]
xz: Make arg_count an unsigned int to silence a warning.

Actually the value of arg_count cannot exceed INT_MAX
but it's nicer as an unsigned int.

9 years agoliblzma: Fix a warning in index.c.
Lasse Collin [Sat, 7 Mar 2015 17:33:17 +0000 (19:33 +0200)]
liblzma: Fix a warning in index.c.

9 years agoBuild: Fix a CR+LF problem when running autoreconf -fi on OS/2.
Lasse Collin [Thu, 26 Feb 2015 18:46:14 +0000 (20:46 +0200)]
Build: Fix a CR+LF problem when running autoreconf -fi on OS/2.

9 years agoBump version and soname for 5.2.1. v5.2.1
Lasse Collin [Thu, 26 Feb 2015 14:53:44 +0000 (16:53 +0200)]
Bump version and soname for 5.2.1.

9 years agoUpdate NEWS for 5.2.1.
Lasse Collin [Thu, 26 Feb 2015 11:01:09 +0000 (13:01 +0200)]
Update NEWS for 5.2.1.

9 years agoxz: Use pipe2() if available.
Lasse Collin [Sun, 22 Feb 2015 17:38:48 +0000 (19:38 +0200)]
xz: Use pipe2() if available.

9 years agoliblzma: Fix a compression-ratio regression in LZMA1/2 in fast mode.
Lasse Collin [Sat, 21 Feb 2015 21:40:26 +0000 (23:40 +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.

9 years agoxz: Fix the fcntl() usage when creating a pipe for the self-pipe trick.
Lasse Collin [Sat, 21 Feb 2015 21:00:19 +0000 (23:00 +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.

9 years agoUpdate THANKS.
Lasse Collin [Tue, 10 Feb 2015 13:29:34 +0000 (15:29 +0200)]
Update THANKS.

9 years agotuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available.
Lasse Collin [Tue, 10 Feb 2015 13:28:30 +0000 (15:28 +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.

9 years agoxzdiff: Make the mktemp usage compatible with FreeBSD's mktemp.
Lasse Collin [Mon, 9 Feb 2015 20:08:37 +0000 (22:08 +0200)]
xzdiff: Make the mktemp usage compatible with FreeBSD's mktemp.

Thanks to Rui Paulo for the fix.

9 years agoAdd a few casts to tuklib_integer.h to silence possible warnings.
Lasse Collin [Tue, 3 Feb 2015 19:45:53 +0000 (21:45 +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.