- Timestamp:
- 03/31/2021 10:41:35 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 15fd2f2
- Parents:
- b2c61c6
- git-author:
- Thomas Trepl <thomas@…> (07/27/2019 11:23:07 AM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:35 AM)
- Location:
- chapter06
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bc.xml
rb2c61c6 rbe00729f 41 41 <sect2 role="installation"> 42 42 <title>Installation of Bc</title> 43 43 <!-- 44 44 <para>First, change an internal script to use <command>sed</command> instead 45 45 of <command>ed</command>:</para> … … 70 70 71 71 <screen><userinput remap="pre">sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure</userinput></screen> 72 72 --> 73 73 <para>Prepare Bc for compilation:</para> 74 75 <screen><userinput remap="configure">./configure --prefix=/usr \ 76 --with-readline \ 77 --mandir=/usr/share/man \ 78 --infodir=/usr/share/info</userinput></screen> 74 <!-- 75 <screen><userinput remap="configure">./configure - -prefix=/usr \ 76 - -with-readline \ 77 - -mandir=/usr/share/man \ 78 - -infodir=/usr/share/info</userinput></screen> 79 --> 80 <screen><userinput remap="configure">PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3</userinput></screen> 79 81 80 82 <variablelist> 81 83 <title>The meaning of the configure options:</title> 82 84 <!-- 83 85 <varlistentry> 84 <term><parameter>- -with-readline</parameter></term>86 <term><parameter>- -with-readline</parameter></term> 85 87 <listitem> 86 88 <para>This option tells Bc to use the <filename … … 90 92 </listitem> 91 93 </varlistentry> 94 --> 95 <varlistentry> 96 <term><parameter>CC=gcc CFLAGS="-std=c99"</parameter></term> 97 <listitem> 98 <para>These parameters specify the compiler and C standard to use.</para> 99 </listitem> 100 </varlistentry> 92 101 102 <varlistentry> 103 <term><parameter>-O3</parameter></term> 104 <listitem> 105 <para>Specify the optimization to use.</para> 106 </listitem> 107 </varlistentry> 108 109 <varlistentry> 110 <term><parameter>-G</parameter></term> 111 <listitem> 112 <para>Omit parts of the test suite that won't work 113 without a GNU bc present.</para> 114 </listitem> 115 </varlistentry> 93 116 </variablelist> 94 117 … … 96 119 97 120 <screen><userinput remap="make">make</userinput></screen> 98 121 <!-- 99 122 <para>To test bc, run the commands below. There is quite a bit of output, 100 123 so you may want to redirect it to a file. There are a very small percentage … … 103 126 104 127 <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen> 128 --> 129 130 <para>To test bc, run:</para> 131 132 <screen><userinput remap="test">make test</userinput></screen> 133 105 134 106 135 <para>Install the package:</para> -
chapter06/binutils.xml
rb2c61c6 rbe00729f 57 57 <screen><computeroutput>The system has no more ptys. 58 58 Ask your system administrator to create more.</computeroutput></screen> 59 60 <para>Now remove one test that prevents the tests from running 61 to completion:</para> 62 63 <screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen> 59 64 60 65 <para>The Binutils documentation recommends building Binutils … … 153 158 <screen><userinput remap="test">make -k check</userinput></screen> 154 159 155 <para>One test, debug_msg.sh, is known to fail.</para> 160 <para>The PC-relative offset test and 161 the debug_msg.sh test may fail in the LFS environment.</para> 156 162 157 163 <para>Install the package:</para> -
chapter06/eudev.xml
rb2c61c6 rbe00729f 105 105 environment:</para> 106 106 107 <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar. bz2107 <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz 108 108 make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen> 109 109 -
chapter06/ninja.xml
rb2c61c6 rbe00729f 89 89 <para>To test the results, issue:</para> 90 90 91 <screen><userinput remap="test">python3 configure.py 92 ./ninja ninja_test 91 <screen><userinput remap="test">./ninja ninja_test 93 92 ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots</userinput></screen> 94 93 -
chapter06/systemd.xml
rb2c61c6 rbe00729f 40 40 <sect2 role="installation"> 41 41 <title>Installation of systemd</title> 42 <!--43 <para>Apply a patch to fix two critical security vulnerabilities:</para>44 45 <screen><userinput remap="pre">patch -Np1 -i ../systemd-240-security_fixes-2.patch</userinput></screen>46 -->47 42 48 43 <para>Create a symlink to work around missing xsltproc:</para> … … 71 66 <screen><userinput remap="pre">sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in</userinput></screen> 72 67 68 <!-- EDITORS NOTE: At the next systemd release, see if the CFLAGS can be removed. --> 69 73 70 <para>Prepare systemd for compilation:</para> 74 71 75 72 <screen><userinput remap="configure">mkdir -p build 76 73 cd build 77 74 78 75 PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \ 79 76 LANG=en_US.UTF-8 \ 77 CFLAGS+="-Wno-format-overflow" \ 80 78 meson --prefix=/usr \ 81 79 --sysconfdir=/etc \ … … 86 84 -Dfirstboot=false \ 87 85 -Dinstall-tests=false \ 88 -Dkill-path=/bin/kill \89 86 -Dkmod-path=/bin/kmod \ 90 87 -Dldconfig=false \ … … 97 94 -Dumount-path=/bin/umount \ 98 95 -Db_lto=false \ 96 -Drpmmacrosdir=no \ 99 97 ..</userinput></screen> 100 98 … … 175 173 </varlistentry> 176 174 175 <varlistentry> 176 <term><parameter>-Drpmmacrosdir=no</parameter></term> 177 <listitem> 178 <para>This switch disables installation of RPM Macros 179 for use with systemd because LFS does not support RPM.</para> 180 </listitem> 181 </varlistentry> 177 182 </variablelist> 178 183 … … 189 194 <screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen> 190 195 191 <para>Remove an unnecessary directory and file:</para> 192 193 <screen><userinput remap="install">rm -rfv /usr/lib/rpm 194 rm -f /usr/bin/xsltproc</userinput></screen> 196 <para>Remove an unnecessary symbolic link:</para> 197 198 <screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen> 195 199 196 200 <para>Create the <filename>/etc/machine-id</filename> file needed by … … 198 202 199 203 <screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen> 204 205 <para>Remove symbolic links to Util-Linux libraries:</para> 206 207 <screen><userinput remap="adjust">rm -fv /usr/lib/lib{blkid,uuid,mount}.so*</userinput></screen> 200 208 201 209 <para>Prevent systemd from creating <filename>/run/nologin</filename>
Note:
See TracChangeset
for help on using the changeset viewer.