- Timestamp:
- 06/11/2020 06:27:01 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 6a156bab
- Parents:
- 3b1b9de
- Location:
- chapter07
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/libstdc++-pass2.xml
r3b1b9de rea7ec72 29 29 was available to compile it. We could not use the compiler built in that 30 30 section because it is a native compiler and should not be used outside of 31 chroot and risk polluting the libraries with some host components.</para>31 chroot and risks polluting the libraries with some host components.</para> 32 32 33 33 <segmentedlist> -
chapter07/stripping.xml
r3b1b9de rea7ec72 20 20 The following steps are performed from outside the chroot 21 21 environment. That means, you have to leave the chroot environment 22 first before continuing. The reason for that is to 22 first before continuing. The reason for that is to: 23 23 <itemizedlist> 24 24 <listitem> 25 25 <para> 26 make sure that objects are not in use while they gets27 26 make sure that objects are not in use while they are 27 manipulated. 28 28 </para> 29 29 </listitem> … … 45 45 </para> 46 46 47 <screen role="nodump"><userinput>exit48 umount $LFS/dev{/pts,}49 umount $LFS/{sys,proc,run}</userinput></screen>50 51 47 <note> 52 48 <para>All of the following instructions are executed by … … 64 60 </note> 65 61 62 <screen role="nodump"><userinput>exit 63 umount $LFS/dev{/pts,} 64 umount $LFS/{sys,proc,run}</userinput></screen> 65 66 66 <sect2> 67 67 <title>Stripping</title> 68 68 69 <para>If the LFS partition is rather small, it is beneficialto70 learnthat unnecessary items can be removed. The executables and71 libraries built so far contain a bout 94MB of unneeded debugging69 <para>If the LFS partition is rather small, it is good to 70 know that unnecessary items can be removed. The executables and 71 libraries built so far contain a little over 90 MB of unneeded debugging 72 72 symbols.</para> 73 73 … … 88 88 built all over again.</para> 89 89 90 <para>To save more space ( about 37MB), remove the documentation:</para>90 <para>To save more space (slightly more than 35 MB), remove the documentation:</para> 91 91 92 92 <screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen> … … 100 100 101 101 <para>At this point, you should have at least 5 GB of free space on the 102 chroot partition that can be used to build and install Glibc and G ccin102 chroot partition that can be used to build and install Glibc and GCC in 103 103 the next phase. If you can build and install Glibc, you can build and install 104 104 the rest too. You can check the free disk space with the command 105 <command>df -h $LFS /</command>.</para>105 <command>df -h $LFS</command>.</para> 106 106 107 107 </sect2> … … 130 130 Create the backup archive by running the following command: 131 131 </para> 132 <screen role="nodump"><userinput>cd $LFS && 133 tar -cJpf $HOME/temp-tools.tar.xz . 132 133 <screen role="nodump" revision="sysv"><userinput>cd $LFS && 134 tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz . 134 135 </userinput></screen> 136 137 <screen role="nodump" revision="systemd"><userinput>cd $LFS && 138 tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz . 139 </userinput></screen> 140 135 141 <para> 136 142 Replace <envar>$HOME</envar> by a directory of your choice if you 137 do not want to have the backup stored in <systemitem class="username">root</systemitem>'s138 home directory.143 do not want to have the backup stored in <systemitem 144 class="username">root</systemitem>'s home directory. 139 145 </para> 140 146 … … 144 150 Since the sources are located under 145 151 <filename class="directory">$LFS</filename>, they are included in the 146 backup archive as well, so you need not to download themagain. After152 backup archive as well, so they do not need to be downloaded again. After 147 153 checking that <filename class="directory">$LFS</filename> is set properly, 148 154 restore the backup by executing the following commands: 149 155 </para> 150 156 151 <screen role="nodump" ><userinput>cd $LFS &&157 <screen role="nodump" revision="sysv"><userinput>cd $LFS && 152 158 rm -rf ./* && 153 tar -xpf $HOME/temp-tools.tar.xz 159 tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz 160 </userinput></screen> 161 162 <screen role="nodump" revision="systemd"><userinput>cd $LFS && 163 rm -rf ./* && 164 tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz 154 165 </userinput></screen> 155 166 -
chapter07/util-linux.xml
r3b1b9de rea7ec72 70 70 <para>This sets the location of the file recording information about 71 71 the hardware clock in accordance to the FHS. This is not stricly 72 needed for his temporary tool, but it prevents creating a file72 needed for this temporary tool, but it prevents creating a file 73 73 at another location, which would not be overwritten or removed 74 74 when building the final util-linux package.</para>
Note:
See TracChangeset
for help on using the changeset viewer.