5.23. Gzip-1.3.12

The Gzip package contains programs for compressing and decompressing files.

Approximate build time: less than 0.1 SBU
Required disk space: 3.3 MB

5.23.1. Installation of Gzip

The version of the function “futimens” used by Gzip is incompatible with the version that current Glibc provides, so we'll rename the function:

for file in gzip.c lib/utimens.{c,h} ; do \
   cp -v $file{,.orig}
   sed 's/futimens/gl_&/' $file.orig > $file
done

Prepare Gzip for compilation:

./configure --prefix=/tools

Compile the package:

make

Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Gzip test suite anyway, issue the following command:

make check

Install the package:

make install

Details on this package are located in Section 6.43.2, “Contents of Gzip.”