Debian Patches

Status for bzip3/1.5.3-1

Patch Description Author Forwarded Bugs Origin Last update
cmake-Set-CMAKE_CURRENT_SOURCE_DIR-to-path-of-BZIP3_.patch [PATCH] cmake: Set CMAKE_CURRENT_SOURCE_DIR to path of ${BZIP3_MAN}.in

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

[...]
```
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2025-08-17
cmake-Set-true-to-CMAKE_SKIP_BUILD_RPATH.patch [PATCH] cmake: Set true to CMAKE_SKIP_BUILD_RPATH Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2025-08-17
cmake-Set-the-same-soname-as-Makefile.am-168.patch [PATCH 2/3] 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
```
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> no 2025-08-18
autoconf-Define-extra_cflags-variable-169.patch [PATCH 3/3] 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 dca13c82311e60cc47f01623d6281119024b5b44
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.
Petr Pisar <ppisar@redhat.com> no 2025-08-18

All known versions for source package 'bzip3'

Links