MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« GNU Patch HOME GNU Texinfo »

GNU Tar

Name: GNU Tar
Summary: The GNU Tape Archive tool
License: GPL v
Version: 1.35
URL: https://ftp.gnu.org/gnu/tar/tar-1.35.tar.xz

Average Build Time: 0.6 SBU
Used Install Space: 5 MiB

Configuration

To configure GNU Tar for install into the build root, run the following command:

FORCE_UNSAFE_CONFIGURE=1                        \
./configure --prefix=/usr                       \
            --libdir=/usr/lib64                 \
            --libexecdir=/usr/lib64             \
            --docdir=/usr/share/doc/tar-1.35    \
            --sysconfdir=/etc                   \
            --disable-rpath

Compilation and Installation

To compile GNU Tar, run the following command:

make

Next, run the test suite:

make check

Currently, there are two tests that fail. These are a test for lzip support, which needs extra tooling in the tree to work, and support for handling Linux Capabilities. Further investigation is needed as to why this test is failing. For now, it is safe to continue if these two tests are failing.

Finally, to install GNU Tar into the build tree, run the following commands:

make install
make -C doc install-html docdir=/usr/share/doc/tar-1.35

Contents

Contents  
Installed Programs tar and rmt
Navigation    
« GNU Patch HOME GNU Texinfo »