mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Removed excess spaces from the ends of lines in the source files
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4511 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
cec675bd4c
commit
24ca7aa4ad
@ -16,12 +16,12 @@
|
||||
<title>Going Beyond BLFS</title>
|
||||
|
||||
<para>The packages that are installed in this book are only the tip of the
|
||||
iceberg. We hope that the experience you gained with the LFS book and
|
||||
the BLFS book will give you the background needed to compile, install
|
||||
iceberg. We hope that the experience you gained with the LFS book and
|
||||
the BLFS book will give you the background needed to compile, install
|
||||
and configure packages that are not included in this book.</para>
|
||||
|
||||
<para>When you want to install a package to a location other than
|
||||
<filename class='directory'>/</filename>, or
|
||||
<filename class='directory'>/</filename>, or
|
||||
<filename class='directory'>/usr</filename>, you are installing
|
||||
outside the default environment settings on most machines. The following
|
||||
examples should assist you in determining how to correct this situation.
|
||||
@ -34,7 +34,7 @@
|
||||
<filename class='directory'>$PREFIX/bin</filename>.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Expand the <envar>PATH</envar> for
|
||||
<para>Expand the <envar>PATH</envar> for
|
||||
<systemitem class="username">root</systemitem> to include
|
||||
<filename class='directory'>$PREFIX/sbin</filename>.</para>
|
||||
</listitem>
|
||||
@ -61,8 +61,8 @@
|
||||
<envar>PKG_CONFIG_PATH</envar>.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Add <filename class='directory'>$PREFIX/include</filename> to
|
||||
<envar>CPPFLAGS</envar> when compiling packages that depend on
|
||||
<para>Add <filename class='directory'>$PREFIX/include</filename> to
|
||||
<envar>CPPFLAGS</envar> when compiling packages that depend on
|
||||
the package you installed.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@ -80,9 +80,9 @@
|
||||
lead to a link to the package.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>If you know the name of the executable, but not the package
|
||||
that the executable belongs to, first try a google search with the name of the
|
||||
executable. If the results are overwhelming, try searching for the given
|
||||
<para>If you know the name of the executable, but not the package
|
||||
that the executable belongs to, first try a google search with the name of the
|
||||
executable. If the results are overwhelming, try searching for the given
|
||||
executable in the Debian repository at
|
||||
<ulink url="http://www.debian.org/distrib/packages#search_contents"/>.</para>
|
||||
</listitem>
|
||||
@ -94,7 +94,7 @@
|
||||
<listitem>
|
||||
<para>Many of the newer packages follow the <command>./configure
|
||||
&& make && make install</command> process.
|
||||
Help on the options accepted by configure can be obtained via the
|
||||
Help on the options accepted by configure can be obtained via the
|
||||
command <command>./configure --help</command>.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@ -113,10 +113,10 @@
|
||||
|
||||
<tip>
|
||||
<para>If you have found a package that is only available in .deb or .rpm
|
||||
format, there are two small scripts, <command>rpm2targz</command> and
|
||||
<command>deb2targz</command> that are available at
|
||||
<ulink url="&downloads-project;/deb2targz.tar.bz2"/> and
|
||||
<ulink url="&downloads-project;/rpm2targz.tar.bz2"/> to convert the archives
|
||||
format, there are two small scripts, <command>rpm2targz</command> and
|
||||
<command>deb2targz</command> that are available at
|
||||
<ulink url="&downloads-project;/deb2targz.tar.bz2"/> and
|
||||
<ulink url="&downloads-project;/rpm2targz.tar.bz2"/> to convert the archives
|
||||
into a simple <filename>tar.gz</filename> format.</para>
|
||||
</tip>
|
||||
|
||||
|
@ -23,11 +23,11 @@
|
||||
<primary sortas="f-AA-General-Information">General Information</primary>
|
||||
</indexterm>
|
||||
|
||||
<para>The BLFS Bootscripts package contains the init
|
||||
scripts that are used throughout the book. It is assumed that you will be
|
||||
using the blfs-bootscripts package in conjuction with a compatible
|
||||
lfs-bootscripts package. Refer to
|
||||
<ulink url="&lfs-root;/chapter07/bootscripts.html"/> for more
|
||||
<para>The BLFS Bootscripts package contains the init
|
||||
scripts that are used throughout the book. It is assumed that you will be
|
||||
using the blfs-bootscripts package in conjuction with a compatible
|
||||
lfs-bootscripts package. Refer to
|
||||
<ulink url="&lfs-root;/chapter07/bootscripts.html"/> for more
|
||||
information on the lfs-bootscripts package.</para>
|
||||
|
||||
<itemizedlist spacing='compact'>
|
||||
@ -37,15 +37,15 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>The blfs-bootscripts package will be used throughout the BLFS book
|
||||
for startup scripts. Unlike LFS, each init script has a separate install target
|
||||
in the blfs-bootscripts package. It is recomended you keep the package source
|
||||
directory around until completion of your BLFS system. When a script is
|
||||
requested from blfs-bootscripts, simply change to the directory and as the
|
||||
<systemitem class="username">root</systemitem> user, execute the given
|
||||
<para>The blfs-bootscripts package will be used throughout the BLFS book
|
||||
for startup scripts. Unlike LFS, each init script has a separate install target
|
||||
in the blfs-bootscripts package. It is recomended you keep the package source
|
||||
directory around until completion of your BLFS system. When a script is
|
||||
requested from blfs-bootscripts, simply change to the directory and as the
|
||||
<systemitem class="username">root</systemitem> user, execute the given
|
||||
<command>make install-<replaceable>[init-script]</replaceable></command>
|
||||
command. This command installs the init script to its proper location (along
|
||||
with any auxillary configuration scripts) and also creates the appropriate
|
||||
command. This command installs the init script to its proper location (along
|
||||
with any auxillary configuration scripts) and also creates the appropriate
|
||||
symlinks to start and stop the service at the appropriate run-level.</para>
|
||||
|
||||
<note>
|
||||
|
@ -32,10 +32,10 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>In short, the book only includes patches that are either required or
|
||||
recommended. There is a
|
||||
<para>In short, the book only includes patches that are either required or
|
||||
recommended. There is a
|
||||
<ulink url="http://www.linuxfromscratch.org/patches">Patches subproject</ulink>
|
||||
which hosts various patches (including the patches referenced in the books)
|
||||
which hosts various patches (including the patches referenced in the books)
|
||||
to enable you to configure your LFS the way you like it.</para>
|
||||
|
||||
</sect1>
|
||||
|
@ -47,9 +47,9 @@
|
||||
<sect2>
|
||||
<title>Upgrade Issues</title>
|
||||
|
||||
<para>A Package Manager makes it easy to upgrade to newer versions when
|
||||
they are released. Generally the instructions in the LFS and BLFS Book can be
|
||||
used to upgrade to the newer versions. Here are some points that you should
|
||||
<para>A Package Manager makes it easy to upgrade to newer versions when
|
||||
they are released. Generally the instructions in the LFS and BLFS Book can be
|
||||
used to upgrade to the newer versions. Here are some points that you should
|
||||
be aware of when upgrading packages, especially on a running system.</para>
|
||||
|
||||
<itemizedlist>
|
||||
@ -77,7 +77,7 @@
|
||||
recompiled.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>If you are upgrading a running system, be on the lookout for packages
|
||||
<para>If you are upgrading a running system, be on the lookout for packages
|
||||
that use <command>cp</command> instead of <command>install</command>
|
||||
to install files. The latter command is usually safer if the executable or library
|
||||
is already loaded in memory.</para>
|
||||
@ -133,13 +133,13 @@
|
||||
A few of the popular ones are Stow, Epkg, Graft, and Depot.</para>
|
||||
|
||||
<para>The installation needs to be faked, so that the package thinks that it is
|
||||
installed in <filename class="directory">/usr</filename> though in reality it is
|
||||
installed in <filename class="directory">/usr/pkg</filename> hierarchy.
|
||||
Installing in this manner is not usually a trivial task. For example, consider
|
||||
that you are installing a package libfoo-1.1. The following instructions may
|
||||
installed in <filename class="directory">/usr</filename> though in reality it is
|
||||
installed in <filename class="directory">/usr/pkg</filename> hierarchy.
|
||||
Installing in this manner is not usually a trivial task. For example, consider
|
||||
that you are installing a package libfoo-1.1. The following instructions may
|
||||
not install the package properly:</para>
|
||||
|
||||
<screen><userinput>./configure --prefix=/usr/pkg/libfoo/1.1
|
||||
<screen><userinput>./configure --prefix=/usr/pkg/libfoo/1.1
|
||||
make
|
||||
make install</userinput></screen>
|
||||
|
||||
@ -210,11 +210,11 @@ make DESTDIR=/usr/pkg/libfoo/1.1 install</userinput></screen>
|
||||
<sect3>
|
||||
<title>User Based Management</title>
|
||||
|
||||
<para>This scheme, that is unique to LFS, was devised by Matthias Benkmann,
|
||||
and is available from the <ulink url="http://www.linuxfromscratch.org/hints/">Hints
|
||||
Project</ulink>. In this scheme, each package is installed as a separate user
|
||||
into the standard locations. Files belonging to a package are easily identified
|
||||
by checking the user id. The features and shortcomings of this approach are
|
||||
<para>This scheme, that is unique to LFS, was devised by Matthias Benkmann,
|
||||
and is available from the <ulink url="http://www.linuxfromscratch.org/hints/">Hints
|
||||
Project</ulink>. In this scheme, each package is installed as a separate user
|
||||
into the standard locations. Files belonging to a package are easily identified
|
||||
by checking the user id. The features and shortcomings of this approach are
|
||||
too complex to describe in this section. For the details please see the hint at <ulink
|
||||
url="http://www.linuxfromscratch.org/hints/downloads/files/more_control_and_pkg_man.txt"/>.</para>
|
||||
|
||||
|
@ -21,49 +21,49 @@
|
||||
<para>This is a question without an obvious answer for an
|
||||
LFS based system.</para>
|
||||
|
||||
<para>In traditional Unix systems, <filename>/usr</filename> usually
|
||||
<para>In traditional Unix systems, <filename>/usr</filename> usually
|
||||
contains files that come with the system distribution, and the <filename>
|
||||
/usr/local</filename> tree is free for the local administrator to manage.
|
||||
The only really hard and fast rule is that Unix distributions should not
|
||||
touch <filename>/usr/local</filename>, except perhaps to create the basic
|
||||
/usr/local</filename> tree is free for the local administrator to manage.
|
||||
The only really hard and fast rule is that Unix distributions should not
|
||||
touch <filename>/usr/local</filename>, except perhaps to create the basic
|
||||
directories within it.</para>
|
||||
|
||||
<para>With Linux distributions, like Red Hat, Debian etc. a possible rule is
|
||||
that <filename>/usr</filename> is managed by the distribution's
|
||||
package system and <filename>/usr/local</filename> is not. This way the
|
||||
that <filename>/usr</filename> is managed by the distribution's
|
||||
package system and <filename>/usr/local</filename> is not. This way the
|
||||
package manager's database knows about every file within
|
||||
<filename>/usr</filename>.</para>
|
||||
|
||||
<para>LFS users build their own system and so deciding where
|
||||
the system ends and local files begin is not straightforward. So the choice
|
||||
<para>LFS users build their own system and so deciding where
|
||||
the system ends and local files begin is not straightforward. So the choice
|
||||
should be made in order to make things easier to administer. There are several
|
||||
reasons for dividing files between <filename>/usr</filename> and
|
||||
<filename>/usr/local</filename>.</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>On a network of several machines all running LFS,
|
||||
or mixed LFS and other Linux distributions,
|
||||
<para>On a network of several machines all running LFS,
|
||||
or mixed LFS and other Linux distributions,
|
||||
<filename>/usr/local</filename> could be used to hold packages
|
||||
that are common between all the computers in the network. It can be
|
||||
NFS mounted or mirrored from a single server. Here local
|
||||
NFS mounted or mirrored from a single server. Here local
|
||||
indicates local to the site.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>On a network of several computers all running an identical
|
||||
LFS system <filename>/usr/local</filename> could hold
|
||||
packages that are different between the machines. In this case local refers
|
||||
<para>On a network of several computers all running an identical
|
||||
LFS system <filename>/usr/local</filename> could hold
|
||||
packages that are different between the machines. In this case local refers
|
||||
to the individual computers.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Even on a single computer <filename>/usr/local</filename> can
|
||||
be useful if you have several distributions installed simultaneously, and want
|
||||
<para>Even on a single computer <filename>/usr/local</filename> can
|
||||
be useful if you have several distributions installed simultaneously, and want
|
||||
a place to put packages that will be the same on all of them.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Or you might regularly rebuild your LFS, but
|
||||
want a place to put files that you don't want to rebuild each time. This way
|
||||
you can wipe the LFS file system and start from a clean
|
||||
<para>Or you might regularly rebuild your LFS, but
|
||||
want a place to put files that you don't want to rebuild each time. This way
|
||||
you can wipe the LFS file system and start from a clean
|
||||
partition every time without losing everything.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@ -71,11 +71,11 @@
|
||||
<para>Some people ask why not use your own directory tree, e.g., <filename>
|
||||
/usr/site</filename>, rather than <filename>/usr/local</filename>?</para>
|
||||
|
||||
<para>There is nothing stopping you, many sites do make their own trees,
|
||||
<para>There is nothing stopping you, many sites do make their own trees,
|
||||
however it makes installing new software more difficult. Automatic installers
|
||||
often look for dependencies in <filename>/usr</filename> and
|
||||
<filename>/usr/local</filename>, and if the file it is looking
|
||||
for is in <filename>/usr/site</filename> instead, the installer will
|
||||
for is in <filename>/usr/site</filename> instead, the installer will
|
||||
probably fail unless you specifically tell it where to look.</para>
|
||||
|
||||
<para><emphasis>What is the BLFS position on this?</emphasis></para>
|
||||
|
Loading…
Reference in New Issue
Block a user