A website documenting creating the build root for MidgardOS
| Navigation | ||
|---|---|---|
| « ZLib 32-bit | HOME | BZip2 32-bit » |
Name: BZip2 64-bit
Summary: An efficient file compression tool
License: BSD-3-Clause
Version: 1.0.8
URL: https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
Average Build Time: less than 0.1 SBU
Used Install Space: 7.3 MiB
To allow the documentation for BZip2 to be installed, apply the following patch:
patch -Np1 -i ../bzip2-1.0.8-install_docs-1.patch
Next, run the following command to ensure that symlinks installed are relative:
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
Now, ensure that the man pages are installed into the appropriate location:
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
After preparing BZip2 64-bit for build, run the following command to generate a dynamic library that the bzip2 command will be linked against:
make -f Makefile-libbz2_so
make clean
Now compile BZip2 64-bit:
make
Finally, to install BZip2 64-bit into the build tree, run the following commands:
make PREFIX=/usr install
cp -av libbz2.so.* /usr/lib64
ln -sv libbz2.so.1.0.8 /usr/lib64/libbz2.so
for i in /usr/bin/{bzcat,bunzip2}; do
ln -sfv bzip2 $i
done
rm -fv /usr/lib64/libbz2.a
NOTE: Do not delete the unpacked sources
| Contents | |
|---|---|
| Installed Programs | bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep), bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore |
| Installed Libraries | libbz2.so |
| Installed Directories | /usr/share/doc/bzip2-1.0.8 |
| Navigation | ||
|---|---|---|
| « ZLib 32-bit | HOME | BZip2 32-bit » |