From ae11e83e815c5fca9fb0098bfdee551274c1d079 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 27 Feb 2002 14:49:28 +0000 Subject: [PATCH] Added commands to remove setgid kmem from /usr/bin/make git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1646 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/make-exp.xml | 13 +++++++++++++ chapter06/make-inst.xml | 4 +++- chapter06/make.xml | 1 + index.xml | 5 +++-- 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 chapter06/make-exp.xml diff --git a/chapter06/make-exp.xml b/chapter06/make-exp.xml new file mode 100644 index 000000000..7bd539b7f --- /dev/null +++ b/chapter06/make-exp.xml @@ -0,0 +1,13 @@ + +Command explanations + +By default /usr/bin/make is installed setgid +kmem. This is needed on some systems so it can check the load average by +using /dev/kmem. However, on Linux systems, setgid +kmem is not needed, so we remove this from our make +binary. This also fixes problems with the make +ignoring certain variables like +LD_LIBRARY_PATH. + + + diff --git a/chapter06/make-inst.xml b/chapter06/make-inst.xml index 64a952a4c..02cce215e 100644 --- a/chapter06/make-inst.xml +++ b/chapter06/make-inst.xml @@ -5,7 +5,9 @@ ./configure --prefix=/usr && make && -make install +make install && +chgrp root /usr/bin/make && +chmod 755 /usr/bin/make diff --git a/chapter06/make.xml b/chapter06/make.xml index ff32f0fe3..94e5f96cc 100644 --- a/chapter06/make.xml +++ b/chapter06/make.xml @@ -6,6 +6,7 @@ Estimated required disk space: &make-compsize; &c6-make-inst; +&c6-make-exp; &aa-make-desc; &aa-make-dep; diff --git a/index.xml b/index.xml index 9297ce359..7363d1bda 100644 --- a/index.xml +++ b/index.xml @@ -4,8 +4,8 @@ - - + + @@ -277,6 +277,7 @@ +