openwrt/tools
Robert Marko 87477c756e tools: bzip2: use static lib and tools
Currently, bzip2 is built with a dynamically linked library on which all
of the bzip2 tools depend on.

However, when trying to use the staging dir bzip2 during building on
Fedora 40 the following error appers:
staging_dir/host/bin/bzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

Looking into it, the binary is dynamically linked:
$ ldd staging_dir/host/bin/bzip2
linux-vdso.so.1 (0x00007f5ebd9ff000)
libbz2.so.1.0 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f5ebd7f5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5ebda01000)

libbz2.so.1.0 is installed into staging_dir/lib but that directory is not
evaluated for the required libraries and Fedora only ships:
/usr/lib64/libbz2.so.1
/usr/lib64/libbz2.so.1.0.8

Thus it cannot find the libbz2 that bzip2 is linked against and thus
trying to use bzip2 will fail and stop compilation as it is used for
bzip2 compressed tarballs.

So, to avoid OpenWrt compiled bzip2 to even attempt to load a required
library from the host we can just static compile libbz2 and bzip2.

Link: https://github.com/openwrt/openwrt/pull/16520
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-09-28 12:05:48 +02:00
..
7z tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
autoconf tools/autoconf: ensure relocatability 2023-03-16 00:32:59 +01:00
autoconf-archive tools/autoconf-archive: bump to 2023.02.20 2023-03-20 23:43:28 +01:00
automake tools/automake: move file requirements to higher strictness 2023-05-04 06:07:28 +02:00
b43-tools tools: b43-tools: fix compilation with GCC14 2024-04-23 12:36:22 +02:00
bash tools/bash: update to 5.2.15 2022-12-17 20:26:51 +01:00
bc tools/bc: update to 1.07.1 2022-10-22 22:50:37 +02:00
bison tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
bzip2 tools: bzip2: use static lib and tools 2024-09-28 12:05:48 +02:00
cbootimage
cbootimage-configs
ccache tools: refresh all patches 2024-05-22 12:41:10 +02:00
cmake tools/cmake: update to 3.26.4 2023-05-19 13:48:04 +02:00
coreutils tools/coreutils: rename list of installed programs 2023-06-12 22:10:25 +02:00
cpio tools/cpio: update to 2.15 2024-04-22 15:28:12 +02:00
dosfstools dosfstools: switch to AC_CHECK_LIB 2023-01-16 18:29:04 +01:00
dwarves tools/dwarves: update to 1.25 2023-04-19 01:02:26 +02:00
e2fsprogs tools/e2fsprogs: update to 1.47.0 2023-02-12 16:45:29 +01:00
elftosb tools: refresh all patches 2024-05-22 12:41:10 +02:00
elfutils tools/elfutils: update to 1.89 2023-03-12 13:53:49 +01:00
expat expat: update to 2.5.0 2022-10-31 21:27:48 +01:00
fakeroot Revert "tools/fakeroot: update to 1.30.1" 2023-02-12 01:02:22 +01:00
findutils tools/findutils: define list of installed programs 2023-06-12 22:10:24 +02:00
firmware-utils firmware-utils: bump to latest openwrt-23.05 2024-09-22 16:47:19 +02:00
flex tools/flex: fix PKG_CPE_ID 2024-07-06 18:31:14 +02:00
flock tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
genext2fs tools/genext2fs: update to 1.5.0 2022-10-22 22:53:24 +02:00
gengetopt gengetopt: backport patch fixing support for c++17 2024-05-01 15:46:52 +02:00
gmp tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
gnulib tools/missing-macros: prefer macros provided by gnulib source 2023-05-04 06:07:27 +02:00
include tools: macOS: types.h: fix missing unsigned types 2024-04-27 06:53:21 +00:00
isl tools/isl: update to 0.26 2023-04-22 01:33:16 +02:00
kernel2minor
libdeflate tools/libdeflate: update to 1.18 2023-04-17 19:04:18 +02:00
liblzo tools: refresh all patches 2024-05-22 12:41:10 +02:00
libressl tools/libressl: update to 3.7.2 2023-04-22 01:31:50 +02:00
libtool tools: libtool: do not symlink files in bootstrap 2024-08-29 20:06:03 +02:00
llvm-bpf tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
lz4 tools: refresh all patches 2024-05-22 12:41:10 +02:00
lzma tools: refresh all patches 2024-05-22 12:41:10 +02:00
lzma-old
lzop tools: refresh all patches 2024-05-22 12:41:10 +02:00
m4 tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
make-ext4fs
meson tools/meson: backport WSL2 fix 2022-10-02 16:05:32 +02:00
missing-macros tools/missing-macros: install files from HOST_BUILD_DIR instead of src 2024-05-22 11:59:59 +02:00
mkimage tools/mkimage: update to 2023.04 2023-04-11 17:30:32 +02:00
mklibs
mpc tools/mpc: use STAGING_DIR_HOST instead of hardcoding default 2023-01-09 21:33:19 +01:00
mpfr tools/mpfr: update to 4.2.0 2023-01-07 17:17:59 +01:00
mtd-utils tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
mtools tools/mtools: update to 4.0.43 2023-04-08 15:51:32 +02:00
ninja tools/ninja: update to 1.11.1 2023-01-24 23:13:25 +01:00
padjffs2 tools/padjffs2: use Host/Prepare/Default instead of raw commands 2024-05-22 12:00:40 +02:00
patch tools: refresh all patches 2024-05-22 12:41:10 +02:00
patch-image
patchelf patchelf: Revert "tools/patchelf: update to 0.18.0" 2023-08-15 17:12:33 +02:00
pkgconf tools/pkgconf: update to 1.9.5 2023-05-09 11:37:16 +02:00
quilt
sdimage
sed tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
sparse tools/sparse: fix compilation with GCC14 2024-07-08 21:13:25 +02:00
squashfs3-lzma tools: squashfs3-lzma: generate reproducible output 2023-05-12 02:27:17 +02:00
squashfs4 tools/squashfs4: backport OpenWrt extended options patch 2023-04-20 21:30:52 +02:00
sstrip
tar tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
xz tools/xz: update to 5.4.3 2023-05-06 07:16:15 +02:00
zip tools: assign PKG_CPE_ID 2023-09-27 22:37:01 +02:00
zlib tools/zlib: fix PKG_CPE_ID 2024-07-06 18:31:14 +02:00
zstd tools/zstd: update to 1.5.5 2023-04-07 11:18:54 +02:00
Makefile tools/coreutils: bootstrap to local gnulib source 2023-05-04 06:07:30 +02:00