Changeset 8cab730


Ignore:
Timestamp:
04/30/2022 02:40:46 PM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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.
Message:

Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk

Files:
16 edited

Legend:

Unmodified
Added
Removed
  • chapter02/stages.xml

    r813ab55 r8cab730  
    7272        <quote>Entering the Chroot Environment</quote> must be done as the
    7373        <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>
    7675      </listitem>
    7776
  • chapter03/packages.xml

    r813ab55 r8cab730  
    1111  <title>All Packages</title>
    1212
     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
    1328  <para>Download or otherwise obtain the following packages:</para>
    1429
     
    174189        <para>Download: <ulink url="&expat-url;"/></para>
    175190        <para>MD5 sum: <literal>&expat-md5;</literal></para>
    176         <note>
    177           <para>The upstream may remove tarballs of the specific releases of
    178           <application>Expat</application> when these releases contain a
    179           security vulnerability.  You should refer to
    180           <ulink url='&lfs-root;lfs/advisories/'>LFS security advisories</ulink>
    181           to figure out which version (with the vulnerability fixed) should
    182           be used.  You may download the vulnerable version from a mirror,
    183           but it's not recommended.</para>
    184         </note>
    185191      </listitem>
    186192    </varlistentry>
  • chapter04/addinguser.xml

    r813ab55 r8cab730  
    8787
    8888  <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 the
    90   prompt "lfs:~$" does not appear immediately, entering the
     89  properly and suspends the login to the &lfs-user; user to the background.
     90  If the prompt "lfs:~$" does not appear immediately, entering the
    9191  <command>fg</command> command will fix the issue.</para></note>
    9292
  • chapter07/cleanup.xml

    r813ab55 r8cab730  
    157157
    158158    <warning><para>The following commands are extremely dangerous.  If
    159     you run <command>rm -rf ./*</command> as the root user and you
     159    you run <command>rm -rf ./*</command> as the &root; user and you
    160160    do not change to the $LFS directory or the <envar>LFS</envar>
    161     environment variable is not set for the root user, it will destroy
     161    environment variable is not set for the &root; user, it will destroy
    162162    your entire host system.  YOU ARE WARNED.</para></warning>
    163163
  • chapter07/introduction.xml

    r813ab55 r8cab730  
    2626  run as <systemitem class="username">root</systemitem>, with the
    2727  <envar>LFS</envar> variable set. After entering chroot, all commands
    28   are run as root, fortunately without access to the OS of the computer
     28  are run as &root;, fortunately without access to the OS of the computer
    2929  you built LFS on. Be careful anyway, as it is easy to destroy the whole
    3030  LFS system with badly formed commands.</para>
  • chapter08/bash.xml

    r813ab55 r8cab730  
    7474<screen><userinput remap="test">chown -Rv tester .</userinput></screen>
    7575
    76     <para>The testsuite of the package is designed to be run as a non-root
     76    <para>The testsuite of the package is designed to be run as a non-&root;
    7777    user that owns the terminal connected to standard input.  To satisfy the
    7878    requirement, spawn a new pseudo terminal using
  • chapter08/coreutils.xml

    r813ab55 r8cab730  
    120120<screen><userinput remap="test">echo "dummy:x:102:tester" &gt;&gt; /etc/group</userinput></screen>
    121121
    122     <para>Fix some of the permissions so that the non-root user can compile and
    123     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>
    124124
    125125<screen><userinput remap="test">chown -Rv tester . </userinput></screen>
  • chapter08/meson.xml

    r813ab55 r8cab730  
    7171        <term><parameter>-w dist</parameter></term>
    7272        <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>
    7475        </listitem>
    7576      </varlistentry>
     
    7879        <term><parameter>--find-links dist</parameter></term>
    7980        <listitem>
    80            <para>Install wheels from the 'dist' directory.</para>
     81           <para>Install wheels from the
     82           <filename class='directory'>dist</filename> directory.</para>
    8183        </listitem>
    8284      </varlistentry>
  • chapter08/python.xml

    r813ab55 r8cab730  
    9494
    9595    <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>
    101107
    102108<screen><userinput remap="install">sed -e '/def warn_if_run_as_root/a\    return' \
     
    104110</userinput></screen>
    105111
     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>
    106133
    107134    <para>If desired, install the preformatted documentation:</para>
  • chapter08/util-linux.xml

    r813ab55 r8cab730  
    8585<screen><userinput remap="make">make</userinput></screen>
    8686
    87     <para>If desired, run the test suite as a non-root user:</para>
     87    <para>If desired, run the test suite as a non-&root; user:</para>
    8888
    8989    <warning><para>Running the test suite as the
  • chapter08/wheel.xml

    r813ab55 r8cab730  
    1515  </sect1info>
    1616
    17   <title>wheel-&wheel-version;</title>
     17  <title>Wheel-&wheel-version;</title>
    1818
    1919  <indexterm zone="ch-system-wheel">
     
    2424    <title/>
    2525
    26     <para>Wheel is a Python library that implements the reference
     26    <para>Wheel is a Python library that is the reference
    2727    implementation of the Python wheel packaging standard.</para>
    2828
     
    5151        <term><command>install</command></term>
    5252        <listitem>
    53            <para>Install the package</para>
     53           <para>Install the package.</para>
    5454        </listitem>
    5555      </varlistentry>
     
    8080
    8181    <segmentedlist>
    82       <segtitle>Installed module</segtitle>
     82      <segtitle>Installed program</segtitle>
    8383      <segtitle>Installed directory</segtitle>
    8484
    8585      <seglistitem>
    86         <seg>wheel.py</seg>
     86        <seg>wheel</seg>
    8787        <seg>/usr/lib/python&python-minor;/site-packages/wheel</seg>
    8888      </seglistitem>
     89    </segmentedlist>
    8990
    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>
    91108
    92109  </sect2>
  • chapter10/kernel.xml

    r813ab55 r8cab730  
    249249      <para>If the host system has a separate /boot partition, the files copied
    250250      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 root
    252       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>
    253253
    254254<screen role="nodump"><userinput>mount --bind /boot /mnt/lfs/boot</userinput></screen>
  • chapter11/reboot.xml

    r813ab55 r8cab730  
    4747    <listitem><para>Installing <ulink
    4848    url='&blfs-book;postlfs/sudo.html'>sudo</ulink> may be useful for
    49     building packages as a non-root user and easily installing the resulting
    50     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>
    5151
    5252    <listitem><para>If you want to access your new system from a remote system
  • general.ent

    r813ab55 r8cab730  
    113113<!ENTITY github          "https://github.com">
    114114
     115<!ENTITY root            "<systemitem class='username'>root</systemitem>">
     116<!ENTITY lfs-user        "<systemitem class='username'>lfs</systemitem>">
     117
    115118<!ENTITY % packages-entities SYSTEM "packages.ent">
    116119%packages-entities;
  • lfs-latest-git.php

    r813ab55 r8cab730  
    7171{
    7272  if ( ! preg_match( "/sourceforge/", $url ) &&
     73       ! preg_match( "/mpfr/",        $url ) &&
    7374       ! preg_match( "/psmisc/",      $url ) )
    7475  {
    7576    exec( "curl --location --silent --max-time 30 $url", $dir );
    7677
     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 );
    7786    $s   = implode( "\n", $dir );
    7887    $dir = strip_tags( $s );
     
    138147if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
    139148if ( $package == "vim"        ) $dirpath = "https://github.com/vim/vim/tags";
     149if ( $package == "wheel"      ) $dirpath = "https://pypi.org/project/wheel/#files";
    140150if ( $package == "zstd"       ) $dirpath = "https://github.com/facebook/zstd/releases";
    141151
  • packages.ent

    r813ab55 r8cab730  
    509509<!ENTITY mpfr-version "4.1.0">
    510510<!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">
    512512<!ENTITY mpfr-md5 "bdd3d5efba9c17da8d83a35ec552baef">
    513513<!ENTITY mpfr-home "https://www.mpfr.org/">
Note: See TracChangeset for help on using the changeset viewer.