Changeset 4d3f41c
- Timestamp:
- 11/11/2022 04:19:56 PM (18 months ago)
- Branches:
- xry111/clfs-ng
- Children:
- b59b371
- Parents:
- cef7de5 (diff), c4fc75e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
rcef7de5 r4d3f41c 40 40 appropriate for the entry or if needed the entire day's listitem. 41 41 --> 42 <listitem revision="systemd"> 43 <para>2022-11-10</para> 44 <itemizedlist> 45 <listitem> 46 <para>[bdubbs] - Fix make-4.4 bug. Fixes 47 <ulink url="&lfs-ticket-root;5160">#5160</ulink>.</para> 48 </listitem> 49 <listitem> 50 <para>[bdubbs] - Update to wheel-0.38.4 (Python Module). Fixes 51 <ulink url="&lfs-ticket-root;5155">#5155</ulink>.</para> 52 </listitem> 53 <listitem> 54 <para>[bdubbs] - Update to texinfo-7.0. Fixes 55 <ulink url="&lfs-ticket-root;5159">#5159</ulink>.</para> 56 </listitem> 57 <listitem revision="sysv"> 58 <para>[bdubbs] - Update to sysvinit-3.05. Fixes 59 <ulink url="&lfs-ticket-root;5153">#5153</ulink>.</para> 60 </listitem> 61 <listitem> 62 <para>[bdubbs] - Update to shadow-4.13. Fixes 63 <ulink url="&lfs-ticket-root;5161">#5161</ulink>.</para> 64 </listitem> 65 <listitem> 66 <para>[bdubbs] - Update to sed-4.9. Fixes 67 <ulink url="&lfs-ticket-root;5157">#5157</ulink>.</para> 68 </listitem> 69 <listitem> 70 <para>[bdubbs] - Update to meson-0.64.0. Fixes 71 <ulink url="&lfs-ticket-root;5156">#5156</ulink>.</para> 72 </listitem> 73 <listitem> 74 <para>[bdubbs] - Update to linux-6.0.7. Fixes 75 <ulink url="&lfs-ticket-root;5154">#5154</ulink>.</para> 76 </listitem> 77 <listitem> 78 <para>[bdubbs] - Update to elfutils-0.188. Fixes 79 <ulink url="&lfs-ticket-root;5152">#5152</ulink>.</para> 80 </listitem> 81 <listitem> 82 <para>[bdubbs] - Update to bc-6.1.1. Fixes 83 <ulink url="&lfs-ticket-root;5151">#5151</ulink>.</para> 84 </listitem> 85 <listitem> 86 <para>[bdubbs] - Update to bash-5.2.9. Fixes 87 <ulink url="&lfs-ticket-root;5158">#5158</ulink>.</para> 88 </listitem> 89 </itemizedlist> 90 </listitem> 91 92 <listitem revision="systemd"> 93 <para>2022-11-03</para> 94 <itemizedlist> 95 <listitem> 96 <para>[renodr] - Update to systemd-252. Fixes 97 <ulink url="&lfs-ticket-root;5150">#5150</ulink>.</para> 98 </listitem> 99 </itemizedlist> 100 </listitem> 101 42 102 <listitem> 43 103 <para>2022-11-01</para> -
chapter01/whatsnew.xml
rcef7de5 r4d3f41c 161 161 <para>Libcap-&libcap-version;</para> 162 162 </listitem> 163 < !--<listitem>163 <listitem> 164 164 <para>Libelf-&elfutils-version; (from elfutils)</para> 165 </listitem> -->165 </listitem> 166 166 <listitem> 167 167 <para>Libffi-&libffi-version;</para> … … 230 230 <para>Readline-&readline-version;</para> 231 231 </listitem> 232 < !--<listitem>232 <listitem> 233 233 <para>Sed-&sed-version;</para> 234 </listitem> -->234 </listitem> 235 235 <listitem> 236 236 <para>Shadow-&shadow-version;</para> … … 239 239 <para>Sysklogd-&sysklogd-version;</para> 240 240 </listitem>--> 241 < !--<listitem revision="systemd">241 <listitem revision="systemd"> 242 242 <para>Systemd-&systemd-version;</para> 243 </listitem> -->244 < !--<listitem revision="sysv">243 </listitem> 244 <listitem revision="sysv"> 245 245 <para>SysVinit-&sysvinit-version;</para> 246 </listitem> -->246 </listitem> 247 247 <!--<listitem> 248 248 <para>Tar-&tar-version;</para> … … 251 251 <para>Tcl-&tcl-version;</para> 252 252 </listitem>--> 253 < !--<listitem>253 <listitem> 254 254 <para>Texinfo-&texinfo-version;</para> 255 </listitem> -->255 </listitem> 256 256 <listitem> 257 257 <para>Tzdata-&tzdata-version;</para> … … 262 262 <listitem> 263 263 <para>Vim-&vim-version;</para> 264 </listitem> 265 <listitem> 266 <para>wheel-&wheel-version;</para> 264 267 </listitem> 265 268 <!--<listitem> … … 289 292 <title>Added:</title> 290 293 <listitem><para></para></listitem> <!-- satisfy build --> 291 294 <!-- 292 295 <listitem> 293 296 <para>&bash-fixes-patch;</para> 294 297 </listitem> 298 --> 295 299 <listitem> 296 300 <para>&readline-fixes-patch;</para> -
chapter03/patches.xml
rcef7de5 r4d3f41c 28 28 --> 29 29 30 <varlistentry>30 <!-- <varlistentry> 31 31 <term>Bash Upstream Fixes Patch - <token>&bash-fixes-patch-size;</token>:</term> 32 32 <listitem> … … 35 35 </listitem> 36 36 </varlistentry> 37 37 --> 38 38 <!-- 39 39 <varlistentry> … … 136 136 </varlistentry> 137 137 138 <!-- 138 139 <varlistentry revision="systemd"> 139 140 <term>Systemd Upstream Patch - <token>&systemd-upstream-patch-size;</token>:</term> … … 143 144 </listitem> 144 145 </varlistentry> 146 --> 145 147 <!-- 146 148 <varlistentry> -
chapter06/binutils-pass2.xml
rcef7de5 r4d3f41c 46 46 <!-- Don't remove this until Binutils upstream updates the libtool 47 47 copy. On some host distros the issue doesn't show up. --> 48 <para>Binutils ships an outdated libtool copyin the tarball. It lacks49 sysroot support so the produced binaries will be mistakenly linked to50 libraries from the host distro. Work around this issue:</para>48 <para>Binutils ships an outdated copy of libtool in the tarball. It lacks 49 sysroot support, so the produced binaries will be mistakenly linked to 50 libraries from the host distro. Work around this issue:</para> 51 51 52 52 <screen><userinput remap="pre">sed '6009s/$add_dir//' -i ltmain.sh</userinput></screen> … … 84 84 <term><parameter>--enable-64-bit-bfd</parameter></term> 85 85 <listitem> 86 <para>Enables 64-bit support (on hosts with narrower word sizes).87 May not be needed on 64-bit systems, but does no harm.</para>86 <para>Enables 64-bit support (on hosts with smaller word sizes). 87 This may not be needed on 64-bit systems, but it does no harm.</para> 88 88 </listitem> 89 89 </varlistentry> -
chapter06/file.xml
rcef7de5 r4d3f41c 46 46 <para> 47 47 The <command>file</command> command on the build host needs 48 to be same version as the one we are building in order to 49 create the signature file. Run the following commands to build it: 48 to be the same version as the one we are building in order to 49 create the signature file. Run the following commands to make a 50 temporary copy of the <command>file</command> command: 50 51 </para> 51 52 -
chapter06/gcc-pass2.xml
rcef7de5 r4d3f41c 49 49 --> 50 50 <para>As in the first build of GCC, the GMP, MPFR, and MPC packages are 51 required. Unpack the tarballs and move them into the required directory 52 names:</para> 51 required. Unpack the tarballs and move them into the required directories:</para> 53 52 54 53 <screen><userinput remap="pre">tar -xf ../mpfr-&mpfr-version;.tar.xz … … 111 110 a cross-compiler is used for building GCC, and that compiler knows 112 111 that it has to look for headers and libraries in <filename 113 class="directory">$LFS</filename>. But the build system ofGCC uses112 class="directory">$LFS</filename>. But the build system for GCC uses 114 113 other tools, which are not aware of this location. This switch is 115 needed to have themfind the needed files in <filename114 needed so those tools will find the needed files in <filename 116 115 class="directory">$LFS</filename>, and not on the host.</para> 117 116 </listitem> … … 121 120 <term><parameter>--target=$LFS_TGT</parameter></term> 122 121 <listitem> 123 <para> As we are cross-compiling GCC,it's impossible to build122 <para>We are cross-compiling GCC, so it's impossible to build 124 123 target libraries (<filename class="libraryfile">libgcc</filename> 125 124 and <filename class="libraryfile">libstdc++</filename>) with the 126 compiled GCC binaries because these binaries won't run on the127 host distro. GCC building system will attempt to use the128 C and C++ compilers on the host distroas a workaround by default.129 It's not supported to buildGCC target libraries with a different130 version of GCC , so using host compilers may cause building131 failure. This parameter ensures to build the libraries withGCC132 pass 1 and prevent the issue.</para>125 previously compiled GCC binaries—those binaries won't run on the 126 host. The GCC build system will attempt to use the host's 127 C and C++ compilers as a workaround by default. 128 Building the GCC target libraries with a different 129 version of GCC is not supported, so using the host's compilers may cause 130 the build to fail. This parameter ensures the libraries are built by GCC 131 pass 1.</para> 133 132 </listitem> 134 133 </varlistentry> … … 138 137 <listitem> 139 138 <para>Allow <filename class="libraryfile">libstdc++</filename> to 140 use shared <filename class="libraryfile">libgcc</filename> being141 built in this pass, instead of the static version built in GCC142 pass 1. This is ne eded for supportingC++ exception139 use the shared <filename class="libraryfile">libgcc</filename> being 140 built in this pass, instead of the static version that was built in GCC 141 pass 1. This is necessary to support C++ exception 143 142 handling.</para> 144 143 </listitem> -
chapter06/introduction.xml
rcef7de5 r4d3f41c 17 17 linking.</para> 18 18 19 <para>Using the utilities will be possible in next chapter after entering19 <para>Using the utilities will be possible in the next chapter after entering 20 20 the <quote>chroot</quote> environment. But all the packages built in the 21 21 present chapter need to be built before we do that. Therefore we cannot be -
chapter06/make.xml
rcef7de5 r4d3f41c 43 43 <title>Installation of Make</title> 44 44 45 <para>First, fix an issue identified upstream:</para> 46 47 <screen><userinput remap="pre">sed -e '/ifdef SIGPIPE/,+2 d' \ 48 -e '/undef FATAL_SIG/i FATAL_SIG (SIGPIPE);' \ 49 -i src/main.c</userinput></screen> 50 45 51 <para>Prepare Make for compilation:</para> 46 52 -
chapter06/ncurses.xml
rcef7de5 r4d3f41c 120 120 <listitem> 121 121 <para>This ensures that Ncurses does not build support for the Ada 122 compiler which may be present on the host but will not be available122 compiler, which may be present on the host but will not be available 123 123 once we enter the <command>chroot</command> environment.</para> 124 124 </listitem> … … 128 128 <term><parameter>--disable-stripping</parameter></term> 129 129 <listitem> 130 <para>This switch prevents the building system from stripping131 the programs using<command>strip</command> program from the host.132 Using host tools on cross-compiled program can cause failure.</para>130 <para>This switch prevents the building system from 131 using the <command>strip</command> program from the host. 132 Using host tools on cross-compiled programs can cause failure.</para> 133 133 </listitem> 134 134 </varlistentry> … … 170 170 <term><parameter>TIC_PATH=$(pwd)/build/progs/tic</parameter></term> 171 171 <listitem> 172 <para>We need to pass the path of the justbuilt173 <command>tic</command> able to run on the building machine, so that172 <para>We need to pass the path of the newly built 173 <command>tic</command> program that runs on the building machine, so 174 174 the terminal database can be created without errors.</para> 175 175 </listitem> -
chapter08/bash.xml
rcef7de5 r4d3f41c 40 40 <sect2 role="installation"> 41 41 <title>Installation of Bash</title> 42 43 <para>First, fix some issues identified upstream:</para>44 45 <screen><userinput remap="pre">patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>46 42 47 43 <para>Prepare Bash for compilation:</para> -
chapter08/grub.xml
rcef7de5 r4d3f41c 51 51 </note> 52 52 53 <warning> 54 <para>Unset any environment variables which may affect the build:</para> 55 56 <screen><userinput remap='pre'>unset {C,CPP,CXX,LD}FLAGS</userinput></screen> 57 58 <para>Don't try <quote>tuning</quote> this package with custom 59 compilation flags: this package is a bootloader, with low-level 60 operations in the source code which is likely to be broken by some 61 aggressive optimizations.</para> 62 </warning> 63 53 64 <para>Prepare GRUB for compilation:</para> 54 65 -
chapter08/make.xml
rcef7de5 r4d3f41c 41 41 <sect2 role="installation"> 42 42 <title>Installation of Make</title> 43 <!--44 <para>Again, work around an error caused by glibc-2.27 and later:</para>45 43 46 <screen><userinput remap="pre">sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c</userinput></screen> 47 --> 44 <para>First, fix some issues identified upstream:</para> 45 46 <screen><userinput remap="pre">sed -e '/ifdef SIGPIPE/,+2 d' \ 47 -e '/undef FATAL_SIG/i FATAL_SIG (SIGPIPE);' \ 48 -i src/main.c</userinput></screen> 49 48 50 <para>Prepare Make for compilation:</para> 49 51 -
chapter08/systemd.xml
rcef7de5 r4d3f41c 41 41 <title>Installation of systemd</title> 42 42 43 <!-- 43 44 <para>First, fix an issue introduced by glibc-2.36.</para> 44 45 45 46 <screen><userinput remap="pre">patch -Np1 -i ../&systemd-upstream-patch;</userinput></screen> 47 --> 46 48 47 49 <para>Remove two unneeded groups, … … 197 199 <screen><userinput remap="adjust">systemctl preset-all</userinput></screen> 198 200 199 <para>Disable a service for upgrading binary distros. It'suseless for200 a basic Linux system built from source, and itwill report an error if201 <para>Disable two services for upgrading binary distros. They are useless for 202 a basic Linux system built from source, and both will report an error if 201 203 it's enabled but not configured:</para> 202 204 203 <screen><userinput remap="adjust">systemctl disable systemd-sysupdate </userinput></screen>205 <screen><userinput remap="adjust">systemctl disable systemd-sysupdate{,-reboot}</userinput></screen> 204 206 205 207 <!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out. -
general.ent
rcef7de5 r4d3f41c 119 119 <!ENTITY savannah-nongnu "https://savannah.nongnu.org"> 120 120 <!ENTITY github "https://github.com"> 121 <!ENTITY pypi-home "https://pypi.org/project"> 122 <!ENTITY pypi-src "https://pypi.org/packages/source"> 121 123 122 124 <!ENTITY root "<systemitem class='username'>root</systemitem>"> -
packages.ent
rcef7de5 r4d3f41c 49 49 <!ENTITY automake-fin-sbu "less than 0.1 SBU (about 7.7 SBU with tests)"> 50 50 51 <!ENTITY bash-version "5.2 ">51 <!ENTITY bash-version "5.2.9"> 52 52 <!ENTITY bash-size "10,695 KB"> 53 53 <!ENTITY bash-url "&gnu;bash/bash-&bash-version;.tar.gz"> 54 <!ENTITY bash-md5 " cfb4cf795fc239667f187b3d6b3d396f">54 <!ENTITY bash-md5 "0d8a4e4fe2d31ed5c304316bd9fcb337"> 55 55 <!ENTITY bash-home "&gnu-software;bash/"> 56 56 <!ENTITY bash-tmp-du "64 MB"> … … 59 59 <!ENTITY bash-fin-sbu "1.4 SBU"> 60 60 61 <!ENTITY bc-version "6. 0.4">62 <!ENTITY bc-size "44 2KB">61 <!ENTITY bc-version "6.1.1"> 62 <!ENTITY bc-size "445 KB"> 63 63 <!ENTITY bc-url "https://github.com/gavinhoward/bc/releases/download/&bc-version;/bc-&bc-version;.tar.xz"> 64 <!ENTITY bc-md5 " 1e1c90de1a11f3499237425de1673ef1">64 <!ENTITY bc-md5 "9a7ffa015c499272e7d41b4c0f28e691"> 65 65 <!ENTITY bc-home "https://git.yzena.com/gavin/bc"> 66 66 <!ENTITY bc-fin-du "7.4 MB"> … … 149 149 <!ENTITY e2fsprogs-fin-sbu "4.4 SBU on a spinning disk, 1.2 SBU on an SSD"> 150 150 151 <!ENTITY elfutils-version "0.18 7"> <!-- libelf -->152 <!ENTITY elfutils-size " 9,024KB">151 <!ENTITY elfutils-version "0.188"> <!-- libelf --> 152 <!ENTITY elfutils-size "8,900 KB"> 153 153 <!ENTITY elfutils-url "https://sourceware.org/ftp/elfutils/&elfutils-version;/elfutils-&elfutils-version;.tar.bz2"> 154 <!ENTITY elfutils-md5 " cc04f07b53a71616b22553c0a458cf4b">154 <!ENTITY elfutils-md5 "efb25a91873b2eec4df9f31e6a4f4e5c"> 155 155 <!ENTITY elfutils-home "https://sourceware.org/elfutils/"> 156 156 <!ENTITY elfutils-fin-du "117 MB"> … … 429 429 <!ENTITY linux-major-version "6"> 430 430 <!ENTITY linux-minor-version "0"> 431 <!ENTITY linux-patch-version " 6">431 <!ENTITY linux-patch-version "7"> 432 432 <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">--> 433 433 <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> 434 <!ENTITY linux-size "130,7 66KB">434 <!ENTITY linux-size "130,748 KB"> 435 435 <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> 436 <!ENTITY linux-md5 " 4e01a82c673ea0fb85f751672f99dc96">436 <!ENTITY linux-md5 "690e3de421b693bf111ec74a97476ea7"> 437 437 <!ENTITY linux-home "https://www.kernel.org/"> 438 438 <!-- measured for 5.13.4 / gcc-11.1.0 on x86_64 : minimum is … … 494 494 <!ENTITY markupsafe-fin-sbu "less than 0.1 SBU"> 495 495 496 <!ENTITY meson-version "0.6 3.3">497 <!ENTITY meson-size "2,0 20KB">496 <!ENTITY meson-version "0.64.0"> 497 <!ENTITY meson-size "2,042 KB"> 498 498 <!ENTITY meson-url "&github;/mesonbuild/meson/releases/download/&meson-version;/meson-&meson-version;.tar.gz"> 499 <!ENTITY meson-md5 " b2f2757b5dd84cc754b9df53ce37a175">499 <!ENTITY meson-md5 "63a3d83206e7e277fce4b90e8ad8003a"> 500 500 <!ENTITY meson-home "https://mesonbuild.com"> 501 501 <!ENTITY meson-fin-du "38 MB"> … … 618 618 <!ENTITY readline-fin-sbu "0.1 SBU"> 619 619 620 <!ENTITY sed-version "4. 8">621 <!ENTITY sed-size "1,3 17KB">620 <!ENTITY sed-version "4.9"> 621 <!ENTITY sed-size "1,365 KB"> 622 622 <!ENTITY sed-url "&gnu;sed/sed-&sed-version;.tar.xz"> 623 <!ENTITY sed-md5 "6 d906edfdb3202304059233f51f9a71d">623 <!ENTITY sed-md5 "6aac9b2dbafcd5b7a67a8a9bcb8036c3"> 624 624 <!ENTITY sed-home "&gnu-software;sed/"> 625 625 <!ENTITY sed-tmp-du "20 MB"> … … 628 628 <!ENTITY sed-fin-sbu "0.4 SBU"> 629 629 630 <!ENTITY shadow-version "4.1 2.3">631 <!ENTITY shadow-size "1,7 07KB">630 <!ENTITY shadow-version "4.13"> 631 <!ENTITY shadow-size "1,722 KB"> 632 632 <!ENTITY shadow-url "&github;/shadow-maint/shadow/releases/download/&shadow-version;/shadow-&shadow-version;.tar.xz"> 633 <!ENTITY shadow-md5 " 710bcc89c39683609aacfef9f08bd854">633 <!ENTITY shadow-md5 "b1ab01b5462ddcf43588374d57bec123"> 634 634 <!ENTITY shadow-home "https://shadow-maint.github.io/shadow/"> 635 635 <!ENTITY shadow-fin-du "46 MB"> … … 644 644 <!ENTITY sysklogd-fin-sbu "less than 0.1 SBU"> 645 645 646 <!ENTITY systemd-version "25 1">646 <!ENTITY systemd-version "252"> 647 647 <!--<!ENTITY systemd-stable "6b4878d">--> 648 648 <!-- The above entity is used whenever we move to a stable backport branch. In the event of a critical problem or kernel 649 649 change that is incompatible, we will switch to the backport branch until the next stable release. --> 650 <!ENTITY systemd-size "11, 168 KB">650 <!ENTITY systemd-size "11,488 KB"> 651 651 <!ENTITY systemd-url "&github;/systemd/systemd/archive/v&systemd-version;/systemd-&systemd-version;.tar.gz"> 652 652 <!--<!ENTITY systemd-url "&anduin-sources;/systemd-&systemd-version;-&systemd-stable;.tar.xz">--> 653 <!ENTITY systemd-md5 " 8090fcccc3a2ec20995e89d56fed61b1">653 <!ENTITY systemd-md5 "b9456750a212dd54d81caeb3c38134b6"> 654 654 <!ENTITY systemd-home "https://www.freedesktop.org/wiki/Software/systemd/"> 655 <!ENTITY systemd-man-version "25 1">656 <!ENTITY systemd-man-size " 596KB">655 <!ENTITY systemd-man-version "252"> 656 <!ENTITY systemd-man-size "628 KB"> 657 657 <!--<!ENTITY systemd-man-url "&anduin-sources;/systemd-man-pages-&systemd-version;-&systemd-stable;.tar.xz">--> 658 658 <!ENTITY systemd-man-url "&anduin-sources;/systemd-man-pages-&systemd-man-version;.tar.xz"> 659 <!ENTITY systemd-man-md5 "8 7053ffef1cfb74e4fe28f627e12a2a4">660 <!ENTITY systemd-fin-du "25 1MB">661 <!ENTITY systemd-fin-sbu "2. 3SBU">662 663 <!ENTITY sysvinit-version "3.0 4">664 <!ENTITY sysvinit-size "2 16KB">665 <!ENTITY sysvinit-url "& savannah;/releases/sysvinit/sysvinit-&sysvinit-version;.tar.xz">666 <!ENTITY sysvinit-md5 " 9a00e5f15dd2f038f10feee50677ebff">659 <!ENTITY systemd-man-md5 "856ffb33ac16962f0628dcb533d76e5c"> 660 <!ENTITY systemd-fin-du "258 MB"> 661 <!ENTITY systemd-fin-sbu "2.5 SBU"> 662 663 <!ENTITY sysvinit-version "3.05"> 664 <!ENTITY sysvinit-size "229 KB"> 665 <!ENTITY sysvinit-url "&github;/slicer69/sysvinit/releases/download/&sysvinit-version;/sysvinit-&sysvinit-version;.tar.xz"> 666 <!ENTITY sysvinit-md5 "57577060e5f21fd9899fa601aa45b064"> 667 667 <!ENTITY sysvinit-home "&savannah-nongnu;/projects/sysvinit"> 668 668 <!ENTITY sysvinit-fin-du "2.7 MB"> … … 691 691 <!ENTITY tcl-tmp-sbu "3.2 SBU"> 692 692 693 <!ENTITY texinfo-version " 6.8">694 <!ENTITY texinfo-size "4, 848KB">693 <!ENTITY texinfo-version "7.0"> 694 <!ENTITY texinfo-size "4,786 KB"> 695 695 <!ENTITY texinfo-url "&gnu;texinfo/texinfo-&texinfo-version;.tar.xz"> 696 <!ENTITY texinfo-md5 " a91b404e30561a5df803e6eb3a53be71">696 <!ENTITY texinfo-md5 "c9bda68c809e3afe67f1fbcd7c3d9fd3"> 697 697 <!ENTITY texinfo-home "&gnu-software;texinfo/"> 698 698 <!ENTITY texinfo-tmp-du "113 MB"> … … 738 738 <!ENTITY vim-fin-sbu "2.5 SBU"> 739 739 740 <!-- From https://files.pythonhosted.org/packages/c0/6c/9f840c2e55b67b90745af06a540964b73589256cb10cc10057c87ac78fc2/wheel-0.37.1.tar.gz --> 741 <!ENTITY wheel-version "0.37.1"> 742 <!ENTITY wheel-size "65 KB"> 743 <!ENTITY wheel-url "&anduin-sources;/wheel-&wheel-version;.tar.gz"> 744 <!ENTITY wheel-md5 "f490f1399e5903706cb1d4fbed9ecb28"> 745 <!ENTITY wheel-home "https://pypi.org/project/wheel/"> 740 <!ENTITY wheel-version "0.38.4"> 741 <!ENTITY wheel-size "66 KB"> 742 <!ENTITY wheel-url "&pypi-src;/w/wheel/wheel-&wheel-version;.tar.gz"> 743 <!ENTITY wheel-md5 "83bb4e7bd4d687d398733f341a64ab91"> 744 <!ENTITY wheel-home "&pypi-home;/wheel/"> 746 745 <!ENTITY wheel-fin-du "956 KB"> 747 746 <!ENTITY wheel-fin-sbu "less than 0.1 SBU"> -
part3intro/toolchaintechnotes.xml
rcef7de5 r4d3f41c 202 202 <envar>LFS_TGT</envar> variable so it says "lfs". We also use the 203 203 <parameter>--with-sysroot</parameter> option when building the cross-linker and 204 cross-compiler to tell them where to find the needed host files. This204 cross-compiler, to tell them where to find the needed host files. This 205 205 ensures that none of the other programs built in <xref 206 206 linkend="chapter-temporary-tools"/> can link to libraries on the build … … 239 239 lfs</quote> means the commands are run in a chrooted environment.</para> 240 240 241 <para> Now, there is more about cross-compiling: the C language is not242 just a compiler, but also defines a standard library. In this book, the241 <para>This is not yet the end of the story. The C language is not 242 merely a compiler; it also defines a standard library. In this book, the 243 243 GNU C library, named glibc, is used (there is an alternative, "musl"). This library must 244 244 be compiled for the LFS machine; that is, using the cross-compiler cc1. … … 257 257 build a fully functional libstdc++ with the degraded libgcc, but cc1 258 258 is the only compiler available for building the C/C++ libraries 259 during stage 2. Of course, the compiler built by stage 2, cc-lfs,260 would be able to build those libraries, but:</para>259 during stage 2. There are two reasons we don't immediately use the 260 compiler built in stage 2, cc-lfs, to build those libraries.</para> 261 261 262 262 <itemizedlist> 263 263 <listitem> 264 264 <para> 265 Generally cc-lfs cannot run on pc (the host distro). Despitethe266 triplets of pc and lfs are compatible toeach other, an executable267 for lfs will depend on glibc-&glibc-version; whilethe host distro268 may utilize a different libc implementation (for example, musl)or265 Generally speaking, cc-lfs cannot run on pc (the host system). Even though the 266 triplets for pc and lfs are compatible with each other, an executable 267 for lfs must depend on glibc-&glibc-version;; the host distro 268 may utilize either a different implementation of libc (for example, musl), or 269 269 a previous release of glibc (for example, glibc-2.13). 270 270 </para> … … 272 272 <listitem> 273 273 <para> 274 Even if cc-lfs happens torun on pc, using it on pc would create274 Even if cc-lfs can run on pc, using it on pc would create 275 275 a risk of linking to the pc libraries, since cc-lfs is a native 276 276 compiler. … … 280 280 281 281 <para>So when we build gcc stage 2, we instruct the building system to 282 rebuild libgcc and libstdc++ with cc1, but link libstdc++ to the newly283 rebuilt libgcc instead of the degraded build. Thenthe rebuilt284 libstdc++ will befully functional.</para>282 rebuild libgcc and libstdc++ with cc1, but we link libstdc++ to the newly 283 rebuilt libgcc instead of the old, degraded build. This makes the rebuilt 284 libstdc++ fully functional.</para> 285 285 286 286 <para>In &ch-final; (or <quote>stage 3</quote>), all the packages needed for 287 287 the LFS system are built. Even if a package has already been installed into 288 288 the LFS system in a previous chapter, we still rebuild the package. The main reason for 289 rebuilding these packages is to make them stable: if we reinstall a LFS290 package on a complete LFS system, theinstalled content of the package291 should be the same as the content of the same package when installed in289 rebuilding these packages is to make them stable: if we reinstall an LFS 290 package on a completed LFS system, the reinstalled content of the package 291 should be the same as the content of the same package when first installed in 292 292 &ch-final;. The temporary packages installed in &ch-tmp-cross; or 293 293 &ch-tmp-chroot; cannot satisfy this requirement, because some of them -
patches.ent
rcef7de5 r4d3f41c 8 8 <!ENTITY autoconf-fixes-patch-size "3.8 KB"> 9 9 --> 10 10 <!-- 11 11 <!ENTITY bash-fixes-patch "bash-&bash-version;-upstream_fixes-1.patch"> 12 12 <!ENTITY bash-fixes-patch-md5 "5f20760139d6a97e55124988fcddae44"> 13 13 <!ENTITY bash-fixes-patch-size "2.0 KB"> 14 14 --> 15 15 <!-- 16 16 <!ENTITY binutils-lto-patch "binutils-&binutils-version;-lto_fix-1.patch"> … … 89 89 --> 90 90 <!ENTITY sysvinit-consolidated-patch "sysvinit-&sysvinit-version;-consolidated-1.patch"> 91 <!ENTITY sysvinit-consolidated-patch-md5 " 4900322141d493e74020c9cf437b2cdc">91 <!ENTITY sysvinit-consolidated-patch-md5 "372d367918134f2f41daf54f2acf280a"> 92 92 <!ENTITY sysvinit-consolidated-patch-size "2.4 KB"> 93 93 94 <!-- 94 95 <!ENTITY systemd-upstream-patch "systemd-&systemd-version;-glibc_2.36_fix-1.patch"> 95 96 <!ENTITY systemd-upstream-patch-md5 "fd8dc901e73ad00dc72a351a0d4ac48c"> 96 97 <!ENTITY systemd-upstream-patch-size "3.0 KB"> 98 --> 97 99 <!-- 98 100 <!ENTITY xz-upstream-fix-patch "xz-&xz-version;-upstream_fix-1.patch"> -
stylesheets/lfs-xsl/lfs-l10n.xml
rcef7de5 r4d3f41c 100 100 </l:l10n> 101 101 102 <!-- Simplified Chinese --> 103 <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" 104 language="zh_cn" english-language-name="Simplified Chinese"> 105 106 <l:gentext key="description" text="描述"/> 107 <l:gentext key="Bootscripts" text="引导脚本"/> 108 <l:gentext key="Configuration Files" text="配置文件"/> 109 <l:gentext key="Kernel Configuration" text="内核配置"/> 110 <l:gentext key="Libraries" text="库"/> 111 <l:gentext key="Others" text="其他"/> 112 <l:gentext key="Packages" text="软件包"/> 113 <l:gentext key="Programs" text="程序"/> 114 <l:gentext key="Scripts" text="脚本"/> 115 116 <l:context name="title-numbered"> 117 <l:template name="part" text="第 %n 部分 %t"/> 118 </l:context> 119 120 <l:gentext key="Copyright" text="版权所有"/> 121 122 </l:l10n> 123 102 124 </l:i18n>
Note:
See TracChangeset
for help on using the changeset viewer.