Просмотр исходного кода

Added a sed to install pt_chown without copying it ourself

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@374 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Thomas Balu Walter 24 лет назад
Родитель
Сommit
a0fcc028b4
2 измененных файлов с 10 добавлено и 2 удалено
  1. 6 0
      chapter01/changelog.xml
  2. 4 2
      chapter06/glibc-inst.xml

+ 6 - 0
chapter01/changelog.xml

@@ -133,6 +133,12 @@ Chapter 6: Changed all "rm file && ln -s dest file" into
 "ln -sf file" (in glibc, bzip2 and gzip installations). 
 </para></listitem>
 
+<listitem><para>
+Chapter 6: Added a sed to fix a problem during glibc-installation.
+pt_chown can not be installed setuid root, because "root" is not known by 
+glibc yet (kind of hen and egg-problem).
+</para></listitem>
+
 <listitem><para>
 Chapter 7: Fixed the delays in the killproc function in the functions
 script. Now, after kill, first check PIDs, then sleep 2 if needed. More

+ 4 - 2
chapter06/glibc-inst.xml

@@ -21,6 +21,10 @@ Install Glibc by running the following commands:
 		&gt; tmp~ &amp;&amp;</userinput>
 	<userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &amp;&amp;
 		</userinput>
+	<userinput>sed "s/root/0/" ../glibc-2.2.1/login/Makefile 
+		&gt; tmp~ &amp;&amp; </userinput>
+	<userinput>mv tmp~ ../glibc-2.2.1/login/Makefile &amp;&amp;
+		</userinput>
 	<userinput>../glibc-2.2.1/configure \</userinput>
 	<userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons 
 		\</userinput>
@@ -34,8 +38,6 @@ Install Glibc by running the following commands:
 	<userinput>make &amp;&amp;</userinput>
 	<userinput>make install &amp;&amp;</userinput>
 	<userinput>make localedata/install-locales &amp;&amp;</userinput>
-	<userinput>cp login/pt_chown /usr/bin &amp;&amp;</userinput>
-	<userinput>chmod 4755 /usr/bin/pt_chown</userinput>
 
 </literallayout></blockquote>