Changes in / [716db1f:e680022]


Ignore:
Files:
127 edited

Legend:

Unmodified
Added
Removed
  • INSTALL

    r716db1f re680022  
    11LFS Book Conversion Tools Installation Instructions
    22
    3 After downloading the SVN source, there are some things that need to be set up
    4 on your computer if you want to convert the XML source into something easier to
    5 read (e.g. HTML, TXT, or PDF).  If you are interested in this, then keep
    6 reading.  If you are only interested in editing the XML source for re-
    7 submission to the lfs-book or lfs-dev mailing lists, then you do not need this
    8 document.  Instead, you need to read the LFS Editor's Manual.  See the LFS
     3After downloading the SVN source, there are some things that need to be set up 
     4on your computer if you want to convert the XML source into something easier to 
     5read (e.g. HTML, TXT, or PDF).  If you are interested in this, then keep 
     6reading.  If you are only interested in editing the XML source for re- 
     7submission to the lfs-book or lfs-dev mailing lists, then you do not need this 
     8document.  Instead, you need to read the LFS Editor's Manual.  See the LFS 
    99website at https://www.linuxfromscratch.org for more information.
    1010
     
    1919  - https://www.linuxfromscratch.org/blfs/view/svn/general/libxslt.html
    2020
    21 * DocBook DTD
     21* DocBook DTD 
    2222  - https://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html
    2323
    24 * DocBook XSL Stylesheets
     24* DocBook XSL Stylesheets 
    2525  - https://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html
    2626
     
    2828  - https://www.linuxfromscratch.org/blfs/view/svn/general/tidy-html5.html
    2929
    30 -------------------------------------------------------------------------------
     30------------------------------------------------------------------------------- 
    3131
    3232If you want to convert the XML to TXT, install the above items, and then install
     
    3636  - https://www.linuxfromscratch.org/blfs/view/svn/basicnet/lynx.html
    3737
    38 -------------------------------------------------------------------------------
     38------------------------------------------------------------------------------- 
    3939
    4040If you want to convert the XML to PDF, install the items listed above (except
  • Makefile

    r716db1f re680022  
    158158        @echo "Validation complete."
    159159
    160 profile-html:
     160profile-html: 
    161161        @echo "Generating profiled XML for XHTML..."
    162162        $(Q)xsltproc --nonet                              \
  • README

    r716db1f re680022  
    11LFS Book README
    22
    3 This document is meant to instruct the user on how to convert the book's XML
    4 source to other formats (e.g. HTML, PDF, PS and TXT).  First, if you have not
     3This document is meant to instruct the user on how to convert the book's XML 
     4source to other formats (e.g. HTML, PDF, PS and TXT).  First, if you have not 
    55already done so, please read the INSTALL file for instructions on how to install
    66the required software.  If you have already completed the steps outlined in the
     
    88various other formats.
    99
    10 In all examples, setting the parameter REV=systemd is needed to build the
     10In all examples, setting the parameter REV=systemd is needed to build the 
    1111systemd version of the book.
    1212
  • appendices/acknowledgments.xml

    r716db1f re680022  
    7676
    7777    <listitem>
    78       <para><ulink url="mailto:jmengual@linuxfromscratch.org">Jean-Philippe
     78      <para><ulink url="mailto:jmengual@linuxfromscratch.org">Jean-Philippe 
    7979      Mengual </ulink> &lt;jmengual@linuxfromscratch.org&gt; &ndash; French LFS
    8080      translation project 2008-2016</para>
     
    8282
    8383    <listitem>
    84       <para><ulink url="mailto:jlepiller@linuxfromscratch.org">Julien
     84      <para><ulink url="mailto:jlepiller@linuxfromscratch.org">Julien 
    8585      Lepiller </ulink> &lt;jlepiller@linuxfromscratch.org&gt; &ndash; French LFS
    8686      translation project 2017-present</para>
     
    100100
    101101    <listitem>
    102       <para><ulink url="mailto:info@linuxfromscratch.org.ru">Anton Maisak</ulink>
     102      <para><ulink url="mailto:info@linuxfromscratch.org.ru">Anton Maisak</ulink> 
    103103      &lt;info@linuxfromscratch.org.ru&gt; &ndash; Russian LFS
    104104      translation project</para>
     
    106106
    107107    <listitem>
    108       <para><ulink url="mailto:helen@linuxfromscratch.org.ru">Elena Shevcova</ulink>
     108      <para><ulink url="mailto:helen@linuxfromscratch.org.ru">Elena Shevcova</ulink> 
    109109      &lt;helen@linuxfromscratch.org.ru&gt; &ndash; Russian LFS
    110110      translation project</para>
  • appendices/dependencies.xml

    r716db1f re680022  
    473473          <seg>
    474474            <ulink url="https://metacpan.org/pod/Expect">Expect.pm</ulink>
    475             and
     475            and 
    476476            <ulink url="https://metacpan.org/pod/IO::Tty">IO::Tty</ulink>
    477477          </seg>
     
    748748          <seg>
    749749            <ulink url="&blfs-book;general/tk.html">Tk</ulink>
    750           </seg>
     750          </seg> 
    751751        </seglistitem>
    752752      </segmentedlist>
     
    951951             <ulink url="http://gcc.gnu.org/wiki/GNAT">GNAT</ulink>
    952952             and
    953              <ulink url="https://repo.or.cz/isl.git">ISL</ulink>
     953             <ulink url="https://repo.or.cz/isl.git">ISL</ulink> 
    954954          </seg>
    955955        </seglistitem>
     
    25572557        </seglistitem>
    25582558      </segmentedlist>
     2559       
    25592560
    25602561      <segmentedlist id="python-testdeps">
  • bootscripts/ChangeLog

    r716db1f re680022  
    77
    882021-04-28 Bruce Dubbs <bdubbs@linuxfromscratch.org>
    9    * Make check_signal more robust.
     9   * Make check_signal more robust. 
    1010   * Use a better methog for killproc to remove a dead pid file.
    1111   * Clarify what signals killproc accepts.
     
    8585   * Remove local attribue of some variables for Bourne
    8686     shell compatability
    87    * Specify /bin/echo in commands with -e switch for
     87   * Specify /bin/echo in commands with -e switch for 
    8888     Bourne shell compatability
    8989
     
    122122   ** Updated ifup.8 to reflect current usage
    123123   ** ifup
    124    *** Move interface up logic to after service scripts.  Eliminates the
     124   *** Move interface up logic to after service scripts.  Eliminates the 
    125125       need for the LINK_CHECK variable.
    126126   *** Sets the GATEWAY if the variable is set
     
    168168   * Create convenience symlink /etc/init.d->/etc/rc.d/init.d.
    169169   * Add help and man pages to upup/ifdown.
    170    * Append /run/var/bootlog to /var/log/boot.log at the end of
     170   * Append /run/var/bootlog to /var/log/boot.log at the end of 
    171171     the boot sequence.
    172172   * Add capabiltiy to step through the boot scripts at boot time
    173    * Optionally allow environment variables in sysconfig directory's
     173   * Optionally allow environment variables in sysconfig directory's 
    174174     console, network, and clock files to be placed in rc.site.
    175175   * Add an optional FASTBOOT parameter to set /fastboot when rebooting.
     
    184184   ** Add /etc/sysconfig/init_params for adding environmental parameters
    185185      to all functions used in bootscripts
    186    ** Move network configuration to /etc/sysconfig/ifconfig.*.  The
    187       ifconfig files can have any extension.  Use IFACE parameter to
     186   ** Move network configuration to /etc/sysconfig/ifconfig.*.  The 
     187      ifconfig files can have any extension.  Use IFACE parameter to 
    188188      specify the target network interface within the configuration file.
    189    ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of
    190       files in /tmp at bootup.  Specify the variable in
     189   ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of 
     190      files in /tmp at bootup.  Specify the variable in 
    191191      /etc/sysconfig/init_params.
    192192
     
    2242242009-01-02  Bruce Dubbs <bdubbs@linuxfromscratch.org>
    225225   * lfs/init.d/functions:
    226    * lfs/sysconfig/network-devices/ifup:
    227      Updated line widths to accommodate pdf generation in both the above
     226   * lfs/sysconfig/network-devices/ifup: 
     227     Updated line widths to accommodate pdf generation in both the above 
    228228     files.
    229229
     
    342342n/a - June 2, 2006
    343343   * Removed console config file and makefile targets.
    344    * Removed references to /dev/bug and bugreport in udev and
     344   * Removed references to /dev/bug and bugreport in udevand
    345345     udev_retry bootscripts. (DJ Lucas)
    346346
     
    351351
    352352n/a - April 15, 2006
    353    * Cleaned up contrib directory.  Removed: contrib/init.d,
    354      contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
     353   * Cleaned up contrib directory.  Removed: contrib/init.d, 
     354     contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2 
    355355     patch. (DJ Lucas)
    356356
    357357n/a - April 14, 2006
    358358   * Merged changes from udev_update branch (DJ Lucas)
    359    * Replaced a return with an exit and reversed comment changes in
     359   * Replaced a return with an exit and reversed comment changes in 
    360360     udev bootscript. (Dan Nicholson)
    361361   * Replaced walk_sysfs function in udev bootscript with new udevtrigger
     
    370370
    371371n/a - March 10, 2006
    372    * Moved src argument to ipv4-static-route service script and
     372   * Moved src argument to ipv4-static-route service script and 
    373373     removed from ipv4-static service script. (DJ Lucas)
    374374
     
    389389   * Made above killproc/print_status changes in enhanced
    390390     bootscripts.
    391    * Made logger service configurable in enhanced
     391   * Made logger service configurable in enhanced 
    392392     bootscripts. (DJ Lucas)
    393393
    394394n/a - August 14, 2005
    395    * Added -s flag to pidofproc() for backwards
     395   * Added -s flag to pidofproc() for backwards 
    396396     compatibility (DJ Lucas)
    397    * Fixed erronous values returned by pidofproc() which
     397   * Fixed erronous values returned by pidofproc() which 
    398398     broke the functionality of statusproc (DJ Lucas)
    399399
     
    403403
    404404n/a - June 26, 2005
    405    * Removed consolelog script from contrib
    406    * Updated interactive rc script in contrib and added
     405   * Removed consolelog script from contrib 
     406   * Updated interactive rc script in contrib and added 
    407407     README.rc-Interactive, added install target to the
    408408     Makefile. (DJ Lucas)
     
    600600n/a - September 21, 2004
    601601   * boot_mesg has been enhanced.  Subsequent calls will overwrite
    602      previous text, and it will wrap text basedupon the variable ${WCOL}.
     602     previous text, and it will wrap text basedupon the variable ${WCOL}. 
    603603     (James Robertson)
    604604   * Fixed mtu optional service typo (Kevin P Fleming)
     
    609609
    610610n/a - September 15, 2004
    611    * Added blue bracket, from dj's 3.0-pre1 bootscript package
     611   * Added blue bracket, from dj's 3.0-pre1 bootscript package 
    612612     [echo_failure, echo_warning, and echo_ok]
    613613   * Added a new function called boot_mesg, meant to replace the echo
     
    633633
    634634n/a - August 4, 2004
    635    * Added MODE, DIRMODE, and CONFMODE variables to the makefile
     635   * Added MODE, DIRMODE, and CONFMODE variables to the makefile 
    636636     to allow permissions to be set at install. (DJ)
    637637
    638638n/a - July 31, 2004
     639   
    639640   * Moved PIDFILE check to getpids and removed arguments from
    640641     killproc and reloadproc.  Signals are now set at beginning of
     
    645646n/a - July 21, 2004
    646647
    647    * Committed DJ Lucas's patch for the killproc function.  It no
     648   * Committed DJ Lucas's patch for the killproc function.  It no 
    648649     longer requires arguments if PIDFILE is set
    649650   * added --backup to all sysconfig configuration files, so they are not
     
    978979   * Changed service script install targets to use
    979980     create-service-dir
    980    * Added check for dhcpcd service script for stale pid file
     981   * Added check for dhcpcd service script for stale pid file 
    981982     Suggested by Jeremy
    982983   * Added ifconfig to ipx service script for hosting device not up
  • bootscripts/Makefile

    r716db1f re680022  
    3030        ln -sfn       rc.d/init.d ${ETCDIR}/init.d
    3131
    32 files: create-dirs
     32files: create-dirs 
    3333        install -m ${MODE} lfs/init.d/checkfs       ${ETCDIR}/rc.d/init.d/
    3434        install -m ${MODE} lfs/init.d/cleanfs       ${ETCDIR}/rc.d/init.d/
     
    127127        rm -rf ${DESTDIR}/lib/services ${DESTDIR}/lib/lsb ${ETCDIR}/rc.d ${ETCDIR}/init.d \
    128128          ${SBIN}/ifup ${SBIN}/ifdown ${MAN8}/ifup.8 ${MAN8}/ifdown.8 \
    129           ${ETCDIR}/sysconfig/rc
     129          ${ETCDIR}/sysconfig/rc 
    130130
    131131.PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall
  • bootscripts/README

    r716db1f re680022  
    4949      - SKIPTMPCLEAN: skips cleaning of /tmp directory
    5050
    51       /etc/sysconfig/createfiles
     51      /etc/sysconfig/createfiles 
    5252         Each line is parsed, using space as a deliminator.
    5353         [NAME] [TYPE] [PERMISSIONS] [USER] [GROUP]
  • bootscripts/lfs/init.d/checkfs

    r716db1f re680022  
    6262         log_failure_msg "${msg}"
    6363
    64          log_info_msg "Press Enter to continue..."
     64         log_info_msg "Press Enter to continue..." 
    6565         wait_for_user
    6666         /etc/rc.d/init.d/halt stop
     
    7070
    7171      if [ -f /forcefsck ]; then
    72          msg="/forcefsck found, forcing file"
     72         msg="/forcefsck found, forcing file" 
    7373         msg="${msg} system checks as requested."
    7474         log_success_msg "$msg"
     
    109109         log_failure_msg "$msg"
    110110
    111          log_info_msg "Press Enter to continue..."
     111         log_info_msg "Press Enter to continue..." 
    112112         wait_for_user
    113113         reboot -f
     
    126126         log_failure_msg "$msg"
    127127
    128          log_info_msg "Press Enter to continue..."
     128         log_info_msg "Press Enter to continue..." 
    129129         wait_for_user
    130130         /etc/rc.d/init.d/halt stop
  • bootscripts/lfs/init.d/cleanfs

    r716db1f re680022  
    2323# Short-Description:   Cleans temporary directories early in the boot process.
    2424# Description:         Cleans temporary directories /run, /var/lock, and
    25 #                      optionally, /tmp.  cleanfs also creates /run/utmp
     25#                      optionally, /tmp.  cleanfs also creates /run/utmp 
    2626#                      and any files defined in /etc/sysconfig/createfiles.
    2727# X-LFS-Provided-By:   LFS
     
    3131
    3232# Function to create files/directory on boot.
    33 create_files()
     33create_files() 
    3434{
    3535   # Input to file descriptor 9 and output to stdin (redirection)
     
    6464                     mknod "${name}" p
    6565                     ;;
    66                   *)
    67                      log_warning_msg "\nUnknown device type: ${dtype}"
     66                  *) 
     67                     log_warning_msg "\nUnknown device type: ${dtype}" 
    6868                     ;;
    6969               esac
    7070               ;;
    7171            *)
    72                log_warning_msg "\nUnknown type: ${type}"
     72               log_warning_msg "\nUnknown type: ${type}" 
    7373               continue
    7474               ;;
     
    8888case "${1}" in
    8989   start)
    90       log_info_msg "Cleaning file systems:"
     90      log_info_msg "Cleaning file systems:" 
    9191
    9292      if [ "${SKIPTMPCLEAN}" = "" ]; then
    93          log_info_msg2 " /tmp"
     93         log_info_msg2 " /tmp" 
    9494         cd /tmp &&
    9595         find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1
  • bootscripts/lfs/init.d/console

    r716db1f re680022  
    3333[ -r /etc/sysconfig/console ] && . /etc/sysconfig/console
    3434
    35 is_true()
     35is_true() 
    3636{
    3737   [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ]
     
    4444      # See if we need to do anything
    4545      if [ -z "${KEYMAP}"         ] && [ -z "${KEYMAP_CORRECTIONS}" ] &&
    46          [ -z "${FONT}"           ] && [ -z "${LEGACY_CHARSET}"     ] &&
    47          ! is_true "${UNICODE}"; then
     46         [ -z "${FONT}"           ] && [ -z "${LEGACY_CHARSET}"     ] &&     
     47         ! is_true "${UNICODE}"; then 
    4848         exit 0
    4949      fi
     
    8686         loadkeys ${KEYMAP} >/dev/null 2>&1 ||
    8787         failed=1
    88 
     88     
    8989      [ -z "${KEYMAP_CORRECTIONS}" ] ||
    9090         loadkeys ${KEYMAP_CORRECTIONS} >/dev/null 2>&1 ||
     
    9898      # If any of the commands above failed, the trap at the
    9999      # top would set $failed to 1
    100       ( exit $failed )
     100      ( exit $failed ) 
    101101      evaluate_retval
    102102
    103103      exit $failed
    104       ;;
     104      ;;             
    105105
    106    *)
     106   *)                 
    107107      echo "Usage:  ${0} {start}"
    108       exit 1
    109       ;;
     108      exit 1         
     109      ;;             
    110110esac
    111111
  • bootscripts/lfs/init.d/modules

    r716db1f re680022  
    3838      egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0
    3939
    40       log_info_msg "Loading modules:"
     40      log_info_msg "Loading modules:" 
    4141
    4242      # Only try to load modules if the user has actually given us
     
    5555         # Print the module name if successful, otherwise take note.
    5656         if [ $? -eq 0 ]; then
    57             log_info_msg2 " ${module}"
     57            log_info_msg2 " ${module}" 
    5858         else
    5959            failedmod="${failedmod} ${module}"
     
    6464      log_success_msg2
    6565
    66       # Print a failure message with a list of any modules that
     66      # Print a failure message with a list of any modules that 
    6767      # may have failed to load.
    6868      if [ -n "${failedmod}" ]; then
    69          log_failure_msg "Failed to load modules:${failedmod}"
     69         log_failure_msg "Failed to load modules:${failedmod}" 
    7070         exit 1
    7171      fi
  • bootscripts/lfs/init.d/mountvirtfs

    r716db1f re680022  
    4040      chmod 1777 /run/shm /run/lock
    4141
    42       log_info_msg "Mounting virtual file systems: ${INFO}/run"
     42      log_info_msg "Mounting virtual file systems: ${INFO}/run" 
    4343
    4444      if ! mountpoint /proc >/dev/null; then
     
    4848
    4949      if ! mountpoint /sys >/dev/null; then
    50          log_info_msg2 " ${INFO}/sys"
     50         log_info_msg2 " ${INFO}/sys" 
    5151         mount -o nosuid,noexec,nodev /sys || failed=1
    5252      fi
    5353
    5454      if ! mountpoint /dev >/dev/null; then
    55          log_info_msg2 " ${INFO}/dev"
     55         log_info_msg2 " ${INFO}/dev" 
    5656         mount -o mode=0755,nosuid /dev  || failed=1
    5757      fi
    5858
    5959      ln -sfn /run/shm /dev/shm
    60 
     60     
    6161      (exit ${failed})
    6262      evaluate_retval
  • bootscripts/lfs/init.d/network

    r716db1f re680022  
    4444   stop)
    4545      # Unmount any network mounted file systems
    46        umount --all --force --types nfs,cifs,nfs4
     46       umount --all --force --types nfs,cifs,nfs4 
    4747
    4848      # Reverse list
  • bootscripts/lfs/init.d/rc

    r716db1f re680022  
    1919   log_failure_msg
    2020   # $i is set when called
    21    MSG="FAILURE:\n\nYou should not be reading this error message.\n\n"
     21   MSG="FAILURE:\n\nYou should not be reading this error message.\n\n" 
    2222   MSG="${MSG}It means that an unforeseen error took place in\n"
    2323   MSG="${MSG}${i},\n"
    2424   MSG="${MSG}which exited with a return value of ${error_value}.\n"
    25 
     25 
    2626   MSG="${MSG}If you're able to track this error down to a bug in one of\n"
    2727   MSG="${MSG}the files provided by the ${DISTRO_MINI} book,\n"
     
    3737   # $i is set when called
    3838   if [ ! -f ${i} ]; then
    39       log_warning_msg "${i} is not a valid symlink."
     39      log_warning_msg "${i} is not a valid symlink." 
    4040      SCRIPT_STAT="1"
    4141   fi
     
    103103
    104104if [ ! -d /etc/rc.d/rc${runlevel}.d ]; then
    105    log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n"
     105   log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n" 
    106106   exit 1
    107107fi
     
    110110
    111111# Note: In ${LOGLEVEL:-7}, it is ':' 'dash' '7', not minus 7
    112 if [ "$runlevel" == "S" ]; then
    113    [ -r /etc/sysconfig/console ] && source /etc/sysconfig/console
    114    dmesg -n "${LOGLEVEL:-7}"
     112if [ "$runlevel" == "S" ]; then 
     113   [ -r /etc/sysconfig/console ] && source /etc/sysconfig/console 
     114   dmesg -n "${LOGLEVEL:-7}" 
    115115fi
    116116
     
    226226if [ "${previous}" == "N" -a  "${runlevel}" != "S" ]; then
    227227   cat $BOOTLOG >> /var/log/boot.log
    228 
     228     
    229229   # Mark the end of boot
    230230   echo "--------" >> /var/log/boot.log
    231 
     231   
    232232   # Remove the temporary file
    233233   rm -f $BOOTLOG 2> /dev/null
  • bootscripts/lfs/init.d/setclock

    r716db1f re680022  
    1414
    1515### BEGIN INIT INFO
    16 # Provides:
     16# Provides:           
    1717# Required-Start:
    1818# Should-Start:        modules
  • bootscripts/lfs/init.d/swap

    r716db1f re680022  
    4949
    5050   status)
    51       log_success_msg "Retrieving swap status."
     51      log_success_msg "Retrieving swap status." 
    5252      swapon -s
    5353      ;;
  • bootscripts/lfs/init.d/udev

    r716db1f re680022  
    6161      # If any LVM based partitions are on the system, ensure they
    6262      # are activated so they can be used.
    63       if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi
     63      if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi 
    6464
    65       log_success_msg2
     65      log_success_msg2 
    6666      ;;
    6767
  • bootscripts/lfs/init.d/udev_retry

    r716db1f re680022  
    88#               DJ Lucas - dj@linuxfromscratch.org
    99# Update      : Bruce Dubbs - bdubbs@linuxfromscratch.org
    10 #               Bryan Kadzban -
     10#               Bryan Kadzban - 
    1111#
    1212# Version     : LFS 7.0
     
    4040      # From Debian: "copy the rules generated before / was mounted
    4141      # read-write":
    42 
     42   
    4343      for file in ${rundir}/tmp-rules--*; do
    4444         dest=${file##*tmp-rules--}
     
    4848      done
    4949
    50       # Re-trigger the uevents that may have failed,
     50      # Re-trigger the uevents that may have failed, 
    5151      # in hope they will succeed now
    5252      /bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \
  • bootscripts/lfs/lib/services/init-functions

    r716db1f re680022  
    11#!/bin/sh
    22########################################################################
    3 #
     3# 
    44# Begin /lib/lsb/init-funtions
    55#
     
    155155        fi
    156156
    157         # Return a value ONLY
     157        # Return a value ONLY 
    158158        # It is the init script's (or distribution's functions) responsibilty
    159159        # to log messages!
     
    161161
    162162            0)
    163                 # Program is already running correctly, this is a
     163                # Program is already running correctly, this is a 
    164164                # successful start.
    165165                return 0
     
    231231                shift 2
    232232                ;;
    233 
     233 
    234234             *)
    235235                 program="${1}"
     
    244244                 if [ -n "${3}" ]; then
    245245                     return 2
    246                  else
     246                 else 
    247247                     break
    248                  fi
     248                 fi                 
    249249                 ;;
    250250        esac
     
    322322    if [ "${?}" -eq "0" ]; then # Signal is used to terminate the program
    323323
    324         # Account for empty pidlist (pid file still exists and no
     324        # Account for empty pidlist (pid file still exists and no 
    325325        # signal was given)
    326326        if [ "${pidlist}" != "" ]; then
     
    337337                    kill "${signal}" "${pid}" 2> /dev/null
    338338
    339                     # Wait up to ${delay}/10 seconds to for "${pid}" to
     339                    # Wait up to ${delay}/10 seconds to for "${pid}" to 
    340340                    # terminate in 10ths of a second
    341341
     
    434434        prefix=`echo "${program}" | sed 's/[^/]*$//'`
    435435
    436         if [ -z "${prefix}" ]; then
     436        if [ -z "${prefix}" ]; then 
    437437           progname="${program}"
    438438        else
     
    584584    timespec
    585585    /bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG}
    586 
     586   
    587587    return 0
    588588}
     
    594594
    595595    echo " OK" >> ${BOOTLOG}
    596 
     596   
    597597    return 0
    598598}
     
    619619    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    620620    /bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG}
    621 
     621   
    622622    return 0
    623623}
     
    629629
    630630    echo "FAIL" >> ${BOOTLOG}
    631 
     631   
    632632    return 0
    633633}
     
    651651    timespec
    652652    /bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG}
    653 
     653   
    654654    return 0
    655655}
     
    663663    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    664664    /bin/echo "SKIP" >> ${BOOTLOG}
    665 
     665   
    666666    return 0
    667667}
     
    684684    timespec
    685685    /bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG}
    686 
     686   
    687687    return 0
    688688}
     
    695695    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    696696    /bin/echo -n -e "${logmessage}" >> ${BOOTLOG}
    697 
     697   
    698698    return 0
    699699}
  • bootscripts/lfs/lib/services/ipv4-static-route

    r716db1f re680022  
    5757
    5858   if [ -z "${PREFIX}" ]; then
    59       log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue."
     59      log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue." 
    6060      exit 1
    6161   fi
    62 
     62   
    6363   args="${args} ${IP}/${PREFIX}"
    6464   desc="${desc}${IP}/${PREFIX}"
     
    8383      evaluate_retval
    8484   ;;
    85 
     85   
    8686   down)
    8787      log_info_msg "Removing '${desc}' route from the ${1} interface..."
     
    8989      evaluate_retval
    9090   ;;
    91 
     91   
    9292   *)
    9393      echo "Usage: ${0} [interface] {up|down}"
  • bootscripts/lfs/sbin/ifdown

    r716db1f re680022  
    1 #!/bin/bash
     1#!/bin/bash 
    22########################################################################
    33# Begin /sbin/ifdown
     
    3131                       echo "${USAGE}" >& 2
    3232                       exit 2 ;;
    33 
     33                   
    3434      *)               break ;;
    3535   esac
     
    5454[ "${file}" = "${file%""~""}" ] || exit 0
    5555
    56 . /lib/lsb/init-functions
     56. /lib/lsb/init-functions 
    5757
    5858if [ ! -r "${file}" ]; then
  • bootscripts/lfs/sbin/ifup

    r716db1f re680022  
    4949
    5050      --version | -V)  echo "${VERSTR}"; exit 0 ;;
    51 
     51   
    5252      -*)              echo "ifup: ${1}: invalid option" >&2
    5353                       echo "${USAGE}" >& 2
    5454                       exit 2 ;;
    55 
     55                       
    5656      *)               break ;;
    5757   esac
     
    103103for S in ${SERVICE}; do
    104104  if [ ! -x "/lib/services/${S}" ]; then
    105     MSG="\nUnable to process ${file}.  Either "
     105    MSG="\nUnable to process ${file}.  Either " 
    106106    MSG="${MSG}the SERVICE '${S} was not present "
    107107    MSG="${MSG}or cannot be executed."
     
    114114
    115115# Create/configure the interface
    116 for S in ${SERVICE}; do
     116for S in ${SERVICE}; do 
    117117  IFCONFIG=${file} /lib/services/${S} ${IFACE} up
    118118done
     
    129129if test -n "${MTU}"; then
    130130   if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then
    131       for I in $IFACE $INTERFACE_COMPONENTS; do
    132          ip link set dev $I mtu $MTU;
     131      for I in $IFACE $INTERFACE_COMPONENTS; do 
     132         ip link set dev $I mtu $MTU; 
    133133      done
    134134   else
    135135      log_info_msg2 "Invalid MTU $MTU"
    136136   fi
    137 fi
     137fi 
    138138
    139139# Set the route default gateway if requested
  • bootscripts/lfs/sbin/ifup.8

    r716db1f re680022  
    1515
    1616DESCRIPTION
    17        The  ifup  and  ifdown  commands  may be used to configure
    18        (or, respectively, deconfigure) a network interface based
    19        on interface  definitions in the file
     17       The  ifup  and  ifdown  commands  may be used to configure 
     18       (or, respectively, deconfigure) a network interface based 
     19       on interface  definitions in the file 
    2020       /etc/sysconfig/ifconfig.IFACE.
    2121
     
    3131EXAMPLES
    3232       ifup eth0
    33               Bring up the interface defined in the file
     33              Bring up the interface defined in the file 
    3434              /etc/sysconfig/ifconfig.eth0
    3535
     
    5050                LABEL=eth0:2
    5151                SERVICE=dhcpcd
    52 
     52         
    5353                DHCP_START="--waitip"
    5454                DHCP_STOP="-k"
    55 
     55         
    5656                # Set PRINTIP="yes" to have the script print the DHCP IP address
    5757                PRINTIP="yes"
    58 
     58         
    5959                # Set PRINTALL="yes" to print the DHCP assigned values for
    60                 # IP, SM, DG, and 1st NS.
     60                # IP, SM, DG, and 1st NS. 
    6161                PRINTALL="no"
    6262
    6363       ifup br0
    64               Bring up the interface defined in the file
     64              Bring up the interface defined in the file 
    6565              /etc/sysconfig/ifconfig.br0
    66 
     66                   
    6767                ONBOOT=yes
    6868                IFACE=br0
     
    7878NOTES
    7979       The program does not configure network interfaces direct-
    80        ly.  It runs scripts defined by the SERVICE variable in
     80       ly.  It runs scripts defined by the SERVICE variable in 
    8181       the network configuration file.
    8282
     
    8484       ment variables set:
    8585
    86        IFACE   - The interface to configure, e.g. eth0.  It must
     86       IFACE   - The interface to configure, e.g. eth0.  It must 
    8787                 be available in /sys/class/net.
    8888
    8989       SERVICE - The service script to run to bring up the inter-
    90                  face.  Standard services are ipv4-static and
     90                 face.  Standard services are ipv4-static and 
    9191                 ipv4-static-route.  Other services such as dhcp
    9292                 or bridge may be installed.  This value may
     
    9494                 compound device such as a bridge.
    9595
    96        ONBOOT  - If set to 'yes', the specified interface is
     96       ONBOOT  - If set to 'yes', the specified interface is 
    9797                 configured by the netowrk boot script.
    9898
    9999       GATEWAY - The default IP address to use for routing if
    100                  the destination IP address is not in a static
    101                  route or on a local network, e.g., 192.168.1.1.
    102                  For secondary IP addresses on an interface, this
     100                 the destination IP address is not in a static 
     101                 route or on a local network, e.g., 192.168.1.1. 
     102                 For secondary IP addresses on an interface, this 
    103103                 parameter should not be specified.  If the service
    104104                 is ipv4-static-route, this parameter must NOT
     
    106106
    107107       STATIC_GATEWAY - The default IP address to use for routing
    108                  when setting a static routing address.
     108                 when setting a static routing address. 
    109109
    110110       INTERFACE_COMPONENTS - A list of component interfaces
    111                  only needed for a compound device such as a bridge.
    112                  This list is normally a single value, e.g. eth0,
     111                 only needed for a compound device such as a bridge. 
     112                 This list is normally a single value, e.g. eth0, 
    113113                 for use with a virtual host such as kvm.
    114114
     
    117117       ipv4-static
    118118
    119          IP        - The IP address of the interface,
     119         IP        - The IP address of the interface, 
    120120                     e.g. 192.168.1.2.
    121121
     
    123123                     number of the interface.  The default, if not
    124124                     specified, is 24.
    125 
    126          LABEL     - The label to be assigned to the interface.
     125       
     126         LABEL     - The label to be assigned to the interface. 
    127127                     This is normally specified for assigning
    128128                     additional IP addresses to a network
    129129                     device.  Example: eth0:2 (optional)
    130 
    131          BROADCAST - The brodcast address for this interface,
    132                      e.g 192.168.1.255.  If not specified,
     130       
     131         BROADCAST - The brodcast address for this interface, 
     132                     e.g 192.168.1.255.  If not specified, 
    133133                     the broadcast address will be calculated
    134134                     from the IP and PREFIX.
     
    136136       ipv4-static-route
    137137
    138          TYPE    -  The type of route, typically 'default',
     138         TYPE    -  The type of route, typically 'default', 
    139139                    'network', 'or host'.
    140140
     
    146146         STATIC_GATEWAY - The IP address for a network route.
    147147
    148          SOURCE  -  The source IP address to prefer when sending
     148         SOURCE  -  The source IP address to prefer when sending 
    149149                    to the destinations covered by the specified
    150150                    route. (optional)
     
    155155                      at startup.
    156156
    157          DHCP_STOP  - Optional paremeters to pass to the dhcp client
     157         DHCP_STOP  - Optional paremeters to pass to the dhcp client 
    158158                      at shutdown.
    159159
     
    165165
    166166         IP_FORWARD - An optional flag to enable the system to forward
    167                       inbound IP packets received by one interface to
    168                       another outbound interface.
     167                      inbound IP packets received by one interface to 
     168                      another outbound interface. 
    169169
    170170         STP        - Set bridge spanning tree protocol.  Default is no.
     
    172172FILES
    173173       /etc/sysconfig/ifconfig.*
    174               definitions of network interfaces
     174              definitions of network interfaces 
    175175
    176176AUTHORS
    177177       The ifup/ifdown suite was written by Nathan Coulson
    178        <nathan@linuxfromscratch.org> and Kevin P. Fleming
     178       <nathan@linuxfromscratch.org> and Kevin P. Fleming 
    179179       <kpfleming@linuxfromscratch.org>
    180180       and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.
  • bootscripts/lfs/sysconfig/createfiles

    r716db1f re680022  
    1212#               <filename> <type> <permissions> <user> <group>
    1313#               if type is equal to "dev"
    14 #               <filename> <type> <permissions> <user> <group> <devtype>
     14#               <filename> <type> <permissions> <user> <group> <devtype> 
    1515#             <major> <minor>
    1616#
     
    2323#                       block creates a block device
    2424#                       char creates a character deivce
    25 #                       pipe creates a pipe, this will ignore the <major> and
     25#                       pipe creates a pipe, this will ignore the <major> and 
    2626#           <minor> fields
    27 #               <major> and <minor> are the major and minor numbers used for
     27#               <major> and <minor> are the major and minor numbers used for 
    2828#     the device.
    2929########################################################################
  • chapter01/askforhelp.xml

    r716db1f re680022  
    3939    <itemizedlist>
    4040      <listitem>
    41         <para>The version of the book being used (in this case
    42               <phrase revision="sysv">&version;</phrase>
    43               <phrase revision="systemd">&versiond;</phrase>)
    44               <phrase arch="default" revision="sysv">&version;</phrase>
    45               <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase>
    46               <phrase arch="default" revision="systemd">&versiond;</phrase>
    47               <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>)</para>
     41        <para>
     42          The version of the book being used (in this case
     43          <phrase arch="default" revision="sysv">&version;</phrase>
     44          <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase>
     45          <phrase arch="default" revision="systemd">&versiond;</phrase>
     46          <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>)
     47        </para>
    4848      </listitem>
    4949      <listitem>
  • chapter01/changelog.xml

    r716db1f re680022  
    1212
    1313  <para>This is version
    14         <phrase arch="default" revision="sysv">&version;</phrase>
    15         <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase>
    16         <phrase arch="default" revision="systemd">&versiond;</phrase>
    17         <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>
     14    <phrase arch="default" revision="sysv">&version;</phrase>
     15    <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase>
     16    <phrase arch="default" revision="systemd">&versiond;</phrase>
     17    <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>
    1818  of the Linux From Scratch book, dated
    1919  &releasedate;. If this book is more than six months old, a newer and better
     
    4545    appropriate for the entry or if needed the entire day's listitem.
    4646    -->
    47     <listitem>
    48       <para>2021-09-15</para>
    49       <itemizedlist>
    50         <listitem>
    51           <para>[bdubbs] - Ensure tcl documentation instructions are present. Fixes
    52           <ulink url="&lfs-ticket-root;4923">#4923</ulink>.</para>
    53         </listitem>
    54         <listitem>
    55           <para>[bdubbs] - Update to Python3-3.9.7. Fixes
    56           <ulink url="&lfs-ticket-root;4916">#4916</ulink>.</para>
    57         </listitem>
    58         <listitem>
    59           <para>[bdubbs] - Update to linux-5.14.3. Fixes
    60           <ulink url="&lfs-ticket-root;4913">#4913</ulink>.</para>
    61         </listitem>
    62         <listitem>
    63           <para>[bdubbs] - Update to libcap-2.57. Fixes
    64           <ulink url="&lfs-ticket-root;4912">#4912</ulink>.</para>
    65         </listitem>
    66         <listitem>
    67           <para>[bdubbs] - Update to iproute2-5.14.0. Fixes
    68           <ulink url="&lfs-ticket-root;4917">#4917</ulink>.</para>
    69         </listitem>
    70         <listitem>
    71           <para>[bdubbs] - Update to inetutils-2.2. Fixes
    72           <ulink url="&lfs-ticket-root;4918">#4918</ulink>.</para>
    73         </listitem>
    74         <listitem>
    75           <para>[bdubbs] - Update to gzip-1.11. Fixes
    76           <ulink url="&lfs-ticket-root;4920">#4920</ulink>.</para>
    77         </listitem>
    78         <listitem>
    79           <para>[bdubbs] - Update to gdbm-1.21. Fixes
    80           <ulink url="&lfs-ticket-root;4919">#4919</ulink>.</para>
    81         </listitem>
    82         <listitem>
    83           <para>[bdubbs] - Update to bison-3.8.1. Fixes
    84           <ulink url="&lfs-ticket-root;4921">#4921</ulink>.</para>
    85         </listitem>
    86         <listitem>
    87           <para>[bdubbs] - Update to bc-5.0.2. Fixes
    88           <ulink url="&lfs-ticket-root;4908">#4905</ulink>.</para>
    89         </listitem>
    90       </itemizedlist>
    91     </listitem>
    92 
    93     <listitem>
    94       <para>2021-09-08</para>
    95       <itemizedlist>
    96         <listitem>
    97           <para>[renodr] - Fix regressions in File that result in improper
    98           detection of text and XZ files.</para>
    99         </listitem>
    100       </itemizedlist>
    101     </listitem>
    102 
    103     <listitem>
    104       <para>2021-09-06</para>
    105       <itemizedlist>
    106         <listitem>
    107           <para>[bdubbs] - Text clarifications in the backup/restore section
    108           of Chapter 7. Thanks to Kevin Buckley for the patch.</para>
    109         </listitem>
    110       </itemizedlist>
    111     </listitem>
    11247
    11348    <listitem>
  • chapter01/whatsnew.xml

    r716db1f re680022  
    4646      <para>Bash &bash-version;</para>
    4747    </listitem>-->
    48    <listitem>
     48   <!--<listitem>
    4949      <para>Bc &bc-version;</para>
    50     </listitem>
     50    </listitem>-->
    5151   <!--<listitem>
    5252      <para>Binutils-&binutils-version;</para>
    5353    </listitem>-->
    54    <listitem>
     54   <!--<listitem>
    5555      <para>Bison-&bison-version;</para>
    56     </listitem>
     56    </listitem>-->
    5757    <!--<listitem>
    5858      <para>Bzip2-&bzip2-version;</para>
     
    100100       <para>GCC-&gcc-version;</para>
    101101    </listitem>-->
    102    <listitem>
     102   <!--<listitem>
    103103       <para>GDBM-&gdbm-version;</para>
    104     </listitem>
     104    </listitem>-->
    105105    <!--<listitem>
    106106      <para>Gettext-&gettext-version;</para>
     
    124124      <para>GRUB-&grub-version;</para>
    125125    </listitem>-->
    126     <listitem>
     126    <!--<listitem>
    127127      <para>Gzip-&gzip-version;</para>
    128     </listitem>
     128    </listitem>-->
    129129   <!--<listitem>
    130130      <para>IANA-Etc-&iana-etc-version;</para>
    131131    </listitem>-->
    132     <listitem>
     132    <!--<listitem>
    133133      <para>Inetutils-&inetutils-version;</para>
    134     </listitem>
     134    </listitem>-->
    135135    <!--<listitem>
    136136      <para>Intltool-&intltool-version;</para>
    137137    </listitem>-->
    138    <listitem>
     138   <!--<listitem>
    139139      <para>IPRoute2-&iproute2-version;</para>
    140     </listitem>
     140    </listitem>-->
    141141    <!--<listitem revision="systemd">
    142142      <para>Jinja2-&jinja2-version;</para>
     
    154154      <para>LFS-Bootscripts-&lfs-bootscripts-version;</para>
    155155    </listitem>-->
    156    <listitem>
     156   <!--<listitem>
    157157      <para>Libcap-&libcap-version;</para>
    158     </listitem>
     158    </listitem>-->
    159159   <!--<listitem>
    160160      <para>Libelf-&elfutils-version; (from elfutils)</para>
     
    169169      <para>Libtool-&libtool-version;</para>
    170170    </listitem>-->
    171    <listitem>
     171   <!--<listitem>
    172172      <para>Linux-&linux-version;</para>
    173     </listitem>
     173    </listitem>-->
    174174   <!--<listitem>
    175175      <para>M4-&m4-version;</para>
     
    220220      <para>Psmisc-&psmisc-version;</para>
    221221    </listitem>-->
    222     <listitem>
     222   <!--<listitem>
    223223      <para>Python-&python-version;</para>
    224     </listitem>
     224    </listitem>-->
    225225    <!--<listitem>
    226226      <para>Readline-&readline-version;</para>
     
    285285    <title>Added:</title>
    286286    <listitem><para></para></listitem>  <!-- satisfy build -->
    287     <listitem>
    288       <para>file-5.40-upstream_fixes-1.patch</para>
    289     </listitem>
    290287    <!--
    291288    <listitem>
  • chapter02/aboutlfs.xml

    r716db1f re680022  
    5353  <filename>/root/.bash_profile</filename> file is incorporated as a part of
    5454  the login process.</para>
    55 
     55 
    5656  <para>Another consideration is the method that is used to log into the
    5757  host system.  If logging in through a graphical display manager, the
     
    5959  a virtual terminal is started.  In this case, add the export command to
    6060  the <filename>.bashrc</filename> file for the user and
    61   <systemitem class="username">root</systemitem>.  In addition,
    62   some distributions have instructions to not run the <filename>.bashrc</filename>
     61  <systemitem class="username">root</systemitem>.  In addition, 
     62  some distributions have instructions to not run the <filename>.bashrc</filename> 
    6363  instructions in a non-interactive bash invocation.  Be sure to add the
    6464  export command before the test for non-interactive use.</para>
    65 
     65 
    6666  </note>
    6767
  • chapter02/creatingfilesystem.xml

    r716db1f re680022  
    1212
    1313  <para>Now that a blank partition has been set up, the file system can be
    14   created.  LFS can use any file system recognized by the Linux kernel, but the
    15   most common types are ext3 and ext4.  The choice of file system can be
    16   complex and depends on the characteristics of the files and the size of
     14  created.  LFS can use any file system recognized by the Linux kernel, but the 
     15  most common types are ext3 and ext4.  The choice of file system can be 
     16  complex and depends on the characteristics of the files and the size of 
    1717  the partition.  For example:</para>
    1818
     
    2727      <term>ext3</term>
    2828      <listitem><para>is an upgrade to ext2 that includes a journal
    29       to help recover the partition's status in the case of an unclean
     29      to help recover the partition's status in the case of an unclean 
    3030      shutdown.  It is commonly used as a general purpose file system.
    3131      </para>
  • chapter02/creatingpartition.xml

    r716db1f re680022  
    3838  or <command>fdisk</command> with a command line option naming the hard
    3939  disk on which the new partition will be created&mdash;for example
    40   <filename class="devicefile">/dev/sda</filename> for the primary
     40  <filename class="devicefile">/dev/sda</filename> for the primary 
    4141  disk drive. Create a Linux native partition and a
    4242  <systemitem class="filesystem">swap</systemitem> partition, if needed. Please
     
    8989
    9090    <para>If you want to use the hibernation feature (suspend-to-disk) of Linux,
    91     it writes out the contents of RAM to the swap partition before turning off
     91    it writes out the contents of RAM to the swap partition before turning off 
    9292    the machine. In this case the size of the swap partition should be at
    9393    least as large as the system's installed RAM.</para>
     
    115115    using <command>gdisk</command>.</para>
    116116
    117     <note><para>The Grub Bios partition must be on the drive that the BIOS
    118     uses to boot the system.  This is not necessarily the same drive where the
     117    <note><para>The Grub Bios partition must be on the drive that the BIOS 
     118    uses to boot the system.  This is not necessarily the same drive where the 
    119119    LFS root partition is located. Disks on a system may use different
    120120    partition table types.  The requirement for this partition depends
  • chapter02/hostreqs.xml

    r716db1f re680022  
    151151
    152152  <!-- Use an empty sect2 element to prevent a pdf warning.  -->
    153   <bridgehead renderas="sect2"
    154               id="version-check"
     153  <bridgehead renderas="sect2" 
     154              id="version-check" 
    155155              xreflabel="Host System Requirements">
    156156  </bridgehead>
     
    178178  echo yacc is `/usr/bin/yacc --version | head -n1`
    179179else
    180   echo "yacc not found"
     180  echo "yacc not found" 
    181181fi
    182182
     
    191191elif [ -x /usr/bin/awk ]; then
    192192  echo awk is `/usr/bin/awk --version | head -n1`
    193 else
    194   echo "awk not found"
     193else 
     194  echo "awk not found" 
    195195fi
    196196
  • chapter02/introduction.xml

    r716db1f re680022  
    1212
    1313  <para>In this chapter, the host tools needed for building LFS
    14   are checked and, if necessary, installed.  Then a partition which will
    15   host the LFS system is prepared. We will create the partition
     14  are checked and, if necessary, installed.  Then a partition which will 
     15  host the LFS system is prepared. We will create the partition 
    1616  itself, create a file system on it, and mount it.</para>
    1717
  • chapter02/mounting.xml

    r716db1f re680022  
    4848  <warning><para>The above instructions assume that you will not be restarting
    4949  your computer throughout the LFS process.  If you shut down your system,
    50   you will either need to remount the LFS partition each time you restart
    51   the build process or modify your host system's /etc/fstab file to automatically
     50  you will either need to remount the LFS partition each time you restart 
     51  the build process or modify your host system's /etc/fstab file to automatically 
    5252  remount it upon boot.  For example:
    5353
  • chapter02/stages.xml

    r716db1f re680022  
    2323    <para>These chapters are accomplished on the host system.  When
    2424    restarting, be careful of the following:</para>
    25 
     25 
    2626    <itemizedlist>
    2727      <listitem>
     
    3333    </itemizedlist>
    3434  </sect2>
    35 
     35 
    3636  <sect2>
    3737  <title>Chapter&nbsp;5&ndash;6</title>
     
    8686         before or after entering chroot by changing to a host virtual terminal
    8787         and, as <systemitem class="username">root</systemitem>, running the
    88          commands in
    89          <xref linkend='ch-tools-bindmount'/> and
     88         commands in 
     89         <xref linkend='ch-tools-bindmount'/> and 
    9090         <xref linkend='ch-tools-kernfsmount'/>.</para>
    9191      </listitem>
  • chapter03/introduction.xml

    r716db1f re680022  
    5555  <itemizedlist>
    5656    <listitem>
    57       <para>The files can be downloaded individually as described in the
     57      <para>The files can be downloaded individually as described in the 
    5858      next two sections.</para>
    5959    </listitem>
    6060    <listitem>
    61       <para>For stable versions of the book, a tarball of all the needed files
     61      <para>For stable versions of the book, a tarball of all the needed files 
    6262      can be downloaded from one of the LFS files mirrors listed at
    6363      <ulink url="https://www.linuxfromscratch.org/mirrors.html#files"/>.</para>
     
    7575<screen role="nodump"><userinput>wget --input-file=wget-list --continue --directory-prefix=$LFS/sources</userinput></screen>
    7676
    77   <note><para>
    78     The <filename>wget-list</filename> file mentioned above retrieves all
    79     packages for both the sysV and systemd versions of LFS.  There are a total
    80     of five additional small packages not needed for the currrent book.  The
    81     <filename>md5sums</filename> file mentioned below is specific to the
    82     current book.
    83   </para></note>
    84 
    8577  <para>Additionally, starting with LFS-7.0, there is a separate file,
    8678  <ulink url="../md5sums">md5sums</ulink>, which can be used to verify that all
     
    9284popd</userinput></screen>
    9385
    94   <para>This check can be used after retrieving the needed files with any of the
     86  <para>This check can be used after retrieving the needed files with any of the 
    9587  methods listed above.</para>
    9688
  • chapter03/packages.xml

    r716db1f re680022  
    450450          <para>The Linux kernel is updated relatively often, many times due to
    451451          discoveries of security vulnerabilities.  The latest available
    452           <!--&linux-major-version;.&linux-minor-version;.x--> stable kernel
     452          <!--&linux-major-version;.&linux-minor-version;.x--> stable kernel 
    453453          version <!--should--> may be
    454454          used, unless the errata page says otherwise.</para>
  • chapter03/patches.xml

    r716db1f re680022  
    5858        <para>Download: <ulink url="&patches-root;&coreutils-i18n-patch;"/></para>
    5959        <para>MD5 sum: <literal>&coreutils-i18n-patch-md5;</literal></para>
    60       </listitem>
    61     </varlistentry>
    62 
    63     <varlistentry>
    64       <term>File Upstream Fixes Patch - <token>&file-upstream-fixes-patch-size;</token>:</term>
    65       <listitem>
    66         <para>Download: <ulink url="&patches-root;&file-upstream-fixes-patch;"/></para>
    67         <para>MD5 sum: <literal>&file-upstream-fixes-md5;</literal></para>
    6860      </listitem>
    6961    </varlistentry>
  • chapter04/addinguser.xml

    r716db1f re680022  
    1212
    1313  <para>When logged in as user <systemitem class="username">root</systemitem>,
    14   making a single mistake can damage or destroy a system. Therefore,
     14  making a single mistake can damage or destroy a system. Therefore, 
    1515  the packages in the next two chapters are built as an unprivileged user.
    1616  You could use your own user name, but to make it easier to set up a clean
  • chapter04/settingenviron.xml

    r716db1f re680022  
    194194     user, run:</para>
    195195
    196      <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
     196     <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen> 
    197197
    198198     <para>After use of the <systemitem class="username">lfs</systemitem>
  • chapter05/binutils-pass1.xml

    r716db1f re680022  
    5454    enable.</para>
    5555
    56     <para>The Binutils documentation recommends building Binutils
     56    <para>The Binutils documentation recommends building Binutils 
    5757    in a dedicated build directory:</para>
    5858
  • chapter05/gcc-pass1.xml

    r716db1f re680022  
    8383</userinput></screen>
    8484
    85     <para>The GCC documentation recommends building GCC
     85    <para>The GCC documentation recommends building GCC 
    8686    in a dedicated build directory:</para>
    8787
     
    9191    <para>Prepare GCC for compilation:</para>
    9292
    93 <screen arch="default"><userinput remap="configure">../configure                  \
    94     --target=$LFS_TGT         \
    95     --prefix=$LFS/tools       \
    96     --with-glibc-version=2.11 \
    97     --with-sysroot=$LFS       \
    98     --with-newlib             \
    99     --without-headers         \
    100     --enable-initfini-array   \
    101     --disable-nls             \
    102     --disable-shared          \
    103     --disable-multilib        \
    104     --disable-decimal-float   \
    105     --disable-threads         \
    106     --disable-libatomic       \
    107     --disable-libgomp         \
    108     --disable-libquadmath     \
    109     --disable-libssp          \
    110     --disable-libvtv          \
    111     --disable-libstdcxx       \
     93<screen arch="default"><userinput remap="configure">../configure                                       \
     94    --target=$LFS_TGT                              \
     95    --prefix=$LFS/tools                            \
     96    --with-glibc-version=2.11                      \
     97    --with-sysroot=$LFS                            \
     98    --with-newlib                                  \
     99    --without-headers                              \
     100    --enable-initfini-array                        \
     101    --disable-nls                                  \
     102    --disable-shared                               \
     103    --disable-multilib                             \
     104    --disable-decimal-float                        \
     105    --disable-threads                              \
     106    --disable-libatomic                            \
     107    --disable-libgomp                              \
     108    --disable-libquadmath                          \
     109    --disable-libssp                               \
     110    --disable-libvtv                               \
     111    --disable-libstdcxx                            \
    112112    --enable-languages=c,c++</userinput></screen>
    113113<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure"
     
    115115    arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure"
    116116    arch="ml_all">mlist=m64,m32,mx32</userinput>
    117 <userinput remap="configure">../configure                  \
     117<userinput remap="configure">../configure                                       \
    118118    --target=$LFS_TGT                              \
    119119    --prefix=$LFS/tools                            \
     
    143143        <listitem>
    144144          <para>This option ensures the package will be compatible with the host's
    145           version of glibc.  It is set to the minimum glibc requirement
     145          version of glibc.  It is set to the minimum glibc requirement 
    146146          specified in the <xref linkend="ch-partitioning-hostreqs"/>.</para>
    147147        </listitem>
     
    202202      <varlistentry>
    203203        <term><parameter>--disable-decimal-float, --disable-threads,
    204               --disable-libatomic, --disable-libgomp,
     204              --disable-libatomic, --disable-libgomp, 
    205205        --disable-libquadmath, --disable-libssp, --disable-libvtv,
    206206        --disable-libstdcxx</parameter></term>
  • chapter05/glibc.xml

    r716db1f re680022  
    6666<screen><userinput remap="pre">patch -Np1 -i ../glibc-&glibc-version;-fhs-1.patch</userinput></screen>
    6767
    68     <para>The Glibc documentation recommends building Glibc
     68    <para>The Glibc documentation recommends building Glibc 
    6969    in a dedicated build directory:</para>
    7070
     
    151151    Gettext package which the host distribution should provide.</para>
    152152
    153     <note><para>There have been reports that this package may fail when
     153    <note><para>There have been reports that this package may fail when 
    154154    building as a "parallel make".  If this occurs, rerun the make command
    155155    with a "-j1" option.</para></note>
  • chapter05/libstdc++.xml

    r716db1f re680022  
    2525    <title/>
    2626
    27     <para>Libstdc++ is the standard C++ library. It is needed
     27    <para>Libstdc++ is the standard C++ library. It is needed 
    2828    to compile C++ code
    2929    (part of GCC is written in C++), but we had to defer its installation
  • chapter05/linux-headers.xml

    r716db1f re680022  
    7676        <seg>/usr/include/asm/*.h, /usr/include/asm-generic/*.h,
    7777        /usr/include/drm/*.h, /usr/include/linux/*.h, /usr/include/misc/*.h,
    78         /usr/include/mtd/*.h, /usr/include/rdma/*.h, /usr/include/scsi/*.h,
    79         /usr/include/sound/*.h, /usr/include/video/*.h,
     78        /usr/include/mtd/*.h, /usr/include/rdma/*.h, /usr/include/scsi/*.h, 
     79        /usr/include/sound/*.h, /usr/include/video/*.h, 
    8080        and /usr/include/xen/*.h</seg>
    8181        <seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm,
    82         /usr/include/linux, /usr/include/misc, /usr/include/mtd,
    83         /usr/include/rdma, /usr/include/scsi, /usr/include/sound,
     82        /usr/include/linux, /usr/include/misc, /usr/include/mtd, 
     83        /usr/include/rdma, /usr/include/scsi, /usr/include/sound, 
    8484        /usr/include/video, and /usr/include/xen</seg>
    8585      </seglistitem>
  • chapter06/coreutils.xml

    r716db1f re680022  
    8484    programs harcode executable locations:</para>
    8585
    86 <screen><userinput remap="install">mv -v $LFS/usr/bin/chroot              $LFS/usr/sbin
     86<screen><userinput remap="install">mv -v $LFS/usr/bin/chroot                                     $LFS/usr/sbin
    8787mkdir -pv $LFS/usr/share/man/man8
    88 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
    89 sed -i 's/"1"/"8"/'                    $LFS/usr/share/man/man8/chroot.8</userinput></screen>
     88mv -v $LFS/usr/share/man/man1/chroot.1                        $LFS/usr/share/man/man8/chroot.8
     89sed -i 's/"1"/"8"/'                                           $LFS/usr/share/man/man8/chroot.8</userinput></screen>
    9090
    9191  </sect2>
  • chapter06/file.xml

    r716db1f re680022  
    4545
    4646    <para>
    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
     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 
    4949       create the signature file. Run the following commands to build it:
    5050    </para>
  • chapter06/introduction.xml

    r716db1f re680022  
    1919  <para>Using the utilities will be possible in next chapter after entering
    2020  the <quote>chroot</quote> environment. But all the packages built in the
    21   present chapter need to be built before we do that. Therefore we cannot be
     21  present chapter need to be built before we do that. Therefore we cannot be 
    2222  independent of the host system yet.</para>
    2323
  • chapter07/chapter07.xml

    r716db1f re680022  
    2525  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
    27 
     27 
    2828<!--
    2929  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/>
  • chapter07/cleanup.xml

    r716db1f re680022  
    1010
    1111  <title>Cleaning up and Saving the Temporary System</title>
    12 
     12 
    1313  <sect2>
    1414    <title>Cleaning</title>
     
    2121    <para>Second, the libtool .la files are only useful when linking with static
    2222    libraries. They are unneeded and potentially harmful when using dynamic
    23     shared libraries, especially when using non-autotools build systems.
     23    shared libraries, specially when using non-autotools build systems.
    2424    While still in chroot, remove those files now:</para>
    2525
     
    3030
    3131    <para>
    32       The current system size is now about 3 GB, however
     32      The current system size is now about 3 GB, however 
    3333      the /tools directory is no longer needed. It uses about
    3434      1 GB of disk space.  Delete it now:
     
    4141    <title>Backup</title>
    4242
    43     <para>
    44       At this point the essential programs and libraries have been created
    45       and your current LFS system is in a good state. Your system can now be
    46       backed up for later reuse. In case of fatal failures in the subsequent
    47       chapters, it often turns out that removing everything and starting over
    48       (more carefully) is the best option to recover. Unfortunately, all the
    49       temporary files will be removed, too. To avoid spending extra time to
    50       redo something which has been built successfully, creating a backup of
    51       the current LFS system may prove useful.
    52     </para>
    53 
    5443    <note><para>
    5544      All the remaining steps in this section are optional. Nevertheless,
     
    5746      linkend="chapter-building-system"/>, the temporary files will be
    5847      overwritten. So it may be a good idea to do a backup of the current
    59       system as described below.
     48      system as described below. 
    6049    </para></note>
    61 
     50 
    6251    <para>
    6352      The following steps are performed from outside the chroot
     
    7160    </para>
    7261
     62    <important>
     63      <para>All of the following instructions are executed by
     64        <systemitem class="username">root</systemitem>. Take extra
     65        care about the commands you're going to run as mistakes
     66        here can modify your host system. Be aware that the
     67        environment variable <envar>LFS</envar>
     68        is set for user <systemitem class="username">lfs</systemitem> by default
     69        but may <emphasis>not</emphasis> be set for
     70        <systemitem class="username">root</systemitem>. Whenever
     71        commands are to be executed by <systemitem class="username">root</systemitem>,
     72        make sure you have set <envar>LFS</envar>.
     73        This has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>.
     74      </para>
     75    </important>
     76
    7377    <para>
    74        If you have decided to make a backup, leave the chroot environment:
     78       Now, if you are making a backup, leave the chroot environment:
    7579    </para>
    7680
    7781<screen role="nodump"><userinput>exit</userinput></screen>
    7882
    79     <important>
    80       <para>
    81         All of the following instructions are executed by
    82         <systemitem class="username">root</systemitem> on your host system.
    83         Take extra care about the commands you're going to run as mistakes
    84         here can modify your host system. Be aware that the
    85         environment variable <envar>LFS</envar>
    86         is set for user <systemitem class="username">lfs</systemitem> by default
    87         but may <emphasis>not</emphasis> be set for
    88         <systemitem class="username">root</systemitem>.
    89      </para>
    90      <para>
    91         Whenever commands are to be executed by <systemitem class="username">root</systemitem>,
    92         make sure you have set <envar>LFS</envar>.
    93      </para>
    94      <para>
    95         This has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>.
    96       </para>
    97     </important>
    98 
    99     <para>Before making a backup, unmount the virtual file systems:</para>
    100 
    101 <screen role="nodump"><userinput>umount $LFS/dev/pts
    102 umount $LFS/{sys,proc,run,dev}</userinput></screen>
     83    <para>
     84      At this point the essential programs and libraries have been created
     85      and your current system is in a good state. Your system can now be
     86      backed up for later reuse. In case of fatal failures in the subsequent
     87      chapters, it often turns out that removing everything and starting over
     88      (more carefully) is the best option to recover. Unfortunately, all the
     89      temporary files will be removed, too. To avoid spending extra time to
     90      redo something which has been built successfully, prepare a backup.
     91    </para>
    10392
    10493    <para>
    10594      Make sure you have at least 1 GB free disk space (the source tarballs
    106       will be included in the backup archive) on the filesystem containing
    107       directory where you create the backup archive.
     95      will be included in the backup archive) in the home directory of user
     96      <systemitem class="username">root</systemitem>.
    10897    </para>
    10998
    110     <para>
    111       Note that the instructions below specify the home directory of the host
    112       system's <systemitem class="username">root</systemitem> user, which is
    113       typically found on the root filesystem.
    114     </para>
     99    <para>Before we make a backup, unmount the virtual file systems:</para>
    115100
    116     <para>
    117       Replace <envar>$HOME</envar> by a directory of your choice if you
    118       do not want to have the backup stored in <systemitem
    119       class="username">root</systemitem>'s home directory.
    120     </para>
     101<screen role="nodump"><userinput>umount $LFS/dev{/pts,}
     102umount $LFS/{sys,proc,run}</userinput></screen>
    121103
    122104    <para>
     
    129111          long time (over 10 minutes) even on a resonably fast system.
    130112       </para>
     113       
     114       <para>
     115          Also, ensure the <envar>LFS</envar> environment variable is set
     116          for the root user.
     117       </para>
    131118    </note>
    132119
    133 <screen role="nodump" revision="sysv"><userinput>cd $LFS
     120<screen role="nodump" revision="sysv"><userinput>cd $LFS 
    134121tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen>
    135122
    136 <screen role="nodump" revision="systemd"><userinput>cd $LFS
     123<screen role="nodump" revision="systemd"><userinput>cd $LFS 
    137124tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput></screen>
    138125
     126    <para>
     127      Replace <envar>$HOME</envar> by a directory of your choice if you
     128      do not want to have the backup stored in <systemitem
     129      class="username">root</systemitem>'s home directory.
     130    </para>
    139131  </sect2>
    140132
     
    145137      In case some mistakes have been made and you need to start over, you can
    146138      use this backup to restore the system and save some recovery time.
    147       Since the sources are located under
     139      Since the sources are located under 
    148140      <filename class="directory">$LFS</filename>, they are included in the
    149141      backup archive as well, so they do not need to be downloaded again. After
     
    156148
    157149    <warning><para>The following commands are extremly dangerous.  If
    158     you run <command>rm -rf ./*</command> as the root user and you
    159     do not change to the $LFS directory or the <envar>LFS</envar>
    160     environment variable is not set for the root user, it will destroy
     150    you run <command>rm -rf ./*</command> as the root user and you 
     151    do not change to the $LFS directory or the <envar>LFS</envar> 
     152    environment variable is not set for the root user, it will destroy 
    161153    your entire host system.  YOU ARE WARNED.</para></warning>
    162154
    163 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS
    164 rm -rf ./*
     155<screen role="nodump" revision="sysv"><computeroutput>cd $LFS 
     156rm -rf ./* 
    165157tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput></screen>
    166158
    167 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS
    168 rm -rf ./*
     159<screen role="nodump" revision="systemd"><computeroutput>cd $LFS 
     160rm -rf ./* 
    169161tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput></screen>
    170162
     
    184176       </para>
    185177    </important>
    186 
     178   
    187179  </sect2>
    188180
  • chapter07/introduction.xml

    r716db1f re680022  
    1212
    1313  <para>This chapter shows how to build the last missing bits of the temporary
    14   system: the tools needed by the build machinery of various packages.  Now
    15   that all circular dependencies have been resolved, a <quote>chroot</quote>
    16   environment, completely isolated from the host operating system (except for
    17   the running kernel), can be used for the build.</para>
     14  system: the tools needed by the build machinery of various packages.
     15  Now that all circular dependencies
     16  have been resolved, we can use a <quote>chroot</quote> environment,
     17  completely isolated the host operating system used for the build, except
     18  for the running kernel.</para>
    1819
    1920  <para>For proper operation of the isolated environment, some communication
  • chapter07/kernfs.xml

    r716db1f re680022  
    105105      <para>In some host systems, <filename>/dev/shm</filename> is a
    106106      symbolic link to <filename class="directory">/run/shm</filename>.
    107       The /run tmpfs was mounted above so in this case only a
     107      The /run tmpfs was mounted above so in this case only a 
    108108      directory needs to be created.</para>
    109109
  • chapter07/perl.xml

    r716db1f re680022  
    6161        <term><parameter>-des</parameter></term>
    6262        <listitem>
    63           <para>This is a combination of three options: -d uses defaults for
     63          <para>This is a combination of three options: -d uses defaults for 
    6464          all items; -e ensures completion of all tasks; -s silences
    6565          non-essential output.</para>
  • chapter08/attr.xml

    r716db1f re680022  
    5454
    5555    <para>The tests need to be run on a filesystem that supports extended
    56     attributes such as the ext2, ext3, or ext4 filesystems.
     56    attributes such as the ext2, ext3, or ext4 filesystems. 
    5757    To test the results, issue:</para>
    5858
  • chapter08/automake.xml

    r716db1f re680022  
    6060<screen><userinput remap="test">make -j4 check</userinput></screen>
    6161<!--
    62     <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to
     62    <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to 
    6363    fail in the LFS environment.</para>
    6464-->
  • chapter08/bc.xml

    r716db1f re680022  
    2424    <title/>
    2525
    26     <para>The Bc package contains an arbitrary precision numeric processing
     26    <para>The Bc package contains an arbitrary precision numeric processing 
    2727    language.</para>
    2828
  • chapter08/binutils.xml

    r716db1f re680022  
    7575<screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen>
    7676-->
    77     <para>The Binutils documentation recommends building Binutils
     77    <para>The Binutils documentation recommends building Binutils 
    7878    in a dedicated build directory:</para>
    7979
     
    315315        <term><command>ld.gold</command></term>
    316316        <listitem>
    317           <para>A cut down version of ld that only supports the
     317          <para>A cut down version of ld that only supports the 
    318318          elf object file format</para>
    319319          <indexterm zone="ch-system-binutils ld.gold">
  • chapter08/chapter08.xml

    r716db1f re680022  
    6868  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="meson.xml"/>
    6969  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/>
    70   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/>
     70  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/> 
    7171  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/>
    7272  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gawk.xml"/>
  • chapter08/coreutils.xml

    r716db1f re680022  
    8989        <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
    9090        <listitem>
    91           <para>This environment variable allows the package to be
     91          <para>This environment variable allows the package to be 
    9292          built as the <systemitem class="username">root</systemitem> user.
    9393          </para>
  • chapter08/dbus.xml

    r716db1f re680022  
    115115      <seglistitem>
    116116        <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
    117         dbus-run-session, dbus-send, dbus-test-tool,
     117        dbus-run-session, dbus-send, dbus-test-tool, 
    118118        dbus-update-activation-environment, and dbus-uuidgen</seg>
    119119        <seg>libdbus-1.{a,so}</seg>
  • chapter08/eudev.xml

    r716db1f re680022  
    2525
    2626    <para>The Eudev package contains programs for dynamic creation of device
    27     nodes.</para>
     27    nodes.</para> 
    2828
    2929    <segmentedlist>
     
    7777<screen><userinput remap="install">make install</userinput></screen>
    7878
    79     <para>Install some custom rules and support files useful in an LFS
     79    <para>Install some custom rules and support files useful in an LFS 
    8080    environment:</para>
    8181
  • chapter08/expect.xml

    r716db1f re680022  
    6363        <term><parameter>--with-tcl=/usr/lib</parameter></term>
    6464        <listitem>
    65           <para>This parameter is needed to tell
     65          <para>This parameter is needed to tell 
    6666          <command>configure</command> where the
    6767          <command>tclConfig.sh</command> script is located.</para>
  • chapter08/file.xml

    r716db1f re680022  
    4141  <sect2 role="installation">
    4242    <title>Installation of File</title>
    43 
    44     <para>First, fix a few regressions in File:</para>
    45 
    46 <screen><userinput remap="pre">patch -Np1 -i ../file-&file-version;-upstream_fixes-1.patch</userinput></screen>
    4743
    4844    <para>Prepare File for compilation:</para>
  • chapter08/gcc.xml

    r716db1f re680022  
    134134    <para>Test the results as a non-privileged user, but do not stop at errors:</para>
    135135
    136 <screen><userinput remap="test">chown -Rv tester .
     136<screen><userinput remap="test">chown -Rv tester . 
    137137su tester -c "PATH=$PATH make -k check"</userinput></screen>
    138138
     
    204204  -->
    205205    <para>Add a compatibility symlink to enable building programs with
    206     Link Time Optimization (LTO):</para>
     206    Link Time Optimization (LTO):</para> 
    207207
    208208<screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
     
    371371        and libubsan.{a,so}</seg>
    372372
    373         <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
     373        <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and 
    374374        /usr/share/gcc-&gcc-version;</seg>
    375375      </seglistitem>
  • chapter08/glibc.xml

    r716db1f re680022  
    4747
    4848    <screen><userinput remap="pre">sed -e '/NOTIFY_REMOVED)/s/)/ \&amp;\&amp; data.attr != NULL)/' \
    49     -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen>
     49    -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen> 
    5050
    5151    <para>Some of the Glibc programs use the non-FHS compliant
     
    5656<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
    5757
    58     <para>The Glibc documentation recommends building Glibc
     58    <para>The Glibc documentation recommends building Glibc 
    5959    in a dedicated build directory:</para>
    6060
     
    9090        <term><parameter>--disable-werror</parameter></term>
    9191        <listitem>
    92           <para>This option disables the -Werror option passed to
     92          <para>This option disables the -Werror option passed to 
    9393          GCC.  This is necessary for running the test suite.</para>
    9494        </listitem>
     
    108108        <term><parameter>--enable-stack-protector=strong</parameter></term>
    109109        <listitem>
    110           <para>This option increases system security by adding
     110          <para>This option increases system security by adding 
    111111          extra code to check for buffer overflows, such as stack
    112112          smashing attacks.</para>
     
    158158    <para>You may see some test failures. The Glibc test suite is
    159159    somewhat dependent on the host system. A few failures out of
    160     over 4200 tests can generally be ignored. This is a list of the
     160    over 4200 tests can generally be ignored. This is a list of the 
    161161    most common issues seen for recent versions of LFS:</para>
    162162
     
    164164
    165165      <listitem>
    166         <para><emphasis>io/tst-lchmod</emphasis>
     166        <para><emphasis>io/tst-lchmod</emphasis> 
    167167        is known to fail in the LFS chroot environment.</para>
    168168      </listitem>
    169169
    170170      <listitem>
    171         <para><emphasis>misc/tst-ttyname</emphasis>
     171        <para><emphasis>misc/tst-ttyname</emphasis> 
    172172        is known to fail in the LFS chroot environment.</para>
    173173      </listitem>
     
    181181        <para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on
    182182        the host system kernel. Kernels 4.14.91&ndash;4.14.96,
    183         4.19.13&ndash;4.19.18, and 4.20.0&ndash;4.20.5 are known to
     183        4.19.13&ndash;4.19.18, and 4.20.0&ndash;4.20.5 are known to 
    184184        cause these tests to fail.
    185185        </para>
     
    221221mkdir -pv /var/cache/nscd</userinput></screen>
    222222
    223     <para revision="systemd">Install the systemd support files for
     223    <para revision="systemd">Install the systemd support files for 
    224224    <command>nscd</command>:</para>
    225225
     
    295295    when you need them. For instance, the following two locales are
    296296    needed for some tests later in this chapter:</para>
    297 
     297 
    298298<screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
    299299localedef -i ja_JP -f SHIFT_JIS ja_JP.SIJS 2> /dev/null || true</userinput></screen>
    300300
    301     <note><para>Glibc now uses libidn2 when resolving internationalized
     301    <note><para>Glibc now uses libidn2 when resolving internationalized 
    302302    domain names.  This is a run time dependency.  If this capability
    303     is needed, the instructions for installing libidn2 are in the
     303    is needed, the instructions for installing libidn2 are in the 
    304304    <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>.
    305305    </para></note>
     
    637637      <seglistitem>
    638638        <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
    639         ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
     639        ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, 
    640640        pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace,
    641641        zdump, and zic</seg>
     
    11071107          many different Unix utilities. These functions are now in
    11081108          <filename class="libraryfile">libc</filename></para>
     1109         
    11091110          <indexterm zone="ch-system-glibc libutil">
    11101111            <primary sortas="c-libutil">libutil</primary>
  • chapter08/gmp.xml

    r716db1f re680022  
    5454      <para>The default settings of GMP produce libraries optimized for
    5555      the host processor.  If libraries suitable for processors less
    56       capable than the host's CPU are desired, generic libraries can be
     56      capable than the host's CPU are desired, generic libraries can be 
    5757      created by running the following:
    5858
     
    101101
    102102<screen><userinput remap="test">make check 2>&amp;1 | tee gmp-check-log</userinput></screen>
    103 
     103 
    104104    <caution><para>The code in gmp is highly optimized for the processor where
    105105    it is built. Occasionally, the code that detects the processor misidentifies
  • chapter08/grub.xml

    r716db1f re680022  
    107107
    108108       <seg>grub-bios-setup,      grub-editenv,    grub-file,        grub-fstest,
    109             grub-glue-efi,        grub-install,    grub-kbdcomp,     grub-macbless,
     109            grub-glue-efi,        grub-install,    grub-kbdcomp,     grub-macbless,   
    110110            grub-menulst2cfg,     grub-mkconfig,
    111111                                  grub-mkimage,    grub-mklayout,    grub-mknetdir,
    112112            grub-mkpasswd-pbkdf2, grub-mkrelpath,  grub-mkrescue,    grub-mkstandalone,
    113             grub-ofpathname,      grub-probe,      grub-reboot,      grub-render-label,
     113            grub-ofpathname,      grub-probe,      grub-reboot,      grub-render-label, 
    114114            grub-script-check,
    115115            grub-set-default,     grub-sparc64-setup, and grub-syslinux2cfg</seg>
  • chapter08/gzip.xml

    r716db1f re680022  
    6767
    6868      <seglistitem>
    69         <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp,
     69        <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, 
    7070        zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
    7171      </seglistitem>
  • chapter08/inetutils.xml

    r716db1f re680022  
    129129
    130130      <seglistitem>
    131         <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6,
     131        <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6, 
    132132        talk, telnet, tftp, and traceroute</seg>
    133133      </seglistitem>
  • chapter08/iproute2.xml

    r716db1f re680022  
    4444    <para>The <command>arpd</command> program included in this package will not
    4545    be built since it is dependent on Berkeley DB, which is not installed in
    46     LFS. However, a directory for <command>arpd</command> and a man page will still
    47     be installed. Prevent this by running the commands below.
     46    LFS. However, a directory for <command>arpd</command> and a man page will still 
     47    be installed. Prevent this by running the commands below. 
    4848    If the <command>arpd</command> binary is needed,
    4949    instructions for compiling Berkeley DB can be found in the BLFS Book at
     
    5454rm -fv man/man8/arpd.8</userinput></screen>
    5555
    56     <para>It is also necessary to disable building two modules that
     56    <para>It is also necessary to disable building two modules that 
    5757    require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
    5858
  • chapter08/kbd.xml

    r716db1f re680022  
    117117        setfont, setkeycodes, setleds, setmetamode, setvtrgb,
    118118        showconsolefont, showkey, unicode_start, and unicode_stop</seg>
    119         <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps,
     119        <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps, 
    120120        /usr/share/doc/kbd-&kbd-version;,  and /usr/share/unimaps</seg>
    121121      </seglistitem>
  • chapter08/kmod.xml

    r716db1f re680022  
    164164
    165165      <seglistitem>
    166         <seg>depmod (link to kmod), insmod (link to kmod), kmod,
     166        <seg>depmod (link to kmod), insmod (link to kmod), kmod, 
    167167        lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
    168168        and rmmod (link to kmod)</seg>
  • chapter08/libelf.xml

    r716db1f re680022  
    5656
    5757    <para>To test the results, issue:</para>
    58 
     58   
    5959<screen><userinput remap="test">make check</userinput></screen>
    6060
  • chapter08/libffi.xml

    r716db1f re680022  
    6767          is not specified, the system is guessed and the code generated
    6868          may not be correct for some systems.  If the generated code
    69           will be copied from the native system to a less capable
    70           system, use the less capable system as a parameter. For details
    71           about alternative system types, see <ulink
     69          will be copied from the native system to a less capable 
     70          system, use the less capable system as a parameter. For details 
     71          about alternative system types, see <ulink 
    7272          url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'>
    7373          the x86 options in the GCC manual</ulink>.</para>
  • chapter08/libtool.xml

    r716db1f re680022  
    6262
    6363    <para>Five tests are known to fail in the LFS build environment due
    64     to a circular dependency, but all tests pass if rechecked after
     64    to a circular dependency, but all tests pass if rechecked after 
    6565    automake is installed.</para>
    6666
  • chapter08/man-db.xml

    r716db1f re680022  
    101101        <term><parameter>--with-systemd...</parameter></term>
    102102        <listitem>
    103           <para>These parameters prevent installing unneeded systemd
     103          <para>These parameters prevent installing unneeded systemd 
    104104          directories and files.</para>
    105105        </listitem>
  • chapter08/meson.xml

    r716db1f re680022  
    7070    <variablelist>
    7171      <title>The meaning of the install parameters:</title>
    72 
     72     
    7373      <varlistentry>
    7474        <term><parameter>--root=dest</parameter></term>
  • chapter08/ncurses.xml

    r716db1f re680022  
    133133      libraries since no package installed by compiling from sources would link
    134134      against them at runtime. However, the only known binary-only
    135       applications that link against non-wide-character Ncurses libraries
     135      applications that link against non-wide-character Ncurses libraries 
    136136      require version 5.  If you must have such libraries because of some binary-only
    137137      application or to be compliant with LSB, build the package again with the
     
    144144            --without-debug  \
    145145            --without-cxx-binding \
    146             --with-abi-version=5
     146            --with-abi-version=5 
    147147make sources libs
    148148cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
     
    251251      <seglistitem>
    252252        <seg>
    253            captoinfo (link to tic),
    254            clear,
    255            infocmp,
     253           captoinfo (link to tic), 
     254           clear, 
     255           infocmp, 
    256256           infotocap (link to tic),
    257            ncursesw6-config,
    258            reset (link to tset),
    259            tabs,
    260            tic,
    261            toe,
    262            tput, and
     257           ncursesw6-config, 
     258           reset (link to tset), 
     259           tabs, 
     260           tic, 
     261           toe, 
     262           tput, and 
    263263           tset
    264264        </seg>
    265265        <seg>
    266266           libcursesw.so (symlink and linker script to libncursesw.so),
    267            libformw.so,
    268            libmenuw.so,
     267           libformw.so, 
     268           libmenuw.so, 
    269269           libncursesw.so,
    270270           libpanelw.so, and their non-wide-character counterparts without "w"
    271271              in the library names.</seg>
    272272        <seg>
    273            /usr/share/tabset,
     273           /usr/share/tabset, 
    274274           /usr/share/terminfo, and
    275275           /usr/share/doc/ncurses-&ncurses-version;
  • chapter08/ninja.xml

    r716db1f re680022  
    5151
    5252    <para>When run, ninja normally runs a maximum number of processes
    53     in parallel.  By default this is the number of cores on the system
     53    in parallel.  By default this is the number of cores on the system 
    5454    plus two.  In some cases this can overheat a CPU or run a system out
    5555    of memory.  If run from the command line, passing a -jN parameter
     
    5858
    5959    <para>Using the <emphasis>optional</emphasis> procedure below allows a user to
    60     limit the number of parallel processes via an environment variable,
     60    limit the number of parallel processes via an environment variable, 
    6161    NINJAJOBS.  <emphasis role="bold">For example</emphasis>, setting:
    6262
     
    6565    will limit ninja to four parallel processes.</para>
    6666
    67     <para>If desired, add the capability to use the environment variable
     67    <para>If desired, add the capability to use the environment variable 
    6868    NINJAJOBS by running:</para>
    6969
  • chapter08/perl.xml

    r716db1f re680022  
    4747<screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen>
    4848
    49     <para>This version of Perl now builds the Compress::Raw::Zlib and
     49    <para>This version of Perl now builds the Compress::Raw::Zlib and 
    5050    Compress::Raw::BZip2 modules. By
    5151    default Perl will use an internal copy of the sources for the build.
     
    9090        <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
    9191        <listitem>
    92           <para>This ensures that <userinput>less</userinput> is used instead
     92          <para>This ensures that <userinput>less</userinput> is used instead 
    9393          of <userinput>more</userinput>.</para>
    9494        </listitem>
  • chapter08/pkgmgt.xml

    r716db1f re680022  
    112112      library):</para>
    113113
    114 <screen role="nodump"><userinput>grep -l  -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps |
     114<screen><userinput role="nodump">grep -l  -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps |
    115115   tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
    116116
  • chapter08/procps.xml

    r716db1f re680022  
    2929    <note>
    3030      <para>This package extracts to the directory
    31       <filename class="directory">procps-3.3.17</filename>,
     31      <filename class="directory">procps-3.3.17</filename>, 
    3232      not the expected
    3333      <filename class="directory">procps-ng-3.3.17</filename>.</para>
     
    9494    <para>Five tests related to pkill are known to fail due to a problem
    9595    with tests that were not updated.</para>
    96 
     96 
    9797    <para>Install the package:</para>
    9898
  • chapter08/python.xml

    r716db1f re680022  
    104104    <para>If desired, install the preformatted documentation:</para>
    105105
    106 <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html
     106<screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html 
    107107
    108108tar --strip-components=1  \
     
    118118      <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term>
    119119      <listitem>
    120         <para>Ensure the installed files have the correct ownership and
     120        <para>Ensure the installed files have the correct ownership and 
    121121        permissions.  Without these options, using <application>tar</application>
    122         will install the package files with the upstream creator's values.
     122        will install the package files with the upstream creator's values. 
    123123        </para>
    124124      </listitem>
     
    145145        </seg>
    146146        <seg>
    147           /usr/include/python&python-minor;,
     147          /usr/include/python&python-minor;, 
    148148          /usr/lib/python3, and
    149149          /usr/share/doc/python-&python-version;
     
    163163            is a <application>Python</application> program that reads
    164164            <application>Python 2.x</application> source code and applies a
    165             series of fixes to transform it into
     165            series of fixes to transform it into 
    166166            valid <application>Python 3.x</application> code
    167167          </para>
  • chapter08/revisedchroot.xml

    r716db1f re680022  
    1616
    1717  <para>Now log out and reenter the chroot environment with an updated
    18   chroot command.  From now on, use this updated chroot command any time
     18  chroot command.  From now on, use this updated chroot command any time 
    1919  you need to reenter the chroot environment after exiting:</para>
    2020
     
    5858<screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen>
    5959
    60    <para>Finally, remove the temporary 'tester' user account created at the
     60   <para>Finally, remove the temporary 'tester' user account created at the 
    6161   beginning of the previous chapter.</para>
    6262
  • chapter08/stripping.xml

    r716db1f re680022  
    1111  <title>Stripping</title>
    1212
    13   <para>This section is optional.  If the intended user is not a
     13  <para>This section is optional.  If the intended user is not a 
    1414  programmer and does not plan to do
    1515  any debugging on the system software, the system size can be decreased
     
    2525
    2626  <para>The debugging symbols for selected libraries are placed
    27   in separate files.  This debugging information is needed if running
    28   regression tests that use <ulink
    29   url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
     27  in separate files.  This debugging information is needed if running 
     28  regression tests that use <ulink 
     29  url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink 
    3030  url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS.
    3131  </para>
     
    4242
    4343  <note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems
    44   and ld-linux.so.2 on 32-bit systems.  The contruct below selects the
     44  and ld-linux.so.2 on 32-bit systems.  The contruct below selects the 
    4545  correct name for the current architecture.</para></note>
    4646
     
    5151             libc.so.6
    5252             libthread_db.so.1
    53              libquadmath.so.&libquadmath-version;
     53             libquadmath.so.&libquadmath-version; 
    5454             libstdc++.so.&libstdcpp-version;
    55              libitm.so.&libitm-version;
    56              libatomic.so.&libatomic-version;"
     55             libitm.so.&libitm-version; 
     56             libatomic.so.&libatomic-version;" 
    5757
    5858cd /usr/lib
     
    125125         $(find /usr/{bin,sbin,libexec} -type f); do
    126126    case "$online_usrbin $online_usrlib $save_usrlib" in
    127         *$(basename $i)* )
     127        *$(basename $i)* ) 
    128128            ;;
    129         * ) strip --strip-unneeded $i
     129        * ) strip --strip-unneeded $i 
    130130            ;;
    131131    esac
  • chapter08/systemd.xml

    r716db1f re680022  
    206206    systemd-networkd:</para>
    207207    <!-- Observed halting startup with dhcpcd handling the primary NIC -->
    208 
     208 
    209209<screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen>
    210210
     
    214214    <para>Prevent systemd from resetting the maximum PID value which causes
    215215    some problems with packages and units in BLFS:</para>
    216 
     216   
    217217<screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen>
    218218-->
     
    379379        /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
    380380        /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd,
    381         /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel,
    382         /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd,
     381        /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, 
     382        /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, 
    383383        /usr/lib/tmpfiles.d,
    384384        /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
     
    451451        <listitem>
    452452          <para>Is the first process to be started when the kernel has initialized
    453           the hardware which takes over the boot process and starts all
     453          the hardware which takes over the boot process and starts all 
    454454          processes according to its configuration files. In this case, it starts
    455455          systemd</para>
     
    517517        <term><command>networkctl</command></term>
    518518        <listitem>
    519           <para>Is used to introspect and configure the state of the network
     519          <para>Is used to introspect and configure the state of the network 
    520520          links configured by systemd-networkd</para>
    521521          <indexterm zone="ch-system-systemd networkctl">
     
    605605        <term><command>shutdown</command></term>
    606606        <listitem>
    607           <para>Brings the system down in a safe and secure manner, signaling
     607          <para>Brings the system down in a safe and secure manner, signaling 
    608608          all processes and notifying all logged-in users</para>
    609609          <indexterm zone="ch-system-systemd shutdown">
     
    902902        <term><command>systemd-tty-ask-password-agent</command></term>
    903903        <listitem>
    904           <para>Is used to list and/or process pending systemd password
     904          <para>Is used to list and/or process pending systemd password 
    905905          requests</para>
    906906          <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
     
    935935        <term><command>udevadm</command></term>
    936936        <listitem>
    937           <para>Is a generic udev administration tool which controls the udevd
    938           daemon, provides info from the Udev hardware database, monitors
    939           uevents, waits for uevents to finish, tests udev configuration, and
     937          <para>Is a generic udev administration tool which controls the udevd 
     938          daemon, provides info from the Udev hardware database, monitors 
     939          uevents, waits for uevents to finish, tests udev configuration, and 
    940940          triggers uevents for a given device</para>
    941941          <indexterm zone="ch-system-systemd udevadm">
  • chapter08/sysvinit.xml

    r716db1f re680022  
    9292
    9393      <seglistitem>
    94         <seg>bootlogd, fstab-decode, halt, init, killall5,
     94        <seg>bootlogd, fstab-decode, halt, init, killall5, 
    9595        poweroff (link to halt), reboot (link to halt), runlevel,
    9696        shutdown, and telinit (link to init)</seg>
  • chapter08/tcl.xml

    r716db1f re680022  
    5252
    5353<!--    <para>Note that the Tcl package used here is a minimal version needed
    54     to run the LFS tests.  For the full package, see the
     54    to run the LFS tests.  For the full package, see the 
    5555    <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>-->
    5656
     
    141141<screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen>
    142142
    143     <para>Rename a man page that conflicts with a Perl man page:</para>
     143    <para>Finally, rename a man page that conflicts with a Perl man page:</para>
    144144
    145145    <screen><userinput remap="install">mv /usr/share/man/man3/{Thread,Tcl_Thread}.3</userinput></screen>
    146 
    147     <para>If you downloaded the optional documentation, install it by issuing
    148     the following commands:</para>
    149 
    150  <screen><userinput remap="install">mkdir -v -p /usr/share/doc/tcl-&tcl-version;
    151 cp -v -r  ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
    152146
    153147  </sect2>
     
    162156      <seglistitem>
    163157        <seg>
    164           tclsh (link to tclsh&tcl-major-version;) and
     158          tclsh (link to tclsh&tcl-major-version;) and 
    165159          tclsh&tcl-major-version;
    166160        </seg>
    167161        <seg>
    168           libtcl&tcl-major-version;.so and
     162          libtcl&tcl-major-version;.so and 
    169163          libtclstub&tcl-major-version;.a
    170164        </seg>
  • chapter08/texinfo.xml

    r716db1f re680022  
    197197        <term><command>texi2any</command></term>
    198198        <listitem>
    199           <para>Translate Texinfo source documentation to
     199          <para>Translate Texinfo source documentation to 
    200200          various other formats</para>
    201201          <indexterm zone="ch-system-texinfo texi2any">
  • chapter08/util-linux.xml

    r716db1f re680022  
    7676
    7777    <para>The --disable and --without options prevent warnings about
    78     building components that require packages not in LFS or are
     78    building components that require packages not in LFS or are 
    7979    inconsistent with programs installed by other packages.</para>
    8080
     
    257257        umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis,
    258258        wipefs, x86_64, and zramctl</seg>
    259         <seg>libblkid.so, libfdisk.so, libmount.so,
     259        <seg>libblkid.so, libfdisk.so, libmount.so, 
    260260        libsmartcols.so, and libuuid.so</seg>
    261         <seg>/usr/include/blkid,
    262              /usr/include/libfdisk,
    263              /usr/include/libmount,
    264              /usr/include/libsmartcols,
    265              /usr/include/uuid,
    266              /usr/share/doc/util-linux-&util-linux-version;,
     261        <seg>/usr/include/blkid, 
     262             /usr/include/libfdisk, 
     263             /usr/include/libmount, 
     264             /usr/include/libsmartcols, 
     265             /usr/include/uuid, 
     266             /usr/share/doc/util-linux-&util-linux-version;, 
    267267         and /var/lib/hwclock</seg>
    268268      </seglistitem>
     
    711711        <term><command>last</command></term>
    712712        <listitem>
    713           <para>Shows which users last logged in (and out), searching back
    714           through the <filename>/var/log/wtmp</filename> file; it also shows
     713          <para>Shows which users last logged in (and out), searching back 
     714          through the <filename>/var/log/wtmp</filename> file; it also shows 
    715715          system boots, shutdowns, and run-level changes</para>
    716716          <indexterm zone="ch-system-util-linux last">
     
    723723        <term><command>lastb</command></term>
    724724        <listitem>
    725           <para>Shows the failed login attempts, as logged in
     725          <para>Shows the failed login attempts, as logged in 
    726726          <filename>/var/log/btmp</filename></para>
    727727          <indexterm zone="ch-system-util-linux lastb">
     
    878878        <term><command>mesg</command></term>
    879879        <listitem>
    880           <para>Controls whether other users can send messages to the current
     880          <para>Controls whether other users can send messages to the current 
    881881          user's terminal</para>
    882882          <indexterm zone="ch-system-util-linux mesg">
     
    13791379        <term><command>zramctl</command></term>
    13801380        <listitem>
    1381           <para>A program to set up and control zram (compressed ram disk)
     1381          <para>A program to set up and control zram (compressed ram disk) 
    13821382          devices</para>
    13831383          <indexterm zone="ch-system-util-linux zramctl">
  • chapter08/vim.xml

    r716db1f re680022  
    6363<screen><userinput remap="make">make</userinput></screen>
    6464
    65     <para>To prepare the tests, ensure that user
    66     <systemitem class="username">tester</systemitem> can write
     65    <para>To prepare the tests, ensure that user 
     66    <systemitem class="username">tester</systemitem> can write 
    6767    to the source tree:</para>
    6868
     
    134134" Ensure defaults are set before customizing settings, not after
    135135source $VIMRUNTIME/defaults.vim
    136 let skip_defaults_vim=1
     136let skip_defaults_vim=1 
    137137
    138138set nocompatible
  • chapter08/xz.xml

    r716db1f re680022  
    137137      <seglistitem>
    138138        <seg>
    139           lzcat (link to xz),
    140           lzcmp (link to xzdiff),
    141           lzdiff (link to xzdiff),
    142           lzegrep (link to xzgrep),
     139          lzcat (link to xz), 
     140          lzcmp (link to xzdiff), 
     141          lzdiff (link to xzdiff), 
     142          lzegrep (link to xzgrep), 
    143143          lzfgrep (link to xzgrep),
    144           lzgrep (link to xzgrep),
    145           lzless (link to xzless),
     144          lzgrep (link to xzgrep), 
     145          lzless (link to xzless), 
    146146          lzma (link to xz),
    147           lzmadec,
    148           lzmainfo,
     147          lzmadec, 
     148          lzmainfo, 
    149149          lzmore (link to xzmore),
    150           unlzma (link to xz),
    151           unxz (link to xz),
    152           xz,
     150          unlzma (link to xz), 
     151          unxz (link to xz), 
     152          xz, 
    153153          xzcat (link to xz),
    154           xzcmp (link to xzdiff),
    155           xzdec,
    156           xzdiff,
     154          xzcmp (link to xzdiff), 
     155          xzdec, 
     156          xzdiff, 
    157157          xzegrep (link to xzgrep),
    158           xzfgrep (link to xzgrep),
    159           xzgrep,
    160           xzless, and
     158          xzfgrep (link to xzgrep), 
     159          xzgrep, 
     160          xzless, and 
    161161          xzmore</seg>
    162162        <seg>
     
    164164        </seg>
    165165        <seg>
    166           /usr/include/lzma and
     166          /usr/include/lzma and 
    167167          /usr/share/doc/xz-&xz-version;
    168168         </seg>
  • chapter08/zstd.xml

    r716db1f re680022  
    122122
    123123      <seglistitem>
    124         <seg>zstd,
    125              zstdcat (link to zstd),
    126              zstdgrep,
    127              zstdless,
     124        <seg>zstd, 
     125             zstdcat (link to zstd), 
     126             zstdgrep, 
     127             zstdless, 
    128128             zstdmt (link to zstd), and
    129129             unzstd (link to zstd)
  • chapter09/bootscripts.xml

    r716db1f re680022  
    2525
    2626    <para>The LFS-Bootscripts package contains a set of scripts to start/stop
    27     the LFS system at bootup/shutdown.
     27    the LFS system at bootup/shutdown. 
    2828    The configuration files and procedures needed to
    2929    customize the boot process are described in the following sections.</para>
  • chapter09/consoled.xml

    r716db1f re680022  
    2626  url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>.
    2727  Examine the output of <command>localectl list-keymaps</command> for a list of
    28   valid console keymaps. Look in the
     28  valid console keymaps. Look in the 
    2929  <filename class="directory">/usr/share/consolefonts</filename>
    3030  directory for valid screen fonts.</para>
  • chapter09/introduction.xml

    r716db1f re680022  
    3030    system.</para>
    3131
    32     <para>The <command>init</command> program is controlled by the
     32    <para>The <command>init</command> program is controlled by the 
    3333    <filename>/etc/inittab</filename> file and is organized into run levels that
    3434    can be run by the user:</para>
     
    6262    <itemizedlist>
    6363      <listitem>
    64           <para>May be slower to boot.  A medium speed base LFS system
    65           takes 8-12 seconds where the boot time is measured from the
    66           first kernel message to the login prompt.  Network
    67           connectivity is typically established about 2 seconds
     64          <para>May be slower to boot.  A medium speed base LFS system 
     65          takes 8-12 seconds where the boot time is measured from the 
     66          first kernel message to the login prompt.  Network 
     67          connectivity is typically established about 2 seconds 
    6868          after the login prompt.</para>
    6969      </listitem>
  • chapter09/locale.xml

    r716db1f re680022  
    8181  before the telephone number in order to get into the country. If any of the
    8282  commands above fail with a message similar to the one shown below, this means
    83   that your locale was either not installed in Chapter&nbsp;8 or is not
     83  that your locale was either not installed in Chapter&nbsp;8 or is not 
    8484  supported by the default installation of Glibc.</para>
    8585
     
    143143  mail with such characters from Mutt or Pine results in non-RFC-conforming
    144144  messages being sent (the charset in the outgoing mail is indicated as <quote>unknown
    145   8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only
     145  8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only 
    146146  if you are certain that you will never need 8-bit characters.</para>
    147147
  • chapter09/network.xml

    r716db1f re680022  
    3232    characteristics such as enp2s1. If you are not sure what your interface
    3333    name is, you can always run <command>ip link</command> or <command>ls
    34     /sys/class/net</command> after you have booted your system.
     34    /sys/class/net</command> after you have booted your system. 
    3535    </para></note>
    3636
     
    158158       <primary sortas="e-/etc/hosts">/etc/hosts</primary>
    159159     </indexterm>
    160 
     160   
    161161     <indexterm zone="ch-config-hosts">
    162162       <primary sortas="d-localnet">localnet</primary>
    163163       <secondary>/etc/hosts</secondary>
    164164     </indexterm>
    165 
     165   
    166166     <indexterm zone="ch-config-hosts">
    167167       <primary sortas="d-network">network</primary>
    168168       <secondary>/etc/hosts</secondary>
    169169     </indexterm>
    170 
     170   
    171171     <para>Decide on the IP address, fully-qualified domain name (FQDN), and
    172172     possible aliases for use in the <filename>/etc/hosts</filename> file. The
    173173     syntax is:</para>
    174 
     174   
    175175<screen><literal>IP_address myhost.example.org aliases</literal></screen>
    176176
     
    187187     <para>x can be any number in the range 16-31. y can be any number in the
    188188     range 0-255.</para>
    189 
     189   
    190190     <para>A valid private IP address could be 192.168.1.1. A valid FQDN for
    191191     this IP could be lfs.example.org.</para>
    192 
     192   
    193193     <para>Even if not using a network card, a valid FQDN is still required.
    194194     This is necessary for certain programs to operate correctly.</para>
    195 
     195   
    196196     <para>Create the  <filename>/etc/hosts</filename> file by running:</para>
    197197
     
    210210
    211211     <para>The <replaceable>&lt;192.168.1.1&gt;</replaceable>,
    212      <replaceable>&lt;FQDN&gt;</replaceable>, and
     212     <replaceable>&lt;FQDN&gt;</replaceable>, and 
    213213     <replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be
    214214     changed for specific uses or requirements (if assigned an IP address by a
  • chapter09/networkd.xml

    r716db1f re680022  
    3939    <filename class="extension">.netdev</filename> and
    4040    <filename class="extension">.network</filename> files. For detailed
    41     descriptions and example contents of these configuration files, consult
     41    descriptions and example contents of these configuration files, consult 
    4242    the <filename>systemd-link(5)</filename>,
    4343    <filename>systemd-netdev(5)</filename> and
     
    5858        each type of connection.  For example, the classic interface
    5959        name for a wired connection is eth0.  A wireless connection
    60         will usually have the name wifi0 or wlan0.
     60        will usually have the name wifi0 or wlan0. 
    6161      </para>
    6262
     
    7676          <para>
    7777             Create a manual naming scheme, for example by naming the
    78              interfaces something like "internet0", "dmz0", or "lan0".
    79              To do that, create .link files in /etc/systemd/network/ that
     78             interfaces something like "internet0", "dmz0", or "lan0". 
     79             To do that, create .link files in /etc/systemd/network/ that 
    8080             select an explicit name or a better naming scheme for your
    8181             network interfaces. For example:
     
    9292
    9393          <para>
    94              See the man page systemd.link(5) for more information.
     94             See the man page systemd.link(5) for more information. 
    9595          </para>
    9696        </listitem>
     
    9898        <listitem>
    9999          <para>
    100             In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the
     100            In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the 
    101101            kernel command line.
    102102          </para>
     
    210210      There will often be more than one entry (requirements demand secondary
    211211      servers for fallback capability). If you only need or want one DNS server,
    212       remove the second <emphasis>nameserver</emphasis> line from the file.
     212      remove the second <emphasis>nameserver</emphasis> line from the file. 
    213213      The IP address may also be a router on the local network. Another option
    214214      is to use the Google Public DNS service using the IP addresses below as
     
    253253       <primary sortas="e-/etc/hosts">/etc/hosts</primary>
    254254     </indexterm>
    255 
     255   
    256256     <indexterm zone="ch-config-hosts">
    257257       <primary sortas="d-localnet">localnet</primary>
    258258       <secondary>/etc/hosts</secondary>
    259259     </indexterm>
    260 
     260   
    261261     <indexterm zone="ch-config-hosts">
    262262       <primary sortas="d-network">network</primary>
  • chapter09/profile.xml

    r716db1f re680022  
    104104  before the telephone number in order to get into the country. If any of the
    105105  commands above fail with a message similar to the one shown below, this means
    106   that your locale was either not installed in <xref linkend="ch-system-glibc"/>
     106  that your locale was either not installed in <xref linkend="ch-system-glibc"/> 
    107107  or is not supported by the default installation of Glibc.</para>
    108108
  • chapter09/symlinks.xml

    r716db1f re680022  
    2323    and the Realtek card becomes eth1. In some cases, after a reboot the cards
    2424    could get renumbered the other way around.</para>
    25 
     25   
    2626    <para>In the new naming scheme, typical network device names would then
    2727    be something like enp5s0 or wlp3s0.  If this naming convention is not
     
    3131    <sect3>
    3232      <title>Disabling Persistent Naming on the Kernel Command Line</title>
    33 
     33   
    3434      <para>The traditional naming scheme using eth0, eth1, etc can be
    35       restored by adding <userinput>net.ifnames=0</userinput> on the
     35      restored by adding <userinput>net.ifnames=0</userinput> on the 
    3636      kernel command line.  This is most appropriate for those systems
    3737      that have only one ethernet device of the same type.  Laptops
    38       often have multiple ethernet connections that are named eth0 and
    39       wlan0 and are also candidates for this method.  The command line
    40       is passed in the GRUB configuration file.
     38      often have multiple ethernet connections that are named eth0 and 
     39      wlan0 and are also candidates for this method.  The command line 
     40      is passed in the GRUB configuration file. 
    4141      See <xref linkend="grub-cfg"/>.</para>
    4242    </sect3>
     
    4444    <sect3>
    4545      <title>Creating Custom Udev Rules</title>
    46 
     46   
    4747      <para>The naming scheme can be customized by creating custom udev
    4848      rules.  A script has been included that generates the initial rules.
     
    6262      are not consistently assigned.  In these cases, this method cannot
    6363      be used.</para></note>
    64 
     64 
    6565      <para>The file begins with a comment block followed by two lines for each
    6666      NIC. The first line for each NIC is a commented description showing its
     
    7070      interface; this information is only for reference. The second line is the
    7171      udev rule that matches this NIC and actually assigns it a name.</para>
    72 
     72 
    7373      <para>All udev rules are made up of several keys, separated by commas and
    7474      optional whitespace. This rule's keys and an explanation of each of them
    7575      are as follows:</para>
    76 
     76 
    7777      <itemizedlist>
    7878        <listitem>
     
    107107        </listitem>
    108108      </itemizedlist>
    109 
     109 
    110110      <para>The value of <literal>NAME</literal> is the important part. Make sure
    111111      you know which name has been assigned to each of your network cards before
  • chapter09/systemd-custom.xml

    r716db1f re680022  
    5151
    5252    <para>By default, <filename class="directory">/tmp</filename> is created as
    53     a tmpfs. If this is not desired, it can be overridden by executing the
     53    a tmpfs. If this is not desired, it can be overridden by executing the 
    5454    following command:</para>
    5555
     
    5757
    5858    <para>Alternatively, if a separate partition for
    59     <filename class="directory">/tmp</filename> is desired, specify that
     59    <filename class="directory">/tmp</filename> is desired, specify that 
    6060    partition in a <filename>/etc/fstab</filename> entry.</para>
    6161
     
    8282      <listitem><para>systemd-tmpfiles-setup.service</para></listitem>
    8383    </itemizedlist>
    84 
     84 
    8585    <para>The system location for the configuration files is
    86     <filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local
     86    <filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local 
    8787    configuration files are in
    8888    <filename class="directory">/etc/tmpfiles.d</filename>. Files in
     
    9595    <para>
    9696      Note that the syntax for the
    97       <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be
     97      <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be 
    9898      confusing.  For example, the default deletion of files in the /tmp directory
    99       is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with
     99      is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with 
    100100      the line:
    101101
     
    149149    systems, systemd uses a unified format for different types of startup
    150150    files (or units). The command <command>systemctl</command> is used to
    151     enable, disable, control state, and obtain status of unit files. Here
     151    enable, disable, control state, and obtain status of unit files. Here 
    152152    are some examples of frequently used commands:</para>
    153153
  • chapter09/udev.xml

    r716db1f re680022  
    120120      ownership at whatever <systemitem
    121121      class="filesystem">devtmpfs</systemitem> used initially.</para> </sect3>
    122 
     122     
    123123    <sect3 id="module-loading">
    124124      <title>Module Loading</title>
     
    224224      <para>Note that the <quote>softdep</quote> command also allows
    225225      <literal>pre:</literal> dependencies, or a mixture of both
    226       <literal>pre:</literal> and <literal>post:</literal> dependencies.  See
     226      <literal>pre:</literal> and <literal>post:</literal> dependencies.  See 
    227227      the <filename>modprobe.d(5)</filename> manual page for more information
    228228      on <quote>softdep</quote> syntax and capabilities.</para>
    229229
    230       <para revision="sysv">If the module in question is not a wrapper and is
    231       useful by itself, configure the <command>modules</command> bootscript to
     230      <para revision="sysv">If the module in question is not a wrapper and is 
     231      useful by itself, configure the <command>modules</command> bootscript to 
    232232      load this module on system boot. To do this, add the module name to the
    233233      <filename>/etc/sysconfig/modules</filename> file on a separate line.
  • chapter09/usage.xml

    r716db1f re680022  
    2525    particular Linux distribution, they should work the same in LFS too. LFS has its
    2626    own way of doing things, but it respects generally accepted standards.</para>
    27 
     27 
    2828    <para>SysVinit (which will be referred to as <quote>init</quote> from now on)
    2929    works using a run-levels scheme. There are seven (numbered 0 to 6) run-levels
     
    234234      /sys/class/rtc.</para>
    235235
    236       <para>For information on kernel module loading and udev, see
     236      <para>For information on kernel module loading and udev, see 
    237237      <xref linkend="module-loading"/>.</para>
    238238  </sect2>
     
    536536  <sect2 id="ch-config-createfiles">
    537537    <title>Creating Files at Boot</title>
    538 
     538 
    539539    <indexterm zone="ch-config-createfiles">
    540540      <primary sortas="d-createfiles">File creation at boot</primary>
    541541      <secondary>configuring</secondary>
    542542    </indexterm>
    543 
     543 
    544544    <para>At times, it is desirable to create files at boot time.  For instance,
    545545    the <filename class="directory">/tmp/.ICE-unix</filename> directory
    546546    is often needed.  This can be done by creating an entry in the
    547547    <filename>/etc/sysconfig/createfiles</filename> configuration script.
    548     The format of this file is embedded in the comments of the default
     548    The format of this file is embedded in the comments of the default 
    549549    configuration file.</para>
    550550  </sect2>
     
    552552  <sect2 id="ch-config-sysklogd">
    553553    <title>Configuring the sysklogd Script</title>
    554 
     554 
    555555    <indexterm zone="ch-config-sysklogd">
    556556      <primary sortas="d-sysklogd">sysklogd</primary>
    557557      <secondary>configuring</secondary>
    558558    </indexterm>
    559 
     559 
    560560    <para>The <filename>sysklogd</filename> script invokes the
    561561    <command>syslogd</command> program as a part of System V initialization.  The
     
    575575  <sect2 id="ch-config-site">
    576576    <title>The rc.site File</title>
    577 
     577 
    578578    <indexterm zone="ch-config-site">
    579579      <primary sortas="a-rc.site">rc.site</primary>
    580580    </indexterm>
    581 
     581 
    582582    <para>The optional <filename>/etc/sysconfig/rc.site</filename> file contains
    583583    settings that are automatically set for each SystemV boot script.  It can
     
    588588    <filename>rc.site</filename>, the values in the script specific files have
    589589    precedence. </para>
    590 
     590 
    591591    <para><filename>rc.site</filename> also contains parameters that can
    592592    customize other aspects of the boot process.  Setting the IPROMPT variable
    593593    will enable selective running of bootscripts.  Other options are described
    594594    in the file comments.  The default version of the file is as follows:</para>
    595 
     595 
    596596    <!-- Use role to fix a pdf generation problem -->
    597597    <screen role="auto">&site;</screen>
    598 
     598 
    599599    <sect3>
    600600      <title>Customizing the Boot and Shutdown Scripts</title>
    601 
     601 
    602602      <para>The LFS boot scripts boot and shut down a system in a fairly
    603603      efficient manner, but there are a few tweaks that you can make in the
     
    605605      to your preferences. To do this, adjust the settings in
    606606      the <filename>/etc/sysconfig/rc.site</filename> file above.</para>
    607 
     607 
    608608      <itemizedlist>
    609 
     609 
    610610      <listitem><para>During the boot script <filename>udev</filename>, there is
    611611      a call to <command>udev settle</command> that requires some time to
     
    614614      card, the boot process will probably not need to wait for this command.  To
    615615      skip it, set the variable OMIT_UDEV_SETTLE=y.</para></listitem>
    616 
     616 
    617617      <listitem><para>The boot script <filename>udev_retry</filename> also runs
    618618      <command>udev settle</command> by default.  This command is only needed by
     
    623623      needed.  Skip the command by setting the variable OMIT_UDEV_RETRY_SETTLE=y.
    624624      </para></listitem>
    625 
     625 
    626626      <listitem><para>By default, the file system checks are silent.  This can
    627627      appear to be a delay during the bootup process.  To turn on the
    628628      <command>fsck</command> output, set the variable VERBOSE_FSCK=y.
    629629      </para></listitem>
    630 
     630 
    631631      <listitem><para>When rebooting, you may want to skip the filesystem check,
    632632      <command>fsck</command>, completely.  To do this, either create the file
     
    637637      the <parameter>-F</parameter> parameter instead of <parameter>-f</parameter>.
    638638      </para>
    639 
     639 
    640640      <para>Setting the variable FASTBOOT=y will disable <command>fsck</command>
    641641      during the boot process until it is removed.  This is not recommended
    642642      on a permanent basis.</para></listitem>
    643 
     643 
    644644      <listitem><para>Normally, all files in the <filename
    645645      class='directory'>/tmp</filename> directory are deleted at boot time.
     
    647647      noticeable delay in the boot process.  To skip removing these files set the
    648648      variable SKIPTMPCLEAN=y.</para></listitem>
    649 
     649 
    650650      <listitem><para>During shutdown, the <command>init</command> program sends
    651651      a TERM signal to each program it has started (e.g. agetty), waits for a set
     
    659659      script can be skipped by setting the parameter
    660660      KILLDELAY=0.</para></listitem>
    661 
     661 
    662662      </itemizedlist>
    663 
     663 
    664664    </sect3>
    665665  </sect2>
  • chapter10/grub.xml

    r716db1f re680022  
    4343    libisoburn</ulink> package.</para>
    4444
    45 <screen role="nodump"><userinput>cd /tmp
    46 grub-mkrescue --output=grub-img.iso
     45<screen role="nodump"><userinput>cd /tmp 
     46grub-mkrescue --output=grub-img.iso 
    4747xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso</userinput></screen>
    4848
  • chapter10/kernel.xml

    r716db1f re680022  
    9898
    9999    <note>
     100   
    100101      <para>A good starting place for setting up the kernel configuration is to
    101102      run <command>make defconfig</command>. This will set the base
     
    115116   [*] Control Group support [CONFIG_CGROUPS]
    116117   [ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED]
    117    [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---&gt;
     118   [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---&gt;         
    118119      [*] open by fhandle syscalls [CONFIG_FHANDLE]
    119120Processor type and features  ---&gt;
     
    297298
    298299    <note>
    299       <para>In many cases, the configuration of the kernel will need to be
     300      <para>In many cases, the configuration of the kernel will need to be 
    300301      updated for packages that will be installed later in BLFS.  Unlike
    301302      other packages, it is not necessary to remove the kernel source tree
    302       after the newly built kernel is installed.</para>
    303 
     303      after the newly built kernel is installed.</para> 
     304   
    304305      <para>If the kernel source tree is going to be retained, run
    305306      <command>chown -R 0:0</command> on the <filename
  • chapter11/reboot.xml

    r716db1f re680022  
    5757    within a comfortable GUI environment, install <ulink revision="sysv"
    5858    url='&blfs-book;postlfs/openssh.html'>openssh</ulink><ulink revision="systemd"
    59     url='&blfs-systemd-book;postlfs/openssh.html'>openssh</ulink>.
     59    url='&blfs-systemd-book;postlfs/openssh.html'>openssh</ulink>. 
    6060    </para></listitem>
    6161
  • general.ent

    r716db1f re680022  
    1414<!-- jhalfs needs a literal dash, not &ndash; -->
    1515
    16 <!ENTITY short-version   "svn">  <!-- Used below in &blfs-book;
     16<!ENTITY short-version   "svn">  <!-- Used below in &blfs-book; 
    1717                                      Change to x.y for release but not -rc releases -->
    1818<!ENTITY generic-version "development"> <!-- Use "development"  or "x.y[-pre{x}]" -->
    1919
    2020<!ENTITY short-versiond  "systemd">  <!--Change to stable-systemd for release  -->
    21 <!ENTITY generic-versiond "systemd">
     21<!ENTITY generic-versiond "systemd"> 
    2222
    2323<!ENTITY lfs-root        "https://www.linuxfromscratch.org/">
     
    5252<!ENTITY before          "Must be installed before">
    5353<!ENTITY external        "Optional dependencies">
    54 
     54                         
    5555<!ENTITY gnu             "https://ftp.gnu.org/gnu/">
    5656<!ENTITY gnu-software    "https://www.gnu.org/software/">
  • lfs-latest-git.php

    r716db1f re680022  
    3131  foreach ( $lines as $line )
    3232  {
    33      if ( ! preg_match( $regex_match, $line ) ) continue;
     33     if ( ! preg_match( $regex_match, $line ) ) continue; 
    3434
    3535     // Isolate the version and put in an array
    3636     $slice = preg_replace( $regex_replace, "$1", $line );
    37      if ( $slice == $line ) continue;
    38 
    39      array_push( $a, $slice );
     37     if ( $slice == $line ) continue; 
     38
     39     array_push( $a, $slice );     
    4040  }
    4141
     
    9999  $max           = find_max( $lines, $regex_match, $regex_replace );
    100100
    101   return "$dirpath/$max";
     101  return "$dirpath/$max"; 
    102102}
    103103
     
    113113if ( $package == "e2fsprogs"  ) $dirpath = "https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/";
    114114if ( $package == "expat"      ) $dirpath = "http://sourceforge.net/projects/expat/files";
    115 if ( $package == "elfutils"   ) $dirpath = "https://sourceware.org/ftp/elfutils";
    116 if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files";
     115if ( $package == "elfutils"   ) $dirpath = "https://sourceware.org/ftp/elfutils"; 
     116if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files"; 
    117117if ( $package == "file"       ) $dirpath = "https://github.com/file/file/releases";
    118118if ( $package == "flex"       ) $dirpath = "https://github.com/westes/flex/releases";
     
    139139
    140140  // Check for ftp
    141   if ( preg_match( "/^ftp/", $dirpath ) )
    142   {
     141  if ( preg_match( "/^ftp/", $dirpath ) ) 
     142  { 
    143143    $dirpath  = substr( $dirpath, 6 );           // Remove ftp://
    144144    $dirpath  = rtrim ( $dirpath, "/" );         // Trim any trailing slash
     
    148148
    149149    $conn = ftp_connect( $server );
    150     ftp_login( $conn, "anonymous", "" );
     150    ftp_login( $conn, "anonymous", "" ); 
    151151
    152152    // See if we need special handling
     
    167167
    168168              // Get dir listing
    169               $lines = ftp_rawlist ($conn, $path);
     169              $lines = ftp_rawlist ($conn, $path);             
    170170              $max   = find_max( $lines, $regexp, $regexp );
    171171              break;
     
    234234  }
    235235
    236   if ( $package == "attr" ||
     236  if ( $package == "attr" || 
    237237       $package == "acl"  )
    238238  {
     
    362362      }
    363363
    364       else if ( preg_match( "/systemd-man-pages/", $file ) ) continue;
    365       else if ( preg_match( "/python/"         , $file ) ) continue;
     364      else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 
     365      else if ( preg_match( "/python/"         , $file ) ) continue; 
    366366
    367367      $version = preg_replace( $pattern, "$1", $file );   // Isolate version
  • lfs-latest.php

    r716db1f re680022  
    3131  foreach ( $lines as $line )
    3232  {
    33      if ( ! preg_match( $regex_match, $line ) ) continue;
     33     if ( ! preg_match( $regex_match, $line ) ) continue; 
    3434
    3535     // Isolate the version and put in an array
    3636     $slice = preg_replace( $regex_replace, "$1", $line );
    37      if ( $slice == $line ) continue;
    38 
    39      array_push( $a, $slice );
     37     if ( $slice == $line ) continue; 
     38
     39     array_push( $a, $slice );     
    4040  }
    4141
     
    9999  $max           = find_max( $lines, $regex_match, $regex_replace );
    100100
    101   return "$dirpath/$max";
     101  return "$dirpath/$max"; 
    102102}
    103103
     
    113113if ( $package == "e2fsprogs"  ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs";
    114114if ( $package == "expat"      ) $dirpath = "http://sourceforge.net/projects/expat/files";
    115 if ( $package == "elfutils"   ) $dirpath = "https://sourceware.org/ftp/elfutils";
    116 if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files";
     115if ( $package == "elfutils"   ) $dirpath = "https://sourceware.org/ftp/elfutils"; 
     116if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files"; 
    117117if ( $package == "file"       ) $dirpath = "https://github.com/file/file/releases";
    118118if ( $package == "flex"       ) $dirpath = "https://github.com/westes/flex/releases";
     
    136136
    137137  // Check for ftp
    138   if ( preg_match( "/^ftp/", $dirpath ) )
    139   {
     138  if ( preg_match( "/^ftp/", $dirpath ) ) 
     139  { 
    140140    $dirpath  = substr( $dirpath, 6 );           // Remove ftp://
    141141    $dirpath  = rtrim ( $dirpath, "/" );         // Trim any trailing slash
     
    145145
    146146    $conn = ftp_connect( $server );
    147     ftp_login( $conn, "anonymous", "" );
     147    ftp_login( $conn, "anonymous", "" ); 
    148148
    149149    // See if we need special handling
     
    164164
    165165              // Get dir listing
    166               $lines = ftp_rawlist ($conn, $path);
     166              $lines = ftp_rawlist ($conn, $path);             
    167167              $max   = find_max( $lines, $regexp, $regexp );
    168168              break;
     
    197197     }
    198198
    199      //if ( $package == "bzip2" )
     199     //if ( $package == "bzip2" ) 
    200200     //{
    201201     //   // Remove one directory
     
    239239  }
    240240
    241   if ( $package == "attr" ||
     241  if ( $package == "attr" || 
    242242       $package == "acl"  )
    243243  {
     
    357357      }
    358358
    359       else if ( preg_match( "/systemd-man-pages/", $file ) ) continue;
    360       else if ( preg_match( "/python/"         , $file ) ) continue;
     359      else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 
     360      else if ( preg_match( "/python/"         , $file ) ) continue; 
    361361
    362362      $version = preg_replace( $pattern, "$1", $file );   // Isolate version
  • make-aux-files.sh

    r716db1f re680022  
    99# Create the tarball and clean up
    1010tar -cJf lfs-bootscripts-$version.tar.xz --exclude .svn lfs-bootscripts-$version
    11 mv lfs-bootscripts-$version bootscripts
     11mv lfs-bootscripts-$version bootscripts 
    1212
    1313#rm -f udev-config*.bz2
  • packages.ent

    r716db1f re680022  
    66     Allowed deviation in SBUs : 10%
    77     Allowed deviation in disk usage : 2%
    8 
     8     
    99     Suffixes:
    1010     *-tmp-*     Package info for Temporary Tools
     
    5959<!ENTITY bash-fin-sbu "1.6 SBU">
    6060
    61 <!ENTITY bc-version "5.0.2">
     61<!ENTITY bc-version "5.0.0">
    6262<!ENTITY bc-size "420 KB">
    6363<!ENTITY bc-url "https://github.com/gavinhoward/bc/releases/download/&bc-version;/bc-&bc-version;.tar.xz">
    64 <!ENTITY bc-md5 "3b521d29aa4af4c4d5e96f7c3db3c607">
     64<!ENTITY bc-md5 "8345bb81c576ddfc8c27e0842370603c">
    6565<!ENTITY bc-home "https://git.yzena.com/gavin/bc">
    6666<!ENTITY bc-fin-du "6.7 MB">
     
    7979<!ENTITY binutils-fin-sbu "6.3 SBU">
    8080
    81 <!ENTITY bison-version "3.8.1">
    82 <!ENTITY bison-size "2,735 KB">
     81<!ENTITY bison-version "3.7.6">
     82<!ENTITY bison-size "2,566 KB">
    8383<!ENTITY bison-url "&gnu;bison/bison-&bison-version;.tar.xz">
    84 <!ENTITY bison-md5 "0ea56629a7136cc097668dba808afe3a">
     84<!ENTITY bison-md5 "d61aa92e3562cb7292b004ce96173cf7">
    8585<!ENTITY bison-home "&gnu-software;bison/">
    8686<!ENTITY bison-tmp-du "50 MB">
     
    241241<!ENTITY libstdcpp-tmpp2-sbu "0.8 SBU">
    242242
    243 <!ENTITY gdbm-version "1.21">
    244 <!ENTITY gdbm-size "983 KB">
     243<!ENTITY gdbm-version "1.20">
     244<!ENTITY gdbm-size "965 KB">
    245245<!ENTITY gdbm-url "&gnu;gdbm/gdbm-&gdbm-version;.tar.gz">
    246 <!ENTITY gdbm-md5 "a285c6e2dfed78668664c0555a7d202b">
     246<!ENTITY gdbm-md5 "006c19b8b60828fd6916a16f3496bd3c">
    247247<!ENTITY gdbm-home "&gnu-software;gdbm/">
    248248<!ENTITY gdbm-fin-du "11 MB">
     
    312312<!ENTITY grub-fin-sbu "0.8 SBU">
    313313
    314 <!ENTITY gzip-version "1.11">
    315 <!ENTITY gzip-size "786 KB">
     314<!ENTITY gzip-version "1.10">
     315<!ENTITY gzip-size "757 KB">
    316316<!ENTITY gzip-url "&gnu;gzip/gzip-&gzip-version;.tar.xz">
    317 <!ENTITY gzip-md5 "d1e93996dba00cab0caa7903cd01d454">
     317<!ENTITY gzip-md5 "691b1221694c3394f1c537df4eee39d3">
    318318<!ENTITY gzip-home "&gnu-software;gzip/">
    319319<!ENTITY gzip-tmp-du "10 MB">
     
    330330<!ENTITY iana-etc-fin-sbu "less than 0.1 SBU">
    331331
    332 <!ENTITY inetutils-version "2.2">
    333 <!ENTITY inetutils-size "1,494 KB">
     332<!ENTITY inetutils-version "2.1">
     333<!ENTITY inetutils-size "1,496 KB">
    334334<!ENTITY inetutils-url "&gnu;inetutils/inetutils-&inetutils-version;.tar.xz">
    335 <!ENTITY inetutils-md5 "de8c1b49cbde2b30e481c61c65357ad4">
     335<!ENTITY inetutils-md5 "4e7676d1980e57c7df665e5c5c3c1047">
    336336<!ENTITY inetutils-sha256 "01b9a4bc73a47e63f6e8a07b76122d9ad2a2e46ebf14870e9c91d660b5647a22">
    337337<!ENTITY inetutils-home "&gnu-software;inetutils/">
     
    347347<!ENTITY intltool-fin-sbu "less than 0.1 SBU">
    348348
    349 <!ENTITY iproute2-version "5.14.0">
    350 <!ENTITY iproute2-size "834 KB">
     349<!ENTITY iproute2-version "5.13.0">
     350<!ENTITY iproute2-size "828 KB">
    351351<!ENTITY iproute2-url "&kernel;linux/utils/net/iproute2/iproute2-&iproute2-version;.tar.xz">
    352 <!ENTITY iproute2-md5 "da53966eb3b08ac264f3e9df02e06bfa">
     352<!ENTITY iproute2-md5 "15fc3786303a173a14e180afe4cd2ecd">
    353353<!ENTITY iproute2-home "&kernel;linux/utils/net/iproute2/">
    354354<!ENTITY iproute2-fin-du "15 MB">
     
    396396
    397397<!ENTITY lfs-bootscripts-version "20210608">      <!-- Scripts depend on this format -->
    398 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
     398<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">       
    399399<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
    400 <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">
     400<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> 
    401401<!ENTITY lfs-bootscripts-home " ">
    402 <!ENTITY lfs-bootscripts-cfg-du "BOOTSCRIPTS-INSTALL-KB KB">
     402<!ENTITY lfs-bootscripts-cfg-du "BOOTSCRIPTS-INSTALL-KB KB"> 
    403403<!ENTITY lfs-bootscripts-cfg-sbu "less than 0.1 SBU">
    404404
    405 <!ENTITY libcap-version "2.57">
    406 <!ENTITY libcap-size "164 KB">
     405<!ENTITY libcap-version "2.53">
     406<!ENTITY libcap-size "153 KB">
    407407<!ENTITY libcap-url "&kernel;linux/libs/security/linux-privs/libcap2/libcap-&libcap-version;.tar.xz">
    408 <!ENTITY libcap-md5 "e84ce311ec412cbe8340ea8ea31525d9">
     408<!ENTITY libcap-md5 "094994d4554c6689cf98ae4f717b8e19">
    409409<!ENTITY libcap-home "https://sites.google.com/site/fullycapable/">
    410410<!ENTITY libcap-fin-du "3.2 MB">
     
    436436
    437437<!ENTITY linux-major-version "5">
    438 <!ENTITY linux-minor-version "14">
    439 <!ENTITY linux-patch-version "3">
     438<!ENTITY linux-minor-version "13">
     439<!ENTITY linux-patch-version "12">
    440440<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
    441441<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
    442 <!ENTITY linux-size "117,839 KB">
     442<!ENTITY linux-size "116,545 KB">
    443443<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
    444 <!ENTITY linux-md5 "b45b18effd1af9077de47f4bc496d2ab">
     444<!ENTITY linux-md5 "6e1728b2021ca19cc9273f080e6c44c7">
    445445<!ENTITY linux-home "https://www.kernel.org/">
    446446<!-- measured for 5.13.4 / gcc-11.1.0 on x86_64 : minimum is
     
    598598<!ENTITY psmisc-fin-sbu "less than 0.1 SBU">
    599599
    600 <!-- If python minor version changes, updates in python and
     600<!-- If python minor version changes, updates in python and 
    601601     meson pages will be needed: python3.6 and python3.6m -->
    602602
    603 <!ENTITY python-version "3.9.7">
     603<!ENTITY python-version "3.9.6">
    604604<!ENTITY python-minor "3.9">
    605 <!ENTITY python-size "18,676 KB">
     605<!ENTITY python-size "18,608 KB">
    606606<!ENTITY python-url "https://www.python.org/ftp/python/&python-version;/Python-&python-version;.tar.xz">
    607 <!ENTITY python-md5 "fddb060b483bc01850a3f412eea1d954">
     607<!ENTITY python-md5 "ecc29a7688f86e550d29dba2ee66cf80">
    608608<!ENTITY python-home "https://www.python.org/">
    609609<!ENTITY python-tmp-du "347 MB">
     
    612612<!ENTITY python-fin-sbu "4.4 SBU">
    613613<!ENTITY python-docs-url "https://www.python.org/ftp/python/doc/&python-version;/python-&python-version;-docs-html.tar.bz2">
    614 <!ENTITY python-docs-md5 "ef3ea6141ed362e4d12467b136ee70fe">
    615 <!ENTITY python-docs-size "6,791 KB">
     614<!ENTITY python-docs-md5 "0dae29e4c38af1b6b1a86b35c9e48923">
     615<!ENTITY python-docs-size "6,692 KB">
    616616
    617617<!ENTITY readline-version "8.1">
     
    637637<!ENTITY shadow-url "&github;/shadow-maint/shadow/releases/download/v&shadow-version;/shadow-&shadow-version;.tar.xz">
    638638<!ENTITY shadow-md5 "126924090caf72f3de7e9261fd4e10ac">
    639 <!ENTITY shadow-home "https://shadow-maint.github.io/shadow/">
     639<!ENTITY shadow-home "https://shadow-maint.github.io/shadow/"> 
    640640<!ENTITY shadow-fin-du "45 MB">
    641641<!ENTITY shadow-fin-sbu "0.2 SBU">
  • part3intro/generalinstructions.xml

    r716db1f re680022  
    9696              <para>Using the <command>tar</command> program, extract the package
    9797              to be built.  In <xref linkend="chapter-cross-tools"/> and
    98               <xref linkend="chapter-temporary-tools"/>, ensure you are
     98              <xref linkend="chapter-temporary-tools"/>, ensure you are 
    9999              the <emphasis>lfs</emphasis> user when extracting the package.</para>
    100100            </listitem>
  • part3intro/toolchaintechnotes.xml

    r716db1f re680022  
    3939
    4040    <para>Cross-compilation involves some concepts that deserve a section on
    41     their own. Although this section may be omitted in a first reading,
    42     coming back to it later will be beneficial to your full understanding of
    43     the process.</para>
     41    their own. Although this section may be omitted in a first reading, it
     42    is strongly suggested to come back to it later in order to get a full
     43    grasp of the build process.</para>
    4444
    4545    <para>Let us first define some terms used in this context:</para>
     
    6868    <para>As an example, let us imagine the following scenario (sometimes
    6969    referred to as <quote>Canadian Cross</quote>): we may have a
    70     compiler on a slow machine only, let's call it machine A, and the compiler
     70    compiler on a slow machine only, let's call the machine A, and the compiler
    7171    ccA. We may have also a fast machine (B), but with no compiler, and we may
    7272    want to produce code for another slow machine (C). To build a
     
    142142      reader may wonder why a <quote>triplet</quote> refers to a four component
    143143      name. The reason is history: initially, three component names were enough
    144       to designate a machine unambiguously, but with new machines and systems
     144      to designate unambiguously a machine, but with new machines and systems
    145145      appearing, that proved insufficient. The word <quote>triplet</quote>
    146146      remained. A simple way to determine your machine triplet is to run
     
    157157      provided by Glibc finds and loads the shared libraries needed by a
    158158      program, prepares the program to run, and then runs it. The name of the
    159       dynamic linker for a 32-bit Intel machine is <filename
    160       class="libraryfile">ld-linux.so.2</filename> and is<filename
    161       class="libraryfile">ld-linux-x86-64.so.2</filename> for 64-bit systems. A
     159      dynamic linker for a 32-bit Intel machine will be <filename
     160      class="libraryfile">ld-linux.so.2</filename> (<filename
     161      class="libraryfile">ld-linux-x86-64.so.2</filename> for 64-bit systems). A
    162162      sure-fire way to determine the name of the dynamic linker is to inspect a
    163163      random binary from the host system by running: <userinput>readelf -l
     
    168168    </note>
    169169
    170     <para>In order to fake a cross compilation in LFS, the name of the host triplet
     170    <para>In order to fake a cross compilation, the name of the host triplet
    171171    is slightly adjusted by changing the &quot;vendor&quot; field in the
    172172    <envar>LFS_TGT</envar> variable. We also use the
     
    212212    just a compiler, but also defines a standard library. In this book, the
    213213    GNU C library, named glibc, is used. This library must
    214     be compiled for the lfs machine, that is, using the cross compiler cc1.
     214    be compiled for the lfs machine, that is, using the cross compiler cc1. 
    215215    But the compiler itself uses an internal library implementing complex
    216216    instructions not available in the assembler instruction set. This
     
    296296    parameter passed to its configure script; e.g. in our case, the compiler
    297297    will be <command>$LFS_TGT-gcc</command>. The binary tools and kernel
    298     headers can be a bit more complicated. Therefore, we take no risks and use
     298    headers can be a bit more complicated. Therefore, take no risks and use
    299299    the available configure switches to enforce the correct selections. After
    300300    the run of <command>configure</command>, check the contents of the
     
    330330    libstdc++. Then temporary installations of programs needed for the proper
    331331    operation of the toolchain are performed. From this point onwards, the
    332     core toolchain is self-contained and self-hosted. In
     332    core toolchain is self-contained and self-hosted.  In
    333333    <xref linkend="chapter-building-system"/>, final versions of all the
    334334    packages needed for a fully functional system are built, tested and
  • patches.ent

    r716db1f re680022  
    3030<!ENTITY flex-fixes-patch-size "3.4 KB">
    3131-->
    32 
    33 <!ENTITY file-upstream-fixes-patch "file-&file-version;-upstream_fixes-1.patch">
    34 <!ENTITY file-upstream-fixes-md5 "d99090db596b9db2bed869662199a56a">
    35 <!ENTITY file-upstream-fixes-patch-size "4.0 KB">
    3632
    3733<!ENTITY gcc-upstream-fixes-patch "gcc-&gcc-version;-upstream_fixes-1.patch">
  • pdf-fixups.sh

    r716db1f re680022  
    11#!/bin/bash
    22
    3 if [ $# -lt 1 ] ; then
     3if [ $# -lt 1 ] ; then 
    44  echo "This script needs the location of the fo file to update"
    55  exit 1
  • process-scripts.sh

    r716db1f re680022  
    99do
    1010  script=$(basename $s)
    11 
     11 
    1212  # Skip directories
    1313  [ $script == 'network-devices' ] && continue
     
    1515
    1616  # Disambiguate duplicate file names
    17   [ $s == 'bootscripts/lfs/sysconfig/rc'         ] && script='rc-sysinit';
    18   [ $s == 'bootscripts/lfs/sysconfig/modules'    ] && script='modules-sysinit';
    19   [ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry';
    20 
     17  [ $s == 'bootscripts/lfs/sysconfig/rc'         ] && script='rc-sysinit'; 
     18  [ $s == 'bootscripts/lfs/sysconfig/modules'    ] && script='modules-sysinit'; 
     19  [ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry'; 
     20 
    2121  sed  -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g'   -e 's/>/\&gt\;/g' \
    2222       -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/    /g'  \
    23        $s > appendices/${script}.script
     23       $s > appendices/${script}.script 
    2424done
  • prologue/foreword.xml

    r716db1f re680022  
    1111  <title>Foreword</title>
    1212
    13 <para>My journey to learn and better understand Linux began
     13<para>My journey to learn and better understand Linux began 
    1414back in 1998. I had just installed my first Linux distribution and had
    1515quickly become intrigued with the whole concept and philosophy behind
  • prologue/organization.xml

    r716db1f re680022  
    5252
    5353    <para>Part V provides information about the book itself including
    54     acronyms and terms, acknowledgments, package dependencies,
    55     a listing of LFS boot scripts, licenses for the distribution of the
    56     book, and a comprehensive index of packages, programs, libraries,
     54    acronyms and terms, acknowledgments, package dependencies, 
     55    a listing of LFS boot scripts, licenses for the distribution of the 
     56    book, and a comprehensive index of packages, programs, libraries, 
    5757    and scripts.</para>
    5858  </sect2>
  • prologue/standards.xml

    r716db1f re680022  
    2323      </listitem>
    2424      <listitem>
    25         <para><ulink
     25        <para><ulink 
    2626        url="http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html">
    2727        Filesystem Hierarchy Standard (FHS) Version 3.0</ulink></para>
  • prologue/why.xml

    r716db1f re680022  
    2424        <para>Acl</para>
    2525
    26         <para>This package contains utilities to administer Access
    27         Control Lists, which are used to define more fine-grained
    28         discretionary access rights for files and directories.
     26        <para>This package contains utilities to administer Access 
     27        Control Lists, which are used to define more fine-grained 
     28        discretionary access rights for files and directories. 
    2929        </para>
    3030      </listitem>
     
    3333        <para>Attr</para>
    3434
    35         <para>This package contains programs for administering
    36         extended attributes on filesystem objects.
     35        <para>This package contains programs for administering 
     36        extended attributes on filesystem objects. 
    3737        </para>
    3838      </listitem>
     
    6767        <para>Bc</para>
    6868
    69         <para>This package provides an arbitrary precision numeric processing language.
     69        <para>This package provides an arbitrary precision numeric processing language. 
    7070        It satisfies a requirement needed when building the Linux kernel.</para>
    7171      </listitem>
     
    111111        <para>D-Bus</para>
    112112
    113         <para>This package contains programs to implement a message bus system,
     113        <para>This package contains programs to implement a message bus system, 
    114114        which a simple way for applications to talk to one another.
    115115        </para>
     
    142142
    143143        <para>This package is a device manager.  It dynamically controls the ownership,
    144         permissions, names, and symbolic links of devices in the /dev directory as
     144        permissions, names, and symbolic links of devices in the /dev directory as 
    145145        devices are added or removed from the system.
    146146        </para>
     
    283283        <para>Intltool</para>
    284284
    285         <para>This package contains tools for extracting translatable
     285        <para>This package contains tools for extracting translatable 
    286286        strings from source files.</para>
    287287      </listitem>
     
    327327        <para>Libcap</para>
    328328
    329         <para>This package implements the user-space interfaces to
    330         the POSIX 1003.1e capabilities available in Linux kernels.
     329        <para>This package implements the user-space interfaces to 
     330        the POSIX 1003.1e capabilities available in Linux kernels. 
    331331        </para>
    332332      </listitem>
     
    627627
    628628        <para>This package contains compression and decompression routines
    629         used by some programs. It provides high compression ratios and a very
     629        used by some programs. It provide high compression ratios and a very
    630630        wide range of compression / speed trade-offs.</para>
    631631      </listitem>
  • stylesheets/lfs-xsl/pdf/lfs-mixed.xsl

    r716db1f re680022  
    104104            <xsl:choose>
    105105              <xsl:when test="ancestor::appendix">auto</xsl:when>
    106               <!-- Modified by Bruce Dubbs.  Allow user to specify
     106              <!-- Modified by Bruce Dubbs.  Allow user to specify 
    107107              automatic screen formatting to split across pages. -->
    108108              <xsl:when test="@role='auto'">auto</xsl:when>
     
    115115      </xsl:attribute>
    116116
    117 <!-- The following lines were inserted by Martin Miehe. Scripts and rules
    118      in the appendices should have a smaller font-size so that at least
     117<!-- The following lines were inserted by Martin Miehe. Scripts and rules 
     118     in the appendices should have a smaller font-size so that at least 
    119119     80 characters fit to one line. -->
    120120
  • stylesheets/md5sum.xsl

    r716db1f re680022  
    1616      name, the next test must be fixed to match it also. Skip possible
    1717      duplicated URLs that may be split for PDF output -->
    18     <xsl:if test="(contains( @url, '.tar.' ) or
    19                    contains( @url, '.tgz'  ) or
     18    <xsl:if test="(contains( @url, '.tar.' ) or 
     19                   contains( @url, '.tgz'  ) or 
    2020                   contains( @url, '.patch') ) and
    2121                   not( ancestor-or-self::*/@condition = 'pdf' )" >
     
    3333      <!-- Add a newline -->
    3434      <xsl:text>&#x0a;</xsl:text>
    35 
     35   
    3636    </xsl:if>
    3737  </xsl:template>
     
    3939  <xsl:template name="basename">
    4040    <xsl:param name="pathname"/>
    41 
     41   
    4242    <xsl:choose>
    4343
  • stylesheets/wget-list.xsl

    r716db1f re680022  
    1717      name, the next test must be fixed to match it also. Skip possible
    1818      duplicated URLs due that may be splitted for PDF output -->
    19     <xsl:if test="(contains(@url, '.tar.') or
    20                    contains(@url, '.tgz')  or
     19    <xsl:if test="(contains(@url, '.tar.') or 
     20                   contains(@url, '.tgz')  or 
    2121                   contains(@url, '.patch')) and
    2222                  not(ancestor-or-self::*/@condition = 'pdf')">
  • udev-lfs/ChangeLog

    r716db1f re680022  
    6262        * 55-lfs.rules: Override default perms on floppy disk devices provided
    6363          by 50-udev-default.rules.  Thanks to Bruce Dubbs for the fix.  Closes
    64           LFS ticket #2076.
     64          LFS ticket #2076. 
    6565
    66662008-05-21  Bryan Kadzban  <bryan@linuxfromscratch.org>
     
    146146          upstream sample rules files (from udev-102), except for one rule
    147147          which is more specific in our tarball and should probably be changed
    148           upstream.
     148          upstream. 
    149149        * doc/60-persistent-storage.txt: Modify to match the changes.  Also
    150150          fix a couple typos.
  • udev-lfs/Makefile.lfs

    r716db1f re680022  
    1616        @echo "Use the install target"
    1717
    18 install:
     18install: 
    1919        @mkdir -pv $(DESTDIR)/lib/udev/rules.d \
    2020              $(DESTDIR)/etc/udev/rules.d \
  • udev-lfs/init-net-rules.sh

    r716db1f re680022  
    55# Updated fof udev-197 (DEVICES=en*)
    66
    7 RULES=/etc/udev/rules.d/70-persistent-net.rules
     7RULES=/etc/udev/rules.d/70-persistent-net.rules 
    88DEVICES=$(eval echo /sys/class/net/{en*,eth*,ath*,wlan*[0-9],msh*,ra*,sta*,ctc*,lcs*,hsi*})
    99
     
    6969
    7070  # S/390 uses id matches only, do not use MAC address match
    71   # SUBSYSTEMS=="ccwgroup",
    72   # export COMMENT="S/390 $driver device at $id",
    73   # export MATCHID="$id"
     71  # SUBSYSTEMS=="ccwgroup", 
     72  # export COMMENT="S/390 $driver device at $id", 
     73  # export MATCHID="$id" 
    7474  # export MATCHDRV="$driver"
    7575  # export MATCHADDR=""
     
    9999  msg="The rules file should not be created in the Xen environment"
    100100  usage
    101 fi
     101fi 
    102102
    103103# Variables used to communicate with write_net_rules:
    104 #   INTERFACE             simple interface name
     104#   INTERFACE             simple interface name         
    105105#   MATCHADDR             MAC address used for the match
    106106#   MATCHID               bus_id used for the match
     
    125125     comment
    126126
    127      /lib/udev/write_net_rules
     127     /lib/udev/write_net_rules 
    128128done
    129129
Note: See TracChangeset for help on using the changeset viewer.