mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 14:24:48 +00:00
Typos.
Tweaks to stripping.xml git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11923 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
3b1b9de387
commit
ea7ec72fba
@ -828,8 +828,8 @@
|
|||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
<!-- Begin Gcc dependency info -->
|
<!-- Begin GCC dependency info -->
|
||||||
<bridgehead renderas="sect2" id="gcc-dep">Gcc</bridgehead>
|
<bridgehead renderas="sect2" id="gcc-dep">GCC</bridgehead>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&dependencies;</segtitle>
|
<segtitle>&dependencies;</segtitle>
|
||||||
@ -1948,7 +1948,7 @@
|
|||||||
<segtitle>&dependencies;</segtitle>
|
<segtitle>&dependencies;</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>Binutils, Coreutils, Gcc, and Python</seg>
|
<seg>Binutils, Coreutils, GCC, and Python</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
@ -1983,7 +1983,7 @@
|
|||||||
<segtitle>&dependencies;</segtitle>
|
<segtitle>&dependencies;</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>Binutils, Coreutils, Gcc, Make, and Perl</seg>
|
<seg>Binutils, Coreutils, GCC, Make, and Perl</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
the installation of the C++ standard library because no suitable compiler
|
the installation of the C++ standard library because no suitable compiler
|
||||||
was available to compile it. We could not use the compiler built in that
|
was available to compile it. We could not use the compiler built in that
|
||||||
section because it is a native compiler and should not be used outside of
|
section because it is a native compiler and should not be used outside of
|
||||||
chroot and risk polluting the libraries with some host components.</para>
|
chroot and risks polluting the libraries with some host components.</para>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
<para>
|
<para>
|
||||||
The following steps are performed from outside the chroot
|
The following steps are performed from outside the chroot
|
||||||
environment. That means, you have to leave the chroot environment
|
environment. That means, you have to leave the chroot environment
|
||||||
first before continuing. The reason for that is to
|
first before continuing. The reason for that is to:
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
make sure that objects are not in use while they gets
|
make sure that objects are not in use while they are
|
||||||
manipulated.
|
manipulated.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
@ -44,10 +44,6 @@
|
|||||||
systems:
|
systems:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>exit
|
|
||||||
umount $LFS/dev{/pts,}
|
|
||||||
umount $LFS/{sys,proc,run}</userinput></screen>
|
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>All of the following instructions are executed by
|
<para>All of the following instructions are executed by
|
||||||
<systemitem class="username">root</systemitem>. Take extra
|
<systemitem class="username">root</systemitem>. Take extra
|
||||||
@ -63,12 +59,16 @@ umount $LFS/{sys,proc,run}</userinput></screen>
|
|||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
|
<screen role="nodump"><userinput>exit
|
||||||
|
umount $LFS/dev{/pts,}
|
||||||
|
umount $LFS/{sys,proc,run}</userinput></screen>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Stripping</title>
|
<title>Stripping</title>
|
||||||
|
|
||||||
<para>If the LFS partition is rather small, it is beneficial to
|
<para>If the LFS partition is rather small, it is good to
|
||||||
learn that unnecessary items can be removed. The executables and
|
know that unnecessary items can be removed. The executables and
|
||||||
libraries built so far contain about 94 MB of unneeded debugging
|
libraries built so far contain a little over 90 MB of unneeded debugging
|
||||||
symbols.</para>
|
symbols.</para>
|
||||||
|
|
||||||
<para>Strip off debugging symbols from binaries:</para>
|
<para>Strip off debugging symbols from binaries:</para>
|
||||||
@ -87,7 +87,7 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
|
|||||||
ones would be destroyed and the toolchain packages would need to be
|
ones would be destroyed and the toolchain packages would need to be
|
||||||
built all over again.</para>
|
built all over again.</para>
|
||||||
|
|
||||||
<para>To save more space (about 37 MB), remove the documentation:</para>
|
<para>To save more space (slightly more than 35 MB), remove the documentation:</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen>
|
<screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen>
|
||||||
|
|
||||||
@ -99,10 +99,10 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
|
|||||||
<screen role="nodump"><userinput>find $LFS/usr/{lib,libexec} -name \*.la -delete</userinput></screen>
|
<screen role="nodump"><userinput>find $LFS/usr/{lib,libexec} -name \*.la -delete</userinput></screen>
|
||||||
|
|
||||||
<para>At this point, you should have at least 5 GB of free space on the
|
<para>At this point, you should have at least 5 GB of free space on the
|
||||||
chroot partition that can be used to build and install Glibc and Gcc in
|
chroot partition that can be used to build and install Glibc and GCC in
|
||||||
the next phase. If you can build and install Glibc, you can build and install
|
the next phase. If you can build and install Glibc, you can build and install
|
||||||
the rest too. You can check the free disk space with the command
|
the rest too. You can check the free disk space with the command
|
||||||
<command>df -h $LFS/</command>.</para>
|
<command>df -h $LFS</command>.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
@ -129,13 +129,19 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
|
|||||||
<para>
|
<para>
|
||||||
Create the backup archive by running the following command:
|
Create the backup archive by running the following command:
|
||||||
</para>
|
</para>
|
||||||
<screen role="nodump"><userinput>cd $LFS &&
|
|
||||||
tar -cJpf $HOME/temp-tools.tar.xz .
|
<screen role="nodump" revision="sysv"><userinput>cd $LFS &&
|
||||||
|
tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .
|
||||||
</userinput></screen>
|
</userinput></screen>
|
||||||
|
|
||||||
|
<screen role="nodump" revision="systemd"><userinput>cd $LFS &&
|
||||||
|
tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .
|
||||||
|
</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Replace <envar>$HOME</envar> by a directory of your choice if you
|
Replace <envar>$HOME</envar> by a directory of your choice if you
|
||||||
do not want to have the backup stored in <systemitem class="username">root</systemitem>'s
|
do not want to have the backup stored in <systemitem
|
||||||
home directory.
|
class="username">root</systemitem>'s home directory.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -143,14 +149,19 @@ tar -cJpf $HOME/temp-tools.tar.xz .
|
|||||||
use this backup to restore the temporary tools and save some recovery time.
|
use this backup to restore the temporary tools and save some recovery time.
|
||||||
Since the sources are located under
|
Since the sources are located under
|
||||||
<filename class="directory">$LFS</filename>, they are included in the
|
<filename class="directory">$LFS</filename>, they are included in the
|
||||||
backup archive as well, so you need not to download them again. After
|
backup archive as well, so they do not need to be downloaded again. After
|
||||||
checking that <filename class="directory">$LFS</filename> is set properly,
|
checking that <filename class="directory">$LFS</filename> is set properly,
|
||||||
restore the backup by executing the following commands:
|
restore the backup by executing the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>cd $LFS &&
|
<screen role="nodump" revision="sysv"><userinput>cd $LFS &&
|
||||||
rm -rf ./* &&
|
rm -rf ./* &&
|
||||||
tar -xpf $HOME/temp-tools.tar.xz
|
tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz
|
||||||
|
</userinput></screen>
|
||||||
|
|
||||||
|
<screen role="nodump" revision="systemd"><userinput>cd $LFS &&
|
||||||
|
rm -rf ./* &&
|
||||||
|
tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz
|
||||||
</userinput></screen>
|
</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>This sets the location of the file recording information about
|
<para>This sets the location of the file recording information about
|
||||||
the hardware clock in accordance to the FHS. This is not stricly
|
the hardware clock in accordance to the FHS. This is not stricly
|
||||||
needed for his temporary tool, but it prevents creating a file
|
needed for this temporary tool, but it prevents creating a file
|
||||||
at another location, which would not be overwritten or removed
|
at another location, which would not be overwritten or removed
|
||||||
when building the final util-linux package.</para>
|
when building the final util-linux package.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!ENTITY version "20200610-cross2">
|
<!ENTITY version "20200611-cross2">
|
||||||
<!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 "cross-chap5"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "cross-chap5"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||||
|
|
||||||
<!ENTITY versiond "20200610-cross2-systemd">
|
<!ENTITY versiond "20200611-cross2-systemd">
|
||||||
<!ENTITY short-versiond "systemd">
|
<!ENTITY short-versiond "systemd">
|
||||||
<!ENTITY generic-versiond "20200610-cross2-systemd">
|
<!ENTITY generic-versiond "20200611-cross2-systemd">
|
||||||
|
|
||||||
<!ENTITY releasedate "June 10th, 2020">
|
<!ENTITY releasedate "June 11th, 2020">
|
||||||
|
|
||||||
<!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – -->
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<title>Part III - Building the LFS Cross Toolchain and Temporary Tools</title>
|
<title>Part III - Building the LFS Cross Toolchain and Temporary Tools</title>
|
||||||
|
|
||||||
<para>Part III provides instructions for building the tools
|
<para>Part III provides instructions for building the tools
|
||||||
needed for construction the final LFS system.</para>
|
needed for constructing the final LFS system.</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
|
@ -194,7 +194,7 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Gcc</para>
|
<para>GCC</para>
|
||||||
|
|
||||||
<para>This package is the Gnu Compiler Collection. It contains the
|
<para>This package is the Gnu Compiler Collection. It contains the
|
||||||
C and C++ compilers as well as several others not built by LFS.
|
C and C++ compilers as well as several others not built by LFS.
|
||||||
@ -226,7 +226,7 @@
|
|||||||
<para>GMP</para>
|
<para>GMP</para>
|
||||||
|
|
||||||
<para>This package contains math libraries that provide useful functions
|
<para>This package contains math libraries that provide useful functions
|
||||||
for arbitrary precision arithmetic. It is required to build Gcc.</para>
|
for arbitrary precision arithmetic. It is required to build GCC.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -416,14 +416,14 @@
|
|||||||
<para>MPC</para>
|
<para>MPC</para>
|
||||||
|
|
||||||
<para>This package contains functions for the arithmetic of complex
|
<para>This package contains functions for the arithmetic of complex
|
||||||
numbers. It is required by Gcc.</para>
|
numbers. It is required by GCC.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>MPFR</para>
|
<para>MPFR</para>
|
||||||
|
|
||||||
<para>This package contains functions for multiple precision
|
<para>This package contains functions for multiple precision
|
||||||
arithmetic. It is required by Gcc.</para>
|
arithmetic. It is required by GCC.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user