stripping.po 10 KB

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