Changeset c226182


Ignore:
Timestamp:
08/03/2006 07:29:29 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
bfa508ae
Parents:
a15464d
Message:

Ported updates from 6.2 branch.
Small tags fixes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7758 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
20 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    ra15464d rc226182  
    3636    </listitem>
    3737-->
     38
     39    <listitem>
     40      <para>2006-08-03</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[manuel] - Ported updates from 6.2 branch.</para>
     44        </listitem>
     45      </itemizedlist>
     46    </listitem>
    3847
    3948    <listitem>
  • chapter02/creatingfilesystem.xml

    ra15464d rc226182  
    4242<screen role="nodump"><userinput>debugfs -R feature /dev/<replaceable>&lt;xxx&gt;</replaceable></userinput></screen>
    4343
    44     <para>If the output contains features other than: <option>dir_index</option>;
    45     <option>filetype</option>; <option>large_file</option>;
    46     <option>resize_inode</option> or <option>sparse_super</option> then your host
     44    <para>If the output contains features other than
     45    <option>has_joural</option>, <option>dir_index</option>,
     46    <option>filetype</option>, <option>large_file</option>,
     47    <option>resize_inode</option>, <option>sparse_super</option> or
     48    <option>needs_recovery</option>, then your host
    4749    system may have custom enhancements.  In that case, to avoid later problems,
    4850    you should compile the stock E2fsprogs package and use the resulting binaries
  • chapter02/mounting.xml

    ra15464d rc226182  
    5353  remounted.</para>
    5454
     55  <para>If you are using a <systemitem
     56  class="filesystem">swap</systemitem> partition, ensure that it is enabled
     57  using the <command>swapon</command> command:</para>
     58
     59<screen role="nodump"><userinput>/sbin/swapon -v /dev/<replaceable>&lt;zzz&gt;</replaceable></userinput></screen>
     60
     61  <para>Replace <replaceable>&lt;zzz&gt;</replaceable> with the name of the
     62  <systemitem class="filesystem">swap</systemitem> partition.</para>
     63
    5564  <para>Now that there is an established place to work, it is time to
    5665  download the packages.</para>
  • chapter03/patches.xml

    ra15464d rc226182  
    6868
    6969    <varlistentry>
     70      <term>Database (Berkeley) Upstream Fixes Patch - <token>&db-fixes-patch-size;</token>:</term>
     71      <listitem>
     72        <para>Download: <ulink url="&patches-root;&db-fixes-patch;"/></para>
     73        <para>MD5 sum: <literal>&db-fixes-patch-md5;</literal></para>
     74      </listitem>
     75    </varlistentry>
     76
     77    <varlistentry>
    7078      <term>Diffutils Internationalization Fixes Patch - <token>&diffutils-i18n-patch-size;</token>:</term>
    7179      <listitem>
     
    108116
    109117    <varlistentry>
     118      <term>Glibc Inotify Syscall Functions Patch - <token>&glibc-inotify-patch-size;</token>:</term>
     119      <listitem>
     120        <para>Download: <ulink url="&patches-root;&glibc-inotify-patch;"/></para>
     121        <para>MD5 sum: <literal>&glibc-inotify-patch-md5;</literal></para>
     122      </listitem>
     123    </varlistentry>
     124
     125    <varlistentry>
    110126      <term>Grep RedHat Fixes Patch - <token>&grep-fixes-patch-size;</token>:</term>
    111127      <listitem>
     
    180196
    181197    <varlistentry>
     198      <term>Linux Libc Headers Inotify Patch - <token>&linux-inotify-patch-size;</token>:</term>
     199      <listitem>
     200        <para>Download: <ulink url="&patches-root;&linux-inotify-patch;"/></para>
     201        <para>MD5 sum: <literal>&linux-inotify-patch-md5;</literal></para>
     202      </listitem>
     203    </varlistentry>
     204
     205    <varlistentry>
    182206      <term>Mktemp Tempfile Patch - <token>&mktemp-tempfile-patch-size;</token>:</term>
    183207      <listitem>
     
    297321        <para>Download: <ulink url="&patches-root;&vim-mandir-patch;"/></para>
    298322        <para>MD5 sum: <literal>&vim-mandir-patch-md5;</literal></para>
     323      </listitem>
     324    </varlistentry>
     325
     326    <varlistentry>
     327      <term>Vim Spellfile Patch - <token>&vim-spellfile-patch-size;</token>:</term>
     328      <listitem>
     329        <para>Download: <ulink url="&patches-root;&vim-spellfile-patch;"/></para>
     330        <para>MD5 sum: <literal>&vim-spellfile-patch-md5;</literal></para>
    299331      </listitem>
    300332    </varlistentry>
  • chapter06/db.xml

    ra15464d rc226182  
    5656    <title>Installation of Berkeley DB</title>
    5757
     58    <para>Patch the package to eliminate potential trap events:</para>
     59
     60<screen><userinput>patch -Np1 -i ../&db-fixes-patch;</userinput></screen>
     61
    5862    <para>Prepare Berkeley DB for compilation:</para>
    5963
  • chapter06/e2fsprogs.xml

    ra15464d rc226182  
    9494    <para>To test the results, issue:
    9595    <userinput>make check</userinput>.</para>
     96
     97    <para>One of the E2fsprogs tests will attempt to allocate 256 MB
     98    of memory. If you do not have significantly more RAM than this, it
     99    is recommended to enable sufficient swap space for the test. See
     100    <xref linkend="space-creatingfilesystem"/> and
     101    <xref linkend="space-mounting"/> for details on creating and enabling
     102    swap space.</para>
    96103
    97104    <para>Install the binaries and documentation:</para>
  • chapter06/glibc.xml

    ra15464d rc226182  
    5858    <para>The glibc-libidn tarball adds support for internationalized domain
    5959    names (IDN) to Glibc. Many programs that support IDN require the full
    60     <filename class="libraryfile">libidn</filename> library (see
    61     <ulink url="&blfs-root;view/svn/general/libidn.html"/>), not this add-on.
     60    <filename class="libraryfile">libidn</filename> library, not this add-on (see
     61    <ulink url="&blfs-root;view/svn/general/libidn.html"/>).
    6262    Unpack the tarball from within the Glibc source directory:</para>
    6363
     
    6969
    7070<screen><userinput>patch -Np1 -i ../&glibc-linux_types-patch;</userinput></screen>
     71
     72    <para>Add a header to define syscall functions for the inotify feature
     73    available in newer Linux kernels:</para>
     74
     75<screen><userinput>patch -Np1 -i ../&glibc-inotify-patch;</userinput></screen>
    7176
    7277    <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
     
    168173<screen><userinput>make install</userinput></screen>
    169174
     175   <para>Install the inotify header to the system header location:</para>
     176
     177<screen><userinput>cp -v ../glibc-&glibc-version;/sysdeps/unix/sysv/linux/inotify.h \
     178    /usr/include/sys</userinput></screen>
     179
    170180    <para>The locales that can make the system respond in a different language
    171181    were not installed by the above command. None of the locales are required,
    172     but, if some of them are misssing, testuites of the future packages would
     182    but if some of them are missing, testsuites of the future packages would
    173183    skip important testcases.</para>
    174184
  • chapter06/grub.xml

    ra15464d rc226182  
    4343
    4444    <para>Start by applying the following patch to allow for better drive
    45     detection, fix some <application>GCC 4.x</application> issues, and provide
    46     better SATA support for some disk controllers:</para>
     45    detection, fix some GCC 4.x issues, and provide better SATA support
     46    for some disk controllers:</para>
    4747
    4848<screen><userinput>patch -Np1 -i ../&grub-geometry-patch;</userinput></screen>
  • chapter06/kernfs.xml

    ra15464d rc226182  
    6363
    6464  </sect2>
    65  
     65
    6666  <sect2 id="ch-system-kernfsmount">
    6767    <title>Mounting Virtual Kernel File Systems</title>
  • chapter06/linux-libc-headers.xml

    ra15464d rc226182  
    4343    which was designed to maintain an API stable version of the Linux
    4444    headers.</para>
     45
     46    <para>Add a userspace header and syscall support for the inotify feature
     47    available in newer Linux kernels:</para>
     48
     49<screen><userinput>patch -Np1 -i ../&linux-inotify-patch;</userinput></screen>
    4550
    4651    <para>Install the header files:</para>
  • chapter06/udev.xml

    ra15464d rc226182  
    7474    <userinput>make test</userinput>.</para>
    7575
     76    <para>Note that the Udev testsuite will produce numerous messages in
     77    the host system's logs. These are harmless and can be ignored.</para>
     78
    7679    <para>Install the package:</para>
    7780
  • chapter06/vim.xml

    ra15464d rc226182  
    5959
    6060<screen><userinput>patch -Np1 -i ../&vim-mandir-patch;</userinput></screen>
     61
     62    <para>There is an issue introduced by one of the upstream patches that
     63    creates a problem downloading spellfiles via HTTP.  Until this is updated
     64    by the developers, the following patch fixes the problem:</para>
     65
     66<screen><userinput>patch -Np1 -i ../&vim-spellfile-patch;</userinput></screen>
    6167
    6268    <para>Finally, change the default location of the
     
    189195    <note>
    190196      <para>By default, Vim only installs spell files for the English language.
    191       To install spell files for your preferred language, please read the README
    192       file located here: <ulink url="ftp://ftp.vim.org/pub/vim/runtime/spell/" /></para>
     197      To install spell files for your preferred language, download the
     198      <filename>*.spl</filename> and optionally, the <filename>*.sug</filename>
     199      files for your language and character encoding from <ulink
     200      url="ftp://ftp.vim.org/pub/vim/runtime/spell/"/> and and save them to
     201      <filename class='directory'>/usr/share/vim/vim70/spell/</filename>.</para>
     202
     203      <para>To use these spell files, some configuration in
     204      <filename>/etc/vimrc</filename> is needed, e.g.:</para>
     205
     206<screen><literal>set spelllang=en,ru
     207set spell</literal></screen>
     208
     209      <para>For more information, see the appropriate README file located
     210      at the the URL above.</para>
    193211    </note>
    194212
  • chapter07/network.xml

    ra15464d rc226182  
    4949    Udev rules similar to the following:</para>
    5050
    51 <screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/26-network.rules &lt;&lt; "EOF"
    52 <literal>ACTION=="add", SUBSYSTEM=="net", DRIVER=="?*", SYSFS{address}=="<replaceable>00:e0:4c:12:34:56</replaceable>", NAME="<replaceable>realtek</replaceable>"
    53 ACTION=="add", SUBSYSTEM=="net", DRIVER=="?*", SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>", NAME="<replaceable>intel</replaceable>"</literal>
    54 EOF</userinput></screen>
    55 
    56     <para>The DRIVER=="?*" key prevents Udev from attempting to rename 8021Q
    57     VLAN interfaces (not available without the Vlan package from
    58     <ulink url="http://www.candelatech.com/~greear/vlan/"/>).
    59     This is necessary since VLANs have the same MAC address as
    60     the real network card.</para>
     51<screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/26-network.rules &lt;&lt; EOF
     52<literal>ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>00:e0:4c:12:34:56</replaceable>", \
     53    NAME="<replaceable>realtek</replaceable>"
     54ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>", \
     55    NAME="<replaceable>intel</replaceable>"</literal>
     56EOF</userinput></screen>
    6157
    6258<!-- Yes, I know that VLANs are beyond BLFS. This is not the reason to get them
    6359     incorrect by default when every distro does this right. -->
    64  
     60
     61    <note>
     62      <para>Although the examples in this book work properly, be aware
     63      that Udev does not recognize the backslash for line continuation.
     64      If modifying Udev rules with an editor, be sure to leave each rule
     65      on one physical line.</para>
     66    </note>
     67
    6568    <para>If you are going to use the bus position as a key, create
    6669    Udev rules similar to the following:</para>
    6770
    68 <screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/26-network.rules &lt;&lt; "EOF"
    69 <literal>ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>", ID=="<replaceable>0000:00:0c.0</replaceable>", NAME="<replaceable>realtek</replaceable>"
    70 ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>", ID=="<replaceable>0000:00:0d.0</replaceable>", NAME="<replaceable>intel</replaceable>"</literal>
     71<screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/26-network.rules &lt;&lt; EOF
     72<literal>ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>", ID=="<replaceable>0000:00:0c.0</replaceable>", \
     73    NAME="<replaceable>realtek</replaceable>"
     74ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>", ID=="<replaceable>0000:00:0d.0</replaceable>", \
     75    NAME="<replaceable>intel</replaceable>"</literal>
    7176EOF</userinput></screen>
    7277
     
    7984    of <quote>eth0</quote> in the network interface configuration files
    8085    below.</para>
     86
     87    <para>Note that the rules above don't work for every setup. For example,
     88    MAC-based rules break when bridges or VLANs are used, because bridges and
     89    VLANs have the same MAC address as the network card. One wants to rename
     90    only the network card interface, not the bridge or VLAN interface, but the
     91    example rule matches both. If you use such virtual interfaces, you have two
     92    potential solutions. One is to add the DRIVER=="?*" key after
     93    SUBSYSTEM=="net" in MAC-based rules which will stop matching the virtual
     94    interfaces.  This is known to fail with some older Ethernet cards because
     95    they don't have the DRIVER variable in the uevent and thus the rule does
     96    not match with such cards. Another solution is to switch to rules that use
     97    the bus position as a key.</para>
     98
     99    <para>The second known non-working case is with wireless cards using the
     100    MadWifi or HostAP drivers, because they create at least two interfaces with
     101    the same MAC address and bus position. For example, the Madwifi driver
     102    creates both an athX and a wifiX interface where X is a digit.  To
     103    differentiate these interfaces, add an appropriate KERNEL parameter such as
     104    KERNEL=="ath*" after SUBSYSTEM=="net".</para>
     105
     106    <para>There may be other cases where the rules above don't work. Currently,
     107    bugs on this topic are still being reported to Linux distributions, and no
     108    solution that covers every case is available.</para>
    81109
    82110  </sect2>
  • chapter07/symlinks.xml

    ra15464d rc226182  
    3333    approach, create a file similar to the following:</para>
    3434
    35 <screen role="nodump"><userinput>cat &gt;/etc/udev/rules.d/82-cdrom.rules &lt;&lt;"EOF"
     35<screen role="nodump"><userinput>cat &gt;/etc/udev/rules.d/82-cdrom.rules &lt;&lt; EOF
    3636<literal>
    3737# Custom CD-ROM symlinks
    38 SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
    39 SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"
     38SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \
     39    ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
     40SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \
     41    ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"
    4042</literal>
    4143EOF</userinput></screen>
     44
     45    <note>
     46      <para>Although the examples in this book work properly, be aware
     47      that Udev does not recognize the backslash for line continuation.
     48      If modifying Udev rules with an editor, be sure to leave each rule
     49      on one physical line.</para>
     50    </note>
    4251
    4352    <para>This way, the symlinks will stay correct even if you move the drives
     
    5059    <para>The SUBSYSTEM==&quot;block&quot; key is needed in order to avoid
    5160    matching SCSI generic devices. Without it, in the case with SCSI
    52     CD-ROMs, the symlinks will sometimes point to the correct 
     61    CD-ROMs, the symlinks will sometimes point to the correct
    5362    <filename>/dev/srX</filename> devices, and sometimes to
    5463    <filename>/dev/sgX</filename>, which is wrong.</para>
    55  
     64
    5665    <para>The second approach yields:</para>
    5766
    58 <screen role="nodump"><userinput>cat &gt;/etc/udev/rules.d/82-cdrom.rules &lt;&lt;"EOF"
     67<screen role="nodump"><userinput>cat &gt;/etc/udev/rules.d/82-cdrom.rules &lt;&lt; EOF
    5968<literal>
    6069# Custom CD-ROM symlinks
    61 SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom"
    62 SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd"
     70SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
     71    ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom"
     72SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
     73    ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd"
    6374</literal>
    6475EOF</userinput></screen>
     
    106117    <para>Then write rules that create the symlinks, e.g.:</para>
    107118
    108 <screen role="nodump"><userinput>cat &gt;/etc/udev/rules.d/83-duplicate_devs.rules &lt;&lt;"EOF"
     119<screen role="nodump"><userinput>cat &gt;/etc/udev/rules.d/83-duplicate_devs.rules &lt;&lt; EOF
    109120<literal>
    110121# Persistent symlinks for webcam and tuner
    111 KERNEL=="video*", SYSFS{idProduct}=="1910", SYSFS{idVendor}=="0d81", SYMLINK+="webcam"
    112 KERNEL=="video*", SYSFS{device}=="0x036f", SYSFS{vendor}=="0x109e", SYMLINK+="tvtuner"
     122KERNEL=="video*", SYSFS{idProduct}=="1910", SYSFS{idVendor}=="0d81", \
     123    SYMLINK+="webcam"
     124KERNEL=="video*", SYSFS{device}=="0x036f", SYSFS{vendor}=="0x109e", \
     125    SYMLINK+="tvtuner"
    113126</literal>
    114127EOF</userinput></screen>
  • chapter08/fstab.xml

    ra15464d rc226182  
    7373<screen>/dev/sda1    /media/flash vfat noauto,user,quiet,showexec,iocharset=utf8,codepage=866 0 0</screen>
    7474
    75   <note><para>In the latter case, the kernel emits the following message:</para>
     75  <note>
     76    <para>In the latter case, the kernel emits the following message:</para>
    7677
    77 <screen><computeroutput>FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!</computeroutput></screen>
     78<screen><computeroutput>FAT: utf8 is not a recommended IO charset for FAT filesystems,
     79    filesystem will be case sensitive!</computeroutput></screen>
    7880
    79   <para>This negative recommendation should be ignored, since all other values
    80   of the <quote>iocharset</quote> option result in wrong display of filenames in
    81   UTF-8 locales.</para></note>
     81    <para>This negative recommendation should be ignored, since all other values
     82    of the <quote>iocharset</quote> option result in wrong display of filenames in
     83    UTF-8 locales.</para>
     84  </note>
    8285
    8386  <para>It is also possible to specify default codepage and iocharset values for
  • chapter08/kernel.xml

    ra15464d rc226182  
    118118    <para>Install the documentation for the Linux kernel:</para>
    119119
    120 <screen>install -d /usr/share/doc/linux-&linux-version; &amp;&amp;
    121 cp -r Documentation/* /usr/share/doc/linux-&linux-version;</screen>
     120<screen><userinput>install -d /usr/share/doc/linux-&linux-version; &amp;&amp;
     121cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput></screen>
    122122
    123123    <para>It is important to note that the files in the kernel source
     
    154154
    155155  </sect2>
    156 
    157156
    158157  <sect2 id="contents-kernel" role="content">
  • general.ent

    ra15464d rc226182  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-20060731">
    3 <!ENTITY releasedate "July 31, 2006">
     2<!ENTITY version "SVN-20060803">
     3<!ENTITY releasedate "August 3, 2006">
    44<!ENTITY milestone "6.3">
    55<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
  • patches.ent

    ra15464d rc226182  
    2929
    3030
     31<!ENTITY db-fixes-patch "db-&db-version;-fixes-1.patch">
     32<!ENTITY db-fixes-patch-md5 "32b28d1d1108dfcd837fe10c4eb0fbad">
     33<!ENTITY db-fixes-patch-size "3.8 KB">
     34
     35
    3136<!ENTITY diffutils-i18n-patch "diffutils-&diffutils-version;-i18n-1.patch">
    3237<!ENTITY diffutils-i18n-patch-md5 "c8d481223db274a33b121fb8c25af9f7">
     
    5257<!ENTITY glibc-linux_types-patch-md5 "30ea59ae747478aa9315455543b5bb43">
    5358<!ENTITY glibc-linux_types-patch-size "1.1 KB">
     59
     60<!ENTITY glibc-inotify-patch "glibc-&glibc-version;-inotify-1.patch">
     61<!ENTITY glibc-inotify-patch-md5 "94f6d26ae50a0fe6285530fdbae90bbf">
     62<!ENTITY glibc-inotify-patch-size "1.4 KB">
    5463
    5564
     
    94103<!ENTITY linux-utf8-patch-md5 "d67b53e1e99c782bd28d879e11ee16c3">
    95104<!ENTITY linux-utf8-patch-size "11 KB">
     105
     106
     107<!ENTITY linux-inotify-patch "linux-libc-headers-&linux-libc-headers-version;-inotify-3.patch">
     108<!ENTITY linux-inotify-patch-md5 "8fd71a4bd3344380bd16caf2c430fa9b">
     109<!ENTITY linux-inotify-patch-size "4.7 KB">
    96110
    97111
     
    153167<!ENTITY util-linux-cramfs-patch-size "2.8 KB">
    154168
     169
    155170<!ENTITY vim-fixes-patch "vim-&vim-version;-fixes-7.patch">
    156171<!ENTITY vim-fixes-patch-md5 "d274219566702b0bafcb83ab4685bbde">
     
    160175<!ENTITY vim-mandir-patch-md5 "b6426eb4192faba1e867ddd502323f5b">
    161176<!ENTITY vim-mandir-patch-size "4.2 KB">
     177
     178<!ENTITY vim-spellfile-patch "vim-&vim-version;-spellfile-1.patch">
     179<!ENTITY vim-spellfile-patch-md5 "98e59e34cb6e16a8d4671247cebd64ee">
     180<!ENTITY vim-spellfile-patch-size "1.2 KB">
  • stylesheets/pdf/lfs-mixed.xsl

    ra15464d rc226182  
    1717 <xsl:template match="para">
    1818    <xsl:choose>
     19      <xsl:when test="child::ulink[@url=' ']"/>
    1920      <xsl:when test="./@remap='verbatim'">
    2021        <fo:block wrap-option="no-wrap"
     
    255256  </xsl:template>
    256257
     258    <!-- Total packages size calculation -->
     259  <xsl:template match="returnvalue">
     260    <xsl:call-template name="calculation">
     261     <xsl:with-param name="scope" select="../../variablelist"/>
     262    </xsl:call-template>
     263  </xsl:template>
     264
     265  <xsl:template name="calculation">
     266    <xsl:param name="scope"/>
     267    <xsl:param name="total">0</xsl:param>
     268    <xsl:param name="position">1</xsl:param>
     269    <xsl:variable name="tokens" select="count($scope/varlistentry)"/>
     270    <xsl:variable name="token" select="$scope/varlistentry[$position]/term/token"/>
     271    <xsl:variable name="size" select="substring-before($token,' KB')"/>
     272    <xsl:variable name="rawsize">
     273      <xsl:choose>
     274        <xsl:when test="contains($size,',')">
     275          <xsl:value-of select="concat(substring-before($size,','),substring-after($size,','))"/>
     276        </xsl:when>
     277        <xsl:otherwise>
     278          <xsl:value-of select="$size"/>
     279        </xsl:otherwise>
     280      </xsl:choose>
     281    </xsl:variable>
     282    <xsl:choose>
     283      <xsl:when test="$position &lt;= $tokens">
     284        <xsl:call-template name="calculation">
     285          <xsl:with-param name="scope" select="$scope"/>
     286          <xsl:with-param name="position" select="$position +1"/>
     287          <xsl:with-param name="total" select="$total + $rawsize"/>
     288        </xsl:call-template>
     289      </xsl:when>
     290      <xsl:otherwise>
     291        <xsl:choose>
     292          <xsl:when test="$total &lt; '1000'">
     293            <xsl:value-of select="$total"/>
     294            <xsl:text>  KB</xsl:text>
     295          </xsl:when>
     296          <xsl:when test="$total &gt; '1000' and $total &lt; '5000'">
     297            <xsl:value-of select="substring($total,1,1)"/>
     298            <xsl:text>,</xsl:text>
     299            <xsl:value-of select="substring($total,2)"/>
     300            <xsl:text>  KB</xsl:text>
     301          </xsl:when>
     302          <xsl:otherwise>
     303            <xsl:value-of select="round($total div 1024)"/>
     304            <xsl:text>  MB</xsl:text>
     305          </xsl:otherwise>
     306        </xsl:choose>
     307      </xsl:otherwise>
     308    </xsl:choose>
     309  </xsl:template>
     310
    257311</xsl:stylesheet>
  • stylesheets/pdf/lfs-pagesetup.xsl

    ra15464d rc226182  
    110110  <xsl:param name="footer.rule" select="0"></xsl:param>
    111111  <xsl:param name="marker.section.level" select="-1"></xsl:param>
     112  <xsl:attribute-set name="compact.list.item.spacing">
     113    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     114    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     115    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
     116  </xsl:attribute-set>
    112117
    113118    <!-- Dropping a blank page -->
Note: See TracChangeset for help on using the changeset viewer.