C. 依赖关系

最后更新于:2022-04-01 22:52:14

# C. 依赖关系 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 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 testsuites. The last 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. ## Autoconf **Installation depends on:** Bash, Coreutils, Grep, M4, Make, Perl, Sed, Texinfo**Test suite depends on:** Automake, Diffutils, Findutils, GCC, Libtool**Must be installed before:** Automake ## Automake **Installation depends on:** Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, Texinfo**Test suite depends on:** Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect, Findutils, Flex, GCC, Gettext, Gzip, Libtool, Tar. Can also use several other packages that are not installed in LFS.**Must be installed before:** None ## Bash **Installation depends on:** Bash, Bison, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, Texinfo**Test suite depends on:** Diffutils, Gawk**Must be installed before:** None ## Berkeley DB **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed**Test suite depends on:** Not run. Requires TCL installed on the final system**Must be installed before:** None ## Binutils **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Perl, Sed, Texinfo**Test suite depends on:** DejaGNU, Expect**Must be installed before:** None ## Bison **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Sed**Test suite depends on:** Diffutils and Findutils**Must be installed before:** Flex, Kbd, Tar ## Bzip2 **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make, Patch**Test suite depends on:** None**Must be installed before:** None ## Coreutils **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Patch, Perl, Sed, Texinfo**Test suite depends on:** Diffutils**Must be installed before:** Bash, Diffutils, Findutils, Man-DB, Udev ## DejaGNU **Installation depends on:** Bash, Coreutils, Diffutils, GCC, Grep, Make, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Diffutils **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed, Texinfo**Test suite depends on:** No testsuite available**Must be installed before:** None ## Expect **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, Tcl**Test suite depends on:** None**Must be installed before:** None ## E2fsprogs **Installation depends on:** Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc, Grep, Gzip, Make, Sed, Texinfo**Test suite depends on:** Diffutils**Must be installed before:** Util-Linux ## File **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, Zlib**Test suite depends on:** No testsuite available**Must be installed before:** None ## Findutils **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo**Test suite depends on:** DejaGNU, Diffutils, Expect**Must be installed before:** None ## Flex **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Patch, Sed, Texinfo**Test suite depends on:** Bison, Gawk**Must be installed before:** IPRoute2, Kbd, Man-DB ## Gawk **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed and, Texinfo**Test suite depends on:** Diffutils**Must be installed before:** None ## Gcc **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Patch, Perl, Sed, Tar, Texinfo**Test suite depends on:** DejaGNU, Expect**Must be installed before:** None ## Gettext **Installation depends on:** Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Sed, Texinfo**Test suite depends on:** Diffutils, Perl, Tcl**Must be installed before:** Automake ## Glibc **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Gzip, Make, Perl, Sed, Texinfo**Test suite depends on:** None**Must be installed before:** None ## Grep **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Make, Patch, Sed, Texinfo**Test suite depends on:** Diffutils, Gawk**Must be installed before:** Man-DB ## Groff **Installation depends on:** Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed, Texinfo**Test suite depends on:** No testsuite available**Must be installed before:** Man-DB, Perl ## GRUB **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, Sed, Texinfo**Test suite depends on:** None**Must be installed before:** None ## Gzip **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, Texinfo**Test suite depends on:** No testsuite available**Must be installed before:** Man-DB ## Iana-Etc **Installation depends on:** Coreutils, Gawk, Make**Test suite depends on:** No testsuite available**Must be installed before:** Perl ## Inetutils **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo**Test suite depends on:** No testsuite available**Must be installed before:** Tar ## IProute2 **Installation depends on:** Bash, Berkeley DB, Bison, Coreutils, Flex, GCC, Glibc, Make, Linux-Libc-Headers**Test suite depends on:** No testsuite available**Must be installed before:** None ## Kbd **Installation depends on:** Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Patch, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Less **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Libtool **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, Texinfo**Test suite depends on:** Findutils**Must be installed before:** None ## Linux Kernel **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep, Gzip, Make, Module-Init-Tools, Ncurses, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## M4 **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed**Test suite depends on:** Diffutils**Must be installed before:** Autoconf and Bison ## Man-DB **Installation depends on:** Bash, Berkeley DB, Binutils, Bzip2, Coreutils, Flex, GCC, Gettext, Glibc, Grep, Groff, Gzip, Less, Make, Sed**Test suite depends on:** Not run. Requires Man-DB testsuite package**Must be installed before:** None ## Make **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo**Test suite depends on:** Perl**Must be installed before:** None ## Mktemp **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Patch, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Module-Init-Tools **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, Zlib**Test suite depends on:** File, Findutils, Gawk**Must be installed before:** None ## Ncurses **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed**Test suite depends on:** No testsuite available**Must be installed before:** Bash, GRUB, Inetutils, Less, Procps, Psmisc, Readline, Texinfo, Util-Linux, Vim ## Patch **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Perl **Installation depends on:** Bash, Berkeley DB, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Groff, Make, Sed**Test suite depends on:** Iana-Etc, Procps**Must be installed before:** Autoconf ## Procps **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Make, Ncurses**Test suite depends on:** No testsuite available**Must be installed before:** None ## Psmisc **Installation depends on:** Bash, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Readline **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo**Test suite depends on:** No testsuite available**Must be installed before:** Bash ## Sed **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, Texinfo**Test suite depends on:** Diffutils, Gawk**Must be installed before:** E2fsprogs, File, Libtool, Shadow ## Shadow **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Sysklogd **Installation depends on:** Binutils, Coreutils, GCC, Glibc, Make, Patch**Test suite depends on:** No testsuite available**Must be installed before:** None ## Sysvinit **Installation depends on:** Binutils, Coreutils, GCC, Glibc, Make, Sed**Test suite depends on:** No testsuite available**Must be installed before:** None ## Tar **Installation depends on:** Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Patch, Sed, Texinfo**Test suite depends on:** Diffutils, Findutils, Gawk**Must be installed before:** None ## Tcl **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Sed**Test suite depends on:** None**Must be installed before:** None ## Texinfo **Installation depends on:** Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, Sed**Test suite depends on:** None**Must be installed before:** None ## Udev **Installation depends on:** Binutils, Coreutils, GCC, Glibc, Make**Test suite depends on:** Findutils, Perl, Sed**Must be installed before:** None ## Util-Linux **Installation depends on:** Bash, Binutils, Coreutils, E2fprogs, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, Sed, Zlib**Test suite depends on:** No testsuite available**Must be installed before:** None ## Vim **Installation depends on:** Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, Sed**Test suite depends on:** None**Must be installed before:** None ## Zlib **Installation depends on:** Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed**Test suite depends on:** None**Must be installed before:** File, Module-Init-Tools, Util-Linux
';