From a0fcc028b432c95d5dc8f4c154b01b802c39b16d Mon Sep 17 00:00:00 2001 From: Thomas Balu Walter Date: Wed, 28 Mar 2001 15:22:23 +0000 Subject: [PATCH] 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 --- chapter01/changelog.xml | 6 ++++++ chapter06/glibc-inst.xml | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4c31b395e..b61f479d1 100644 --- a/chapter01/changelog.xml +++ b/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). + +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). + + 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 diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index cd7f8bb56..8fb8ac39b 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -21,6 +21,10 @@ Install Glibc by running the following commands: > tmp~ && mv tmp~ ../glibc-2.2.1/malloc/Makefile && + sed "s/root/0/" ../glibc-2.2.1/login/Makefile + > tmp~ && + mv tmp~ ../glibc-2.2.1/login/Makefile && + ../glibc-2.2.1/configure \    --prefix=/usr --enable-add-ons \ @@ -34,8 +38,6 @@ Install Glibc by running the following commands: make && make install && make localedata/install-locales && - cp login/pt_chown /usr/bin && - chmod 4755 /usr/bin/pt_chown