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

468 Commits

Author SHA1 Message Date
Kamila Szewczyk
2f82d62cc2 install pkg-config in ci 2026-10-22 19:50:56 +02:00
Kamila Szewczyk
8be53a2a4b fix #193 2026-10-22 19:29:16 +02:00
Kamila Szewczyk
e905792dc5 v1.5.5 1.5.5 2026-10-22 12:32:49 +02:00
Kamila Szewczyk
fd3d71f83f fix #191, #192 2026-10-18 12:37:07 +02:00
Kamila Szewczyk
dce3573ac4 stricter checks at boundaries for bz3_decode and cli 2026-10-14 08:17:04 +02:00
dependabot[bot]
7c89332048 Bump softprops/action-gh-release from 1 to 3 (#185)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 3.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-09 20:51:28 +02:00
dependabot[bot]
0f0ce7ec68 Bump actions/upload-artifact from 4 to 7 (#183)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-09 20:47:15 +02:00
dependabot[bot]
d9ab787ee2 Bump actions/download-artifact from 4 to 8 (#186)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-09 20:46:41 +02:00
dependabot[bot]
6c80e6826f Bump actions/checkout from 3 to 7 (#184)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-09 20:46:29 +02:00
Sebastian Pipping
505a3703de build.yml: Run once per week to detect CI breakage early (fixes #179) (#181)
* build.yml: Re-shape "on:" section for the upcoming extension

* build.yml: Run once per week to detect CI breakage early
2026-09-09 06:47:07 +02:00
Sebastian Pipping
60609256c8 Make GitHub Dependabot keep GitHub Actions up to date (#182) 2026-09-09 06:46:41 +02:00
Sebastian Pipping
dd3e932de2 build.yml: Fix CI for Clang on armv6 (#178)
The symptom was that `./configure` would error out saying...

> configure: error: cannot run C compiled programs.

...because the binaries produced by Clang 14.0.6 with default target
"arm-unknown-linux-gnueabihf" would crash saying...

> qemu: uncaught target signal 4 (Illegal instruction) - core dumped
> Illegal instruction (core dumped)
2026-09-08 07:40:34 +02:00
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