stripping.po 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. msgid ""
  2. msgstr ""
  3. "Project-Id-Version: PACKAGE VERSION\n"
  4. "Report-Msgid-Bugs-To: \n"
  5. "POT-Creation-Date: 2020-06-19 11:33+0800\n"
  6. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  7. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  8. "Language-Team: LANGUAGE <LL@li.org>\n"
  9. "Language: zh_CN\n"
  10. "MIME-Version: 1.0\n"
  11. "Content-Type: text/plain; charset=UTF-8\n"
  12. "Content-Transfer-Encoding: 8bit\n"
  13. "X-Generator: Translate Toolkit 2.2.5\n"
  14. "X-Pootle-Path: /zh_CN/lfs/chapter05/stripping.po\n"
  15. "X-Pootle-Revision: 1247303\n"
  16. #. type: Content of: <sect1><title>
  17. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:11
  18. msgid "Cleaning up and Saving the Temporary System"
  19. msgstr ""
  20. #. type: Content of: <sect1><note><para>
  21. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:14
  22. msgid ""
  23. "All the steps in this section are optional. Nevertheless, as soon as you "
  24. "begin installing packages in <xref linkend=\"chapter-building-system\"/>, "
  25. "the temporary tools will be overwritten. So it may be a good idea to do a "
  26. "backup of the temporary tools as described below. The other steps are only "
  27. "needed if you are really short on disk space."
  28. msgstr ""
  29. #. type: Content of: <sect1><para>
  30. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:23
  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:29
  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:35
  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:46
  49. msgid ""
  50. "Leave the chroot environment and unmount the kernel virtual file systems:"
  51. msgstr ""
  52. #. type: Content of: <sect1><note><para>
  53. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:51
  54. msgid ""
  55. "All of the following instructions are executed by <systemitem class="
  56. "\"username\">root</systemitem>. Take extra care about the commands you're "
  57. "going to run as mistakes here can modify your host system. Be aware that the "
  58. "environment variable <envar>LFS</envar> is set for user <systemitem class="
  59. "\"username\">lfs</systemitem> by default but it might <emphasis>not</"
  60. "emphasis> be set for <systemitem class=\"username\">root</systemitem>. "
  61. "Whenever commands are to be executed by <systemitem class=\"username\">root</"
  62. "systemitem>, make sure you have set <envar>LFS</envar> accordingly. This "
  63. "has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>."
  64. msgstr ""
  65. #. type: Content of: <sect1><screen>
  66. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:65
  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:70
  75. msgid "Stripping"
  76. msgstr "移除无用内容"
  77. #. type: Content of: <sect1><sect2><para>
  78. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:72
  79. #, fuzzy
  80. msgid ""
  81. "If the LFS partition is rather small, it is good to know that unnecessary "
  82. "items can be removed. The executables and libraries built so far contain a "
  83. "little over 90 MB of unneeded debugging symbols."
  84. msgstr ""
  85. "本节中的步骤是可选的,但如果 LFS 分区比较小,您应该了解一下,有些无用的内容"
  86. "可以删除。到现在为止,已经构建的可执行文件和库包含大约 70MB 的无用调试符号。"
  87. "执行以下命令,移除这些符号:"
  88. #. type: Content of: <sect1><sect2><para>
  89. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:77
  90. msgid "Strip off debugging symbols from binaries:"
  91. msgstr ""
  92. #. type: Content of: <sect1><sect2><screen>
  93. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:78
  94. #, fuzzy, no-wrap
  95. msgid ""
  96. "<userinput>strip --strip-debug $LFS/usr/lib/*\n"
  97. "strip --strip-unneeded $LFS/usr/{,s}bin/*\n"
  98. "strip --strip-unneeded $LFS/tools/bin/*</userinput>"
  99. msgstr ""
  100. "<userinput>strip --strip-debug /tools/lib/*\n"
  101. "/usr/bin/strip --strip-unneeded /tools/{,s}bin/*</userinput>"
  102. #. Note that we use the <command>
  103. #. strip</command> program built in
  104. #. <quote>Binutils pass 2</quote>, since it is the one that knows how to strip
  105. #. our cross-compiled programs.
  106. #. type: Content of: <sect1><sect2><para>
  107. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:82
  108. #, fuzzy
  109. msgid ""
  110. "These commands will skip a number of files reporting that it does not "
  111. "recognize their file format. Most of these are scripts instead of binaries."
  112. msgstr ""
  113. "以上命令会跳过一些文件,并报告说无法识别它们的格式。这些文件大多数都是脚本文"
  114. "件,而不是二进制文件。这里使用了宿主系统的 strip 命令,因为它可以清理 /"
  115. "tools 中的 strip 二进制程序。"
  116. #. type: Content of: <sect1><sect2><para>
  117. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:88
  118. #, fuzzy
  119. msgid ""
  120. "Take care <emphasis>NOT</emphasis> to use <parameter>--strip-unneeded</"
  121. "parameter> on the libraries. The static ones would be destroyed and the "
  122. "toolchain packages would need to be built all over again."
  123. msgstr ""
  124. "注意<emphasis>不要</emphasis>对库文件使用 <parameter>--strip-unneeded</"
  125. "parameter> 选项。这会损坏静态库,结果整个工具链都要重新构建。"
  126. #. type: Content of: <sect1><sect2><para>
  127. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:93
  128. #, fuzzy
  129. msgid ""
  130. "To save more space (slightly more than 35 MB), remove the documentation:"
  131. msgstr "为了节约更多空间,删除文档:"
  132. #. type: Content of: <sect1><sect2><screen>
  133. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:95
  134. #, fuzzy, no-wrap
  135. msgid "<userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput>"
  136. msgstr "<userinput>rm -rf /tools/{,share}/{info,man,doc}</userinput>"
  137. #. type: Content of: <sect1><sect2><para>
  138. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:97
  139. msgid ""
  140. "The libtool .la files are only useful when linking with static libraries. "
  141. "They are unneeded, and potentially harmful, when using dynamic shared "
  142. "libraries, specially when using non-autotools build systems. Remove those "
  143. "files now:"
  144. msgstr ""
  145. #. type: Content of: <sect1><sect2><screen>
  146. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:102
  147. #, fuzzy, no-wrap
  148. msgid "<userinput>find $LFS/usr/{lib,libexec} -name \\*.la -delete</userinput>"
  149. msgstr "<userinput>find /tools/{lib,libexec} -name \\*.la -delete</userinput>"
  150. #. type: Content of: <sect1><sect2><para>
  151. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:104
  152. #, fuzzy
  153. msgid ""
  154. "At this point, you should have at least 5 GB of free space on the chroot "
  155. "partition that can be used to build and install Glibc and GCC in the next "
  156. "phase. If you can build and install Glibc, you can build and install the "
  157. "rest too. You can check the free disk space with the command <command>df -h "
  158. "$LFS</command>."
  159. msgstr ""
  160. "现在,您应该保证 <envar>$LFS</envar> 有至少 3 GB 的可用空间,以在下一阶段构"
  161. "建和安装 Glibc 和 GCC 。如果空间足够构建和安装 Glibc,那么构建和安装剩余的软"
  162. "件包就不成问题。"
  163. #. type: Content of: <sect1><sect2><title>
  164. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:113
  165. msgid "Backup"
  166. msgstr ""
  167. #. type: Content of: <sect1><sect2><para>
  168. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:116
  169. msgid ""
  170. "Now that the essential tools have been created, its time to think about a "
  171. "backup. When every check has passed successfully in the previously built "
  172. "packages, your temporary tools are in a good state and might be backed up "
  173. "for later reuse. In case of fatal failures in the subsequent chapters, it "
  174. "often turns out that removing everything and starting over (more carefully) "
  175. "is the best option to recover. Unfortunately, all the temporary tools will "
  176. "be removed, too. To avoid spending extra time to redo something which has "
  177. "been built successfully, prepare a backup."
  178. msgstr ""
  179. #. type: Content of: <sect1><sect2><para>
  180. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:127
  181. msgid ""
  182. "Make sure you have at least 600 MB free disk space (the source tarballs will "
  183. "be included in the backup archive) in the home directory of user <systemitem "
  184. "class=\"username\">root</systemitem>."
  185. msgstr ""
  186. #. type: Content of: <sect1><sect2><para>
  187. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:133
  188. msgid "Create the backup archive by running the following command:"
  189. msgstr ""
  190. #. type: Content of: <sect1><sect2><screen>
  191. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:136
  192. #, no-wrap
  193. msgid ""
  194. "<userinput>cd $LFS &amp;&amp;\n"
  195. "tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput>"
  196. msgstr ""
  197. #. type: Content of: <sect1><sect2><screen>
  198. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:139
  199. #, no-wrap
  200. msgid ""
  201. "<userinput>cd $LFS &amp;&amp;\n"
  202. "tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput>"
  203. msgstr ""
  204. #. type: Content of: <sect1><sect2><para>
  205. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:143
  206. msgid ""
  207. "Replace <envar>$HOME</envar> by a directory of your choice if you do not "
  208. "want to have the backup stored in <systemitem class=\"username\">root</"
  209. "systemitem>'s home directory."
  210. msgstr ""
  211. #. type: Content of: <sect1><sect2><title>
  212. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:150
  213. msgid "Restore"
  214. msgstr ""
  215. #. type: Content of: <sect1><sect2><para>
  216. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:153
  217. msgid ""
  218. "In case some mistakes have been made and you need to start over, you can use "
  219. "this backup to restore the temporary tools and save some recovery time. "
  220. "Since the sources are located under <filename class=\"directory\">$LFS</"
  221. "filename>, they are included in the backup archive as well, so they do not "
  222. "need to be downloaded again. After checking that <filename class=\"directory"
  223. "\">$LFS</filename> is set properly, restore the backup by executing the "
  224. "following commands:"
  225. msgstr ""
  226. #. Make the following look different so users don't blindly run the
  227. #. restore when they don't need to.
  228. #. type: Content of: <sect1><sect2><screen>
  229. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:165
  230. #, no-wrap
  231. msgid ""
  232. "<computeroutput>cd $LFS &amp;&amp;\n"
  233. "rm -rf ./* &amp;&amp;\n"
  234. "tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput>"
  235. msgstr ""
  236. #. type: Content of: <sect1><sect2><screen>
  237. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:169
  238. #, no-wrap
  239. msgid ""
  240. "<computeroutput>cd $LFS &amp;&amp;\n"
  241. "rm -rf ./* &amp;&amp;\n"
  242. "tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput>"
  243. msgstr ""
  244. #. type: Content of: <sect1><sect2><para>
  245. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:174
  246. msgid ""
  247. "Again, double check that the environment has been setup properly and "
  248. "continue building the rest of the system."
  249. msgstr ""
  250. #. type: Content of: <sect1><sect2><important><para>
  251. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/stripping.xml:180
  252. msgid ""
  253. "If you left the chroot environment either to strip off debug symbols, create "
  254. "a backup, or restart building using a restore, remember to mount the kernel "
  255. "virtual filesystems now again as described in <xref linkend='ch-tools-"
  256. "kernfs'/> and re-enter the chroot environment (see <xref linkend='ch-tools-"
  257. "chroot'/>) again before continuing."
  258. msgstr ""
  259. #~ msgid "Remove unneeded files:"
  260. #~ msgstr "删除无用的文件:"