Package: bzip3 / 1.5.3-2

Metadata

Package Version Patches format
bzip3 1.5.3-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
cmake Set CMAKE_CURRENT_SOURCE_DIR to path of BZIP3_.patch | (download)

CMakeLists.txt | 8 5 + 3 - 0 !
1 file changed, 5 insertions(+), 3 deletions(-)

 [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

[...]
```

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

cmake Set true to CMAKE_SKIP_BUILD_RPATH.patch | (download)

CMakeLists.txt | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 [patch] cmake: set true to cmake_skip_build_rpath

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

cmake Set the same soname as Makefile.am 168.patch | (download)

CMakeLists.txt | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [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.
autoconf Define extra_cflags variable 169.patch | (download)

configure.ac | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 [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.