Changeset 33a9421


Ignore:
Timestamp:
02/01/2024 03:55:18 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/loongarch, xry111/loongarch-12.1
Children:
b0b9db56
Parents:
5e67aa3 (diff), d3b0a08 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/loongarch

Files:
1 deleted
54 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r5e67aa3 r33a9421  
    11# vim:ts=3
    2 #BASEDIR = ~/lfs-book
    3 #SYSDDIR = ~/lfs-systemd
    4 #DUMPDIR = ~/lfs-commands
    52RENDERTMP = $(HOME)/tmp
    63CHUNK_QUIET = 1
     
    2522
    2623ifeq ($(REV), sysv)
    27   BASEDIR         ?= ~/public_html/lfs-book
     24  BASEDIR         ?= $(HOME)/public_html/lfs-book
    2825  PDF_OUTPUT      ?= LFS-BOOK.pdf
    2926  NOCHUNKS_OUTPUT ?= LFS-BOOK.html
    30   DUMPDIR         ?= ~/lfs-commands
     27  DUMPDIR         ?= $(HOME)/lfs-commands
    3128else
    32   BASEDIR         ?= ~/public_html/lfs-systemd
     29  BASEDIR         ?= $(HOME)/public_html/lfs-systemd
    3330  PDF_OUTPUT      ?= LFS-SYSD-BOOK.pdf
    3431  NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html
    35   DUMPDIR         ?= ~/lfs-sysd-commands
     32  DUMPDIR         ?= $(HOME)/lfs-sysd-commands
    3633endif
    3734
     
    4845        $(Q)mkdir -p $(BASEDIR)/stylesheets
    4946        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    50         $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
     47        $(Q)sed -e 's|../stylesheet|stylesheet|' \
     48           -i $(BASEDIR)/index.html
    5149
    5250        $(Q)mkdir -p $(BASEDIR)/images
     
    5654        $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \
    5755         tidy -config tidy.conf $$filename;           \
    58          true;                                        \
    5956         /bin/bash obfuscate.sh $$filename;           \
    60          sed -e "s@text/html@application/xhtml+xml@g" \
     57         sed -e "s|text/html|application/xhtml+xml|g" \
    6158             -i $$filename;                           \
    62    done;
     59       done
    6360
    6461        $(Q)$(MAKE) --no-print-directory wget-list md5sums
     
    9996                stylesheets/lfs-nochunks.xsl           \
    10097                $(RENDERTMP)/lfs-html.xml
    101 #                $(RENDERTMP)/lfs-html2.xml
    10298
    10399        @echo "Running Tidy..."
    104         $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
     100        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1
    105101
    106102        @echo "Running obfuscate.sh..."
    107         $(Q)bash obfuscate.sh                                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    108         $(Q)sed -i -e "s@text/html@application/xhtml+xml@g"  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    109         $(Q)sed -i -e "s@../wget-list@wget-list@"            $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    110         $(Q)sed -i -e "s@../md5sums@md5sums@"                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     103        $(Q)bash obfuscate.sh      $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     104        $(Q)sed -e "s|text/html|application/xhtml+xml|g" \
     105           -e "s|../wget-list|wget-list|"           \
     106           -e "s|../md5sums|md5sums|"               \
     107           -i $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    111108
    112109        @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)"
     
    127124        $(Q)xsltproc --nonet                               \
    128125                --xinclude                            \
     126                --stringparam profile.revision $(REV) \
    129127                --output $(RENDERTMP)/lfs-html2.xml   \
    130                 --stringparam profile.revision $(REV) \
    131128                stylesheets/lfs-xsl/profile.xsl       \
    132129                index.xml
    133130
    134131        @echo "Validating the book..."
    135         $(Q)xmllint --nonet                      \
    136                --noent                      \
    137                --postvalid                  \
    138                -o $(RENDERTMP)/lfs-full.xml \
     132        $(Q)xmllint --nonet                            \
     133               --encode UTF-8                     \
     134               --postvalid                        \
     135               --output $(RENDERTMP)/lfs-full.xml \
    139136               $(RENDERTMP)/lfs-html2.xml
    140137
     
    158155        @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
    159156        $(Q)mkdir -p $(BASEDIR)
    160         $(Q)xsltproc --xinclude --nonet            \
     157        $(Q)xsltproc --nonet                       \
     158                --xinclude                    \
    161159                --output $(BASEDIR)/wget-list \
    162160                stylesheets/wget-list.xsl     \
     
    164162
    165163$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
    166         $(Q)xsltproc --nonet --xinclude                   \
     164        $(Q)xsltproc --nonet                               \
     165                --xinclude                            \
    167166                --stringparam profile.revision $(REV) \
    168167                --output $(RENDERTMP)/wget-list.xml   \
    169168                stylesheets/lfs-xsl/profile.xsl       \
    170169                chapter03/chapter03.xml
    171         $(Q)xsltproc --xinclude --nonet                  \
     170
     171        $(Q)xsltproc --nonet                              \
    172172                --output $(BASEDIR)/wget-list-$(REV) \
    173173                stylesheets/wget-list.xsl            \
     
    179179        $(Q)mkdir -p $(BASEDIR)
    180180
    181         $(Q)xsltproc --nonet --xinclude                   \
     181        $(Q)xsltproc --nonet                               \
     182                --xinclude                            \
    182183                --stringparam profile.revision $(REV) \
    183184                --output $(RENDERTMP)/md5sum.xml      \
     
    185186                chapter03/chapter03.xml
    186187
    187         $(Q)xsltproc --xinclude --nonet         \
     188        $(Q)xsltproc --nonet                     \
    188189                --output $(BASEDIR)/md5sums \
    189190                stylesheets/md5sum.xsl      \
  • appendices/dependencies.xml

    r5e67aa3 r33a9421  
    10481048        <segtitle>&external;</segtitle>
    10491049        <seglistitem>
    1050           <seg>None</seg>
     1050          <seg><ulink url='&blfs-book;general/libxml2.html'>libxml2</ulink></seg>
    10511051        </seglistitem>
    10521052      </segmentedlist>
  • chapter01/changelog.xml

    r5e67aa3 r33a9421  
    4242
    4343    <listitem>
     44      <para>2024-02-01</para>
     45      <itemizedlist>
     46        <listitem>
     47          <para>[bdubbs] - Update to openssl-3.2.1. Fixes
     48          <ulink url='&lfs-ticket-root;5425'>#5425</ulink>.</para>
     49        </listitem>
     50        <listitem>
     51          <para>[bdubbs] - Update to zlib-1.3.1. Fixes
     52          <ulink url='&lfs-ticket-root;5419'>#5419</ulink>.</para>
     53        </listitem>
     54        <listitem>
     55          <para>[bdubbs] - Update to xz-5.4.6. Fixes
     56          <ulink url='&lfs-ticket-root;5423'>#5423</ulink>.</para>
     57        </listitem>
     58        <listitem>
     59          <para>[bdubbs] - Update to linux-6.7.2. Fixes
     60          <ulink url='&lfs-ticket-root;5422'>#5422</ulink>.</para>
     61        </listitem>
     62        <listitem>
     63          <para>[bdubbs] - Update to iana-etc-20240125. Addresses
     64          <ulink url='&lfs-ticket-root;5006'>#5006</ulink>.</para>
     65        </listitem>
     66        <listitem>
     67          <para>[bdubbs] - Update to binutils-2.42. Fixes
     68          <ulink url='&lfs-ticket-root;5424'>#5424</ulink>.</para>
     69        </listitem>
     70        <listitem>
     71          <para>[bdubbs] - Update to acl-2.3.2. Fixes
     72          <ulink url='&lfs-ticket-root;5421'>#5421</ulink>.</para>
     73        </listitem>
     74        <listitem>
     75          <para>[bdubbs] - Update upstream fixes for readline-8.2. Fixes
     76          <ulink url='&lfs-ticket-root;5420'>#5420</ulink>.</para>
     77        </listitem>
     78        <listitem>
     79          <para>[bdubbs] - Apply upstream fix for bash-5.2.21. Fixes
     80          <ulink url='&lfs-ticket-root;5420'>#5420</ulink>.</para>
     81        </listitem>
     82      </itemizedlist>
     83    </listitem>
     84
     85    <listitem>
    4486      <para>2024-01-21</para>
    4587      <itemizedlist>
  • chapter01/whatsnew.xml

    r5e67aa3 r33a9421  
    2727    <para>None</para>
    2828    </listitem>-->
    29     <!--<listitem>
     29    <listitem>
    3030      <para>Acl-&acl-version;</para>
    31     </listitem>-->
     31    </listitem>
    3232    <listitem>
    3333      <para>Attr-&attr-version;</para>
     
    4545      <para>Bc-&bc-version;</para>
    4646    </listitem>
    47     <!--<listitem>
     47    <listitem>
    4848      <para>Binutils-&binutils-version;</para>
    49     </listitem>-->
     49    </listitem>
    5050    <!--<listitem>
    5151      <para>Bison-&bison-version;</para>
     
    292292
    293293    <listitem>
     294      <para>&bash-upstream-fixes-patch;</para>
     295    </listitem>
     296
     297    <listitem>
    294298      <para>setuptools-&setuptools-version;</para>
    295299    </listitem>
  • chapter02/creatingpartition.xml

    r5e67aa3 r33a9421  
    4141  disk drive. Create a Linux native partition and a
    4242  <systemitem class="filesystem">swap</systemitem> partition, if needed. Please
    43   refer to <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if
     43  refer to <ulink role='man' url='&man;cfdisk.8'>cfdisk(8)</ulink> or
     44  <ulink role='man' url='&man;fdisk.8'>fdisk(8)</ulink> if
    4445  you do not yet know how to use the programs.</para>
    4546
  • chapter02/hostreqs.xml

    r5e67aa3 r33a9421  
    3030    modern Linux distributions. Also note that many distributions will
    3131    place software headers into separate packages, often in the form of
    32     <quote>&lt;package-name&gt;-devel</quote> or
    33     <quote>&lt;package-name&gt;-dev</quote>. Be sure to install those if
    34     your distribution provides them.</para>
     32    <literal><replaceable>&lt;package-name&gt;</replaceable>-devel</literal>
     33    or
     34    <literal><replaceable>&lt;package-name&gt;</replaceable>-dev</literal>.
     35    Be sure to install those if your distribution provides them.</para>
    3536
    3637   <para>Earlier versions of the listed software packages may work, but have
  • chapter02/mounting.xml

    r5e67aa3 r33a9421  
    1717  </para>
    1818 
    19   <para>Strictly speaking, one cannot "mount a partition". One mounts the <emphasis>file
     19  <para>Strictly speaking, one cannot <quote>mount a partition.</quote> One mounts the <emphasis>file
    2020  system</emphasis> embedded in that partition. But since a single partition can't contain
    2121  more than one file system, people often speak of the partition and the
  • chapter02/stages.xml

    r5e67aa3 r33a9421  
    7070      <listitem>
    7171        <para>A few operations, from <quote>Changing Ownership</quote> to
    72         <quote>Entering the Chroot Environment</quote>, must be done as the
     72        <quote>Entering the Chroot Environment,</quote> must be done as the
    7373        <systemitem class="username">root</systemitem> user, with the LFS
    7474        environment variable set for the &root; user.</para>
  • chapter03/patches.xml

    r5e67aa3 r33a9421  
    2828-->
    2929
    30 <!--    <varlistentry>
    31       <term>Bash Upstream Fixes Patch - <token>&bash-fixes-patch-size;</token>:</term>
     30    <varlistentry>
     31      <term>Bash Upstream Fixes Patch - <token>&bash-upstream-fixes-patch-size;</token>:</term>
    3232      <listitem>
    33         <para>Download: <ulink url="&patches-root;&bash-fixes-patch;"/></para>
    34         <para>MD5 sum: <literal>&bash-fixes-patch-md5;</literal></para>
     33        <para>Download: <ulink url="&patches-root;&bash-upstream-fixes-patch;"/></para>
     34        <para>MD5 sum: <literal>&bash-upstream-fixes-patch-md5;</literal></para>
    3535      </listitem>
    3636    </varlistentry>
    37 -->
     37
    3838<!--
    3939    <varlistentry>
  • chapter04/addinguser.xml

    r5e67aa3 r33a9421  
    9797  <command>su</command> to start a login shell as opposed to a non-login shell.
    9898  The difference between these two types of shells is described in detail in
    99   <filename>bash(1)</filename> and <command>info bash</command>.</para>
     99  <ulink role='man' url='&man;bash.1'>bash(1)</ulink> and <command>info
     100  bash</command>.</para>
    100101
    101102</sect1>
  • chapter04/settingenviron.xml

    r5e67aa3 r33a9421  
    8080  created files and directories are only writable by their owner, but are
    8181  readable and executable by anyone (assuming default modes are used by the
    82   <filename>open(2)</filename> system call, new files will end up with
    83   permission mode 644 and directories with mode 755).</para>
     82  <ulink role='man' url='&man;open.2'>open(2)</ulink> system call, new files
     83  will end up with permission mode 644 and directories with mode 755).</para>
    8484      </listitem>
    8585    </varlistentry>
  • chapter05/glibc.xml

    r5e67aa3 r33a9421  
    5353        The above command is correct.  The <command>ln</command> command has
    5454        several syntactic versions, so be sure to check
    55         <command>info coreutils ln</command> and <filename>ln(1)</filename>
    56         before reporting what may appear to be an error.
     55        <command>info coreutils ln</command> and <ulink role='man'
     56        url='&man;ln.1'>ln(1)</ulink> before reporting what may appear to be
     57        an error.
    5758      </para>
    5859    </note>
     
    152153
    153154    <note><para>There have been reports that this package may fail when
    154     building as a "parallel make".  If that occurs, rerun the make command
    155     with the "-j1" option.</para></note>
     155    building as a <quote>parallel make.</quote>  If that occurs, rerun the make command
     156    with the <option>-j1</option> option.</para></note>
    156157
    157158    <para>Compile the package:</para>
  • chapter06/file.xml

    r5e67aa3 r33a9421  
    7979<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess)</userinput></screen>
    8080
    81 <!-- devs: if using - -build here, the build system wants to compile
    82      the signature file with "file" on the build system, but stops if it is not
    83      the same version. One possibility would be to build "file" on the build
    84      system first, but it is simpler to have the system think it is not
    85      cross-compiling, and use the just built "file". -->
    8681    <para>Compile the package:</para>
    8782
  • chapter07/creatingdirs.xml

    r5e67aa3 r33a9421  
    5555  class="directory">/var/tmp</filename> directories, but cannot remove
    5656  another user's files from them. The latter is prohibited by the so-called
    57   <quote>sticky bit</quote>, the highest bit (1) in the 1777 bit mask.</para>
     57  <quote>sticky bit,</quote> the highest bit (1) in the 1777 bit mask.</para>
    5858
    5959  <sect2>
  • chapter07/python.xml

    r5e67aa3 r33a9421  
    4545
    4646    <note>
    47       <para>There are two package files whose name starts with
    48       <quote>python</quote>. The one to extract from is
     47      <para>There are two package files whose name starts with the
     48      <quote>python</quote> prefix. The one to extract from is
    4949      <filename>Python-&python-version;.tar.xz</filename> (notice the
    5050      uppercase first letter).</para>
     
    8484      <para>
    8585        Some Python 3 modules can't be built now because the dependencies
    86         are not installed yet. The building system still attempts to build
    87         them however, so the compilation of some files will fail and the
    88         compiler message may seem to indicate <quote>fatal error</quote>.
     86        are not installed yet. For the <filename>ssl</filename> module,
     87        a message <computeroutput>Python requires a OpenSSL 1.1.1 or
     88        newer</computeroutput> is outputted.
    8989        The message should be ignored.  Just make sure the toplevel
    9090        <command>make</command> command has not failed.  The optional
  • chapter08/bash.xml

    r5e67aa3 r33a9421  
    4040  <sect2 role="installation">
    4141    <title>Installation of Bash</title>
     42
     43    <para>First, fix some issues identified upstream:</para>
     44
     45<screen><userinput remap="pre">patch -Np1 -i ../&bash-upstream-fixes-patch;</userinput></screen>
    4246
    4347    <para>Prepare Bash for compilation:</para>
  • chapter08/binutils.xml

    r5e67aa3 r33a9421  
    127127<screen><userinput remap="test">grep '^FAIL:' $(find -name '*.log')</userinput></screen>
    128128
     129 <!--    <para>Three tests in the gprofng suite are also known to fail.</para>-->
     130
    129131    <para>Install the package:</para>
    130132
  • chapter08/coreutils.xml

    r5e67aa3 r33a9421  
    12621262        <term><command>yes</command></term>
    12631263        <listitem>
    1264           <para>Repeatedly outputs <quote>y</quote>, or a given string, until
    1265           killed</para>
     1264          <para>Repeatedly outputs <literal>y</literal> or a given string,
     1265          until killed</para>
    12661266          <indexterm zone="ch-system-coreutils yes">
    12671267            <primary sortas="b-yes">yes</primary>
  • chapter08/e2fsprogs.xml

    r5e67aa3 r33a9421  
    160160
    161161    <para>
    162       Read the man page <filename>mke2fs.conf(5)</filename> for details.
     162      Read the man page <ulink role='man'
     163      url='&man;mke2fs.conf.5'>mke2fs.conf(5)</ulink> for details.
    163164    </para>
    164165  </sect2>
  • chapter08/expect.xml

    r5e67aa3 r33a9421  
    9797
    9898    <para>If any test fails with the message
    99     <quote><computeroutput>The system has no more ptys. Ask your system
    100     administrator to create more</computeroutput></quote>, it indicates
     99    <computeroutput>The system has no more ptys. Ask your system
     100    administrator to create more</computeroutput>, it indicates
    101101    you've not mounted the
    102102    <systemitem class="filesystem">devpts</systemitem> file system
  • chapter08/glibc.xml

    r5e67aa3 r33a9421  
    7474             --enable-kernel=&min-kernel;                     \
    7575             --enable-stack-protector=strong          \
    76              --with-headers=/usr/include              \
    7776             --disable-nscd                           \
    7877             libc_cv_slibdir=/usr/lib</userinput></screen>
     
    104103          <para>This option increases system security by adding
    105104          extra code to check for buffer overflows, such as stack
    106           smashing attacks.</para>
    107         </listitem>
    108       </varlistentry>
    109 <!-- do we need this one? -->
    110       <varlistentry>
    111         <term><parameter>--with-headers=/usr/include</parameter></term>
    112         <listitem>
    113           <para>This option tells the build system where to find the
    114           kernel API headers.</para>
     105          smashing attacks.  Note that Glibc always explicitly overrides
     106          the default of GCC, so this option is still needed even though
     107          we've already specified <option>--enable-default-ssp</option> for
     108          GCC.</para>
    115109        </listitem>
    116110      </varlistentry>
  • chapter08/gmp.xml

    r5e67aa3 r33a9421  
    5959
    6060      <!-- To editors: the configure script says "the none host is obsolete,
    61            use - -disable-assembly", but don't believe it: with the latter
     61           use - -disable-assembly," but don't believe it: with the latter
    6262           CFLAGS is still automatically set to -march=something.  -->
    6363    </note>
     
    107107    it is built. Occasionally, the code that detects the processor misidentifies
    108108    the system capabilities and there will be errors in the tests or other
    109     applications using the gmp libraries with the message "Illegal
    110     instruction".  In this case, gmp should be reconfigured with the option
     109    applications using the gmp libraries with the message
     110    <computeroutput>Illegal instruction</computeroutput>.
     111    In this case, gmp should be reconfigured with the option
    111112    <option>--host=none-linux-gnu</option> and rebuilt.</para></caution>
    112113
  • chapter08/libtool.xml

    r5e67aa3 r33a9421  
    5757    <para>Five tests are known to fail in the LFS build environment due
    5858    to a circular dependency, but these tests pass if rechecked after
    59     automake has been installed.  Additionally, with grep-3.8, two tests will
    60     trigger a warning for non-POSIX regular expressions and fail.</para>
     59    automake has been installed.  Additionally, with grep-3.8 or newer,
     60    two tests will trigger a warning for non-POSIX regular expressions and
     61    fail.</para>
    6162
    6263    <para>Install the package:</para>
  • chapter08/openssl.xml

    r5e67aa3 r33a9421  
    164164            of <application>OpenSSL</application>'s crypto library from the
    165165            shell. It can be used for various functions which are documented in
    166             <filename>openssl(1)</filename>
     166            <ulink role='man' url='&man;openssl.1'>openssl(1)</ulink>
    167167          </para>
    168168          <indexterm zone="ch-system-openssl openssl-prog">
     
    196196            implements the Transport Layer Security (TLS v1) protocol.
    197197            It provides a rich API, documentation
    198             on which can be found in <filename>ssl(7)</filename>
     198            on which can be found in <ulink role='man'
     199            url='&man;ssl.7'>ssl(7)</ulink>
    199200          </para>
    200201          <indexterm zone="ch-system-openssl libssl">
  • chapter08/pkgmgt.xml

    r5e67aa3 r33a9421  
    5757        The system will keep working fine thanks to the well-defined interface
    5858        between the kernel and userspace.  Specifically, Linux API headers
    59         need not be (and should not be, see the next item) upgraded
     59        need not be upgraded
    6060        along with the kernel.  You will merely need to reboot your system to use the
    6161        upgraded kernel.</para>
     
    6363
    6464      <listitem>
    65         <para>If the Linux API headers or Glibc need to be upgraded to a newer
     65        <para>If Glibc needs to be upgraded to a newer
    6666        version, (e.g.,  from Glibc-2.31 to Glibc-2.32), it is safer to
    6767        rebuild LFS.  Though you <emphasis>may</emphasis> be able to rebuild
  • chapter08/shadow.xml

    r5e67aa3 r33a9421  
    204204    parameter to <command>useradd</command>, or else change the setting of
    205205    <parameter>USERGROUPS_ENAB</parameter> in
    206     <filename>/etc/login.defs</filename>. See <filename>useradd(8)</filename>
    207     for more information.</para>
     206    <filename>/etc/login.defs</filename>. See <ulink role='man'
     207    url='&man;useradd.8'>useradd(8)</ulink> for more information.</para>
    208208
    209209    <para>Second, to change the default parameters, the file
  • chapter08/stripping.xml

    r5e67aa3 r33a9421  
    5353  The construct below selects the
    5454  correct name for the current architecture, excluding anything ending
    55   with <quote>g</quote>, in case the commands below have already been
     55  with <literal>g</literal>, in case the commands below have already been
    5656  run.</para></note>
    5757
  • chapter08/util-linux.xml

    r5e67aa3 r33a9421  
    579579        <listitem>
    580580          <para>Displays kernel interrupt counter information in
    581           <filename>top(1)</filename> style view</para>
     581          <ulink role='man' url='&man;top.1'>top(1)</ulink> style
     582          view</para>
    582583          <indexterm zone="ch-system-util-linux irqtop">
    583584            <primary sortas="b-irqtop">irqtop</primary>
  • chapter09/chapter09.xml

    r5e67aa3 r33a9421  
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="network.xml"/>
    2828  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="usage.xml"/>
    29   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="profile.xml"/>
    3029
    3130  <!-- systemd -->
    3231  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="clock.xml"/>
    3332  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="consoled.xml"/>
    34   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="locale.xml"/>
    3533
    3634  <!-- common -->
     35  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="locale.xml"/>
    3736  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="inputrc.xml"/>
    3837  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="etcshells.xml"/>
  • chapter09/consoled.xml

    r5e67aa3 r33a9421  
    3131
    3232  <para>The <filename>/etc/vconsole.conf</filename> file should contain lines
    33   of the form: VARIABLE="value". The following variables are recognized:</para>
     33  of the form: <envar>VARIABLE=value</envar>. The following variables are recognized:</para>
    3434
    3535  <variablelist>
     
    7474
    7575  </variablelist>
     76
     77  <para>We'll use <literal>C.UTF-8</literal> as the locale for interactive
     78  sessions in the Linux console in <xref role='.'
     79  linkend='ch-config-locale'/>  The console fonts shipped by
     80  the <application>Kbd</application> package containing the glyphs for
     81  all characters from the program messages in the <literal>C.UTF-8</literal>
     82  locale are <filename>LatArCyrHeb*.psfu.gz</filename>,
     83  <filename>LatGrkCyr*.psfu.gz</filename>,
     84  <filename>Lat2-Terminus16.psfu.gz</filename>, and
     85  <filename>pancyrillic.f16.psfu.gz</filename> in
     86  <filename class='directory'>/usr/share/consolefonts</filename> (the other
     87  shipped console fonts lack glyphs of some characters like the Unicode
     88  left/right quotation marks and the Unicode English dash). So set one of
     89  them, for example <filename>Lat2-Terminus16.psfu.gz</filename> as the
     90  default console font:</para>
     91
     92  <!-- We are using "nodump" for general settings, but not examples.  This
     93       is ironic, but needed for the compatibility with jhalfs!  -->
     94<screen role='nodump'><userinput>echo <literal>FONT=Lat2-Terminus16</literal> &gt; /etc/vconsole.conf</userinput></screen>
    7695
    7796  <para>An example for a German keyboard and console is given below:</para>
  • chapter09/locale.xml

    r5e67aa3 r33a9421  
    66]>
    77
    8 <sect1 id="ch-config-locale" revision="systemd">
     8<sect1 id="ch-config-locale">
    99  <?dbhtml filename="locale.html"?>
    1010
     
    1212
    1313  <indexterm zone="ch-config-locale">
    14     <primary sortas="e-etc-locale-conf">/etc/locale.conf</primary>
     14    <primary sortas="e-/etc/profile">/etc/profile</primary>
    1515  </indexterm>
    1616
    17   <para>The <filename>/etc/locale.conf</filename> file below sets some
    18   environment variables necessary for native language support. Setting
    19   them properly results in:</para>
     17  <indexterm zone="ch-config-locale" revision='systemd'>
     18    <primary sortas="e-/etc/profile">/etc/locale.conf</primary>
     19  </indexterm>
     20
     21  <para>Some environment variables are necessary for native language
     22  support. Setting them properly results in:</para>
    2023
    2124  <itemizedlist>
     
    4043
    4144  <para>Replace <replaceable>&lt;ll&gt;</replaceable> below with the two-letter code
    42   for your desired language (e.g., <quote>en</quote>) and
     45  for your desired language (e.g., <literal>en</literal>) and
    4346  <replaceable>&lt;CC&gt;</replaceable> with the two-letter code for the appropriate
    44   country (e.g., <quote>GB</quote>). <replaceable>&lt;charmap&gt;</replaceable> should
     47  country (e.g., <literal>GB</literal>). <replaceable>&lt;charmap&gt;</replaceable> should
    4548  be replaced with the canonical charmap for your chosen locale. Optional
    46   modifiers such as <quote>@euro</quote> may also be present.</para>
     49  modifiers such as <literal>@euro</literal> may also be present.</para>
    4750
    4851  <para>The list of all locales supported by Glibc can be obtained by running
     
    5154<screen role="nodump"><userinput>locale -a</userinput></screen>
    5255
    53   <para>Charmaps can have a number of aliases, e.g., <quote>ISO-8859-1</quote>
    54   is also referred to as <quote>iso8859-1</quote> and <quote>iso88591</quote>.
     56  <para>Charmaps can have a number of aliases, e.g.,
     57  <literal>ISO-8859-1</literal> is also referred to as
     58  <literal>iso8859-1</literal> and <literal>iso88591</literal>.
    5559  Some applications cannot handle the various synonyms correctly (e.g., require
    56   that <quote>UTF-8</quote> is written as <quote>UTF-8</quote>, not
    57   <quote>utf8</quote>), so it is the safest in most
     60  that <literal>UTF-8</literal> is written as <literal>UTF-8</literal>, not
     61  <literal>utf8</literal>), so it is the safest in most
    5862  cases to choose the canonical name for a particular locale. To determine
    5963  the canonical name, run the following command, where <replaceable>&lt;locale
    6064  name&gt;</replaceable> is the output given by <command>locale -a</command> for
    61   your preferred locale (<quote>en_GB.iso88591</quote> in our example).</para>
     65  your preferred locale (<literal>en_GB.iso88591</literal> in our
     66  example).</para>
    6267
    6368<screen role="nodump"><userinput>LC_ALL=<replaceable>&lt;locale name&gt;</replaceable> locale charmap</userinput></screen>
    6469
    65   <para>For the <quote>en_GB.iso88591</quote> locale, the above command
     70  <para>For the <literal>en_GB.iso88591</literal> locale, the above command
    6671  will print:</para>
    6772
    6873<screen><computeroutput>ISO-8859-1</computeroutput></screen>
    6974
    70   <para>This results in a final locale setting of <quote>en_GB.ISO-8859-1</quote>.
     75  <para>This results in a final locale setting of <literal>en_GB.ISO-8859-1</literal>.
    7176  It is important that the locale found using the heuristic above is tested prior
    7277  to it being added to the Bash startup files:</para>
     
    9196  Glibc.</para>
    9297
    93   <!-- FIXME: the xlib example will become obsolete in the future.-->
    94   <para>Some packages beyond LFS may also lack support for your chosen locale. One
    95   example is the X library (part of the X Window System), which outputs the
    96   following error message if the locale does not exactly match one of the character
    97   map names in its internal files:</para>
    98 
    99 <screen><computeroutput>Warning: locale not supported by Xlib, locale set to C</computeroutput></screen>
    100 
    101   <para>In several cases Xlib expects that the character map will be listed in
    102   uppercase notation with canonical dashes. For instance, "ISO-8859-1" rather
    103   than "iso88591". It is also  possible to find an appropriate specification by
    104   removing the charmap part of the locale specification.  This can be checked
    105   by running the <command>locale charmap</command> command in both locales.
    106   For example, one would have to change "de_DE.ISO-8859-15@euro" to
    107   "de_DE@euro" in order to get this locale recognized by Xlib.</para>
    108 
    10998  <para>Other packages can also function incorrectly (but may not necessarily
    11099  display any error messages) if the locale name does not meet their expectations.
     
    112101  might provide some useful information.</para>
    113102
    114   <para>Once the proper locale settings have been determined, create the
    115   <filename>/etc/locale.conf</filename> file:</para>
    116 
    117 <screen><userinput>cat &gt; /etc/locale.conf &lt;&lt; "EOF"
     103  <para revision='systemd'>Once the proper locale settings have been
     104  determined, create the <filename>/etc/locale.conf</filename> file:</para>
     105
     106<screen revision='systemd'><userinput>cat &gt; /etc/locale.conf &lt;&lt; "EOF"
    118107<literal>LANG=<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;</replaceable></literal>
    119108EOF</userinput></screen>
    120109
    121   <para>Note that you can modify <filename>/etc/locale.conf</filename> with the
     110  <para>The shell program <command>/bin/bash</command> (here after referred
     111  as <quote>the shell</quote>) uses a collection of startup files to help
     112  create the environment to run in. Each file has a specific use and may
     113  affect login and interactive environments differently. The files in the
     114  <filename class="directory">/etc</filename> directory provide global
     115  settings.  If equivalent files exist in the home directory, they
     116  may override the global settings.</para>
     117
     118  <para>An interactive login shell is started after a successful login,
     119  using <command>/bin/login</command>, by reading the
     120  <filename>/etc/passwd</filename> file.  An interactive non-login shell is
     121  started at the command-line (e.g.
     122  <prompt>[prompt]$</prompt><command>/bin/bash</command>).  A
     123  non-interactive shell is usually present when a shell script is running.
     124  It is non-interactive because it is processing a script and not waiting
     125  for user input between commands.</para>
     126
     127  <para><phrase revision='systemd'>The login shells are often unaffected by
     128  the settings in <filename>/etc/locale.conf</filename>. </phrase>Create the
     129  <filename>/etc/profile</filename>
     130  <phrase revision='sysv'>once the proper locale settings have been
     131  determined to set the desired locale</phrase><phrase
     132  revision='systemd'>to read the locale settings from
     133  <filename>/etc/locale.conf</filename> and export them</phrase>,
     134  but set the <literal>C.UTF-8</literal> locale instead if running in the Linux
     135  console (to prevent programs from outputting characters that the Linux
     136  console is unable to render):</para>
     137
     138<screen revision="systemd"><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
     139<literal># Begin /etc/profile
     140
     141for i in $(locale); do
     142  unset ${i%=*}
     143done
     144
     145if [[ "$TERM" = linux ]]; then
     146  export LANG=C.UTF-8
     147else
     148  source /etc/locale.conf
     149
     150  for i in $(locale); do
     151    key=${i%=*}
     152    if [[ -v $key ]]; then
     153      export $key
     154    fi
     155  done
     156fi
     157
     158# End /etc/profile</literal>
     159EOF</userinput></screen>
     160
     161<screen revision="sysv"><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
     162<literal># Begin /etc/profile
     163
     164for i in $(locale); do
     165  unset ${i%=*}
     166done
     167
     168if [[ "$TERM" = linux ]]; then
     169  export LANG=C.UTF-8
     170else
     171  export LANG=<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;</replaceable>
     172fi
     173
     174# End /etc/profile</literal>
     175EOF</userinput></screen>
     176
     177  <para revision='systemd'>Note that you can modify <filename>/etc/locale.conf</filename> with the
    122178  systemd <command>localectl</command> utility. To use
    123179  <command>localectl</command> for the example above, run:</para>
    124180
    125 <screen role="nodump"><userinput>localectl set-locale LANG="<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;</replaceable>"</userinput></screen>
    126 
    127   <para>You can also specify other language specific environment variables such
    128   as <envar>LANG</envar>, <envar>LC_CTYPE</envar>, <envar>LC_NUMERIC</envar> or
    129   any other environment variable from <command>locale</command> output. Just
    130   separate them with a space. An example where <envar>LANG</envar> is set as
     181<screen revision='systemd' role="nodump"><userinput>localectl set-locale LANG="<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;</replaceable>"</userinput></screen>
     182
     183  <para revision='systemd'>You can also specify other language specific
     184  environment variables such as <envar>LANG</envar>,
     185  <envar>LC_CTYPE</envar>, <envar>LC_NUMERIC</envar> or any other
     186  environment variable from <command>locale</command> output. Just separate
     187  them with a space. An example where <envar>LANG</envar> is set as
    131188  en_US.UTF-8 but <envar>LC_CTYPE</envar> is set as just en_US is:</para>
    132189
    133 <screen role="nodump"><userinput>localectl set-locale LANG="en_US.UTF-8" LC_CTYPE="en_US"</userinput></screen>
    134 
    135   <note><para>Please note that the <command>localectl</command> command
    136   doesn't work in the chroot environment.  It can only
    137   be used after the LFS system is booted with systemd.</para></note>
    138 
    139   <para>The <quote>C</quote> (default) and <quote>en_US</quote> (the recommended
    140   one for United States English users) locales are different. <quote>C</quote>
     190<screen revision='systemd' role="nodump"><userinput>localectl set-locale LANG="en_US.UTF-8" LC_CTYPE="en_US"</userinput></screen>
     191
     192  <note revision='systemd'><para>Please note that the
     193  <command>localectl</command> command doesn't work in the chroot
     194  environment.  It can only be used after the LFS system is booted with
     195  systemd.</para></note>
     196
     197  <para>The <literal>C</literal> (default) and <literal>en_US</literal>
     198  (the recommended one for United States English users) locales are
     199  different. <literal>C</literal>
    141200  uses the US-ASCII 7-bit character set, and treats bytes with the high bit set
    142201  as invalid characters. That's why, e.g., the <command>ls</command> command
    143202  substitutes them with question marks in that locale. Also, an attempt to send
    144203  mail with such characters from Mutt or Pine results in non-RFC-conforming
    145   messages being sent (the charset in the outgoing mail is indicated as <quote>unknown
    146   8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only
     204  messages being sent (the charset in the outgoing mail is indicated as
     205  <computeroutput>unknown 8-bit</computeroutput>). It's suggested that you
     206  use the <literal>C</literal> locale only
    147207  if you are certain that you will never need 8-bit characters.</para>
    148208
    149 <!--
    150   <para>UTF-8 based locales are not supported well by many programs.
    151   Work is in progress to document and, if possible, fix such problems, see
    152   <ulink url="&blfs-book;introduction/locale-issues.html"/>.</para>
    153 -->
    154 
    155209</sect1>
  • chapter09/network.xml

    r5e67aa3 r33a9421  
    6363    the interfaces up correctly.</para>
    6464
    65     <para>If the <envar>ONBOOT</envar> variable is set to <quote>yes</quote> the
     65    <para>If the <envar>ONBOOT</envar> variable is set to <literal>yes</literal> the
    6666    System V network script will bring up the Network Interface Card (NIC) during
    67     the system boot process. If set to anything besides <quote>yes</quote>, the NIC
     67    the system boot process. If set to anything besides <literal>yes</literal>, the NIC
    6868    will be ignored by the network script and will not be started automatically.
    6969    Interfaces can be manually started or stopped with the
  • chapter09/networkd.xml

    r5e67aa3 r33a9421  
    5151    <filename class="extension">.network</filename> files. For detailed
    5252    descriptions and example contents of these configuration files, consult
    53     the <filename>systemd-link(5)</filename>,
    54     <filename>systemd-netdev(5)</filename> and
    55     <filename>systemd-network(5)</filename> manual pages.</para>
     53    the <ulink role='man' url='&man;systemd-link.5'>systemd-link(5)</ulink>,
     54    <ulink role='man' url='&man;systemd-netdev.5'>systemd-netdev(5)</ulink>,
     55    and <ulink role='man'
     56    url='&man;systemd-network.5'>systemd-network(5)</ulink> manual
     57    pages.</para>
    5658
    5759    <sect3 id="systemd-network-devices">
     
    9092        <listitem>
    9193          <para>
    92             Mask udev's .link file for the default policy:
     94            Mask udev's <filename class='extension'>.link</filename> file
     95            for the default policy:
    9396<screen role="nodump"><userinput>ln -s /dev/null /etc/systemd/network/99-default.link</userinput></screen>
    9497          </para>
     
    97100        <listitem>
    98101          <para>
    99              Create a manual naming scheme, for example by naming the
    100              interfaces something like "internet0", "dmz0", or "lan0".
    101              To do that, create .link files in /etc/systemd/network/ that
    102              select an explicit name or a better naming scheme for your
    103              network interfaces. For example:
     102            Create a manual naming scheme, for example by naming the
     103            interfaces something like <literal>internet0</literal>,
     104            <literal>dmz0</literal>, or <literal>lan0</literal>.
     105            To do that, create <filename class='extension'>.link</filename>
     106            files in /etc/systemd/network/ that select an explicit name or a
     107            better naming scheme for your network interfaces. For example:
    104108          </para>
    105109
     
    114118
    115119          <para>
    116             See <filename>systemd.link(5)</filename> for more information.
     120            See <ulink role='man' url='&man;systemd.link.5'>systemd.link(5)</ulink> for more information.
    117121          </para>
    118122        </listitem>
     
    358362     domain) because they are handled by the
    359363     <systemitem class='library'>myhostname</systemitem> NSS module, read
    360      the man page <filename>nss-myhostname(8)</filename> for details.</para>
     364     the man page <ulink role='man'
     365     url='&man;nss-myhostname.8'>nss-myhostname(8)</ulink> for
     366     details.</para>
    361367
    362368     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
  • chapter09/systemd-custom.xml

    r5e67aa3 r33a9421  
    2222    entries commented out with the default settings indicated. This file is
    2323    where the log level may be changed as well as some basic logging settings.
    24     See the <filename>systemd-system.conf(5)</filename> manual page for details
    25     on each configuration option.</para>
     24    See the <ulink role='man'
     25    url='&man;systemd-system.conf.5'>systemd-system.conf(5)</ulink> manual
     26    page for details on each configuration option.</para>
    2627
    2728  </sect2>
     
    9091    files with the same name in
    9192    <filename class="directory">/usr/lib/tmpfiles.d</filename>. See
    92     <filename>tmpfiles.d(5)</filename> manual page for file format
    93     details.</para>
     93    <ulink role='man' url='&man;tmpfiles.d.5'>tmpfiles.d(5)</ulink> manual
     94    page for file format details.</para>
    9495
    9596    <para>
     
    136137EOF</userinput></screen>
    137138
    138      <para>See <filename>systemd.unit(5)</filename> manual page for more
     139     <para>See <ulink role='man'
     140     url='&man;systemd.unit.5'>systemd.unit(5)</ulink> manual page for more
    139141     information. After creating the configuration file, run
    140142     <userinput>systemctl daemon-reload</userinput> and <userinput>systemctl
     
    252254EOF</userinput></screen>
    253255
    254     <para>See the <filename>systemd-coredump(8)</filename>,
    255     <filename>coredumpctl(1)</filename>, and
    256     <filename>coredump.conf.d(5)</filename> manual pages for more
    257     information.</para>
     256    <para>See the <ulink role='man' url='&man;systemd-coredump.8'>systemd-coredump(8)</ulink>,
     257    <ulink role='man' url='&man;coredumpctl.1'>coredumpctl(1)</ulink>, and
     258    <ulink role='man'
     259    url='&man;coredump.conf.d.5'>coredump.conf.d(5)</ulink> manual pages for
     260    more information.</para>
    258261  </sect2>
    259262
  • chapter09/udev.xml

    r5e67aa3 r33a9421  
    130130      supported by a module. For example, the <emphasis>snd-fm801</emphasis>
    131131      driver supports PCI devices with vendor ID 0x1319 and device ID 0x0801,
    132       and has an alias of <quote>pci:v00001319d00000801sv*sd*bc04sc01i*</quote>.
     132      and has an alias of <literal>pci:v00001319d00000801sv*sd*bc04sc01i*</literal>.
    133133      For most devices, the bus driver exports the alias of the driver that
    134134      would handle the device via <systemitem
     
    136136      <filename>/sys/bus/pci/devices/0000:00:0d.0/modalias</filename> file
    137137      might contain the string
    138       <quote>pci:v00001319d00000801sv00001319sd00001319bc04sc01i00</quote>.
     138      <literal>pci:v00001319d00000801sv00001319sd00001319bc04sc01i00</literal>.
    139139      The default rules provided with udev will cause <command>udevd</command>
    140140      to call out to <command>/sbin/modprobe</command> with the contents of the
     
    226226      <literal>pre:</literal> dependencies, or a mixture of both
    227227      <literal>pre:</literal> and <literal>post:</literal> dependencies.  See
    228       the <filename>modprobe.d(5)</filename> manual page for more information
    229       on <quote>softdep</quote> syntax and capabilities.</para>
     228      the <ulink role='man' url='&man;modprobe.d.5'>modprobe.d(5)</ulink>
     229      manual page for more information on <quote>softdep</quote> syntax and
     230      capabilities.</para>
    230231
    231232      <para revision="sysv">If the module in question is not a wrapper and is
     
    301302      <para>This is due to the fact that udev, by design, handles uevents and
    302303      loads modules in parallel, and thus in an unpredictable order. This will
    303       never be <quote>fixed</quote>. You should not rely upon the kernel device
     304      never be <quote>fixed.</quote> You should not rely upon the kernel device
    304305      names being stable. Instead, create your own rules that make symlinks with
    305306      stable names based on some stable attributes of the device, such as a
  • chapter09/usage.xml

    r5e67aa3 r33a9421  
    3333    uses a run levels scheme. There are seven run levels, numbered 0 to 6.
    3434    (Actually, there are more run levels, but the others are for special cases and are
    35     generally not used. See <filename>init(8)</filename> for more details.)
     35    generally not used. See <ulink role='man'
     36    url='&man;init.8'>init(8)</ulink> for more details.)
    3637    Each one of the seven corresponds to actions the computer is supposed to
    3738    perform when it starts up or shuts down. The default run level is 3. Here are the
     
    4849    <note>
    4950       <para>
    50           Classically, run level 2 above was defined as
    51           "multi-user mode without networking", but this was only the case
    52           many years ago when multiple users could connect to a system via
    53           serial ports.  In today's environment it makes no sense, and
    54           we now say it is "reserved".
     51         Classically, run level 2 above was defined as <quote>multi-user
     52         mode without networking,</quote> but this was only the case
     53         many years ago when multiple users could connect to a system via
     54         serial ports.  In today's environment it makes no sense, and
     55         we now say it is <quote>reserved.</quote>
    5556       </para>
    5657    </note>
     
    342343  doubt, look in the <filename class="directory">/usr/share/keymaps</filename>
    343344  and <filename class="directory">/usr/share/consolefonts</filename> directories
    344   for valid keymaps and screen fonts. Read the <filename>loadkeys(1)</filename> and
    345   <filename>setfont(8)</filename> manual pages to determine the correct
    346   arguments for these programs.</para>
     345  for valid keymaps and screen fonts. Read the <ulink role='man'
     346  url='&man;loadkeys.1'>loadkeys(1)</ulink> and <ulink role='man'
     347  url='&man;setfont.8'>setfont(8)</ulink> manual pages to determine the
     348  correct arguments for these programs.</para>
    347349
    348350  <para>The <filename>/etc/sysconfig/console</filename> file should contain lines
    349   of the form: VARIABLE="value". The following variables are recognized:</para>
     351  of the form: <envar>VARIABLE=value</envar>. The following variables are recognized:</para>
    350352  <variablelist>
    351353
     
    355357        <para>This variable specifies the log level for kernel messages sent
    356358        to the console as set by <command>dmesg -n</command>. Valid levels are
    357         from "1" (no messages) to "8". The default level is "7".</para>
     359        from <literal>1</literal> (no messages) to <literal>8</literal>. The default level is <literal>7</literal>, which is quite verbose.</para>
    358360      </listitem>
    359361    </varlistentry>
     
    364366        <para>This variable specifies the arguments for the
    365367        <command>loadkeys</command> program, typically, the name of the keymap
    366         to load, e.g., <quote>it</quote>. If this variable is not set, the
     368        to load, e.g., <literal>it</literal>. If this variable is not set, the
    367369        bootscript will not run the <command>loadkeys</command> program,
    368370        and the default kernel keymap will be used.  Note that a few keymaps
     
    383385        is not completely satisfactory and a small adjustment has to be made. E.g.,
    384386        to include the Euro sign into a keymap that normally doesn't have it,
    385         set this variable to <quote>euro2</quote>.</para>
     387        set this variable to <literal>euro2</literal>.</para>
    386388      </listitem>
    387389    </varlistentry>
     
    392394        <para>This variable specifies the arguments for the
    393395        <command>setfont</command> program. Typically, this includes the font
    394         name, <quote>-m</quote>, and the name of the application character
     396        name, <literal>-m</literal>, and the name of the application character
    395397        map to load. E.g., in order to load the <quote>lat1-16</quote> font
    396398        together with the <quote>8859-1</quote> application character map
    397399        (appropriate in the USA),
    398400        <!-- because of the copyright sign -->
    399         set this variable to <quote>lat1-16 -m 8859-1</quote>.
     401        set this variable to <literal>lat1-16 -m 8859-1</literal>.
    400402        In UTF-8 mode, the kernel uses the application character map to
    401403        convert 8-bit key codes to UTF-8. Therefore
     
    409411      <term>UNICODE</term>
    410412      <listitem>
    411         <para>Set this variable to <quote>1</quote>, <quote>yes</quote>, or
    412         <quote>true</quote> in order to put the
     413        <para>Set this variable to <literal>1</literal>, <literal>yes</literal>, or
     414        <literal>true</literal> in order to put the
    413415        console into UTF-8 mode. This is useful in UTF-8 based locales and
    414416        harmful otherwise.</para>
     
    431433
    432434  <itemizedlist>
     435    <listitem>
     436      <para>
     437        We'll use <literal>C.UTF-8</literal> as the locale for interactive
     438        sessions in the Linux console in <xref role=','
     439        linkend='ch-config-locale'/> so we should set
     440        <literal>UNICODE</literal> to <literal>1</literal>.  And the console
     441        fonts shipped by the <application>Kbd</application> package
     442        containing the glyphs for all characters from the program messages
     443        in the <literal>C.UTF-8</literal> locale are
     444        <filename>LatArCyrHeb*.psfu.gz</filename>,
     445        <filename>LatGrkCyr*.psfu.gz</filename>,
     446        <filename>Lat2-Terminus16.psfu.gz</filename>, and
     447        <filename>pancyrillic.f16.psfu.gz</filename> in
     448        <filename class='directory'>/usr/share/consolefonts</filename> (the
     449        other shipped console fonts lack glyphs of some characters like the
     450        Unicode left/right quotation marks and the Unicode English dash).
     451        So set one of them, for example
     452        <filename>Lat2-Terminus16.psfu.gz</filename> as the default console
     453        font:
     454      </para>
     455
     456      <!-- We are using 'nodump' for the generic setting, but not for an
     457           example (see below).  This is deliberate to keep the
     458           compatibility with jhalfs.  -->
     459<screen role='nodump'><userinput>cat &gt; /etc/sysconfig/console &lt;&lt; "EOF"
     460<literal># Begin /etc/sysconfig/console
     461
     462UNICODE="1"
     463FONT="Lat2-Terminus16"
     464
     465# End /etc/sysconfig/console</literal>
     466EOF</userinput></screen>
     467
     468    </listitem>
    433469
    434470    <listitem>
     
    525561      characters, or two ASCII characters are composed together. However, in
    526562      UTF-8 mode it is a problem; e.g., for the Greek language, where one
    527       sometimes needs to put an accent on the letter <quote>alpha</quote>.
     563      sometimes needs to put an accent on the letter α.
    528564      The solution is either to avoid the use of UTF-8, or to install the
    529565      X window system, which doesn't have this limitation, in its input
  • chapter10/fstab.xml

    r5e67aa3 r33a9421  
    5757  class="partition">sda5</filename>, and <systemitem
    5858  class="filesystem">ext4</systemitem>. For details on the six
    59   fields in this file, see <filename>fstab(5)</filename>.</para>
     59  fields in this file, see <ulink role='man' url='&man;fstab.5'>fstab(5)</ulink>.</para>
    6060
    6161  <para>Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs,
  • chapter10/grub.xml

    r5e67aa3 r33a9421  
    190190    </note>
    191191
    192 <!-- This does not seem to be true any more
    193     <note><para><application>grub-install</application> is a script and calls another
    194     program, grub-probe, that may fail with a message "cannot stat `/dev/root'".
    195     If so, create a temporary symbolic link from your root partition to /dev/root:</para>
    196 
    197 <screen role="nodump"><userinput>ln -sv /dev/sda2 /dev/root</userinput></screen>
    198 
    199     <para>The symbolic link will only be present until the system is rebooted.
    200     The link is only needed for the installation procedure.
    201     </para></note>
    202 -->
    203192  </sect2>
    204193
  • chapter10/kernel.xml

    r5e67aa3 r33a9421  
    305305    documentation in the <filename
    306306    class="directory">linux-&linux-version;/Documentation</filename> directory.
    307     Also, <filename>modprobe.d(5)</filename> may be of interest.</para>
     307    Also, <ulink role='man' url='&man;modprobe.d.5'>modprobe.d(5)</ulink>
     308    may be of interest.</para>
    308309
    309310    <para>Unless module support has been disabled in the kernel configuration,
  • general.ent

    r5e67aa3 r33a9421  
    124124<!ENTITY pypi-home       "https://pypi.org/project">
    125125<!ENTITY pypi-src        "https://pypi.org/packages/source">
     126<!ENTITY man             "https://man.archlinux.org/man/">
    126127
    127128<!ENTITY root            "<systemitem class='username'>root</systemitem>">
  • packages.ent

    r5e67aa3 r33a9421  
    1414-->
    1515
    16 <!ENTITY acl-version "2.3.1">
    17 <!ENTITY acl-size "348 KB">
     16<!ENTITY acl-version "2.3.2">
     17<!ENTITY acl-size "363 KB">
    1818<!ENTITY acl-url "&savannah;/releases/acl/acl-&acl-version;.tar.xz">
    19 <!ENTITY acl-md5 "95ce715fe09acca7c12d3306d0f076b2">
     19<!ENTITY acl-md5 "590765dee95907dbc3c856f7255bd669">
    2020<!ENTITY acl-home "&savannah-nongnu;/projects/acl">
    2121<!ENTITY acl-fin-du "6.1 MB">
     
    6666<!ENTITY bc-fin-sbu "less than 0.1 SBU">
    6767
    68 <!ENTITY binutils-version "2.41">
    69 <!ENTITY binutils-size "26,139 KB">
     68<!ENTITY binutils-version "2.42">
     69<!ENTITY binutils-size "26,922 KB">
    7070<!ENTITY binutils-url "https://sourceware.org/pub/binutils/releases/binutils-&binutils-version;.tar.xz">
    71 <!ENTITY binutils-md5 "256d7e0ad998e423030c84483a7c1e30">
     71<!ENTITY binutils-md5 "a075178a9646551379bfb64040487715">
    7272<!ENTITY binutils-home "&gnu-software;binutils/">
    7373<!ENTITY binutils-tmpp1-du "647 MB">
     
    318318<!ENTITY gzip-fin-sbu "0.3 SBU">
    319319
    320 <!ENTITY iana-etc-version "20240117">
    321 <!ENTITY iana-etc-size "596 KB">
     320<!ENTITY iana-etc-version "20240125">
     321<!ENTITY iana-etc-size "589 KB">
    322322<!ENTITY iana-etc-url "https://github.com/Mic92/iana-etc/releases/download/&iana-etc-version;/iana-etc-&iana-etc-version;.tar.gz">
    323 <!ENTITY iana-etc-md5 "215feb4b55043a6c18e84a5ed58b705f">
     323<!ENTITY iana-etc-md5 "aed66d04de615d76c70890233081e584">
    324324<!ENTITY iana-etc-home "https://www.iana.org/protocols">
    325325<!ENTITY iana-etc-fin-du "4.8 MB">
     
    354354<!ENTITY jinja2-url "&pypi-src;/J/Jinja2/Jinja2-&jinja2-version;.tar.gz">
    355355<!ENTITY jinja2-md5 "caf5418c851eac59e70a78d9730d4cea">
    356 <!ENTITY jinja2-home "https://jinja.palletsprojects.com/en/3.0.x/">
     356<!ENTITY jinja2-home "https://jinja.palletsprojects.com/en/3.1.x/">
    357357<!ENTITY jinja2-fin-du "3.4 MB">
    358358<!ENTITY jinja2-fin-sbu "less than 0.1 SBU">
     
    432432<!ENTITY linux-major-version "6">
    433433<!ENTITY linux-minor-version "7">
    434 <!ENTITY linux-patch-version "1">
     434<!ENTITY linux-patch-version "2">
    435435<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
    436436<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
    437 <!ENTITY linux-size "138,096 KB">
     437<!ENTITY linux-size "138,085 KB">
    438438<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
    439 <!ENTITY linux-md5 "d8a7394e0e349dd373e9722e141c8b61">
     439<!ENTITY linux-md5 "62b0a6c979a54569295d34ed57f47875">
    440440<!ENTITY linux-home "https://www.kernel.org/">
    441441<!-- measured for 6.5.3 / gcc-13.2.0 on x86_64 with -j4 : minimum is
     
    540540<!ENTITY ninja-fin-sbu "0.3 SBU">
    541541
    542 <!ENTITY openssl-version "3.2.0">
    543 <!ENTITY openssl-size "17,284 KB">
     542<!ENTITY openssl-version "3.2.1">
     543<!ENTITY openssl-size "17,318 KB">
    544544<!ENTITY openssl-url "https://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
    545 <!ENTITY openssl-md5 "7903549a14abebc5c323ce4e85f2cbb2">
     545<!ENTITY openssl-md5 "c239213887804ba00654884918b37441">
    546546<!ENTITY openssl-home "https://www.openssl.org/">
    547547<!ENTITY openssl-fin-du "587 MB">
     
    766766<!ENTITY xml-parser-fin-sbu "less than 0.1 SBU">
    767767
    768 <!ENTITY xz-version "5.4.5">
    769 <!ENTITY xz-size "1,642 KB">
    770 <!ENTITY xz-url "https://tukaani.org/xz/xz-&xz-version;.tar.xz">
    771 <!ENTITY xz-md5 "1d33e0be05c53e7a5641acf5c8b35fdd">
     768<!ENTITY xz-version "5.4.6">
     769<!ENTITY xz-size "1,645 KB">
     770<!ENTITY xz-url "https://github.com/tukaani-project/xz/releases/download/v&xz-version;/xz-&xz-version;.tar.xz">
     771<!ENTITY xz-md5 "7ade7bd1181a731328f875bec62a9377">
    772772<!ENTITY xz-home "https://tukaani.org/xz">
    773773<!ENTITY xz-tmp-du "22 MB">
     
    776776<!ENTITY xz-fin-sbu "0.1 SBU">
    777777
    778 <!ENTITY zlib-version "1.3">
    779 <!ENTITY zlib-size "1,461 KB">
     778<!ENTITY zlib-version "1.3.1">
     779<!ENTITY zlib-size "1,478 KB">
    780780<!-- DO NOT remove "fossils"!
    781781     The upstream removes https://zlib.net/zlib-&zlib-version;.tar.xz
     
    783783     Unfortunately there is no .xz files in fossils directory.  -->
    784784<!ENTITY zlib-url "https://zlib.net/fossils/zlib-&zlib-version;.tar.gz">
    785 <!ENTITY zlib-md5 "60373b133d630f74f4a1f94c1185a53f">
     785<!ENTITY zlib-md5 "9855b6d802d7fe5b7bd5b196a2271655">
    786786<!ENTITY zlib-home "https://zlib.net/">
    787787<!ENTITY zlib-fin-du "6.2 MB">
  • part3intro/toolchaintechnotes.xml

    r5e67aa3 r33a9421  
    5757      <varlistentry><term>The build</term><listitem>
    5858        <para>is the machine where we build programs. Note that this machine
    59         is also referred to as the <quote>host</quote>.</para></listitem>
     59        is also referred to as the <quote>host.</quote></para></listitem>
    6060      </varlistentry>
    6161
  • patches.ent

    r5e67aa3 r33a9421  
    22
    33<!-- Start of Common Patches -->
     4
     5<!ENTITY bash-upstream-fixes-patch "bash-&bash-version;-upstream_fixes-1.patch">
     6<!ENTITY bash-upstream-fixes-patch-md5 "2d1691a629c558e894dbb78ee6bf34ef">
     7<!ENTITY bash-upstream-fixes-patch-size "5.9 KB">
    48
    59<!ENTITY bzip2-docs-patch "bzip2-&bzip2-version;-install_docs-1.patch">
     
    1519<!ENTITY glibc-fhs-patch-size "2.8 KB">
    1620
    17 <!ENTITY glibc-upstream-fixes-patch "glibc-&glibc-version;-upstream_fixes-3.patch">
    18 <!ENTITY glibc-upstream-fixes-patch-md5 "545977e0b5c341ba945cf4b5de92f1e2">
    19 <!ENTITY glibc-upstream-fixes-patch-size "28 KB">
     21<!ENTITY glibc-upstream-fixes-patch "glibc-&glibc-version;-upstream_fixes-4.patch">
     22<!ENTITY glibc-upstream-fixes-patch-md5 "66e843b00688c641c9bdda684db45b43">
     23<!ENTITY glibc-upstream-fixes-patch-size "36 KB">
    2024
    2125<!ENTITY kbd-backspace-patch "kbd-&kbd-version;-backspace-1.patch">
     
    2731<!ENTITY pkgconf-upstream-fix-patch-size "4 KB">
    2832
    29 <!ENTITY readline-fixes-patch "readline-&readline-version;-upstream_fixes-2.patch">
    30 <!ENTITY readline-fixes-patch-md5 "d2477ebe908cc99763d90dde7fd9549a">
    31 <!ENTITY readline-fixes-patch-size "5.7 KB">
     33<!ENTITY readline-fixes-patch "readline-&readline-version;-upstream_fixes-3.patch">
     34<!ENTITY readline-fixes-patch-md5 "9ed497b6cb8adcb8dbda9dee9ebce791">
     35<!ENTITY readline-fixes-patch-size "13 KB">
    3236
    3337<!ENTITY sysvinit-consolidated-patch "sysvinit-&sysvinit-version;-consolidated-1.patch">
  • prologue/standards.xml

    r5e67aa3 r33a9421  
    5050
    5151    <para>While it is possible to create a complete system that will pass the LSB
    52     certification tests "from scratch", this can't be done without many additional packages
     52    certification tests <quote>from scratch,</quote> this can't be done without many additional packages
    5353    that are beyond the scope of the LFS book.  Installation instructions for these
    5454    additional packages can be found in BLFS. </para>
  • prologue/typography.xml

    r5e67aa3 r33a9421  
    7575  <para>This format is used to encapsulate text that is optional.</para>
    7676
    77   <para><filename>passwd(5)</filename></para>
     77  <para><ulink role='man' url='&man;passwd.5'>passwd(5)</ulink></para>
    7878
    7979  <para>This format is used to refer to a specific manual (man) page. The number inside parentheses
     
    8282  those two man pages will be located at
    8383  <filename>/usr/share/man/man1/passwd.1</filename> and
    84   <filename>/usr/share/man/man5/passwd.5</filename>. When the book uses <filename>passwd(5)</filename> it is
     84  <filename>/usr/share/man/man5/passwd.5</filename>. When the book uses
     85  <ulink role='man' url='&man;/passwd.5'>passwd(5)</ulink> it is
    8586  specifically referring to <filename>/usr/share/man/man5/passwd.5</filename>.
    8687  <command>man passwd</command> will print the first man page it finds that
    87   matches <quote>passwd</quote>, which will be
     88  matches <quote>passwd,</quote> which will be
    8889  <filename>/usr/share/man/man1/passwd.1</filename>. For this example, you will
    8990  need to run <command>man 5 passwd</command> in order to read the page
    9091  being specified. Note that most man pages do not have duplicate
    9192  page names in different sections. Therefore, <command>man <replaceable>&lt;program
    92   name&gt;</replaceable></command> is generally sufficient.</para>
     93  name&gt;</replaceable></command> is generally sufficient.  In the LFS
     94  book these references to man pages are also hyperlinks, so clicking on
     95  such a reference will open the man page rendered in HTML from
     96  <ulink url='https://man.archlinux.org/'>Arch Linux manual
     97  pages</ulink>.</para>
    9398
    9499</sect1>
  • stylesheets/dump-commands.xsl

    r5e67aa3 r33a9421  
    1 <?xml version="1.0"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    3     xmlns:exsl="http://exslt.org/common"
    4     extension-element-prefixes="exsl"
    5     version="1.0">
     3                xmlns:exsl="http://exslt.org/common"
     4                extension-element-prefixes="exsl"
     5                version="1.0">
    66
    77<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
    88
    99  <xsl:variable name="newline">
    10     <xsl:text>
    11 </xsl:text>
     10    <xsl:text>&#xA;</xsl:text>
    1211  </xsl:variable>
    1312
  • stylesheets/lfs-xsl/chunk-slave.xsl

    r5e67aa3 r33a9421  
    1010  <!-- Upstream XHTML presentation templates -->
    1111  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
     12
     13  <xsl:param name="chunker.output.method" select="'xml'"/>
     14  <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
     15  <xsl:param name="chunker.output.media-type" select="'application/xhtml+xml'"/>
     16  <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
     17  <xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
     18  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
     19  <xsl:param name="chunker.output.indent" select="'no'"/>
    1220
    1321  <!-- Including our customized elements templates -->
     
    3139  <xsl:param name="ulink.target" select="''"/>
    3240  <xsl:param name="css.decoration" select="0"/>
    33 
    34   <!-- No XML declaration -->
    35   <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    3641
    3742  <!-- Control generation of ToCs and LoTs -->
  • stylesheets/lfs-xsl/lfs.css

    r5e67aa3 r33a9421  
    11/* Global settings */
    22body {
    3   font-family: verdana, tahoma, helvetica, arial, sans-serif;
     3  font-family: verdana, tahoma, arial, sans-serif;
    44  text-align: left;
    55  background: #fff;
     
    88  padding: 0;
    99  font-size: 1em;
    10   line-height: 1.2em
     10  line-height: 1.2em;
    1111}
    1212
     
    3939}
    4040
    41 
    42 /* Sections */
    43 div.sect1, div.appendix {
    44   padding-left: .3em;
     41/* Section titles */
     42h1.sect1, h1.preface, h1.part, h1.chapter, h1.appendix, .glossary h1, .index h1
     43 {
     44  background: #f5f6f7;
     45  border-bottom: .1em solid #dbddec;
     46  margin-bottom:1em;
     47  margin-top: 0;
     48  padding: .4em;
     49}
     50
     51/* Scrolling parts
     52   The header is taller for sect1 and chapter pages than on the
     53   other pages.  Since we want fixed boxes, their top has to be calculated
     54   by trial and errors to fit below the static header box.*/
     55
     56div.sect1, div.chapter, div.appendix, div.wrap {
     57  top: 11.55em;
     58}
     59div.preface, div.part, .index div.index {
     60  top: 10.15em;
     61}
     62div.sect1, div.appendix, div.preface, div.part, div.chapter, div.wrap, .index div.index {
     63/*  padding-left: .3em;*/
     64  overflow:auto;
     65  height: auto;
     66  position: fixed;
     67  left:1em;
     68  right:1em;
     69  bottom: 1em;
     70  border-bottom: 1em solid #dbddec;
    4571}
    4672
     
    6490  border-bottom: 0.2em solid #dbddec;
    6591  padding-top: .1em;
     92/*  margin-top: 0;*/
     93}
     94/*
     95.lfs .package p:first-child {
    6696  margin-top: 0;
    67 }
     97}*/
    6898
    6999.lfs .configuration {
     
    75105  background: #f5f6f7;
    76106  border-top: 0.2em solid #dbddec;
     107  border-bottom: 0.2em solid #dbddec;
    77108  padding-bottom: .1em;
    78   margin-bottom: 0;
    79 }
    80 
     109  margin-bottom: .5em;
     110}
    81111
    82112/* Headers */
     
    97127}
    98128
    99 .preface h1, .part h1, .chapter h1, .appendix h1, .index h1, .sect1 h1, .glossary h1 {
    100   background: #f5f6f7;
    101   border-bottom: .1em solid #dbddec;
    102   margin-bottom: 1em;
    103   margin-top: 0;
    104   padding: .4em;
    105 }
    106 
    107 .sect1 h1, .appendix h1 {
    108   margin-left: -.2em;
    109 }
    110 
    111129.wrap h1 {
    112130  background: #f5f6f7;
     
    158176
    159177div.navheader {
    160   border-bottom: 1px solid #dbddec;
    161    position: sticky;
    162    top: 0;
    163 }
    164 
     178  border-bottom: .1em solid #dbddec;
     179}
     180
     181/* no need for a footer now that the header is always visible */
    165182div.navfooter {
    166   border-top: 1px solid #dbddec;
     183  display:none;
     184}
     185
     186/* Except for the first page (TOC), where the bottom is the only
     187   place where navigation is displayed. */
     188
     189div.book + div.navfooter {
     190  display:block
    167191}
    168192
     
    180204
    181205div.navheader ul, div.navfooter ul {
    182   padding: .2em .5em .5em 0;
     206  padding: .2em .5em .5em .5em; /*top right bottom left*/
    183207  margin: .5em 0;
    184208  position: relative;
     
    197221  text-align: left;
    198222  padding: 0.2em 1em;
    199   margin-left: 6px;
     223  margin-left: .4em;
    200224}
    201225
     
    204228  display: block;
    205229  text-align: right;
    206   right: 5px;
    207   padding: 0.2em 0.5em;
    208   margin-right: 7px;
     230  right: 0;
     231  padding: 0.2em 1em;
     232  margin-right: .4em;
    209233}
    210234
     
    212236div.navheader ul li.next p, div.navfooter ul li.next p {
    213237  padding: 0;
    214   margin: 1px 0px;
     238  margin: .1em 0;
    215239}
    216240
     
    219243  text-align: center;
    220244  padding: 0;
    221   margin: 0px auto;
     245  margin: 0 auto;
    222246  display: block;
    223247  color: #dbddec;
  • stylesheets/lfs-xsl/nochunks.xsl

    r5e67aa3 r33a9421  
    1111  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
    1212
     13  <xsl:output method="xml"
     14              encoding="UTF-8"
     15              media-type="application/xhtml+xml"
     16              doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
     17              doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
     18              omit-xml-declaration="yes"
     19              indent="no" />
    1320  <!-- Include our customized templates -->
    1421  <xsl:include href="common.xsl"/>
  • stylesheets/lfs-xsl/pdf.xsl

    r5e67aa3 r33a9421  
    5454       See pdf/lfs-mixed.xsl.
    5555       Note: the argument in select= is a zero-width space
    56        (unicode 200b, encoded in utf-8)-->
    57   <xsl:param name="ulink.hyphenate" select="''"/>
     56       (unicode 200b)-->
     57  <xsl:param name="ulink.hyphenate" select="'&#x200B;'"/>
    5858
    5959  <!-- List of characters to allow ulink URLs, and supported inline tags,
  • stylesheets/lfs-xsl/profile.xsl

    r5e67aa3 r33a9421  
    1919  <!-- Generate DocBook instance with correct DOCTYPE -->
    2020  <xsl:output method="xml"
     21              encoding="UTF-8"
    2122              doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
    2223              doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
  • stylesheets/lfs-xsl/xhtml/lfs-sections.xsl

    r5e67aa3 r33a9421  
    1212
    1313    <!-- preface:
    14            Output non sect1 child elements before the TOC -->
     14         Output non sect1 child elements before the TOC
     15         Output title outside of the <div> because we want to be able to
     16         use it at a fixed position -->
    1517    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
    1618  <xsl:template match="preface">
    1719    <xsl:call-template name="id.warning"/>
     20    <xsl:call-template name="preface.titlepage"/>
     21    <xsl:call-template name="component.separator"/>
    1822    <div>
    1923      <xsl:apply-templates select="." mode="class.attribute"/>
     
    2731        </xsl:attribute>
    2832      </xsl:if>
    29       <xsl:call-template name="component.separator"/>
    30       <xsl:call-template name="preface.titlepage"/>
    3133      <xsl:apply-templates/>
    3234      <xsl:variable name="toc.params">
     
    4547  </xsl:template>
    4648
     49    <!-- part:
     50         Output non sect1 child elements before the TOC
     51         Output title outside of the <div> because we want to be able to
     52         use it at a fixed position -->
     53    <!-- The original template is in {docbook-xsl}/xhtml/divisions.xsl -->
     54  <xsl:template match="part">
     55    <xsl:call-template name="id.warning"/>
     56
     57    <xsl:call-template name="part.titlepage"/>
     58
     59    <div>
     60      <xsl:apply-templates select="." mode="common.html.attributes"/>
     61      <xsl:call-template name="id.attribute">
     62        <xsl:with-param name="conditional" select="0"/>
     63      </xsl:call-template>
     64
     65      <xsl:apply-templates/>
     66      <xsl:variable name="toc.params">
     67        <xsl:call-template name="find.path.params">
     68          <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
     69        </xsl:call-template>
     70      </xsl:variable>
     71      <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
     72        <xsl:call-template name="division.toc"/>
     73      </xsl:if>
     74    </div>
     75  </xsl:template>
     76
    4777    <!-- chapter:
    48            Output non sect1 child elements before the TOC -->
     78           Output non sect1 child elements before the TOC
     79           Output title before div to be able to fix the title position -->
    4980    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
    5081  <xsl:template match="chapter">
    5182    <xsl:call-template name="id.warning"/>
     83    <xsl:call-template name="chapter.titlepage"/>
     84    <xsl:call-template name="component.separator"/>
    5285    <div>
    5386      <xsl:apply-templates select="." mode="class.attribute"/>
     
    6194        </xsl:attribute>
    6295      </xsl:if>
    63       <xsl:call-template name="component.separator"/>
    64       <xsl:call-template name="chapter.titlepage"/>
    6596      <xsl:apply-templates/>
    6697      <xsl:variable name="toc.params">
     
    79110  </xsl:template>
    80111
     112    <!-- appendix:
     113           Output non sect1 child elements before the TOC
     114           Output title before div to be able to fix the title position -->
     115    <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
     116  <xsl:template match="appendix">
     117
     118    <xsl:call-template name="id.warning"/>
     119
     120    <xsl:call-template name="appendix.titlepage"/>
     121
     122    <xsl:element name="div" namespace="http://www.w3.org/1999/xhtml">
     123      <xsl:call-template name="common.html.attributes">
     124        <xsl:with-param name="inherit" select="1"/>
     125      </xsl:call-template>
     126      <xsl:call-template name="id.attribute">
     127        <xsl:with-param name="conditional" select="0"/>
     128      </xsl:call-template>
     129
     130      <xsl:apply-templates/>
     131
     132      <xsl:variable name="toc.params">
     133        <xsl:call-template name="find.path.params">
     134          <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
     135        </xsl:call-template>
     136      </xsl:variable>
     137
     138      <xsl:if test="contains($toc.params, 'toc')">
     139        <xsl:call-template name="component.toc">
     140          <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
     141        </xsl:call-template>
     142      </xsl:if>
     143
     144    </xsl:element>
     145  </xsl:template>
     146
    81147    <!-- sect1:
    82148           When there is a role attibute, use it as the class value.
    83149           Process the SVN keywords found in sect1info as a footnote.
     150           Output title before the containing <div> so that the title
     151           can be at a fixed position.
    84152           Removed unused code. -->
    85153    <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
    86154  <xsl:template match="sect1">
     155    <xsl:call-template name="sect1.titlepage"/>
    87156    <div>
    88157      <xsl:choose>
     
    97166      </xsl:choose>
    98167      <xsl:call-template name="language.attribute"/>
    99       <xsl:call-template name="sect1.titlepage"/>
    100168      <xsl:apply-templates/>
    101169      <xsl:apply-templates select="sect1info" mode="svn-keys"/>
  • stylesheets/md5sum.xsl

    r5e67aa3 r33a9421  
    44
    55<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    6     version="1.0">
     6                version="1.0">
    77
    88  <xsl:output method="text"/>
     
    3232
    3333      <!-- Add a newline -->
    34       <xsl:text>
    35 </xsl:text>
     34      <xsl:text>&#xA;</xsl:text>
    3635
    3736    </xsl:if>
  • stylesheets/wget-list.xsl

    r5e67aa3 r33a9421  
    55
    66<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    7     version="1.0">
     7                version="1.0">
    88
    99  <xsl:output method="text"/>
     
    2929        </xsl:otherwise>
    3030      </xsl:choose>
    31       <xsl:text>
    32 </xsl:text>
     31      <xsl:text>&#xA;</xsl:text>
    3332    </xsl:if>
    3433  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.