Changeset c226182
- Timestamp:
- 08/03/2006 07:29:29 PM (18 years ago)
- 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
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
ra15464d rc226182 36 36 </listitem> 37 37 --> 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> 38 47 39 48 <listitem> -
chapter02/creatingfilesystem.xml
ra15464d rc226182 42 42 <screen role="nodump"><userinput>debugfs -R feature /dev/<replaceable><xxx></replaceable></userinput></screen> 43 43 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 47 49 system may have custom enhancements. In that case, to avoid later problems, 48 50 you should compile the stock E2fsprogs package and use the resulting binaries -
chapter02/mounting.xml
ra15464d rc226182 53 53 remounted.</para> 54 54 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><zzz></replaceable></userinput></screen> 60 61 <para>Replace <replaceable><zzz></replaceable> with the name of the 62 <systemitem class="filesystem">swap</systemitem> partition.</para> 63 55 64 <para>Now that there is an established place to work, it is time to 56 65 download the packages.</para> -
chapter03/patches.xml
ra15464d rc226182 68 68 69 69 <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> 70 78 <term>Diffutils Internationalization Fixes Patch - <token>&diffutils-i18n-patch-size;</token>:</term> 71 79 <listitem> … … 108 116 109 117 <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> 110 126 <term>Grep RedHat Fixes Patch - <token>&grep-fixes-patch-size;</token>:</term> 111 127 <listitem> … … 180 196 181 197 <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> 182 206 <term>Mktemp Tempfile Patch - <token>&mktemp-tempfile-patch-size;</token>:</term> 183 207 <listitem> … … 297 321 <para>Download: <ulink url="&patches-root;&vim-mandir-patch;"/></para> 298 322 <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> 299 331 </listitem> 300 332 </varlistentry> -
chapter06/db.xml
ra15464d rc226182 56 56 <title>Installation of Berkeley DB</title> 57 57 58 <para>Patch the package to eliminate potential trap events:</para> 59 60 <screen><userinput>patch -Np1 -i ../&db-fixes-patch;</userinput></screen> 61 58 62 <para>Prepare Berkeley DB for compilation:</para> 59 63 -
chapter06/e2fsprogs.xml
ra15464d rc226182 94 94 <para>To test the results, issue: 95 95 <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> 96 103 97 104 <para>Install the binaries and documentation:</para> -
chapter06/glibc.xml
ra15464d rc226182 58 58 <para>The glibc-libidn tarball adds support for internationalized domain 59 59 names (IDN) to Glibc. Many programs that support IDN require the full 60 <filename class="libraryfile">libidn</filename> library (see61 <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"/>). 62 62 Unpack the tarball from within the Glibc source directory:</para> 63 63 … … 69 69 70 70 <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> 71 76 72 77 <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop … … 168 173 <screen><userinput>make install</userinput></screen> 169 174 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 170 180 <para>The locales that can make the system respond in a different language 171 181 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 would182 but if some of them are missing, testsuites of the future packages would 173 183 skip important testcases.</para> 174 184 -
chapter06/grub.xml
ra15464d rc226182 43 43 44 44 <para>Start by applying the following patch to allow for better drive 45 detection, fix some <application>GCC 4.x</application> issues, and provide46 better SATA supportfor some disk controllers:</para>45 detection, fix some GCC 4.x issues, and provide better SATA support 46 for some disk controllers:</para> 47 47 48 48 <screen><userinput>patch -Np1 -i ../&grub-geometry-patch;</userinput></screen> -
chapter06/kernfs.xml
ra15464d rc226182 63 63 64 64 </sect2> 65 65 66 66 <sect2 id="ch-system-kernfsmount"> 67 67 <title>Mounting Virtual Kernel File Systems</title> -
chapter06/linux-libc-headers.xml
ra15464d rc226182 43 43 which was designed to maintain an API stable version of the Linux 44 44 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> 45 50 46 51 <para>Install the header files:</para> -
chapter06/udev.xml
ra15464d rc226182 74 74 <userinput>make test</userinput>.</para> 75 75 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 76 79 <para>Install the package:</para> 77 80 -
chapter06/vim.xml
ra15464d rc226182 59 59 60 60 <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> 61 67 62 68 <para>Finally, change the default location of the … … 189 195 <note> 190 196 <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 207 set spell</literal></screen> 208 209 <para>For more information, see the appropriate README file located 210 at the the URL above.</para> 193 211 </note> 194 212 -
chapter07/network.xml
ra15464d rc226182 49 49 Udev rules similar to the following:</para> 50 50 51 <screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules << "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 > /etc/udev/rules.d/26-network.rules << EOF 52 <literal>ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>00:e0:4c:12:34:56</replaceable>", \ 53 NAME="<replaceable>realtek</replaceable>" 54 ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>", \ 55 NAME="<replaceable>intel</replaceable>"</literal> 56 EOF</userinput></screen> 61 57 62 58 <!-- Yes, I know that VLANs are beyond BLFS. This is not the reason to get them 63 59 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 65 68 <para>If you are going to use the bus position as a key, create 66 69 Udev rules similar to the following:</para> 67 70 68 <screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules << "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 > /etc/udev/rules.d/26-network.rules << EOF 72 <literal>ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>", ID=="<replaceable>0000:00:0c.0</replaceable>", \ 73 NAME="<replaceable>realtek</replaceable>" 74 ACTION=="add", SUBSYSTEM=="net", BUS=="<replaceable>pci</replaceable>", ID=="<replaceable>0000:00:0d.0</replaceable>", \ 75 NAME="<replaceable>intel</replaceable>"</literal> 71 76 EOF</userinput></screen> 72 77 … … 79 84 of <quote>eth0</quote> in the network interface configuration files 80 85 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> 81 109 82 110 </sect2> -
chapter07/symlinks.xml
ra15464d rc226182 33 33 approach, create a file similar to the following:</para> 34 34 35 <screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules << "EOF"35 <screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules << EOF 36 36 <literal> 37 37 # 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" 38 SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \ 39 ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom" 40 SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \ 41 ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd" 40 42 </literal> 41 43 EOF</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> 42 51 43 52 <para>This way, the symlinks will stay correct even if you move the drives … … 50 59 <para>The SUBSYSTEM=="block" key is needed in order to avoid 51 60 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 53 62 <filename>/dev/srX</filename> devices, and sometimes to 54 63 <filename>/dev/sgX</filename>, which is wrong.</para> 55 64 56 65 <para>The second approach yields:</para> 57 66 58 <screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules << "EOF"67 <screen role="nodump"><userinput>cat >/etc/udev/rules.d/82-cdrom.rules << EOF 59 68 <literal> 60 69 # 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" 70 SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \ 71 ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom" 72 SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \ 73 ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd" 63 74 </literal> 64 75 EOF</userinput></screen> … … 106 117 <para>Then write rules that create the symlinks, e.g.:</para> 107 118 108 <screen role="nodump"><userinput>cat >/etc/udev/rules.d/83-duplicate_devs.rules << "EOF"119 <screen role="nodump"><userinput>cat >/etc/udev/rules.d/83-duplicate_devs.rules << EOF 109 120 <literal> 110 121 # 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" 122 KERNEL=="video*", SYSFS{idProduct}=="1910", SYSFS{idVendor}=="0d81", \ 123 SYMLINK+="webcam" 124 KERNEL=="video*", SYSFS{device}=="0x036f", SYSFS{vendor}=="0x109e", \ 125 SYMLINK+="tvtuner" 113 126 </literal> 114 127 EOF</userinput></screen> -
chapter08/fstab.xml
ra15464d rc226182 73 73 <screen>/dev/sda1 /media/flash vfat noauto,user,quiet,showexec,iocharset=utf8,codepage=866 0 0</screen> 74 74 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> 76 77 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> 78 80 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> 82 85 83 86 <para>It is also possible to specify default codepage and iocharset values for -
chapter08/kernel.xml
ra15464d rc226182 118 118 <para>Install the documentation for the Linux kernel:</para> 119 119 120 <screen> install -d /usr/share/doc/linux-&linux-version; &&121 cp -r Documentation/* /usr/share/doc/linux-&linux-version;</ screen>120 <screen><userinput>install -d /usr/share/doc/linux-&linux-version; && 121 cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput></screen> 122 122 123 123 <para>It is important to note that the files in the kernel source … … 154 154 155 155 </sect2> 156 157 156 158 157 <sect2 id="contents-kernel" role="content"> -
general.ent
ra15464d rc226182 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!ENTITY version "SVN-20060 731">3 <!ENTITY releasedate " July 31, 2006">2 <!ENTITY version "SVN-20060803"> 3 <!ENTITY releasedate "August 3, 2006"> 4 4 <!ENTITY milestone "6.3"> 5 5 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> -
patches.ent
ra15464d rc226182 29 29 30 30 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 31 36 <!ENTITY diffutils-i18n-patch "diffutils-&diffutils-version;-i18n-1.patch"> 32 37 <!ENTITY diffutils-i18n-patch-md5 "c8d481223db274a33b121fb8c25af9f7"> … … 52 57 <!ENTITY glibc-linux_types-patch-md5 "30ea59ae747478aa9315455543b5bb43"> 53 58 <!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"> 54 63 55 64 … … 94 103 <!ENTITY linux-utf8-patch-md5 "d67b53e1e99c782bd28d879e11ee16c3"> 95 104 <!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"> 96 110 97 111 … … 153 167 <!ENTITY util-linux-cramfs-patch-size "2.8 KB"> 154 168 169 155 170 <!ENTITY vim-fixes-patch "vim-&vim-version;-fixes-7.patch"> 156 171 <!ENTITY vim-fixes-patch-md5 "d274219566702b0bafcb83ab4685bbde"> … … 160 175 <!ENTITY vim-mandir-patch-md5 "b6426eb4192faba1e867ddd502323f5b"> 161 176 <!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 17 17 <xsl:template match="para"> 18 18 <xsl:choose> 19 <xsl:when test="child::ulink[@url=' ']"/> 19 20 <xsl:when test="./@remap='verbatim'"> 20 21 <fo:block wrap-option="no-wrap" … … 255 256 </xsl:template> 256 257 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 <= $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 < '1000'"> 293 <xsl:value-of select="$total"/> 294 <xsl:text> KB</xsl:text> 295 </xsl:when> 296 <xsl:when test="$total > '1000' and $total < '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 257 311 </xsl:stylesheet> -
stylesheets/pdf/lfs-pagesetup.xsl
ra15464d rc226182 110 110 <xsl:param name="footer.rule" select="0"></xsl:param> 111 111 <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> 112 117 113 118 <!-- Dropping a blank page -->
Note:
See TracChangeset
for help on using the changeset viewer.