Changeset 777c890
- Timestamp:
- 05/30/2020 07:00:00 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- 0e9d60e
- Parents:
- 160e72c
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
appendices/dependencies.xml
r160e72c r777c890 912 912 <seglistitem> 913 913 <seg>Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, 914 Sed, and Texinfo</seg>914 Ncurses, Sed, and Texinfo</seg> 915 915 </seglistitem> 916 916 </segmentedlist> -
chapter01/changelog.xml
r160e72c r777c890 46 46 --> 47 47 <listitem> 48 <para>2020-05-29</para> 49 <itemizedlist> 50 <listitem> 51 <para>[bdubbs] - Run sed and findutils tests as an 52 unprivileged user. Fixes 53 <ulink url="&lfs-ticket-root;4661">#4661</ulink>.</para> 54 </listitem> 55 </itemizedlist> 56 </listitem> 57 58 <listitem> 59 <para>2020-05-28</para> 60 <itemizedlist> 61 <listitem> 62 <para>[bdubbs] - Add an unprivileged user, tester, at the 63 beginning of Chapter 6 for running some tests. This 64 user is then removed at the end of the chapter.</para> 65 </listitem> 66 <listitem> 67 <para>[bdubbs] - Update to zstd-1.4.5. Fixes 68 <ulink url="&lfs-ticket-root;4660">#4660</ulink>.</para> 69 </listitem> 70 <listitem> 71 <para>[bdubbs] - Update to util-linux-2.35.2. Fixes 72 <ulink url="&lfs-ticket-root;4659">#4659</ulink>.</para> 73 </listitem> 74 <listitem> 75 <para>[bdubbs] - Update to bison-3.6.2. Fixes 76 <ulink url="&lfs-ticket-root;4657">#4657</ulink>.</para> 77 </listitem> 78 <listitem> 79 <para>[pierre] - Update to linux-5.6.15. Fixes 80 <ulink url="&lfs-ticket-root;4658">#4658</ulink>.</para> 81 </listitem> 82 </itemizedlist> 83 </listitem> 84 85 <listitem> 86 <para>2020-05-27</para> 87 <itemizedlist> 88 <listitem> 89 <para>[pierre] - Bash: document test results.</para> 90 </listitem> 91 </itemizedlist> 92 </listitem> 93 94 <listitem> 48 95 <para>2020-05-26</para> 49 96 <itemizedlist> 50 97 <listitem> 51 98 <para>[pierre] - Bash: do not use "su -c command" to change user 52 53 99 to nobody: it removes the controlling terminal and makes some 100 tests fail. Use "su << EOF" instead.</para> 54 101 </listitem> 55 102 <listitem> … … 68 115 </listitem> 69 116 <listitem> 70 <para>[pierre] - Add a symlink from /tools/ share/locale71 to /usr/ share/locale/locale-archive, to allow some programs117 <para>[pierre] - Add a symlink from /tools/lib/locale 118 to /usr/lib/locale/locale-archive, to allow some programs 72 119 to find the installed locales. Fixes test failures in bison 73 and man-db ;</para>120 and man-db.</para> 74 121 </listitem> 75 122 </itemizedlist> -
chapter01/whatsnew.xml
r160e72c r777c890 246 246 <para>Tzdata-&tzdata-version;</para> 247 247 </listitem> 248 < !--<listitem>248 <listitem> 249 249 <para>Util-Linux-&util-linux-version;</para> 250 </listitem> -->250 </listitem> 251 251 <listitem> 252 252 <para>Vim-&vim-version;</para> … … 261 261 <para>Zlib-&zlib-version;</para> 262 262 </listitem>--> 263 < !--<listitem>263 <listitem> 264 264 <para>Zstd-&zstd-version;</para> 265 </listitem> -->265 </listitem> 266 266 </itemizedlist> 267 267 -
chapter06/bash.xml
r160e72c r777c890 74 74 package</quote> if not running the test suite.</para> 75 75 76 <para>To prepare the tests, ensure that the <systemitem class="username"> nobody</systemitem> user can write to the sources tree:</para>76 <para>To prepare the tests, ensure that the <systemitem class="username">tester</systemitem> user can write to the sources tree:</para> 77 77 78 <screen><userinput remap="test">chown -Rv nobody.</userinput></screen>78 <screen><userinput remap="test">chown -Rv tester .</userinput></screen> 79 79 80 80 <para>Now, run the tests as the <systemitem 81 class="username"> nobody</systemitem> user:</para>81 class="username">tester</systemitem> user:</para> 82 82 83 <screen><userinput remap="test">su nobody -s /bin/bash << EOF 84 PATH=$PATH HOME=/home make tests 85 EOF</userinput></screen> 83 <screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen> 86 84 87 <para>The <command>su</command> command above is slightly different from 88 other places in the book. The 89 reason is that the <option>-c</option> option runs the command without 90 a controlling terminal, while the bash test suite needs one.</para> 85 <para>The <systemitem class="username">tester</systemitem> 86 user does not have enough permissions for all the tests to pass. This shows 87 up in some <quote>diff</quote> output in four test results. Portions of the 88 run-execscript, run-lastpipe, run-read, and run-test programs 89 are known to fail in the LFS chroot environment, but pass if the tests 90 are run in a full system.</para> 91 91 92 92 <para>Install the package and move the main executable to -
chapter06/coreutils.xml
r160e72c r777c890 109 109 meant to be run as user <systemitem class="username">root</systemitem>:</para> 110 110 111 <screen><userinput remap="test">make NON_ROOT_USERNAME= nobodycheck-root</userinput></screen>111 <screen><userinput remap="test">make NON_ROOT_USERNAME=tester check-root</userinput></screen> 112 112 113 113 <para>We're going to run the remainder of the tests as the 114 <systemitem class="username"> nobody</systemitem> user. Certain tests,114 <systemitem class="username">tester</systemitem> user. Certain tests, 115 115 however, require that the user be a member of more than one group. So that 116 116 these tests are not skipped we'll add a temporary group and make the 117 user <systemitem class="username"> nobody</systemitem> a part of it:</para>118 119 <screen><userinput remap="test">echo " dummy:x:1000:nobody" >> /etc/group</userinput></screen>117 user <systemitem class="username">tester</systemitem> a part of it:</para> 118 119 <screen><userinput remap="test">echo "tester:x:1000:nogroup" >> /etc/group</userinput></screen> 120 120 121 121 <para>Fix some of the permissions so that the non-root user can compile and 122 122 run the tests:</para> 123 123 124 <screen><userinput remap="test">chown -Rv nobody. </userinput></screen>124 <screen><userinput remap="test">chown -Rv tester . </userinput></screen> 125 125 126 126 <para>Now run the tests. Make sure the PATH in the <userinput>su</userinput> 127 127 environment includes /tools/bin.</para> 128 128 129 <screen><userinput remap="test">su nobody -s /bin/bash-c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>129 <screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 130 130 <!-- 131 131 <para>The test program test-getlogin is known to fail in a … … 133 133 passes if run at the end of this chapter. The test program tty.sh is 134 134 also known to fail.</para> 135 136 <para>Remove the temporary group:</para> 137 138 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> 135 139 --> 136 <para>Remove the temporary group:</para>137 138 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>139 140 140 <para>Install the package:</para> 141 141 -
chapter06/createfiles.xml
r160e72c r777c890 365 365 rather use the group's name.</para> 366 366 367 <para>Some tests later in the chapter need a regular user. We add this 368 user here and delete this account at the end of the chapter.</para> 369 370 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd 371 echo "tester:x:101:dummy" >> /etc/group 372 install -o tester -d /home/tester</userinput></screen> 373 367 374 <para>To remove the <quote>I have no name!</quote> prompt, start a new 368 375 shell. Since a full Glibc was installed in <xref -
chapter06/findutils.xml
r160e72c r777c890 68 68 <para>To test the results, issue:</para> 69 69 70 <screen><userinput remap="test">make check</userinput></screen> 71 72 <para>Two tests are known to fail in the chroot environment: 73 sv-bug-54171.old-O3 and sv-bug-54171.new-O3.</para> 70 <screen><userinput remap="test">chown -Rv tester . 71 su tester -c "PATH=$PATH make check"</userinput></screen> 74 72 75 73 <para>Install the package:</para> -
chapter06/gcc.xml
r160e72c r777c890 127 127 <para>Test the results as a non-privileged user, but do not stop at errors:</para> 128 128 129 <screen><userinput remap="test">chown -Rv nobody.130 su nobody -s /bin/bash-c "PATH=$PATH make -k check"</userinput></screen>129 <screen><userinput remap="test">chown -Rv tester . 130 su tester -c "PATH=$PATH make -k check"</userinput></screen> 131 131 132 132 <para>To receive a summary of the test suite results, run:</para> … … 168 168 169 169 <para>The GCC build directory is owned by <systemitem class="username"> 170 nobody</systemitem> now and the ownership of the installed header170 tester</systemitem> now and the ownership of the installed header 171 171 directory (and its content) will be incorrect. Change the ownership to 172 172 <systemitem class="username">root</systemitem> user and group:</para> -
chapter06/revisedchroot.xml
r160e72c r777c890 74 74 Archive (.la) files"</ulink>.</para> 75 75 76 <para>Finally, remove the temporary 'tester' usr account created at the 77 beginning of this chapter.</para> 78 79 <screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group 80 rm -rf /home/tester</userinput></screen> 76 81 </sect1> -
chapter06/sed.xml
r160e72c r777c890 41 41 <title>Installation of Sed</title> 42 42 43 <para>First fix an issue in the LFS environment and remove a failing test:</para>43 <para>First fix an issue in the LFS environment:</para> 44 44 45 <screen><userinput remap="pre">sed -i 's/usr/tools/' build-aux/help2man 46 sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen> 45 <screen><userinput remap="pre">sed -i 's/usr/tools/' build-aux/help2man</userinput></screen> 47 46 48 47 <para>Prepare Sed for compilation:</para> 49 48 50 49 <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen> 51 <!--52 <variablelist>53 <title>The meaning of the new configure option:</title>54 50 55 <varlistentry>56 <term><parameter>-i -htmldir</parameter></term>57 <listitem>58 <para>This sets the installation directory for the HTML documentation.</para>59 </listitem>60 </varlistentry>61 </variablelist>62 -->63 51 <para>Compile the package and generate the HTML documentation:</para> 64 52 … … 68 56 <para>To test the results, issue:</para> 69 57 70 <screen><userinput remap="test">make check</userinput></screen> 58 <screen><userinput remap="test">chown -Rv tester . 59 su -c "PATH=$PATH make check"</userinput></screen> 71 60 72 61 <para>Install the package and its documentation:</para> -
chapter06/util-linux.xml
r160e72c r777c890 41 41 42 42 <sect2 role="installation"> 43 <title> FHS compliance notes</title>43 <title>Installation of Util-linux</title> 44 44 45 45 <para>The FHS recommends using the <filename 46 46 class="directory">/var/lib/hwclock</filename> directory instead of the 47 47 usual <filename class="directory">/etc</filename> directory as the 48 location for the <filename>adjtime</filename> file. First create adirectory49 to enable storage for the <command>hwclock</command> program:</para>48 location for the <filename>adjtime</filename> file. Create this directory 49 with:</para> 50 50 51 51 <screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen> 52 53 </sect2>54 55 <sect2 role="installation">56 <title>Installation of Util-linux</title>57 <!--58 <para>First, fix one of the regression tests:</para>59 60 <screen><userinput remap="pre">sed -e 's/2^64/(2^64/' -e 's/E </E) <=/' -e 's/ne /eq /' \61 -i tests/ts/ipcs/limits2</userinput></screen>62 -->63 52 64 53 <para>Remove the earlier created symlinks and files:</para> … … 116 105 </warning> 117 106 118 <screen><userinput remap="test">chown -Rv nobody.119 su nobody -s /bin/bash -c "PATH=$PATHmake -k check"</userinput></screen>107 <screen><userinput remap="test">chown -Rv tester . 108 su tester -c "make -k check"</userinput></screen> 120 109 121 110 <para>Install the package:</para> -
chapter06/vim.xml
r160e72c r777c890 68 68 69 69 <para>To prepare the tests, ensure that the 70 <systemitem class="username"> nobody</systemitem> user can write70 <systemitem class="username">tester</systemitem> user can write 71 71 to the sources tree:</para> 72 72 73 <screen><userinput remap="test">chown -Rv nobody.</userinput></screen>73 <screen><userinput remap="test">chown -Rv tester .</userinput></screen> 74 74 75 75 <para>Now run the tests as the <systemitem 76 class="username"> nobody</systemitem> user:</para>77 78 <screen><userinput remap="test">su nobody -s /bin/bash-c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log</userinput></screen>76 class="username">tester</systemitem> user:</para> 77 78 <screen><userinput remap="test">su tester -c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log</userinput></screen> 79 79 80 80 <!--<screen><userinput remap="test">LANG=en_US.UTF-8 make -j1 test &> vim-test.log</userinput></screen>--> -
chapter08/kernel.xml
r160e72c r777c890 54 54 kernel compilation. Do not rely on the source tree being clean after 55 55 un-tarring.</para> 56 57 <!-- The following paragraph and sed should be only necessary on the 5.658 series, but check when 5.7 is out. -->59 <para>When using <envar>CONFIG_STACKPROTECTOR_STRONG=y</envar>, and60 compiling with GCC 10 and later, the default optimization is too61 aggressive, and generates a kernel panic when booting. This can be62 fixed with:</para>63 64 <screen><userinput remap="pre">sed -e '/cpu_startup/a asm("");' \65 -i arch/x86/{kernel/smpboot.c,xen/smp_pv.c}</userinput></screen>66 56 67 57 <!-- Support for compiling a keymap into the kernel is deliberately removed --> -
general.ent
r160e72c r777c890 1 <!ENTITY version "SVN-2020052 6">1 <!ENTITY version "SVN-20200529"> 2 2 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 3 3 Change to x.y for release but not -rc releases --> 4 4 <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> 5 5 6 <!ENTITY versiond "2020052 6-systemd">6 <!ENTITY versiond "20200529-systemd"> 7 7 <!ENTITY short-versiond "systemd"> 8 8 <!ENTITY generic-versiond "systemd"> 9 9 10 <!ENTITY releasedate "May 2 6th, 2020">10 <!ENTITY releasedate "May 29th, 2020"> 11 11 12 12 <!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – --> -
packages.ent
r160e72c r777c890 71 71 <!ENTITY binutils-ch6-sbu "6.7 SBU"> 72 72 73 <!ENTITY bison-version "3.6. 1">74 <!ENTITY bison-size "2,4 07KB">73 <!ENTITY bison-version "3.6.2"> 74 <!ENTITY bison-size "2,411 KB"> 75 75 <!ENTITY bison-url "&gnu;bison/bison-&bison-version;.tar.xz"> 76 <!ENTITY bison-md5 " 16fa3e60f2c33888c6ef7af64c89e182">76 <!ENTITY bison-md5 "fa5f7c67c523f1d8b2155f55e67f7e1c"> 77 77 <!ENTITY bison-home "&gnu-software;bison/"> 78 78 <!ENTITY bison-ch5-du "43 MB"> … … 434 434 <!ENTITY linux-major-version "5"> 435 435 <!ENTITY linux-minor-version "6"> 436 <!ENTITY linux-patch-version "1 3">436 <!ENTITY linux-patch-version "15"> 437 437 <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">--> 438 438 <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> 439 <!ENTITY linux-size "109,1 77KB">439 <!ENTITY linux-size "109,193 KB"> 440 440 <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> 441 <!ENTITY linux-md5 " 73fa7a9e7c42a9ab2cc8151d20e8d6b6">441 <!ENTITY linux-md5 "41f02b34dbb66ffa6b71bb3e2361e94d"> 442 442 <!ENTITY linux-home "https://www.kernel.org/"> 443 443 <!-- measured for 4.8.3 / gcc-6.2.0 on x86_64 : minimum is … … 709 709 710 710 <!ENTITY util-linux-minor "2.35"> 711 <!ENTITY util-linux-version "2.35. 1"> <!-- 2.33.x -->712 <!ENTITY util-linux-size "5,0 18KB">711 <!ENTITY util-linux-version "2.35.2"> <!-- 2.33.x --> 712 <!ENTITY util-linux-size "5,030 KB"> 713 713 <!ENTITY util-linux-url "&kernel;linux/utils/util-linux/v&util-linux-minor;/util-linux-&util-linux-version;.tar.xz"> 714 <!ENTITY util-linux-md5 " 7f64882f631225f0295ca05080cee1bf">714 <!ENTITY util-linux-md5 "248a4d0810c9193e0e9a4bb3f26b93d8"> 715 715 <!ENTITY util-linux-home "http://freecode.com/projects/util-linux"> 716 716 <!ENTITY util-linux-ch5-du "154 MB"> … … 756 756 <!ENTITY zlib-ch6-sbu "less than 0.1 SBU"> 757 757 758 <!ENTITY zstd-version "1.4. 4">759 <!ENTITY zstd-size "1,9 03KB">758 <!ENTITY zstd-version "1.4.5"> 759 <!ENTITY zstd-size "1,928 KB"> 760 760 <!ENTITY zstd-url "https://github.com/facebook/zstd/releases/download/v&zstd-version;/zstd-&zstd-version;.tar.gz"> 761 <!ENTITY zstd-md5 " 487f7ee1562dee7c1c8adf85e2a63df9">761 <!ENTITY zstd-md5 "dd0b53631303b8f972dafa6fd34beb0c"> 762 762 <!ENTITY zstd-home "https://facebook.github.io/zstd/"> 763 763 <!ENTITY zstd-ch6-du "16 MB">
Note:
See TracChangeset
for help on using the changeset viewer.