[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[27a023ce] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="pre-standards">
|
---|
| 9 | <?dbhtml filename="standards.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>LFS and Standards</title>
|
---|
| 12 |
|
---|
[a26951e] | 13 | <!--<sect2>
|
---|
| 14 | <title/> -->
|
---|
[27a023ce] | 15 |
|
---|
[2ca8941] | 16 | <para>The structure of LFS follows Linux standards as closely as
|
---|
[27a023ce] | 17 | possible. The primary standards are:</para>
|
---|
| 18 |
|
---|
| 19 | <itemizedlist>
|
---|
| 20 | <listitem>
|
---|
[fb66c4c] | 21 | <para><ulink url="https://pubs.opengroup.org/onlinepubs/9699919799/">
|
---|
[dce62d9] | 22 | POSIX.1-2008</ulink>.</para>
|
---|
[27a023ce] | 23 | </listitem>
|
---|
| 24 | <listitem>
|
---|
[08ee81f] | 25 | <para><ulink
|
---|
[fb66c4c] | 26 | url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html">
|
---|
[5b07f85] | 27 | Filesystem Hierarchy Standard (FHS) Version 3.0</ulink></para>
|
---|
[27a023ce] | 28 |
|
---|
| 29 | </listitem>
|
---|
| 30 | <listitem>
|
---|
[fb66c4c] | 31 | <para><ulink url="https://refspecs.linuxfoundation.org/lsb.shtml">Linux
|
---|
[ad1ccc7] | 32 | Standard Base (LSB) Version 5.0 (2015)</ulink></para>
|
---|
[27a023ce] | 33 |
|
---|
[af6ea19] | 34 | <para>The LSB has four separate specifications: Core, Desktop,
|
---|
[d77b09e] | 35 | Languages, and Imaging. Some parts of Core and Desktop
|
---|
[af6ea19] | 36 | specifications are architecture specific. There are also two trial
|
---|
[adb2579] | 37 | specifications: Gtk3 and Graphics. There's no architecture specific
|
---|
| 38 | parts for LoongArch, and on LoongArch Glibc has intentionally left out
|
---|
| 39 | some symbol versions required by the architecture independant part of
|
---|
| 40 | LSB Core. So we cannot satisfy the LSB architecture independant
|
---|
| 41 | parts, but we still use them as a reference.</para>
|
---|
[27a023ce] | 42 |
|
---|
[b64efa28] | 43 | <note><para>Many people do not agree with these requirements.
|
---|
| 44 | The main purpose of the LSB is to ensure that proprietary software
|
---|
| 45 | can be installed and run on a compliant system.
|
---|
[12c82b50] | 46 | Since LFS is source based, the user has complete control over what
|
---|
[b64efa28] | 47 | packages are desired; you may choose not to install some packages that
|
---|
[12c82b50] | 48 | are specified by the LSB.</para></note>
|
---|
[27a023ce] | 49 |
|
---|
| 50 | </listitem>
|
---|
| 51 | </itemizedlist>
|
---|
| 52 |
|
---|
[b64efa28] | 53 | <para>While it is possible to create a complete system that will pass the LSB
|
---|
[360fdfca] | 54 | certification tests <quote>from scratch,</quote> this can't be done without many additional packages
|
---|
[d77b09e] | 55 | that are beyond the scope of the LFS book. Installation instructions for some of these
|
---|
[b64efa28] | 56 | additional packages can be found in BLFS. </para>
|
---|
[27a023ce] | 57 |
|
---|
[a26951e] | 58 | <variablelist>
|
---|
| 59 | <bridgehead renderas="sect3">Packages supplied by LFS needed to
|
---|
[12c82b50] | 60 | satisfy the LSB Requirements</bridgehead>
|
---|
[a26951e] | 61 | <?dbfo list-presentation="list"?>
|
---|
| 62 | <?dbhtml list-presentation="table"?>
|
---|
| 63 |
|
---|
| 64 | <varlistentry>
|
---|
| 65 | <term><emphasis>LSB Core:</emphasis></term>
|
---|
| 66 | <listitem>
|
---|
[d77b09e] | 67 | <para>
|
---|
| 68 | Bash, Bc, Binutils, Coreutils, Diffutils, File, Findutils, Gawk,
|
---|
| 69 | GCC, Gettext, Glibc, Grep, Gzip, M4, Man-DB, Procps, Psmisc,
|
---|
| 70 | Sed, Shadow, <phrase revision='sysv'>SysVinit</phrase><phrase
|
---|
| 71 | revision='systemd'>Systemd</phrase>, Tar, Util-linux, Zlib
|
---|
| 72 | </para>
|
---|
[a26951e] | 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
| 75 |
|
---|
| 76 | <varlistentry>
|
---|
[f4e157a] | 77 | <term><emphasis>LSB Desktop:</emphasis></term>
|
---|
[a26951e] | 78 | <listitem>
|
---|
| 79 | <para>None</para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </varlistentry>
|
---|
| 82 |
|
---|
| 83 | <varlistentry>
|
---|
[d77b09e] | 84 | <term><emphasis>LSB Languages:</emphasis></term>
|
---|
[a26951e] | 85 | <listitem>
|
---|
[d77b09e] | 86 | <para>Perl</para>
|
---|
[a26951e] | 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
| 89 |
|
---|
| 90 | <varlistentry>
|
---|
[5b07f85] | 91 | <term><emphasis>LSB Imaging:</emphasis></term>
|
---|
[a26951e] | 92 | <listitem>
|
---|
| 93 | <para>None</para>
|
---|
| 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
| 96 |
|
---|
| 97 | <varlistentry>
|
---|
[5b07f85] | 98 | <term><emphasis>LSB Gtk3 and LSB Graphics (Trial Use):</emphasis></term>
|
---|
[a26951e] | 99 | <listitem>
|
---|
| 100 | <para>None</para>
|
---|
| 101 | </listitem>
|
---|
| 102 | </varlistentry>
|
---|
| 103 |
|
---|
| 104 | </variablelist>
|
---|
| 105 |
|
---|
[2ca8941] | 106 | <variablelist>
|
---|
[a26951e] | 107 | <bridgehead renderas="sect3">Packages supplied by BLFS needed to
|
---|
[12c82b50] | 108 | satisfy the LSB Requirements</bridgehead>
|
---|
[a26951e] | 109 | <?dbfo list-presentation="list"?>
|
---|
[2ca8941] | 110 | <?dbhtml list-presentation="table"?>
|
---|
[a26951e] | 111 |
|
---|
| 112 | <varlistentry>
|
---|
| 113 | <term><emphasis>LSB Core:</emphasis></term>
|
---|
| 114 | <listitem>
|
---|
[d77b09e] | 115 | <para>At, Batch (a part of At), BLFS Bash Startup Files, Cpio, Ed,
|
---|
| 116 | Fcrontab, LSB-Tools, NSPR, NSS, Linux-PAM, Pax, Sendmail
|
---|
| 117 | (or Postfix or Exim), Time
|
---|
[5b07f85] | 118 | </para>
|
---|
[a26951e] | 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry>
|
---|
[f4e157a] | 123 | <term><emphasis>LSB Desktop:</emphasis></term>
|
---|
[a26951e] | 124 | <listitem>
|
---|
[5b07f85] | 125 | <para>Alsa, ATK, Cairo, Desktop-file-utils, Freetype, Fontconfig,
|
---|
[d77b09e] | 126 | Gdk-pixbuf, Glib2, GLU, Icon-naming-utils, Libjpeg-turbo,
|
---|
| 127 | Libxml2, Mesa, Pango, Xdg-utils, Xorg</para>
|
---|
[a26951e] | 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | <varlistentry>
|
---|
[d77b09e] | 132 | <term><emphasis>LSB Languages:</emphasis></term>
|
---|
[a26951e] | 133 | <listitem>
|
---|
[d77b09e] | 134 | <para>Libxml2, Libxslt</para>
|
---|
[a26951e] | 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry>
|
---|
[5b07f85] | 139 | <term><emphasis>LSB Imaging:</emphasis></term>
|
---|
[a26951e] | 140 | <listitem>
|
---|
[5b07f85] | 141 | <para>CUPS, Cups-filters, Ghostscript, SANE</para>
|
---|
[a26951e] | 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | <varlistentry>
|
---|
[5b07f85] | 146 | <term><emphasis>LSB Gtk3 and LSB Graphics (Trial Use):</emphasis></term>
|
---|
[a26951e] | 147 | <listitem>
|
---|
[5b07f85] | 148 | <para>GTK+3</para>
|
---|
[a26951e] | 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | </variablelist>
|
---|
| 153 |
|
---|
[2ca8941] | 154 | <variablelist>
|
---|
[d77b09e] | 155 | <bridgehead renderas="sect3">Components not supplied or optionally
|
---|
| 156 | supplied by LFS or BLFS needed to satisfy the LSB
|
---|
| 157 | Requirements</bridgehead>
|
---|
[a26951e] | 158 | <?dbfo list-presentation="list"?>
|
---|
[2ca8941] | 159 | <?dbhtml list-presentation="table"?>
|
---|
[a26951e] | 160 |
|
---|
| 161 | <varlistentry>
|
---|
| 162 | <term><emphasis>LSB Core:</emphasis></term>
|
---|
| 163 | <listitem>
|
---|
[d77b09e] | 164 | <para>
|
---|
| 165 | <command>install_initd</command>,
|
---|
[adb2579] | 166 | <filename class='libraryfile'>libc.so.6</filename>
|
---|
| 167 | (the file is provided by the LFS Glibc package but it lacks some
|
---|
| 168 | symbol versions required by LSB),
|
---|
[d77b09e] | 169 | <filename class='libraryfile'>libcrypt.so.1</filename>
|
---|
| 170 | (can be provided with optional instructions for the LFS
|
---|
| 171 | Libxcrypt package),
|
---|
[adb2579] | 172 | <filename class='libraryfile'>libpthread.so.2</filename>
|
---|
| 173 | (the file is provided by the LFS Glibc package but it lacks some
|
---|
| 174 | symbol versions required by LSB),
|
---|
[d77b09e] | 175 | <filename class='libraryfile'>libncurses.so.5</filename>
|
---|
| 176 | (can be provided with optional instructions for the LFS
|
---|
| 177 | Ncurses package),
|
---|
| 178 | <filename class='libraryfile'>libncursesw.so.5</filename>
|
---|
| 179 | (but <filename class='libraryfile'>libncursesw.so.6</filename>
|
---|
[adb2579] | 180 | is provided by the LFS Ncurses package),
|
---|
| 181 | <filename class='libraryfile'>librt.so.1</filename>
|
---|
| 182 | (the file is provided by the LFS Glibc package but it lacks some
|
---|
| 183 | symbol versions required by LSB),
|
---|
| 184 | <filename class='libraryfile'>libutil.so.1</filename>
|
---|
| 185 | (can be provided as a symlink to
|
---|
| 186 | <filename class='libraryfile'>libc.so.6</filename>)
|
---|
[d77b09e] | 187 | </para>
|
---|
[a26951e] | 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | <varlistentry>
|
---|
[f4e157a] | 192 | <term><emphasis>LSB Desktop:</emphasis></term>
|
---|
[a26951e] | 193 | <listitem>
|
---|
[d77b09e] | 194 | <para>
|
---|
| 195 | <filename class='libraryfile'>libgdk-x11-2.0</filename>
|
---|
| 196 | (but <filename class='libraryfile'>libgdk-3.so</filename>
|
---|
| 197 | is provided by the BLFS GTK+-3 package),
|
---|
| 198 | <filename class='libraryfile'>libgtk-x11-2.0</filename>
|
---|
| 199 | (but <filename class='libraryfile'>libgtk-3.so</filename>
|
---|
| 200 | and <filename class='libraryfile'>libgtk-4.so</filename>
|
---|
| 201 | are provided by the BLFS GTK+-3 and GTK-4 packages),
|
---|
| 202 | <filename class='libraryfile'>libpng12.so</filename>
|
---|
| 203 | (but <filename class='libraryfile'>libpng16.so</filename>
|
---|
| 204 | is provided by the BLFS Libpng package),
|
---|
| 205 | <filename class='libraryfile'>libQt*.so.4</filename>
|
---|
| 206 | (but <filename class='libraryfile'>libQt6*.so.6</filename>
|
---|
| 207 | are provided by the BLFS Qt6 package),
|
---|
| 208 | <filename class='libraryfile'>libtiff.so.4</filename>
|
---|
| 209 | (but <filename class='libraryfile'>libtiff.so.6</filename>
|
---|
| 210 | is provided by the BLFS Libtiff package)
|
---|
| 211 | </para>
|
---|
[a26951e] | 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry>
|
---|
[d77b09e] | 216 | <term><emphasis>LSB Languages:</emphasis></term>
|
---|
[a26951e] | 217 | <listitem>
|
---|
[d77b09e] | 218 | <para><command>/usr/bin/python</command> (LSB requires Python2 but
|
---|
| 219 | LFS and BLFS only provide Python3)</para>
|
---|
[a26951e] | 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry>
|
---|
[5b07f85] | 224 | <term><emphasis>LSB Imaging:</emphasis></term>
|
---|
[a26951e] | 225 | <listitem>
|
---|
| 226 | <para>None</para>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
| 230 | <varlistentry>
|
---|
[5b07f85] | 231 | <term><emphasis>LSB Gtk3 and LSB Graphics (Trial Use):</emphasis></term>
|
---|
[a26951e] | 232 | <listitem>
|
---|
[d77b09e] | 233 | <para>
|
---|
| 234 | <filename class='libraryfile'>libpng15.so</filename>
|
---|
| 235 | (but <filename class='libraryfile'>libpng16.so</filename>
|
---|
| 236 | is provided by the BLFS Libpng package)
|
---|
| 237 | </para>
|
---|
[a26951e] | 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | </variablelist>
|
---|
[27a023ce] | 242 |
|
---|
| 243 | </sect1>
|
---|
| 244 |
|
---|