]> git.ipfire.org Git - thirdparty/xz.git/log
thirdparty/xz.git
3 months agoWindows: Update windows/build.bash.
Lasse Collin [Sun, 18 Feb 2024 13:15:04 +0000 (15:15 +0200)] 
Windows: Update windows/build.bash.

Support for the old MinGW was dropped. Only MinGW-w64 with GCC
is supported now.

The script now supports also cross-compilation from GNU/Linux
(tests are not run). MSYS2 and also the old MSYS 1.0.11 work
for building on Windows. The i686 and x86_64 toolchains must
be in PATH to build both 32-bit and 64-bit versions.

Parallel builds are done if "nproc" from GNU coreutils is available.

MinGW-w64 runtime copyright information file was renamed from
COPYING-Windows.txt to COPYING.MinGW-w64-runtime.txt which
is the filename used by MinGW-w64 itself. Its existence
is now mandatory, it's checked at the beginning of the script.

The file TODO is no longer copied to the package.

3 months agoTranslations: Update the Romanian man page translations.
Jia Tan [Tue, 20 Feb 2024 15:32:22 +0000 (23:32 +0800)] 
Translations: Update the Romanian man page translations.

3 months agoTranslations: Update the Korean man page translations.
Jia Tan [Tue, 20 Feb 2024 15:30:25 +0000 (23:30 +0800)] 
Translations: Update the Korean man page translations.

3 months agoTranslations: Update the Spanish translation.
Jia Tan [Tue, 20 Feb 2024 13:03:53 +0000 (21:03 +0800)] 
Translations: Update the Spanish translation.

3 months agoTranslations: Update the Romanian translation.
Jia Tan [Tue, 20 Feb 2024 12:18:07 +0000 (20:18 +0800)] 
Translations: Update the Romanian translation.

3 months agoTranslations: Update the Croatian translation.
Jia Tan [Tue, 20 Feb 2024 12:15:50 +0000 (20:15 +0800)] 
Translations: Update the Croatian translation.

3 months agoTranslations: Update the German man page translations.
Jia Tan [Tue, 20 Feb 2024 12:05:44 +0000 (20:05 +0800)] 
Translations: Update the German man page translations.

3 months agoTranslations: Update the German translation.
Jia Tan [Tue, 20 Feb 2024 11:58:25 +0000 (19:58 +0800)] 
Translations: Update the German translation.

3 months agoTranslations: Update the Hungarian translation.
Jia Tan [Tue, 20 Feb 2024 11:56:52 +0000 (19:56 +0800)] 
Translations: Update the Hungarian translation.

3 months agoCMake: Fix building of lzmainfo when translations are enabled.
Lasse Collin [Mon, 19 Feb 2024 14:48:05 +0000 (16:48 +0200)] 
CMake: Fix building of lzmainfo when translations are enabled.

3 months agoCMake: Don't assume that -fvisibility=hidden is supported outside Windows.
Lasse Collin [Mon, 19 Feb 2024 11:38:42 +0000 (13:38 +0200)] 
CMake: Don't assume that -fvisibility=hidden is supported outside Windows.

The original code was good enough for supporting GNU/Linux
and a few others but it wasn't very portable.

CMake doesn't support Solaris Studio's -xldscope=hidden.
If it ever does, things should still work with this commit
as Solaris Studio supports not only its own __global but also
the GNU C __attribute__((visibility("default"))). Support for the
attribute was added in 2007 to Sun Studio 12 compiler version 5.9.

3 months agoCMake: Revise the component splitting.
Lasse Collin [Mon, 19 Feb 2024 10:20:59 +0000 (12:20 +0200)] 
CMake: Revise the component splitting.

3 months agoCMake: Update the main comment and document CMAKE_BUILD_TYPE=Release.
Lasse Collin [Sat, 17 Feb 2024 19:45:07 +0000 (21:45 +0200)] 
CMake: Update the main comment and document CMAKE_BUILD_TYPE=Release.

3 months agoCMake: Use -O2 instead of -O3 in CMAKE_BUILD_TYPE=Release.
Lasse Collin [Sat, 17 Feb 2024 19:27:48 +0000 (21:27 +0200)] 
CMake: Use -O2 instead of -O3 in CMAKE_BUILD_TYPE=Release.

-O3 doesn't seem useful for speed but it makes the code bigger.
CMake makes is difficult for users to simply override the
optimization level: CFLAGS / CMAKE_C_FLAGS aren't helpful because
they go before CMAKE_C_FLAGS_RELEASE. Of course, users can override
CMAKE_C_FLAGS_RELEASE directly but then they have to remember to
add also -DNDEBUG to disable assertions.

This commit changes -O3 to -O2 in CMAKE_C_FLAGS_RELEASE if and only if
CMAKE_C_FLAGS_RELEASE cache variable doesn't already exist. So if
a custom value is passed on the command line (or reconfiguring an
already-configured build), the cache variable won't be modified.

3 months agoCMake: Handle symbol versioning on MicroBlaze specially.
Lasse Collin [Sun, 18 Feb 2024 12:59:52 +0000 (14:59 +0200)] 
CMake: Handle symbol versioning on MicroBlaze specially.

This is to match configure.ac.

3 months agoCMake: Keep build working even if lib/*.[ch] are removed.
Lasse Collin [Sat, 17 Feb 2024 20:18:12 +0000 (22:18 +0200)] 
CMake: Keep build working even if lib/*.[ch] are removed.

3 months agoCMake: Install documentation.
Lasse Collin [Sat, 17 Feb 2024 16:10:40 +0000 (18:10 +0200)] 
CMake: Install documentation.

3 months agoCMake: Bump maximum policy version to 3.28.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Bump maximum policy version to 3.28.

CMP0154 doesn't affect us since we don't use FILE_SET.

3 months agoCMake: Build lzmainfo.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Build lzmainfo.

3 months agoCMake: Build lzmadec.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Build lzmadec.

3 months agoCMake: Add test_scripts.sh to the tests.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Add test_scripts.sh to the tests.

In contrast to Automake, skipping of this test when decoders
are disabled is handled at CMake side instead of test_scripts.sh
because CMake-build doesn't create config.h.

3 months agoCMake: Install scripts.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Install scripts.

Compared to the Autotools-based build, this has simpler handling
for the shell (@POSIX_SHELL@) and extra PATH entry for the scripts
(configure has --enable-path-for-scripts=PREFIX). The simpler
metho should be enough for non-ancient systems and Solaris.

3 months agoScripts: Use @PACKAGE_VERSION@ instead of @VERSION@.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
Scripts: Use @PACKAGE_VERSION@ instead of @VERSION@.

PACKAGE_VERSION was already used in liblzma.pc.in.
This way only one version @foo@ is used.

3 months agoCMake: Simplify symlink creation and install translated man pages.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Simplify symlink creation and install translated man pages.

It helps that cmake_install.cmake doesn't parallelize installation
so symlinks can be created so that the target is always known to
exist (a requirement on Windows in some cases).

This bumps the minimum CMake version from 3.13 to 3.14 to use
file(CREATE_LINK ...). It could be made to work on 3.13 by
calling "cmake -E create_symlink" but it's uglier code and
slower in "make install". 3.14 should be a reasonable version
to require nowadays, especially since the Autotools build
is still the primary build system for most OSes.

3 months agoCMake: Add support for building and installing xz with translations.
Lasse Collin [Sat, 17 Feb 2024 13:35:35 +0000 (15:35 +0200)] 
CMake: Add support for building and installing xz with translations.

If gettext tools are available, the .po files listed in po/LINGUAS
are converted using msgfmt. This allows building with translations
directly from xz.git without Autotools.

If gettext tools aren't available, the Autotools-created .gmo files
in the "po" directory will be used. This allows CMake-based build
to use translations from Autotools-generated tarball.

If translation support is found (Intl_FOUND) but both the
gettext tools and the pre-generated .gmo files are missing,
then "make" will fail.

3 months agoliblzma: Remove commented-out code.
Lasse Collin [Mon, 19 Feb 2024 09:58:33 +0000 (11:58 +0200)] 
liblzma: Remove commented-out code.

3 months agoxz: Delete old commented-out code.
Lasse Collin [Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)] 
xz: Delete old commented-out code.

3 months agoxz: Use stricter pledge(2) and Landlock sandbox.
Lasse Collin [Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)] 
xz: Use stricter pledge(2) and Landlock sandbox.

This makes these sandboxing methods stricter when no files are
created or deleted. That is, it's a middle ground between the
initial sandbox and the strictest single-file-to-stdout sandbox:
this allows opening files for reading but output has to go to stdout.

3 months agoxz: Support Landlock ABI version 4.
Lasse Collin [Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)] 
xz: Support Landlock ABI version 4.

Linux 6.7 added support for ABI version 4 which restricts
TCP connections which xz won't need and thus those can be
forbidden now. Since the ABI version is handled at runtime,
supporting version 4 won't cause any compatibility issues.

Note that new enough kernel headers are required to get
version 4 support enabled at build time.

3 months agoxz: Move sandboxing code to sandbox.c and improve Landlock sandbox.
Lasse Collin [Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)] 
xz: Move sandboxing code to sandbox.c and improve Landlock sandbox.

Landlock is now always used just like pledge(2) is: first in more
permissive mode and later (under certain common conditions) in
a strict mode that doesn't allow opening more files.

I put pledge(2) first in sandbox.c because it's the simplest API
to use and still somewhat fine-grained for basic applications.
So it's the simplest thing to understand for anyone reading sandbox.c.

3 months agoxz: Tweak comments.
Lasse Collin [Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)] 
xz: Tweak comments.

3 months agoxz: Fix message_init() description.
Lasse Collin [Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)] 
xz: Fix message_init() description.

Also explicitly initialize progress_automatic to make it clear
that it can be read before message_init() sets it. Static variable
was initialized to false by default already so this is only for
clarity.

3 months agoBuild: Makefile.am: Sort EXTRA_DIST.
Lasse Collin [Sat, 17 Feb 2024 17:35:47 +0000 (19:35 +0200)] 
Build: Makefile.am: Sort EXTRA_DIST.

Dirs first, then files in case-sensitive ASCII order.

3 months agoBuild: Don't install TODO.
Lasse Collin [Sat, 17 Feb 2024 17:25:05 +0000 (19:25 +0200)] 
Build: Don't install TODO.

3 months agoTranslations: Update the Korean man page translations.
Jia Tan [Sat, 17 Feb 2024 17:09:11 +0000 (01:09 +0800)] 
Translations: Update the Korean man page translations.

3 months agoTranslations: Update the Korean translation.
Jia Tan [Sat, 17 Feb 2024 17:08:32 +0000 (01:08 +0800)] 
Translations: Update the Korean translation.

3 months agoBuild: Install translated lzmainfo man pages.
Lasse Collin [Sat, 17 Feb 2024 14:23:14 +0000 (16:23 +0200)] 
Build: Install translated lzmainfo man pages.

All other translated man pages were being installed but
lzmainfo had been forgotten.

3 months agoliblzma: Avoid implementation-defined behavior in the RISC-V filter.
Lasse Collin [Sat, 17 Feb 2024 14:01:32 +0000 (16:01 +0200)] 
liblzma: Avoid implementation-defined behavior in the RISC-V filter.

GCC docs promise that it works and a few other compilers do
too. Clang/LLVM is documented source code only but unsurprisingly
it behaves the same as others on x86-64 at least. But the
certainly-portable way is good enough here so use that.

3 months agoliblzma: Wrap a line exceeding 80 chars.
Lasse Collin [Sat, 17 Feb 2024 13:48:28 +0000 (15:48 +0200)] 
liblzma: Wrap a line exceeding 80 chars.

3 months agoliblzma/rangecoder: Exclude x32 from the x86-64 optimisation.
Sebastian Andrzej Siewior [Fri, 16 Feb 2024 20:50:15 +0000 (21:50 +0100)] 
liblzma/rangecoder: Exclude x32 from the x86-64 optimisation.

The x32 port has a x86-64 ABI in term of all registers but uses only
32bit pointer like x86-32. The assembly optimisation fails to compile on
x32. Given the state of x32 I suggest to exclude it from the
optimisation rather than trying to fix it.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
3 months agoTranslations: Update the Spanish translation.
Jia Tan [Sat, 17 Feb 2024 13:05:07 +0000 (21:05 +0800)] 
Translations: Update the Spanish translation.

3 months agoTranslations: Update the Swedish translation.
Jia Tan [Sat, 17 Feb 2024 12:43:29 +0000 (20:43 +0800)] 
Translations: Update the Swedish translation.

3 months agoTranslations: Update the Polish translation.
Jia Tan [Sat, 17 Feb 2024 12:41:38 +0000 (20:41 +0800)] 
Translations: Update the Polish translation.

3 months agoTranslations: Update the Ukrainian translation.
Jia Tan [Sat, 17 Feb 2024 12:41:02 +0000 (20:41 +0800)] 
Translations: Update the Ukrainian translation.

3 months agoTranslations: Use the same sentence in xz.pot-header that the TP uses.
Lasse Collin [Fri, 16 Feb 2024 15:53:34 +0000 (17:53 +0200)] 
Translations: Use the same sentence in xz.pot-header that the TP uses.

3 months agoFix typos discovered by codespell.
Jia Tan [Fri, 16 Feb 2024 14:53:46 +0000 (22:53 +0800)] 
Fix typos discovered by codespell.

3 months agoTranslations: Update the Ukrainian man page translations.
Jia Tan [Fri, 16 Feb 2024 14:52:41 +0000 (22:52 +0800)] 
Translations: Update the Ukrainian man page translations.

3 months agoTranslations: Update the Ukrainian translation.
Jia Tan [Fri, 16 Feb 2024 14:51:04 +0000 (22:51 +0800)] 
Translations: Update the Ukrainian translation.

3 months agoTranslations: Omit the generic copyright line from man page headers.
Lasse Collin [Thu, 15 Feb 2024 20:32:52 +0000 (22:32 +0200)] 
Translations: Omit the generic copyright line from man page headers.

3 months agoUpdate m4/.gitignore.
Jia Tan [Thu, 15 Feb 2024 14:26:43 +0000 (22:26 +0800)] 
Update m4/.gitignore.

3 months agoTests: tuktest.h: Treat Clang separately from GCC.
Lasse Collin [Wed, 14 Feb 2024 19:11:49 +0000 (21:11 +0200)] 
Tests: tuktest.h: Treat Clang separately from GCC.

Don't assume that Clang defines __GNUC__ as the extensions
are available in clang-cl as well (and possibly in some other
Clang variants?).

3 months agoTests: tuktest.h: Add a missing word to a comment.
Lasse Collin [Wed, 14 Feb 2024 19:11:03 +0000 (21:11 +0200)] 
Tests: tuktest.h: Add a missing word to a comment.

3 months agoTests: tuktest.h: Fix the comment about STest.
Lasse Collin [Wed, 14 Feb 2024 19:10:10 +0000 (21:10 +0200)] 
Tests: tuktest.h: Fix the comment about STest.

3 months agoBump version for 5.5.2beta. v5.5.2beta
Jia Tan [Wed, 14 Feb 2024 17:53:40 +0000 (01:53 +0800)] 
Bump version for 5.5.2beta.

3 months agoliblzma: Fix validate_map.sh.
Lasse Collin [Wed, 14 Feb 2024 17:46:11 +0000 (19:46 +0200)] 
liblzma: Fix validate_map.sh.

Adding the SPDX license identifier changed the line numbers.

3 months agoBuild: Start the generated ChangeLog from around 5.4.0 instead of 5.2.0.
Lasse Collin [Wed, 14 Feb 2024 17:38:34 +0000 (19:38 +0200)] 
Build: Start the generated ChangeLog from around 5.4.0 instead of 5.2.0.

3 months agoFixed NEWS for 5.5.2beta.
Lasse Collin [Wed, 14 Feb 2024 17:27:46 +0000 (19:27 +0200)] 
Fixed NEWS for 5.5.2beta.

3 months agoliblzma: Silence warnings in --enable-small build.
Lasse Collin [Wed, 14 Feb 2024 17:21:45 +0000 (19:21 +0200)] 
liblzma: Silence warnings in --enable-small build.

3 months agoBuild: Install COPYING.0BSD as part of docs.
Lasse Collin [Wed, 14 Feb 2024 17:15:58 +0000 (19:15 +0200)] 
Build: Install COPYING.0BSD as part of docs.

3 months agoDocs: List COPYING.0BSD in README.
Lasse Collin [Wed, 14 Feb 2024 17:14:05 +0000 (19:14 +0200)] 
Docs: List COPYING.0BSD in README.

3 months agoDocs: Include doc/examples/11_file_info.c in tarballs.
Lasse Collin [Wed, 14 Feb 2024 17:11:48 +0000 (19:11 +0200)] 
Docs: Include doc/examples/11_file_info.c in tarballs.

It was added in 2017 in c2e29f06a7d1e3ba242ac2fafc69f5d6e92f62cd
but it never got into any release tarballs because it was
forgotten to be added to Makefile.am.

3 months agoliblzma: Silence a warning.
Lasse Collin [Wed, 14 Feb 2024 17:05:58 +0000 (19:05 +0200)] 
liblzma: Silence a warning.

3 months agoAdd NEWS for 5.5.2beta.
Lasse Collin [Wed, 14 Feb 2024 16:32:27 +0000 (18:32 +0200)] 
Add NEWS for 5.5.2beta.

3 months agoxz: Mention lzmainfo if trying to use 'lzma --list'.
Lasse Collin [Tue, 13 Feb 2024 12:32:47 +0000 (14:32 +0200)] 
xz: Mention lzmainfo if trying to use 'lzma --list'.

This kind of fixes the problem reported here:
https://bugs.launchpad.net/ubuntu/+source/xz-utils/+bug/1291020

3 months agoliblzma: Add comments.
Lasse Collin [Wed, 14 Feb 2024 12:58:36 +0000 (14:58 +0200)] 
liblzma: Add comments.

3 months agoScripts: Add lz4 support to xzgrep and xzdiff.
Lasse Collin [Tue, 13 Feb 2024 15:00:17 +0000 (17:00 +0200)] 
Scripts: Add lz4 support to xzgrep and xzdiff.

3 months agoliblzma: Choose the range decoder variants using a bitmask macro.
Lasse Collin [Tue, 13 Feb 2024 12:05:13 +0000 (14:05 +0200)] 
liblzma: Choose the range decoder variants using a bitmask macro.

3 months agoxz: Fix outdated threading related info on the man page.
Lasse Collin [Tue, 13 Feb 2024 09:38:10 +0000 (11:38 +0200)] 
xz: Fix outdated threading related info on the man page.

3 months agoliblzma: Range decoder: Add x86-64 inline assembly.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Range decoder: Add x86-64 inline assembly.

It's compatible with GCC and Clang.

3 months agoliblzma: Range decoder: Add branchless C code.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Range decoder: Add branchless C code.

It's used only for basic bittrees and fixed-size reverse bittree
because those showed a clear benefit on x86-64 with GCC and Clang.
The other methods were more mixed and thus are commented out but
they should be tested on other archs.

3 months agoliblzma: Clarify a comment.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Clarify a comment.

3 months agoliblzma: LZMA decoder: Optimize loop comparison.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: LZMA decoder: Optimize loop comparison.

But now it needs one more local variable.

3 months agoliblzma: Optimize literal_subcoder() macro slightly.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Optimize literal_subcoder() macro slightly.

3 months agoliblzma: LZ decoder: Add unlikely().
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: LZ decoder: Add unlikely().

3 months agoliblzma: LZ decoder: Remove a useless unlikely().
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: LZ decoder: Remove a useless unlikely().

3 months agoliblzma: Optimize LZ decoder slightly.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Optimize LZ decoder slightly.

Now extra buffer space is reserved so that repeating bytes for
any single match will never need to copy from two places (both
the beginning and the end of the buffer). This simplifies
dict_repeat() and helps a little with speed.

This seems to reduce .lzma decompression time about 2 %, so
with .xz and CRC it could be slightly less. The small things
add up still.

3 months agoliblzma: LZMA decoder: Get rid of next_state[].
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: LZMA decoder: Get rid of next_state[].

It's not completely obvious if this is better in the decoder.
It should be good if compiler can avoid creating a branch
(like using CMOV on x86).

This also makes lzma_encoder.c use the new macros.

3 months agoliblzma: LZMA decoder improvements.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: LZMA decoder improvements.

This adds macros for bittree decoding which prepares the code
for alternative C versions and inline assembly.

3 months agoliblzma: Creates Non-resumable and Resumable modes for lzma_decoder.
Jia Tan [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Creates Non-resumable and Resumable modes for lzma_decoder.

The new decoder resumes the first decoder loop in the Resumable mode.
Then, the code executes in Non-resumable mode until it detects that it
cannot guarantee to have enough input/output to decode another symbol.

The Resumable mode is how the decoder has always worked. Before decoding
every input bit, it checks if there is enough space and will save its
location to be resumed later. When the decoder has more input/output,
it jumps back to the correct sequence in the Resumable mode code.

When the input/output buffers are large, the Resumable mode is much
slower than the Non-resumable because it has more branches and is harder
for the compiler to optimize since it is in a large switch block.

Early benchmarking shows significant time improvement (8-10% on gcc and
clang x86) by using the Non-resumable code as much as possible.

3 months agoliblzma: Creates separate "safe" range decoder mode.
Jia Tan [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Creates separate "safe" range decoder mode.

The new "safe" range decoder mode is the same as old range decoder, but
now the default behavior of the range decoder will not check if there is
enough input or output to complete the operation. When the buffers are
close to fully consumed, the "safe" operations must be used instead. This
will improve speed because it will reduce the number of branches needed
for most of the range decoder operations.

3 months agodoxygen/footer.html: Add missing closing tags and don't open a new tab.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
doxygen/footer.html: Add missing closing tags and don't open a new tab.

The footer template from Doxygen has the closing </body> </html>
as Doxygen doesn't add them otherwise.

target="_blank" was omitted as it's not useful here but
it can be slightly annoying as one cannot just go back
in the browser history.

Since the footer links to the license file in the same
directory and not to CC website, the rel attributes
can be omitted.

3 months agoTweak the expressions in AUTHORS.
Lasse Collin [Tue, 13 Feb 2024 11:19:10 +0000 (13:19 +0200)] 
Tweak the expressions in AUTHORS.

3 months agoTranslations: Add the man page translators into man page header comment.
Lasse Collin [Tue, 13 Feb 2024 11:07:33 +0000 (13:07 +0200)] 
Translations: Add the man page translators into man page header comment.

It looked odd to only have the original English authors listed
in the header comments of the translated files.

3 months agoTranslations: Translate also messages of lzmainfo.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Translations: Translate also messages of lzmainfo.

lzmainfo has had translation support since 2009 at least but
it was never added to po/POTFILES.in so the messages weren't
translated. It's a very rarely needed tool so it's not too bad.

This also adds src/xz/mytime.c to po/POTFILES.in although there
are no translatable strings. It's simpler this way so that it
won't be forgotten if strings were ever added to that file.

3 months agoTranslations: Add custom .pot header with SPDX license identifier.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Translations: Add custom .pot header with SPDX license identifier.

The same is used for both po/xz.pot and po4a/xz-man.pot.

3 months agoTranslations: po4a/update-po: Add copyright notice to xz-man.pot.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Translations: po4a/update-po: Add copyright notice to xz-man.pot.

All man pages are under 0BSD now so this is simple now.

3 months agoUpdate COPYING about the man pages of the scripts.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Update COPYING about the man pages of the scripts.

3 months agoxzdiff, xzgrep, and xzmore: Rewrite the man pages.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
xzdiff, xzgrep, and xzmore: Rewrite the man pages.

The main reason is a kind of silly one:

xz-man.pot contains strings from all man pages in XZ Utils.
The man pages of xzdiff, xzgrep, and xzmore were under GPLv2
and the rest under 0BSD. Thus xz-man.pot contained strings
under two licences. po4a creates the translated man pages
from the combined 0BSD+GPLv2 xz-man.pot.

I haven't liked this mixing in xz-man.pot but the
Translation Project requires that all man pages must be
in the same .pot file. So a separate xz-man-gpl.pot
wasn't an option.

Since these man pages are short, rewriting them was quick enough.
Now xz-man.pot is entirely under 0BSD and marking the per-file
licenses is simpler.

As a bonus, some wording hopefully is now slightly better
although it's perhaps a matter of taste.

NOTE: In xzgrep.1, the EXIT STATUS section was written by me
in the commit d796b6d7fdb8b7238b277056cf9146cce25db604 so that's
why that section could be taken as is from the old xzgrep.1.

3 months agoxzless: Update man page slightly.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
xzless: Update man page slightly.

The xz tool can decompress three file formats and xzless
has always supported uncompressed files too.

3 months agoTranslations: Change po/Makevars to add a copyright notice to po/xz.pot.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Translations: Change po/Makevars to add a copyright notice to po/xz.pot.

3 months agoTranslations: Update po/Makevars to use the template from gettext 0.22.4.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Translations: Update po/Makevars to use the template from gettext 0.22.4.

Also add SPDX license identifier now that there is a known license.

3 months agoliblzma: Include the SPDX license identifier 0BSD to generated files.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Include the SPDX license identifier 0BSD to generated files.

Perhaps the generated files aren't even copyrightable but
using the same license for them as for the rest of the liblzma
keeps things more consistent for tools that look for license info.

3 months agoliblzma: Fix compilation of price_tablegen.c.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
liblzma: Fix compilation of price_tablegen.c.

It is built and run only manually so this didn't matter
unless one wanted to regenerate the price_table.c.

3 months agoAdd SPDX license identifiers to GPL, LGPL, and FSFULLR files.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Add SPDX license identifiers to GPL, LGPL, and FSFULLR files.

3 months agoAdd SPDX license identifier into 0BSD source code files.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Add SPDX license identifier into 0BSD source code files.

3 months agoliblzma: Sync the AUTHORS fix about SHA-256 to lzma.h.
Lasse Collin [Mon, 12 Feb 2024 21:25:54 +0000 (23:25 +0200)] 
liblzma: Sync the AUTHORS fix about SHA-256 to lzma.h.

3 months agoChange most public domain parts to 0BSD.
Lasse Collin [Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)] 
Change most public domain parts to 0BSD.

Translations and doc/xz-file-format.txt and doc/lzma-file-format.txt
were not touched.

COPYING.0BSD was added.

3 months agoFix SHA-256 authors.
Lasse Collin [Fri, 9 Feb 2024 15:20:31 +0000 (17:20 +0200)] 
Fix SHA-256 authors.

The initial commit 5d018dc03549c1ee4958364712fb0c94e1bf2741
in 2007 had a comment in sha256.c that the code is based on
Crypto++ Library 5.5.1. In 2009 the Authors list in sha256.c
and the AUTHORS file was updated with information that the
code had come from Crypto++ but via 7-Zip. I know I had viewed
7-Zip's SHA-256 code but back then the C code has been identical
enough with Crypto++, so I don't why I thought the author info
would need that extra step via 7-Zip for this single file.

Another error is that I had mixed sha.* and shacal2.* files
when checking for author info in Crypto++. The shacal2.* files
aren't related to liblzma's sha256.c and thus Kevin Springle's
code in Crypto++ isn't either.

3 months agoRemove macosx/build.sh.
Lasse Collin [Fri, 9 Feb 2024 15:20:31 +0000 (17:20 +0200)] 
Remove macosx/build.sh.

It was last updated in 2013.

3 months agoDoc: Remove doc/examples_old.
Lasse Collin [Fri, 9 Feb 2024 15:20:31 +0000 (17:20 +0200)] 
Doc: Remove doc/examples_old.

It was good to keep these around in parallel with the newer examples
but I think it's OK to remove the old ones at this point.