C. Dependencies

Every package built in LFS relies on one or more other packages in order to build and install properly. Some packages even participate in circular dependencies, that is, the first package depends on the second which in turn depends on the first. Because of these dependencies, the order in which packages are built in LFS is very important. The purpose of this page is to document the dependencies of each package built in LFS.

For each package we build, we have listed three, and sometimes four, types of dependencies. The first lists what other packages need to be available in order to compile and install the package in question. The second lists what packages, in addition to those on the first list, need to be available in order to run the test suites. The third list of dependencies are packages that require this package to be built and installed in its final location before they are built and installed. In most cases, this is because these packages will hardcode paths to binaries within their scripts. If not built in a certain order, this could result in paths of /tools/bin/[binary] being placed inside scripts installed to the final system. This is obviously not desirable.

The last list of dependencies are optional packages that are not addressed in LFS, but could be useful to the user. These packages may have additional mandatory or optional dependencies of their own. For these dependencies, the recommeded practice is to install them after completion of the LFS book and then go back an rebuild the LFS package. In several cases, reinstallation is addressed in BLFS.

Autoconf

安装依赖: Bash, Coreutils, Grep, M4, Make, Perl, Sed, and Texinfo
测试套件依赖: Automake, Diffutils, Findutils, GCC, and Libtool
安装必须先于: Automake
可选依赖: Emacs

Automake

安装依赖: Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo
测试套件依赖: Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect, Findutils, Flex, GCC, Gettext, Gzip, Libtool, and Tar.
安装必须先于: None
可选依赖: None

Bash

安装依赖: Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, and Texinfo
测试套件依赖: Shadow
安装必须先于: None
可选依赖: Xorg

Bc

安装依赖: Bash, Binutils, Bison, Coreutils, GCC, Glibc, Grep, Make, and Readline
测试套件依赖: Gawk
安装必须先于: Linux Kernel
可选依赖: None

Binutils

安装依赖: Bash, Binutils, Coreutils, Diffutils, File, Gawk, GCC, Glibc, Grep, Make, Perl, Sed, Texinfo and Zlib
测试套件依赖: DejaGNU and Expect
安装必须先于: None
可选依赖: None

Bison

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, and Sed
测试套件依赖: Diffutils, Findutils, and Flex
安装必须先于: Kbd and Tar
可选依赖: Doxygen (test suite)

Bzip2

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make, and Patch
测试套件依赖: None
安装必须先于: None
可选依赖: None

Check

安装依赖: GCC, Grep, Make, Sed, and Texinfo
测试套件依赖: None
安装必须先于: None
可选依赖: None

Coreutils

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, Patch, Perl, Sed, and Texinfo
测试套件依赖: Diffutils, E2fsprogs, Findutils, Shadow, and Util-linux
安装必须先于: Bash, Diffutils, Findutils, Man-DB, and Udev
可选依赖: Perl Expect and IO:Tty modules (for test suite)

DejaGNU

安装依赖: Bash, Coreutils, Diffutils, GCC, Grep, Make, and Sed
测试套件依赖:
安装必须先于: None
可选依赖: None

Diffutils

安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Diffutils, Perl
安装必须先于: None
可选依赖: None

Expect

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, and Tcl
测试套件依赖: None
安装必须先于: None
可选依赖: None

E2fsprogs

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Gzip, Make, Sed, Texinfo, and Util-linux
测试套件依赖: Procps-ng,Psmisc
安装必须先于: None
可选依赖: None

File

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Zlib
测试套件依赖: None
安装必须先于: None
可选依赖: None

Findutils

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: DejaGNU, Diffutils, and Expect
安装必须先于: None
可选依赖: None

Flex

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Patch, Sed, and Texinfo
测试套件依赖: Bison (suppressed) and Gawk
安装必须先于: IPRoute2, Kbd, and Man-DB
可选依赖: None

Gawk

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed and, Texinfo
测试套件依赖: Diffutils
安装必须先于: None
可选依赖: None

Gcc

安装依赖: Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, and Texinfo
测试套件依赖: DejaGNU and Expect
安装必须先于: None
可选依赖: CLooG-PPL, GNAT and PPL

GDBM

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Grep, Make, and Sed
测试套件依赖: None
安装必须先于: None
可选依赖: None

Gettext

安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Diffutils, Perl, and Tcl
安装必须先于: Automake
可选依赖: None

Glibc

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Gzip, Linux API Headers, Make, Perl, Sed, and Texinfo
测试套件依赖: File
安装必须先于: None
可选依赖: None

GMP

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, M4, Make, Sed and Texinfo
测试套件依赖: None
安装必须先于: MPFR, GCC
可选依赖: None

Grep

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed, and Texinfo
测试套件依赖: Gawk
安装必须先于: Man-DB
可选依赖: Pcre, Xorg, and CUPS

Groff

安装依赖: Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed, and Texinfo
测试套件依赖: No test suite available
安装必须先于: Man-DB and Perl
可选依赖: GPL Ghostscript

GRUB

安装依赖: Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Texinfo, and Xz
测试套件依赖: None
安装必须先于: None
可选依赖: None

Gzip

安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Diffutils, Less
安装必须先于: Man-DB
可选依赖: None

Iana-Etc

安装依赖: Coreutils, Gawk, and Make
测试套件依赖: No test suite available
安装必须先于: Perl
可选依赖: None

Inetutils

安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo, and Zlib
测试套件依赖: No test suite available
安装必须先于: Tar
可选依赖: None

IProute2

安装依赖: Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, and Linux API Headers
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

Kbd

安装依赖: Bash, Binutils, Bison, Check, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Patch, and Sed
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

Kmod

安装依赖: Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Sed, Xz-Utils, Zlib
测试套件依赖: No test suite available
安装必须先于: Udev
可选依赖: None

Less

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed
测试套件依赖: No test suite available
安装必须先于: Gzip
可选依赖: Pcre

Libpipeline

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Check
安装必须先于: Man-DB
可选依赖: None

Libtool

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Findutils
安装必须先于: None
可选依赖: None

Linux Kernel

安装依赖: Bash, Bc, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep, Gzip, Kmod, Make, Ncurses, Perl, and Sed
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

M4

安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Diffutils
安装必须先于: Autoconf and Bison
可选依赖: libsigsegv

Make

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Perl and Procps-ng
安装必须先于: None
可选依赖: None

Man-DB

安装依赖: Bash, Binutils, Bzip2, Coreutils, Flex, GCC, GDBM, Gettext, Glibc, Grep, Groff, Gzip, Less, Libpipeline, Make, Sed, and Xz
测试套件依赖: Util-linux
安装必须先于: None
可选依赖: None

Man-Pages

安装依赖: Bash, Coreutils, and Make
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

MPC

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, MPFR, Sed and Texinfo
测试套件依赖: None
安装必须先于: GCC
可选依赖: None

MPFR

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, Sed and Texinfo
测试套件依赖: None
安装必须先于: GCC
可选依赖: None

Ncurses

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Patch, and Sed
测试套件依赖: No test suite available
安装必须先于: Bash, GRUB, Inetutils, Less, Procps-ng, Psmisc, Readline, Texinfo, Util-linux, and Vim
可选依赖: None

Patch

安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and Sed
测试套件依赖: Diffutils
安装必须先于: None
可选依赖: Ed

Perl

安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, GDBM, Glibc, Grep, Groff, Make, Sed, and Zlib
测试套件依赖: Iana-Etc and Procps-ng
安装必须先于: Autoconf
可选依赖: None

Pkg-config

安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Popt, and Sed
测试套件依赖: None
安装必须先于: Kmod
可选依赖: None

Popt

安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make
测试套件依赖: Diffutils and Sed
安装必须先于: Pkg-config
可选依赖: None

Procps-ng

安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Make, and Ncurses
测试套件依赖: DejaGNU
安装必须先于: None
可选依赖: None

Psmisc

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

Readline

安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, and Texinfo
测试套件依赖: No test suite available
安装必须先于: Bash
可选依赖: None

Sed

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo
测试套件依赖: Diffutils and Gawk
安装必须先于: E2fsprogs, File, Libtool, and Shadow
可选依赖: Cracklib

Shadow

安装依赖: Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, and Sed
测试套件依赖: No test suite available
安装必须先于: Coreutils
可选依赖: Acl, Attr, Cracklib, PAM

Sysklogd

安装依赖: Binutils, Coreutils, GCC, Glibc, Make, and Patch
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

Sysvinit

安装依赖: Binutils, Coreutils, GCC, Glibc, Make, and Sed
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: None

Tar

安装依赖: Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, and Texinfo
测试套件依赖: Autoconf, Diffutils, Findutils, Gawk, and Gzip
安装必须先于: None
可选依赖: None

Tcl

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, and Sed
测试套件依赖: None
安装必须先于: None
可选依赖: None

Texinfo

安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, and Sed
测试套件依赖: None
安装必须先于: None
可选依赖: None

Udev

安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Kmod, Make, Sed, and Util-linux
测试套件依赖: No test suite available
安装必须先于: None
可选依赖: Glib, Pci-Utils, Python, Systemd, USB-Utils

Util-linux

安装依赖: Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Udev, and Zlib
测试套件依赖: None
安装必须先于: None
可选依赖: None

Vim

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed
测试套件依赖: None
安装必须先于: None
可选依赖: Xorg, GTK+2, LessTif, Python, Tcl, Ruby, and GPM

Xz

安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, and Make.
测试套件依赖: None
安装必须先于: GRUB, Kmod, Man-DB, Udev
可选依赖: None

Zlib

安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Make, and Sed
测试套件依赖: None
安装必须先于: File, Kmod, Perl, and Util-linux
可选依赖: None