mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Add additional symlinks to avoid /tools references in final system.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11247 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
0f322d5e32
commit
d1a862d74d
@ -42,6 +42,16 @@
|
|||||||
<listitem revision="sysv"> or <listitem revision="systemd"> as
|
<listitem revision="sysv"> or <listitem revision="systemd"> as
|
||||||
appropriate for the entry or if needed the entire day's listitem.
|
appropriate for the entry or if needed the entire day's listitem.
|
||||||
-->
|
-->
|
||||||
|
<listitem>
|
||||||
|
<para>2017-05-13</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[dj] - Add additional symlinks to avoid "/tools" references
|
||||||
|
in final system.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2017-05-07</para>
|
<para>2017-05-07</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -34,16 +34,28 @@
|
|||||||
<primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
|
<primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
|
|
||||||
<para>Some programs use hard-wired paths to programs which do not exist yet. In
|
<para>Some programs use hard-wired paths to programs which do not exist yet.
|
||||||
order to satisfy these programs, create a number of symbolic links which will be
|
In order to satisfy these programs, create a number of symbolic links which
|
||||||
replaced by real files throughout the course of this chapter after the software
|
will be replaced by real files throughout the course of this chapter after the
|
||||||
has been installed:</para>
|
software has been installed:</para>
|
||||||
|
|
||||||
<screen><userinput>ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
|
<screen revision="sysv"><userinput>ln -sv /tools/bin/{bash,cat,dd,echo,ln,pwd,rm,stty} /bin
|
||||||
ln -sv /tools/bin/perl /usr/bin
|
ln -sv /tools/bin/{install,perl} /usr/bin
|
||||||
ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
|
ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
|
||||||
ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib
|
ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib
|
||||||
sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
|
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>
|
ln -sv bash /bin/sh</userinput></screen>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -64,6 +76,14 @@ ln -sv bash /bin/sh</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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>
|
<varlistentry>
|
||||||
<term><parameter><filename>/bin/echo</filename></parameter></term>
|
<term><parameter><filename>/bin/echo</filename></parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -72,6 +92,23 @@ ln -sv bash /bin/sh</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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>
|
<varlistentry>
|
||||||
<term><parameter><filename>/bin/pwd</filename></parameter></term>
|
<term><parameter><filename>/bin/pwd</filename></parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -80,6 +117,15 @@ ln -sv bash /bin/sh</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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>
|
<varlistentry>
|
||||||
<term><parameter><filename>/bin/stty</filename></parameter></term>
|
<term><parameter><filename>/bin/stty</filename></parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -120,6 +166,15 @@ ln -sv bash /bin/sh</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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>
|
<varlistentry>
|
||||||
<term><parameter><filename>/bin/sh</filename></parameter></term>
|
<term><parameter><filename>/bin/sh</filename></parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!ENTITY version "SVN-20170507">
|
<!ENTITY version "SVN-20170513">
|
||||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
||||||
Change to x.y for release but not -rc releases -->
|
Change to x.y for release but not -rc releases -->
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||||
|
|
||||||
<!ENTITY versiond "20170507-systemd">
|
<!ENTITY versiond "20170513-systemd">
|
||||||
<!ENTITY short-versiond "systemd">
|
<!ENTITY short-versiond "systemd">
|
||||||
<!ENTITY generic-versiond "systemd">
|
<!ENTITY generic-versiond "systemd">
|
||||||
|
|
||||||
<!ENTITY releasedate "May 7, 2017">
|
<!ENTITY releasedate "May 13, 2017">
|
||||||
|
|
||||||
<!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "8.1">
|
<!ENTITY milestone "8.1">
|
||||||
|
Loading…
Reference in New Issue
Block a user