From 9132fe499be0b137bc5494d39cb89390ea11f4ca Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 13 Dec 2013 06:55:02 +0000 Subject: Update to procps-ng-3.3.9 Install non-essential programs from the xz package in /usr/bin. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10390 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/kmod.xml | 2 +- chapter06/procps.xml | 31 ++++++++++++++++++------------- chapter06/sysvinit.xml | 20 ++++++++------------ chapter06/xz.xml | 4 ++-- 4 files changed, 29 insertions(+), 28 deletions(-) (limited to 'chapter06') diff --git a/chapter06/kmod.xml b/chapter06/kmod.xml index 9c06ef64f..f87024868 100644 --- a/chapter06/kmod.xml +++ b/chapter06/kmod.xml @@ -95,7 +95,7 @@ ln -sv kmod /bin/lsmod Make sure that all libraries are in the correct directory: mv -v /usr/lib/libkmod.so.* /lib -ln -svf ../../lib/libkmod.so.2.2.4 /usr/lib/libkmod.so +ln -svf ../../lib/libkmod.so.2.2.5 /usr/lib/libkmod.so diff --git a/chapter06/procps.xml b/chapter06/procps.xml index 5309bb796..2deebf10d 100644 --- a/chapter06/procps.xml +++ b/chapter06/procps.xml @@ -47,19 +47,11 @@ --libdir=/usr/lib \ --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \ --disable-static \ - --disable-skill \ --disable-kill The meaning of the configure options: - - --disable-skill - - This switch disables the obsolete and unportable - skill and snice commands. - - --disable-kill @@ -85,11 +77,14 @@ make check make install -Finally, move the library to a location that can be found if +Finally, move essential files to a location that can be found if /usr is not mounted. -mv -v /usr/lib/libprocps.so.* /lib -ln -sfv ../../lib/libprocps.so.1.1.2 /usr/lib/libprocps.so +mv -v /usr/bin/pidof /bin +mv -v /usr/lib/libprocps.so.* /lib +ln -sfv ../../lib/libprocps.so.3.0.0 /usr/lib/libprocps.so + + @@ -101,7 +96,7 @@ ln -sfv ../../lib/libprocps.so.1.1.2 /usr/lib/libprocps.so Installed library - free, pgrep, pkill, pmap, ps, pwdx, slabtop, + free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop, sysctl, tload, top, uptime, vmstat, w, and, watch libprocps.so @@ -133,6 +128,16 @@ ln -sfv ../../lib/libprocps.so.1.1.2 /usr/lib/libprocps.so + + pidof + + Looks up processes based on their name and other attributes + + pidof + + + + pkill @@ -261,7 +266,7 @@ ln -sfv ../../lib/libprocps.so.1.1.2 /usr/lib/libprocps.so - libproc + libprocps Contains the functions used by most programs in this package diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml index 548616b84..b1fac46db 100644 --- a/chapter06/sysvinit.xml +++ b/chapter06/sysvinit.xml @@ -41,6 +41,7 @@ Installation of Sysvinit + + First, apply a patch that removes several programs installed by other + packages, clarifies a message, and fixes a compiler warning: + +patch -Np1 -i ../&sysvinit-consolidated-patch; Compile the package: @@ -85,8 +91,8 @@ Installed programs - bootlogd, fstab-decode, halt, init, killall5, pidof (link to - killall5), poweroff (link to halt), reboot (link to halt), runlevel, + bootlogd, fstab-decode, halt, init, killall5, + poweroff (link to halt), reboot (link to halt), runlevel, shutdown, and telinit (link to init) @@ -154,16 +160,6 @@ - - pidof - - Reports the PIDs of the given programs - - pidof - - - - poweroff diff --git a/chapter06/xz.xml b/chapter06/xz.xml index a44bd10cd..65420b81c 100644 --- a/chapter06/xz.xml +++ b/chapter06/xz.xml @@ -47,7 +47,6 @@ Prepare Xz for compilation with: ./configure --prefix=/usr \ - --bindir=/bin \ --docdir=/usr/share/doc/xz-&xz-version; Compile the package: @@ -58,10 +57,11 @@ make check - Install the package and make sure that all libraries are in the + Install the package and make sure that all essential files are in the correct directory: make install +mv -v /usr/bin/{unlzma,unxz,xzcat,lzma,xz} /bin mv -v /usr/lib/liblzma.so.* /lib ln -svf ../../lib/liblzma.so.&xz-version; /usr/lib/liblzma.so -- cgit v1.2.3-54-g00ecf