1
0
mirror of https://github.com/kspalaiologos/bzip3.git synced 2026-10-23 14:48:53 +03:00

456 Commits

Author SHA1 Message Date
Kamila Szewczyk
10b6b4e84e bump version 1.5.4 2026-09-07 21:52:09 +02:00
Kamila Szewczyk
3c60c830d1 fix #175 2026-07-22 15:19:51 +02:00
Kamila Szewczyk
b9aacb60d1 fix #174 2026-06-14 09:52:18 +02:00
Martin Tournoij
97a6da2e51 Document default value of --jobs and --block (#172)
Somewhat unobvious what the default is: you need to read the source or
compress a sufficiently large file and check with top.

For --block it was mentioned in the --help output but not the manpage.
2026-04-28 07:20:34 +02:00
Kamila Szewczyk
940d466535 bump run-on-arch 2026-02-07 22:03:45 +01:00
Kamila Szewczyk
71a1501621 bump autoconf 2026-02-07 22:00:04 +01:00
Petr Pisar
fe3b43d83d autoconf: Define extra_cflags variable (#169)
Building with autotools on Linux produces bzip3.pc with a garbage in
Cflags:

    [...]
    Libs: -L${libdir} -lbzip3
    Cflags: -I${includedir}@extra_cflags@

This bug was introduced in dca13c8231
commit (Fix handling of DLLs on Windows) which added @extra_cflags@ to
pkg-config file and defined the variable in CMake script, but forgot
to define it in an Autoconf script.

This patch defines it unconditionally in the Autoconf script as an
empty string, assuming people don't use this script on Windows
platforms.
2025-08-18 20:02:29 +02:00
Nobuhiro Iwamatsu
3ac85a6c4e cmake: Set the same soname as Makefile.am (#168)
In Makefile.am, soname is set to 1:0:0, but in CMake it is set to 0:0:0.
This means that when building with CMake, libraries with different sonames will
be built. This will not maintain library compatibility.
This sets the same soname in cmake as well.

Before:
```
$ mkdir t && cd t && cmake .. && make
$ ls *.so*
libbzip3.so  libbzip3.so.0  libbzip3.so.0.0.0
$ objdump -p libbzip3.so
  SONAME               libbzip3.so.0.0.0
$ cd .. && autoreconf -ivf && ./configure && make
$ ls .libs/*.so*
.libs/libbzip3.so .libs/libbzip3.so.1 .libs/libbzip3.so.1.0.0
$ objdump -p ./.libs/libbzip3.so | grep SONAME
  SONAME               libbzip3.so.1
```

After:
```
$ mkdir t && cd t && cmake .. && make
$ ls *.so*
libbzip3.so  libbzip3.so.1  libbzip3.so.1.0.0
$ objdump -p libbzip3.so
  SONAME               libbzip3.so.1
```

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2025-08-18 13:18:07 +02:00
Nobuhiro Iwamatsu
2b9b3b504b cmake: Set CMAKE_CURRENT_SOURCE_DIR to path of ${BZIP3_MAN}.in (#167)
If CMAKE_CURRENT_SOURCE_DIR is not specified to ${BZIP3_MAN}.in, it will refer
to the current directory, which will result in an error if user builds with
out-of-source builds.
This sets CMAKE_CURRENT_SOURCE_DIR and supports out-of-source builds.

```
$ mkdir t && cd t && cmake ..
-- The C compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error: File /home/iwamatsu/dev/bzip3/bz3grep.1 does not exist.
CMake Error at CMakeLists.txt:152 (configure_file):
  configure_file Problem configuring file

CMake Error: File /home/iwamatsu/dev/bzip3/bz3less.1 does not exist.
CMake Error at CMakeLists.txt:152 (configure_file):
  configure_file Problem configuring file

[...]
```

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2025-08-17 18:28:01 +02:00
Kamila Szewczyk
53984efe37 Update NEWS 1.5.3 2025-08-13 11:26:49 +02:00
Kamila Szewczyk
eb85250250 cmake: bump version # 2025-08-13 11:24:09 +02:00
Billy O'Neal
4c7224979b Add missing find_dependency call to ensure Threads::threads is present in downstream find_package callers. (#163) 2025-08-12 15:16:13 +02:00
Billy O'Neal
dca13c8231 Fix handling of DLLs on Windows. (#165)
* Add -DBZIP3_DLL_IMPORT=1 to pkgconfig C flags
* Add BZIP3_DLL_EXPORT=1 while building bzip3, and BZIP3_DLL_IMPORT=1 to CMake configs.
* When installing the bz3 target, install the DLL.
2025-08-11 13:04:15 +02:00
Billy O'Neal
557a3d7569 CMake: Disable pthreads by default on Windows & !MinGW. (#164)
* Disable pthreads by default on Windows.

Attempting to build with pthreads turned on on Windows triggers a build failure due to missing pthreads headers. As Windows isn't a pthreads platform, it seems like this should be off by default.

* Turn on by default for MinGW or cygwin.
2025-08-11 13:03:38 +02:00
Kamila Szewczyk
beb5a32fc5 remove the libtool kludge. 2025-08-05 21:12:04 +02:00
Kamila Szewczyk
9bc0f45801 update test file URLs 2025-08-05 21:10:59 +02:00
Kamila Szewczyk
5bd9c5f3e7 update copyright dates 2025-08-05 21:10:28 +02:00
Kamila Szewczyk
29d9403dd9 update URL in the CMake script. 2025-08-05 21:10:02 +02:00
Kamila Szewczyk
1e951a5d64 update corpus url 2025-08-05 21:09:40 +02:00
Kamila Szewczyk
abd399eb97 update project base url 2025-08-05 21:09:21 +02:00
Kamila Szewczyk
27b4dc48b1 update links in README 2025-08-05 21:09:04 +02:00
Kamila Szewczyk
2302ecbc47 update github nickname in the bzip3.1.in manpage. 2025-08-05 21:08:22 +02:00
Kamila Szewczyk
468b93cde6 Update libsais.h 2025-07-12 19:30:49 +02:00
Kamila Szewczyk
43781b183e Update bzip3.1.in 2025-07-12 19:28:43 +02:00
Kamila Szewczyk
ccf0e354c2 Update README.md 2025-07-12 19:27:12 +02:00
Kamila Szewczyk
28f53238d1 Update yarg.h 2025-07-12 19:25:21 +02:00
Kirill A. Korinsky
42e1cfc5e6 main.c: never trust malloc (#162) 2025-04-29 18:17:12 +02:00
Kirill A. Korinsky
fed8ccd4c8 Fixed OOM handling in yarg_asprintf (#161) 2025-04-29 15:25:24 +02:00
Kamila Szewczyk
a04acf6257 Update NEWS 1.5.2 2025-04-27 14:16:35 +02:00
Nobuhiro Iwamatsu
893f02f6d3 Fix memory leak by compression_buf in bz3_decompress() (#159)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2025-04-27 14:15:17 +02:00
Nobuhiro Iwamatsu
25b89fcff4 Add License variable to pkg-config file (#158)
The pkg-config file has License variable that allows you to set the
license for the software. This sets LGPL-3.0-or-later to License.

Ref: https://github.com/pkgconf/pkgconf/blob/master/man/pc.5#L116

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2025-04-25 14:09:06 +02:00
Kamila Szewczyk
2d1d304a61 Extend the "Thanks to:" section. 2025-03-30 22:17:02 +02:00
Kamila Szewczyk
6efdf0a581 Update CMakeLists.txt for v1.5.2 2025-03-30 22:13:31 +02:00
Kamila Szewczyk
223177803f Update NEWS for v1.5.2 2025-03-30 22:13:13 +02:00
Kamila Szewczyk
80b3552d7b bz3_compress: better bound estimation 2025-03-30 22:11:06 +02:00
Kamila Szewczyk
ee68d3386e batch mode: fall back to stdin input with no auxiliary arguments 2025-03-02 00:13:06 +01:00
Kamila Szewczyk
4688bb8ee8 build.yml: upgrade bullseye -> bookworm. 2025-02-16 16:46:16 +01:00
Kamila Szewczyk
117cde7e0f build.yml: bump up remaining uses of v3 2025-02-14 18:31:02 +01:00
Kamila Szewczyk
e0b289337b release.yml: download-artifact@v4 2025-02-13 15:18:21 +01:00
Kamila Szewczyk
7f7c1aaeee build.yml: download-artifact@v4 2025-02-13 15:18:02 +01:00
Kamila Szewczyk
4996d5d9f4 release.yml: update to upload-artifact@v4 2025-02-13 15:16:19 +01:00
Kamila Szewczyk
1b3b1513fc build.yml: update to upload-artifact@v4 2025-02-13 15:15:58 +01:00
Alex Willmer
428f422919 README: Tabulate results (#149)
I found this made comparison easier, and highlighted the higher compression ration achieved by bzip3.
2025-02-01 21:31:17 +01:00
Kamila Szewczyk
61c764f6f8 yarg: oom handling 2024-12-17 12:08:37 +01:00
Kamila Szewczyk
c5eb4c2234 use yarg_asprintf in yarg 2024-12-16 17:35:40 +01:00
Kamila Szewczyk
d149f09379 update news / 1.5.1 (#146) 1.5.1 2024-12-16 16:00:59 +01:00
Kamila Szewczyk
f3b47301b4 change soname (fix #146) 2024-12-16 15:55:47 +01:00
Kamila Szewczyk
249b17332a rip out getopt and replace it with yarg.
yarg is a public domain argument parser written by the author of bzip3.
2024-12-16 15:53:44 +01:00
Kamila Szewczyk
fd258cde2b Update news in preparation for v1.5.0 1.5.0 2024-12-15 11:53:17 +01:00
Kamila Szewczyk
9af0f77fd7 fix #138 2024-12-15 11:47:59 +01:00