diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/createfiles.xml | 67 |
1 files changed, 61 insertions, 6 deletions
diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index 312888c0b..99cc0da9f 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -34,18 +34,30 @@ <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary> </indexterm> - <para>Some programs use hard-wired paths to programs which do not exist yet. In - order to satisfy these programs, create a number of symbolic links which will be - replaced by real files throughout the course of this chapter after the software - has been installed:</para> + <para>Some programs use hard-wired paths to programs which do not exist yet. + In order to satisfy these programs, create a number of symbolic links which + will be replaced by real files throughout the course of this chapter after the + software has been installed:</para> -<screen><userinput>ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin -ln -sv /tools/bin/perl /usr/bin +<screen revision="sysv"><userinput>ln -sv /tools/bin/{bash,cat,dd,echo,ln,pwd,rm,stty} /bin +ln -sv /tools/bin/{install,perl} /usr/bin ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la ln -sv bash /bin/sh</userinput></screen> +<screen revision="systemd"><userinput>ln -sv /tools/bin/{bash,cat,dd,echo,ln,pwd,rm,stty} /bin +ln -sv /tools/bin/{install,perl} /usr/bin +ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib +ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib +sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la +for lib in blkid lzma mount uuid +do + ln -sv /tools/lib/lib$lib.{a,so*} /usr/lib + sed 's/tools/usr/' /tools/lib/lib${lib}.la > /usr/lib/lib${lib}.la +done +ln -sv bash /bin/sh</userinput></screen> + <variablelist> <title>The purpose of each link:</title> @@ -65,6 +77,14 @@ ln -sv bash /bin/sh</userinput></screen> </varlistentry> <varlistentry> + <term><parameter><filename>/bin/dd</filename></parameter></term> + <listitem> + <para>The path to <filename>dd</filename> will be hard-coded into the + <filename>/usr/bin/libtool</filename> utility.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter><filename>/bin/echo</filename></parameter></term> <listitem> <para>This is to satisfy one of the tests in Glibc's test suite, which @@ -73,6 +93,23 @@ ln -sv bash /bin/sh</userinput></screen> </varlistentry> <varlistentry> + <term><parameter><filename>/usr/bin/install</filename></parameter></term> + <listitem> + <para>The path to <filename>install</filename> will be hard-coded into + the <filename>/usr/lib/bash/Makefile.inc</filename> file.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><parameter><filename>/bin/ln</filename></parameter></term> + <listitem> + <para>The path to <filename>ln</filename> will be hard-coded into the + <filename>/usr/lib/perl5/&perl-version;/<target-triplet>/Config_heavy.pl</filename> + file.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter><filename>/bin/pwd</filename></parameter></term> <listitem> <para>Some <command>configure</command> scripts, particularly Glibc's, @@ -81,6 +118,15 @@ ln -sv bash /bin/sh</userinput></screen> </varlistentry> <varlistentry> + <term><parameter><filename>/bin/rm</filename></parameter></term> + <listitem> + <para>The path to <filename>rm</filename> will be hard-coded into the + <filename>/usr/lib/perl5/&perl-version;/<target-triplet>/Config_heavy.pl</filename> + file.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter><filename>/bin/stty</filename></parameter></term> <listitem> <para>This pathname is hard-coded into Expect, therefore it is needed @@ -120,6 +166,15 @@ ln -sv bash /bin/sh</userinput></screen> </listitem> </varlistentry> + <varlistentry revision="systemd"> + <term><parameter><filename>/usr/lib/lib{blkid,lzma,mount,uuid}.{a,la,so*}</filename></parameter></term> + <listitem> + <para>These links prevent systemd utilties from being poluted with an + unnecessary reference to the + <filename class="directory">/tools</filename> directory.</para> + </listitem> + </varlistentry> + <varlistentry> <term><parameter><filename>/bin/sh</filename></parameter></term> <listitem> |