Ticket #3600: symlinks.patch

File symlinks.patch, 3.3 KB (added by chris@…, 7 years ago)
  • trunk/BOOK/chapter06/createfiles.xml

     
    4646sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
    4747ln -sv bash /bin/sh</userinput></screen>
    4848
     49  <variablelist>
     50    <title>The purpose of each link:</title>
     51
     52    <varlistentry>
     53      <term><parameter><filename>/bin/bash</filename></parameter></term>
     54      <listitem>
     55        <para>Many <command>bash</command> scripts specify
     56        <filename>/bin/bash</filename>.</para>
     57      </listitem>
     58    </varlistentry>
     59
     60    <varlistentry>
     61      <term><parameter><filename>/bin/cat</filename></parameter></term>
     62      <listitem>
     63        <para>This pathname is hard-coded into Glibc's configure script.</para>
     64      </listitem>
     65    </varlistentry>
     66
     67    <varlistentry>
     68      <term><parameter><filename>/bin/echo</filename></parameter></term>
     69      <listitem>
     70        <para>This is to satisfy one of the tests in Glibc's test suite, which
     71        expects <filename>/bin/echo</filename>.</para>
     72      </listitem>
     73    </varlistentry>
     74
     75    <varlistentry>
     76      <term><parameter><filename>/bin/pwd</filename></parameter></term>
     77      <listitem>
     78        <para>Some <command>configure</command> scripts, particularly Glibc's,
     79        have this pathname hard-coded.</para>
     80      </listitem>
     81    </varlistentry>
     82
     83    <varlistentry>
     84      <term><parameter><filename>/bin/stty</filename></parameter></term>
     85      <listitem>
     86        <para>This pathname is hard-coded into Expect, therefore it is needed
     87        for Binutils and GCC test suites to pass.</para>
     88      </listitem>
     89    </varlistentry>
     90
     91    <varlistentry>
     92      <term><parameter><filename>/usr/bin/perl</filename></parameter></term>
     93      <listitem>
     94        <para>Many Perl scripts hard-code this path to the
     95        <command>perl</command> program.</para>
     96      </listitem>
     97    </varlistentry>
     98
     99    <varlistentry>
     100      <term><parameter><filename>/usr/lib/libgcc_s.so{,.1}</filename></parameter></term>
     101      <listitem>
     102        <para>Glibc needs this for the pthreads library to work.</para>
     103      </listitem>
     104    </varlistentry>
     105
     106    <varlistentry>
     107      <term><parameter><filename>/usr/lib/libstdc++{,.6}</filename></parameter></term>
     108      <listitem>
     109        <para>This is needed by several tests in Glibc's test suite, as well as
     110        for C++ support in GMP.</para>
     111      </listitem>
     112    </varlistentry>
     113
     114    <varlistentry>
     115      <term><parameter><filename>/usr/lib/libstdc++.la</filename></parameter></term>
     116      <listitem>
     117        <para>This prevents a <filename class="directory">/tools</filename>
     118        reference that would otherwise be in
     119        <filename>/usr/lib/libstdc++.la</filename> after GCC is installed.</para>
     120      </listitem>
     121    </varlistentry>
     122
     123    <varlistentry>
     124      <term><parameter><filename>/bin/sh</filename></parameter></term>
     125      <listitem>
     126        <para>Many shell scripts hard-code <filename>/bin/sh</filename>.</para>
     127      </listitem>
     128    </varlistentry>
     129
     130  </variablelist>
     131
    49132  <para>Historically, Linux maintains a list of the mounted file systems in the
    50133  file <filename>/etc/mtab</filename>. Modern kernels maintain this list
    51134  internally and exposes it to the user via the <filename