Changeset 8cab730
- Timestamp:
- 04/30/2022 02:40:46 PM (2 years ago)
- Branches:
- 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- d6cba09c, d77e98c
- Parents:
- 813ab55 (diff), 93db1e61 (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:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/stages.xml
r813ab55 r8cab730 72 72 <quote>Entering the Chroot Environment</quote> must be done as the 73 73 <systemitem class="username">root</systemitem> user, with the LFS 74 environment variable set for the 75 <systemitem class="username">root</systemitem>user.</para> 74 environment variable set for the &root; user.</para> 76 75 </listitem> 77 76 -
chapter03/packages.xml
r813ab55 r8cab730 11 11 <title>All Packages</title> 12 12 13 <note> 14 <para>Read the <ulink url='&secadv;'>security advisories</ulink> 15 before downloading packages to figure out if a newer version of any 16 package should be used to avoid security vulnerabilities.</para> 17 18 <para>The upstreams may remove old releases, especially when these 19 releases contain a security vulnerability. If one URL below is not 20 reachable, you should read the security advisories first to figure out 21 if a newer version (with the vulnerability fixed) should be used. If 22 not, try to download the removed package from a mirror. Although it's 23 possible to download an old release from a mirror even if this release 24 has been removed because of a vulnerability, it's not recommended to 25 use a release known to be vulnerable for building your system.</para> 26 </note> 27 13 28 <para>Download or otherwise obtain the following packages:</para> 14 29 … … 174 189 <para>Download: <ulink url="&expat-url;"/></para> 175 190 <para>MD5 sum: <literal>&expat-md5;</literal></para> 176 <note>177 <para>The upstream may remove tarballs of the specific releases of178 <application>Expat</application> when these releases contain a179 security vulnerability. You should refer to180 <ulink url='&lfs-root;lfs/advisories/'>LFS security advisories</ulink>181 to figure out which version (with the vulnerability fixed) should182 be used. You may download the vulnerable version from a mirror,183 but it's not recommended.</para>184 </note>185 191 </listitem> 186 192 </varlistentry> -
chapter04/addinguser.xml
r813ab55 r8cab730 87 87 88 88 <note><para>In some host systems, the following command does not complete 89 properly and suspends the login to the lfs user to the background. If the90 prompt "lfs:~$" does not appear immediately, entering the89 properly and suspends the login to the &lfs-user; user to the background. 90 If the prompt "lfs:~$" does not appear immediately, entering the 91 91 <command>fg</command> command will fix the issue.</para></note> 92 92 -
chapter07/cleanup.xml
r813ab55 r8cab730 157 157 158 158 <warning><para>The following commands are extremely dangerous. If 159 you run <command>rm -rf ./*</command> as the rootuser and you159 you run <command>rm -rf ./*</command> as the &root; user and you 160 160 do not change to the $LFS directory or the <envar>LFS</envar> 161 environment variable is not set for the rootuser, it will destroy161 environment variable is not set for the &root; user, it will destroy 162 162 your entire host system. YOU ARE WARNED.</para></warning> 163 163 -
chapter07/introduction.xml
r813ab55 r8cab730 26 26 run as <systemitem class="username">root</systemitem>, with the 27 27 <envar>LFS</envar> variable set. After entering chroot, all commands 28 are run as root, fortunately without access to the OS of the computer28 are run as &root;, fortunately without access to the OS of the computer 29 29 you built LFS on. Be careful anyway, as it is easy to destroy the whole 30 30 LFS system with badly formed commands.</para> -
chapter08/bash.xml
r813ab55 r8cab730 74 74 <screen><userinput remap="test">chown -Rv tester .</userinput></screen> 75 75 76 <para>The testsuite of the package is designed to be run as a non- root76 <para>The testsuite of the package is designed to be run as a non-&root; 77 77 user that owns the terminal connected to standard input. To satisfy the 78 78 requirement, spawn a new pseudo terminal using -
chapter08/coreutils.xml
r813ab55 r8cab730 120 120 <screen><userinput remap="test">echo "dummy:x:102:tester" >> /etc/group</userinput></screen> 121 121 122 <para>Fix some of the permissions so that the non- root user can compile and123 run the tests:</para>122 <para>Fix some of the permissions so that the non-&root; user can 123 compile and run the tests:</para> 124 124 125 125 <screen><userinput remap="test">chown -Rv tester . </userinput></screen> -
chapter08/meson.xml
r813ab55 r8cab730 71 71 <term><parameter>-w dist</parameter></term> 72 72 <listitem> 73 <para>Put the created wheels into the `dist` directory.</para> 73 <para>Put the created wheels into the 74 <filename class='directory'>dist</filename> directory.</para> 74 75 </listitem> 75 76 </varlistentry> … … 78 79 <term><parameter>--find-links dist</parameter></term> 79 80 <listitem> 80 <para>Install wheels from the 'dist' directory.</para> 81 <para>Install wheels from the 82 <filename class='directory'>dist</filename> directory.</para> 81 83 </listitem> 82 84 </varlistentry> -
chapter08/python.xml
r813ab55 r8cab730 94 94 95 95 <para>In serveral places we use the <command>pip3</command> command to 96 install Python 3 programs and modules for all users as root. This conflicts 97 with the Python developers recommendation to build packages in a virtual 98 environment as a regular user. To this end, a multi-line warning is 99 written when using <command>pip3</command> as the root user. If desired, 100 supress this warning by running the following command:</para> 96 install Python 3 programs and modules for all users as 97 <systemitem class='username'>root</systemitem>. This conflicts 98 with the Python developers recommendation to install packages into a 99 virtual environment or the home directory of a regular user (by running 100 <command>pip3</command> as this user). To this end, a multi-line warning 101 is written when using <command>pip3</command> as the 102 <systemitem class='username'>root</systemitem> user. The main reason 103 of this recommendation is for avoiding a conflict with the system 104 package manager (<command>dpkg</command> for example), but LFS does not 105 have a system-wide package manager so this is not a problem. If desired, 106 suppress this warning by running the following command:</para> 101 107 102 108 <screen><userinput remap="install">sed -e '/def warn_if_run_as_root/a\ return' \ … … 104 110 </userinput></screen> 105 111 112 <important> 113 <para> 114 In LFS and BLFS we normally build and install Python modules with the 115 <command>pip3</command> command. Please take care that the 116 <command>pip3 install</command> commands in both the books should be 117 run as the &root; user unless it's for a Python virtual environment. 118 Running a <command>pip3 install</command> as a non-&root; user may seem 119 to work fine, but it will cause the installed module to be inaccessible 120 by other users. 121 </para> 122 123 <para> 124 <command>pip3 install</command> will not reinstall an already installed 125 module by default. For using the <command>pip3 install</command> 126 command to upgrade a module (for example, from meson-0.61.3 to 127 meson-0.62.0), insert the option <parameter>--upgrade</parameter> into 128 the command line. If it's really necessary to downgrade a module or 129 reinstall the same version for some reason, insert 130 <parameter>--force-reinstall</parameter> into the command line. 131 </para> 132 </important> 106 133 107 134 <para>If desired, install the preformatted documentation:</para> -
chapter08/util-linux.xml
r813ab55 r8cab730 85 85 <screen><userinput remap="make">make</userinput></screen> 86 86 87 <para>If desired, run the test suite as a non- rootuser:</para>87 <para>If desired, run the test suite as a non-&root; user:</para> 88 88 89 89 <warning><para>Running the test suite as the -
chapter08/wheel.xml
r813ab55 r8cab730 15 15 </sect1info> 16 16 17 <title> wheel-&wheel-version;</title>17 <title>Wheel-&wheel-version;</title> 18 18 19 19 <indexterm zone="ch-system-wheel"> … … 24 24 <title/> 25 25 26 <para>Wheel is a Python library that i mplements the reference26 <para>Wheel is a Python library that is the reference 27 27 implementation of the Python wheel packaging standard.</para> 28 28 … … 51 51 <term><command>install</command></term> 52 52 <listitem> 53 <para>Install the package </para>53 <para>Install the package.</para> 54 54 </listitem> 55 55 </varlistentry> … … 80 80 81 81 <segmentedlist> 82 <segtitle>Installed module</segtitle>82 <segtitle>Installed program</segtitle> 83 83 <segtitle>Installed directory</segtitle> 84 84 85 85 <seglistitem> 86 <seg>wheel .py</seg>86 <seg>wheel</seg> 87 87 <seg>/usr/lib/python&python-minor;/site-packages/wheel</seg> 88 88 </seglistitem> 89 </segmentedlist> 89 90 90 </segmentedlist> 91 <variablelist> 92 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 93 <?dbfo list-presentation="list"?> 94 <?dbhtml list-presentation="table"?> 95 96 <varlistentry id="wheel-wheel"> 97 <term><command>wheel</command></term> 98 <listitem> 99 <para> 100 is an utility to unpack, pack, or convert wheel packages 101 </para> 102 <indexterm zone="ch-system-wheel"> 103 <primary sortas="b-wheel">wheel</primary> 104 </indexterm> 105 </listitem> 106 </varlistentry> 107 </variablelist> 91 108 92 109 </sect2> -
chapter10/kernel.xml
r813ab55 r8cab730 249 249 <para>If the host system has a separate /boot partition, the files copied 250 250 below should go there. The easiest way to do that is to bind /boot on the 251 host (outside chroot) to /mnt/lfs/boot before proceeding. As the root252 user in the <emphasis>host system</emphasis>:</para>251 host (outside chroot) to /mnt/lfs/boot before proceeding. As the 252 &root; user in the <emphasis>host system</emphasis>:</para> 253 253 254 254 <screen role="nodump"><userinput>mount --bind /boot /mnt/lfs/boot</userinput></screen> -
chapter11/reboot.xml
r813ab55 r8cab730 47 47 <listitem><para>Installing <ulink 48 48 url='&blfs-book;postlfs/sudo.html'>sudo</ulink> may be useful for 49 building packages as a non- root user and easily installing the resulting50 packages in your new system.</para></listitem>49 building packages as a non-&root; user and easily installing the 50 resulting packages in your new system.</para></listitem> 51 51 52 52 <listitem><para>If you want to access your new system from a remote system -
general.ent
r813ab55 r8cab730 113 113 <!ENTITY github "https://github.com"> 114 114 115 <!ENTITY root "<systemitem class='username'>root</systemitem>"> 116 <!ENTITY lfs-user "<systemitem class='username'>lfs</systemitem>"> 117 115 118 <!ENTITY % packages-entities SYSTEM "packages.ent"> 116 119 %packages-entities; -
lfs-latest-git.php
r813ab55 r8cab730 71 71 { 72 72 if ( ! preg_match( "/sourceforge/", $url ) && 73 ! preg_match( "/mpfr/", $url ) && 73 74 ! preg_match( "/psmisc/", $url ) ) 74 75 { 75 76 exec( "curl --location --silent --max-time 30 $url", $dir ); 76 77 78 $s = implode( "\n", $dir ); 79 $dir = strip_tags( $s ); 80 return explode( "\n", $dir ); 81 } 82 else if ( preg_match( "/mpfr/", $url ) ) 83 { 84 # There seems to be a problem with the mpfs certificate 85 exec( "curl --location --silent --insecure --max-time 30 $url", $dir ); 77 86 $s = implode( "\n", $dir ); 78 87 $dir = strip_tags( $s ); … … 138 147 if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." ); 139 148 if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/tags"; 149 if ( $package == "wheel" ) $dirpath = "https://pypi.org/project/wheel/#files"; 140 150 if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/releases"; 141 151 -
packages.ent
r813ab55 r8cab730 509 509 <!ENTITY mpfr-version "4.1.0"> 510 510 <!ENTITY mpfr-size "1,490 KB"> 511 <!ENTITY mpfr-url "https:// www.mpfr.org/mpfr-&mpfr-version;/mpfr-&mpfr-version;.tar.xz">511 <!ENTITY mpfr-url "https://ftp.gnu.org/gnu/mpfr/mpfr-&mpfr-version;.tar.xz"> 512 512 <!ENTITY mpfr-md5 "bdd3d5efba9c17da8d83a35ec552baef"> 513 513 <!ENTITY mpfr-home "https://www.mpfr.org/">
Note:
See TracChangeset
for help on using the changeset viewer.