Estimated build time: 0.1 SBU Estimated required disk space: 8 MB |
The Util-linux package contains a number of miscellaneous utility programs. Some of the more prominent utilities are used to mount, unmount, format, partition and manage disk drives, open tty ports and fetch kernel messages.
Installed programs: agetty, arch, blockdev, cal, cfdisk, chkdupexe, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate, dmesg, elvtune, fdformat, fdisk, fsck.cramfs, fsck.minix, getopt, hexdump, hwclock, ipcrm, ipcs, isosize, kill, line, logger, look, losetup, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, namei, parse.bash, parse.tcsh, pg, pivot_root, ramsize (link to rdev), raw, rdev, readprofile, rename, renice, rev, rootflags (link to rdev), script, setfdprm, setsid, setterm, sfdisk, swapoff (link to swapon), swapon, test.bash, test.tcsh, tunelp, ul, umount, vidmode (link to rdev), whereis and write
Util-linux depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Zlib.
Util-linux doesn't use the freshly installed headers and libraries from the /tools directory. This is fixed by altering the configure script:
cp configure configure.backup sed "s@/usr/include@/tools/include@g" configure.backup > configure |
Prepare Util-linux for compilation:
./configure |
Compile some support routines:
make -C lib |
And, since you'll need only a couple of the utilities contained in this package, build just those:
make -C mount mount umount make -C text-utils more |
Now copy these programs to the temporary tools directory:
cp mount/{,u}mount text-utils/more /tools/bin |