Estimated build time: 0.1 SBU Estimated required disk space: 9 MB |
(Last checked against version 2.11t.)
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.
Util-linux installs the following:
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, 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
(Last checked against version 2.11n.)
Bash: sh
Binutils: as, ld
Coreutils: cat, chgrp, chmod, cp, install, ln, mv, rm, uname, whoami
Diffutils: cmp
GCC: cc, cc1, collect2, cpp, cpp0
Gettext: msgfmt, xgettext
Glibc: rpcgen
Grep: grep
Make: make
Sed: sed
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 |