Subversion Repositories svn LFS-FR

Rev

Blame | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-system-tar" role="wrap">
  <?dbhtml filename="tar.html"?>

  <title>Tar-&tar-version;</title>

  <indexterm zone="ch-system-tar">
    <primary sortas="a-Tar">Tar</primary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>The Tar package contains an archiving program.</para>

  </sect2>

  &env-target;

  <sect2 role="installation">
    <title>Installation of Tar</title>

    <para os="p1">The following patch adds a man page for <command>tar</command>:</para>

<screen os="p2"><userinput>patch -Np1 -i ../&tar-man_page-patch;</userinput></screen>

    <para os="p3">The following patch will add support for new compressors like XZ Utils:</para>

<screen os="p4"><userinput>patch -Np1 -i ../&tar-new_compressors-patch;</userinput></screen>

    <para os="a">Configure can not properly determine the results of a few
    tests. Set them manually:</para>

<screen os="b"><userinput>cat &gt; config.cache &lt;&lt; EOF
gl_cv_func_wcwidth_works=yes
gl_cv_func_btowc_eof=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
gl_cv_func_mbrtowc_incomplete_state=yes
gl_cv_func_mbrtowc_nul_retval=yes
gl_cv_func_mbrtowc_null_arg=yes
gl_cv_func_mbrtowc_retval=yes
gl_cv_func_wcrtomb_retval=yes
EOF</userinput></screen>

    <para os="a">Prepare Tar for compilation:</para>

<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin \
    --cache-file=config.cache</userinput></screen>

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make</userinput></screen>

    <para os="e">Install the package:</para>

<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>

  </sect2>

  <sect2 id="contents-tar" role="content">
    <title>Contents of Tar</title>

    <segmentedlist>
      <segtitle>Installed programs</segtitle>

      <seglistitem>
        <seg>rmt and tar</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="rmt">
        <term><command>rmt</command></term>
        <listitem>
          <para>Remotely manipulates a magnetic
          tape drive through an interprocess communication connection</para>
          <indexterm zone="ch-system-tar rmt">
            <primary sortas="b-rmt">rmt</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="tar">
        <term><command>tar</command></term>
        <listitem>
          <para>Creates, extracts files from, and lists the contents of
          archives, also known as tarballs</para>
          <indexterm zone="ch-system-tar tar">
            <primary sortas="b-tar">tar</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>