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-bash" role="wrap">
  <?dbhtml filename="bash.html"?>

  <title>Bash-&bash-version;</title>

  <indexterm zone="ch-system-bash">
    <primary sortas="a-Bash">Bash</primary>
  </indexterm>

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

    <para>The Bash package contains the Bourne-Again SHell.</para>

  </sect2>

  &env-target;

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

    <para os="p1">The following patch contains updates from the maintainer. The
    maintainer of Bash only releases these patches to fix serious issues:</para>

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

    <para os="c">When bBsh is cross-compiled, it cannot test for the presence
    of named pipes, among other things. If you used <command>su</command> to
    become an unprivileged user, this combination will cause Bash to build
    without <emphasis>process substitution</emphasis>, which will break one
    of the C++ test scripts in <literal>eglibc</literal>. The following prevents
    future problems by skipping the check for named pipes, as well as other
    tests that can not run while cross-compiling or that do not run properly:</para>

<screen os="d"><userinput>cat &gt; config.cache &lt;&lt; "EOF"
ac_cv_func_mmap_fixed_mapped=yes
ac_cv_func_strcoll_works=yes
ac_cv_func_working_mktime=yes
bash_cv_func_sigsetjmp=present
bash_cv_getcwd_malloc=yes
bash_cv_job_control_missing=present
bash_cv_printf_a_format=yes
bash_cv_sys_named_pipes=present
bash_cv_ulimit_maxfds=yes
bash_cv_under_sys_siglist=yes
bash_cv_unusable_rtsigs=no
gt_cv_int_divbyzero_sigfpe=yes
EOF</userinput></screen>

<para os="e">Prepare Bash for compilation:</para>

<screen os="f"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr --bindir=/bin --cache-file=config.cache \
    --without-bash-malloc --with-installed-readline</userinput></screen>

    <variablelist os="g">
      <title>The meaning of the configure option:</title>

      <varlistentry>
        <term><parameter>--with-installed-readline</parameter></term>
        <listitem>
          <para>This option tells Bash to use the
          <filename class="libraryfile">readline</filename> library that is
          already installed on the system rather than using its own readline
          version.</para>
        </listitem>
      </varlistentry>
    </variablelist>

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

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

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

<screen os="k"><userinput>make DESTDIR=${CLFS} htmldir=/usr/share/doc/bash-&bash-version; install</userinput></screen>

    <para os="l">Create /bin/sh:</para>

<screen os="m"><userinput>ln -sfv bash ${CLFS}/bin/sh</userinput></screen>

  </sect2>

  <sect2 id="contents-bash" role="content">
    <title>Contents of Bash</title>

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

      <seglistitem>
        <seg>bash, bashbug, and sh (link to bash)</seg>
      </seglistitem>
    </segmentedlist>

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

      <varlistentry id="bash">
        <term><command>bash</command></term>
        <listitem>
          <para>A widely-used command interpreter; it performs many types of
          expansions and substitutions on a given command line before executing
          it, thus making this interpreter a powerful tool</para>
          <indexterm zone="ch-system-bash bash">
            <primary sortas="b-bash">bash</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="bashbug">
        <term><command>bashbug</command></term>
        <listitem>
          <para>A shell script to help the user compose and mail standard
          formatted bug reports concerning <command>bash</command></para>
          <indexterm zone="ch-system-bash bashbug">
            <primary sortas="b-bashbug">bashbug</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="sh">
        <term><command>sh</command></term>
        <listitem>
          <para>A symlink to the <command>bash</command> program; when invoked
          as <command>sh</command>, <command>bash</command> tries to mimic the
          startup behavior of historical versions of <command>sh</command> as
          closely as possible, while conforming to the POSIX standard as
          well</para>
          <indexterm zone="ch-system-bash sh">
            <primary sortas="b-sh">sh</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>