Browse Source

Added note to install all software as user root

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@230 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 24 years ago
parent
commit
db7ed0ae6d
4 changed files with 31 additions and 3 deletions
  1. 6 1
      chapter01/changelog.xml
  2. 1 1
      chapter05/chapter05.xml
  3. 23 0
      chapter05/installasroot.xml
  4. 1 1
      index.xml

+ 6 - 1
chapter01/changelog.xml

@@ -38,6 +38,11 @@ generated by patching the original one. This patching is done here in
 chapter 5. Also, fixed the explanations on both makedev installations.
 chapter 5. Also, fixed the explanations on both makedev installations.
 </para></listitem>
 </para></listitem>
 
 
+<listitem><para>
+Chapter 5: Recommended to install all the software while logged in (or
+su'ed to) user root.
+</para></listitem>
+
 <listitem><para>
 <listitem><para>
 Chapter 5+6: Added the fileutils-4.0 patch which is needed to compile
 Chapter 5+6: Added the fileutils-4.0 patch which is needed to compile
 the fileutils package on Glibc-2.2 based systems (such as the upcoming
 the fileutils package on Glibc-2.2 based systems (such as the upcoming
@@ -109,7 +114,7 @@ works when using the LFS scripts.
 Chapter 10: Added this chapter. It contains "thanks and good luck"
 Chapter 10: Added this chapter. It contains "thanks and good luck"
 notes and suggest creating the /etc/lfs-&version; file
 notes and suggest creating the /etc/lfs-&version; file
 </para></listitem>
 </para></listitem>
-1
+
 </itemizedlist>
 </itemizedlist>
 
 
 </sect1>
 </sect1>

+ 1 - 1
chapter05/chapter05.xml

@@ -2,7 +2,7 @@
 <title>Preparing the LFS system</title>
 <title>Preparing the LFS system</title>
 
 
 &c5-introduction;
 &c5-introduction;
-
+&c5-installasroot;
 &c5-bash;
 &c5-bash;
 &c5-binutils;
 &c5-binutils;
 &c5-bzip2;
 &c5-bzip2;

+ 23 - 0
chapter05/installasroot.xml

@@ -0,0 +1,23 @@
+<sect1 id="ch05-installasroot">
+<title>Install all software as user root</title>
+
+<para>
+It's best if you login as root or su to root when installing these
+files. That way you are assured that all files are owned by user root,
+group root (and not owned by the userid of your non-root user) and if a
+package wants to set special permissions it can do so without problems
+due to non-root access.
+</para>
+
+<para>
+If you read the documentation that comes with Glibc, Gcc and other
+packages they recommend not to compile the packages as user root. We
+feel it's safe to ignore that recommendation and compile as user root
+anyways. Hundreds of people using LFS have done so without any problems
+whatsoever and we haven't encountered any bugs in the compile processes
+that cause harm. So it's pretty safe (never can be 100% safe though, so
+it's up to you what you end up doing).
+</para>
+
+</sect1>
+

+ 1 - 1
index.xml

@@ -144,7 +144,7 @@
 
 
 <!ENTITY chapter5 SYSTEM "intel/chapter5/chapter5.xml">
 <!ENTITY chapter5 SYSTEM "intel/chapter5/chapter5.xml">
 <!ENTITY c5-introduction SYSTEM "intel/chapter5/introduction.xml">
 <!ENTITY c5-introduction SYSTEM "intel/chapter5/introduction.xml">
-
+<!ENTITY c5-installasroot SYSTEM "intel/chapter5/installasroot.xml">
 <!ENTITY c5-bash SYSTEM "intel/chapter5/bash-static.xml">
 <!ENTITY c5-bash SYSTEM "intel/chapter5/bash-static.xml">
 <!ENTITY c5-bash-inst SYSTEM "intel/chapter5/bash-static-inst.xml">
 <!ENTITY c5-bash-inst SYSTEM "intel/chapter5/bash-static-inst.xml">
 <!ENTITY c5-bash-exp SYSTEM "intel/chapter5/bash-static-exp.xml">
 <!ENTITY c5-bash-exp SYSTEM "intel/chapter5/bash-static-exp.xml">