stripping.po 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-19 11:33+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:11
  20. msgid "Cleaning up and Saving the Temporary System"
  21. msgstr ""
  22. #. type: Content of: <sect1><note><para>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:14
  24. msgid ""
  25. "All the steps in this section are optional. Nevertheless, as soon as you "
  26. "begin installing packages in <xref linkend=\"chapter-building-system\"/>, "
  27. "the temporary tools will be overwritten. So it may be a good idea to do a "
  28. "backup of the temporary tools as described below. The other steps are only "
  29. "needed if you are really short on disk space."
  30. msgstr ""
  31. #. type: Content of: <sect1><para>
  32. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:23
  33. msgid ""
  34. "The following steps are performed from outside the chroot environment. That "
  35. "means, you have to leave the chroot environment first before continuing. The "
  36. "reason for that is to:"
  37. msgstr ""
  38. #. type: Content of: <sect1><para><itemizedlist><listitem><para>
  39. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:29
  40. msgid "make sure that objects are not in use while they are manipulated."
  41. msgstr ""
  42. #. type: Content of: <sect1><para><itemizedlist><listitem><para>
  43. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:35
  44. msgid ""
  45. "get access to file system locations outside of the chroot environment to "
  46. "store/read the backup archive which should not be placed within the "
  47. "<filename class=\"directory\">$LFS</filename> hierarchy for safety reasons."
  48. msgstr ""
  49. #. type: Content of: <sect1><para>
  50. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:46
  51. msgid ""
  52. "Leave the chroot environment and unmount the kernel virtual file systems:"
  53. msgstr ""
  54. #. type: Content of: <sect1><note><para>
  55. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:51
  56. msgid ""
  57. "All of the following instructions are executed by <systemitem class="
  58. "\"username\">root</systemitem>. Take extra care about the commands you're "
  59. "going to run as mistakes here can modify your host system. Be aware that the "
  60. "environment variable <envar>LFS</envar> is set for user <systemitem class="
  61. "\"username\">lfs</systemitem> by default but it might <emphasis>not</"
  62. "emphasis> be set for <systemitem class=\"username\">root</systemitem>. "
  63. "Whenever commands are to be executed by <systemitem class=\"username\">root</"
  64. "systemitem>, make sure you have set <envar>LFS</envar> accordingly. This "
  65. "has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>."
  66. msgstr ""
  67. #. type: Content of: <sect1><screen>
  68. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:65
  69. #, no-wrap
  70. msgid ""
  71. "<userinput>exit\n"
  72. "umount $LFS/dev{/pts,}\n"
  73. "umount $LFS/{sys,proc,run}</userinput>"
  74. msgstr ""
  75. #. type: Content of: <sect1><sect2><title>
  76. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:70
  77. msgid "Stripping"
  78. msgstr ""
  79. #. type: Content of: <sect1><sect2><para>
  80. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:72
  81. msgid ""
  82. "If the LFS partition is rather small, it is good to know that unnecessary "
  83. "items can be removed. The executables and libraries built so far contain a "
  84. "little over 90 MB of unneeded debugging symbols."
  85. msgstr ""
  86. #. type: Content of: <sect1><sect2><para>
  87. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:77
  88. msgid "Strip off debugging symbols from binaries:"
  89. msgstr ""
  90. #. type: Content of: <sect1><sect2><screen>
  91. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:78
  92. #, no-wrap
  93. msgid ""
  94. "<userinput>strip --strip-debug $LFS/usr/lib/*\n"
  95. "strip --strip-unneeded $LFS/usr/{,s}bin/*\n"
  96. "strip --strip-unneeded $LFS/tools/bin/*</userinput>"
  97. msgstr ""
  98. #. Note that we use the <command>
  99. #. strip</command> program built in
  100. #. <quote>Binutils pass 2</quote>, since it is the one that knows how to strip
  101. #. our cross-compiled programs.
  102. #. type: Content of: <sect1><sect2><para>
  103. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:82
  104. msgid ""
  105. "These commands will skip a number of files reporting that it does not "
  106. "recognize their file format. Most of these are scripts instead of binaries."
  107. msgstr ""
  108. #. type: Content of: <sect1><sect2><para>
  109. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:88
  110. msgid ""
  111. "Take care <emphasis>NOT</emphasis> to use <parameter>--strip-unneeded</"
  112. "parameter> on the libraries. The static ones would be destroyed and the "
  113. "toolchain packages would need to be built all over again."
  114. msgstr ""
  115. #. type: Content of: <sect1><sect2><para>
  116. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:93
  117. msgid ""
  118. "To save more space (slightly more than 35 MB), remove the documentation:"
  119. msgstr ""
  120. #. type: Content of: <sect1><sect2><screen>
  121. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:95
  122. #, no-wrap
  123. msgid "<userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput>"
  124. msgstr ""
  125. #. type: Content of: <sect1><sect2><para>
  126. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:97
  127. msgid ""
  128. "The libtool .la files are only useful when linking with static libraries. "
  129. "They are unneeded, and potentially harmful, when using dynamic shared "
  130. "libraries, specially when using non-autotools build systems. Remove those "
  131. "files now:"
  132. msgstr ""
  133. #. type: Content of: <sect1><sect2><screen>
  134. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:102
  135. #, no-wrap
  136. msgid "<userinput>find $LFS/usr/{lib,libexec} -name \\*.la -delete</userinput>"
  137. msgstr ""
  138. #. type: Content of: <sect1><sect2><para>
  139. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:104
  140. msgid ""
  141. "At this point, you should have at least 5 GB of free space on the chroot "
  142. "partition that can be used to build and install Glibc and GCC in the next "
  143. "phase. If you can build and install Glibc, you can build and install the "
  144. "rest too. You can check the free disk space with the command <command>df -h "
  145. "$LFS</command>."
  146. msgstr ""
  147. #. type: Content of: <sect1><sect2><title>
  148. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:113
  149. msgid "Backup"
  150. msgstr ""
  151. #. type: Content of: <sect1><sect2><para>
  152. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:116
  153. msgid ""
  154. "Now that the essential tools have been created, its time to think about a "
  155. "backup. When every check has passed successfully in the previously built "
  156. "packages, your temporary tools are in a good state and might be backed up "
  157. "for later reuse. In case of fatal failures in the subsequent chapters, it "
  158. "often turns out that removing everything and starting over (more carefully) "
  159. "is the best option to recover. Unfortunately, all the temporary tools will "
  160. "be removed, too. To avoid spending extra time to redo something which has "
  161. "been built successfully, prepare a backup."
  162. msgstr ""
  163. #. type: Content of: <sect1><sect2><para>
  164. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:127
  165. msgid ""
  166. "Make sure you have at least 600 MB free disk space (the source tarballs will "
  167. "be included in the backup archive) in the home directory of user <systemitem "
  168. "class=\"username\">root</systemitem>."
  169. msgstr ""
  170. #. type: Content of: <sect1><sect2><para>
  171. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:133
  172. msgid "Create the backup archive by running the following command:"
  173. msgstr ""
  174. #. type: Content of: <sect1><sect2><screen>
  175. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:136
  176. #, no-wrap
  177. msgid ""
  178. "<userinput>cd $LFS &amp;&amp;\n"
  179. "tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput>"
  180. msgstr ""
  181. #. type: Content of: <sect1><sect2><screen>
  182. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:139
  183. #, no-wrap
  184. msgid ""
  185. "<userinput>cd $LFS &amp;&amp;\n"
  186. "tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput>"
  187. msgstr ""
  188. #. type: Content of: <sect1><sect2><para>
  189. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:143
  190. msgid ""
  191. "Replace <envar>$HOME</envar> by a directory of your choice if you do not "
  192. "want to have the backup stored in <systemitem class=\"username\">root</"
  193. "systemitem>'s home directory."
  194. msgstr ""
  195. #. type: Content of: <sect1><sect2><title>
  196. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:150
  197. msgid "Restore"
  198. msgstr ""
  199. #. type: Content of: <sect1><sect2><para>
  200. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:153
  201. msgid ""
  202. "In case some mistakes have been made and you need to start over, you can use "
  203. "this backup to restore the temporary tools and save some recovery time. "
  204. "Since the sources are located under <filename class=\"directory\">$LFS</"
  205. "filename>, they are included in the backup archive as well, so they do not "
  206. "need to be downloaded again. After checking that <filename class=\"directory"
  207. "\">$LFS</filename> is set properly, restore the backup by executing the "
  208. "following commands:"
  209. msgstr ""
  210. #. Make the following look different so users don't blindly run the
  211. #. restore when they don't need to.
  212. #. type: Content of: <sect1><sect2><screen>
  213. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:165
  214. #, no-wrap
  215. msgid ""
  216. "<computeroutput>cd $LFS &amp;&amp;\n"
  217. "rm -rf ./* &amp;&amp;\n"
  218. "tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput>"
  219. msgstr ""
  220. #. type: Content of: <sect1><sect2><screen>
  221. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:169
  222. #, no-wrap
  223. msgid ""
  224. "<computeroutput>cd $LFS &amp;&amp;\n"
  225. "rm -rf ./* &amp;&amp;\n"
  226. "tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput>"
  227. msgstr ""
  228. #. type: Content of: <sect1><sect2><para>
  229. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:174
  230. msgid ""
  231. "Again, double check that the environment has been setup properly and "
  232. "continue building the rest of the system."
  233. msgstr ""
  234. #. type: Content of: <sect1><sect2><important><para>
  235. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:180
  236. msgid ""
  237. "If you left the chroot environment either to strip off debug symbols, create "
  238. "a backup, or restart building using a restore, remember to mount the kernel "
  239. "virtual filesystems now again as described in <xref linkend='ch-tools-"
  240. "kernfs'/> and re-enter the chroot environment (see <xref linkend='ch-tools-"
  241. "chroot'/>) again before continuing."
  242. msgstr ""