%general-entities; ]> 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 hard code 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 recommended practice is to install them after completion of the LFS book and then go back and rebuild the LFS package. In several cases, re-installation is addressed in BLFS. Acl &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo &testsuites; Automake, Diffutils, Findutils, and Libtool &before; Coreutils, Sed, Tar, and Vim &external; None Attr &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo &testsuites; Automake, Diffutils, Findutils, and Libtool &before; Acl and Libcap &external; None Autoconf &dependencies; Bash, Coreutils, Grep, M4, Make, Perl, Sed, and Texinfo &testsuites; Automake, Diffutils, Findutils, GCC, and Libtool &before; Automake &external; Emacs Automake &dependencies; Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, and Texinfo &testsuites; Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect, Findutils, Flex, GCC, Gettext, Gzip, Libtool, and Tar &before; None &external; None Bash &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, and Texinfo &testsuites; Shadow &before; None &external; Xorg Bc &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, and Make &testsuites; Gawk &before; Linux Kernel &external; None Binutils &dependencies; Bash, Binutils, Coreutils, Diffutils, File, Flex, Gawk, GCC, Glibc, Grep, Make, Perl, Sed, Texinfo and Zlib &testsuites; DejaGNU and Expect &before; None &external; Debuginfod Bison &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Perl, and Sed &testsuites; Diffutils, Findutils, and Flex &before; Kbd and Tar &external; Doxygen (test suite) Bzip2 &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make, and Patch &testsuites; None &before; File &external; None Check &dependencies; GCC, Grep, Make, Sed, and Texinfo &testsuites; None &before; None &external; None Coreutils &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Libcap, Make, Patch, Perl, Sed, and Texinfo &testsuites; Diffutils, E2fsprogs, Findutils, Shadow, and Util-linux &before; Bash, Diffutils, Eudev, Findutils, and Man-DB &external; Perl Expect and IO:Tty modules (for test suite) DejaGNU &dependencies; Bash, Coreutils, Diffutils, GCC, Grep, Make, and Sed &testsuites; None &before; None &external; None Diffutils &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Perl &before; None &external; None E2fsprogs &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Gzip, Make, Sed, Texinfo, and Util-linux &testsuites; Procps-ng and Psmisc &before; None &external; None Eudev &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Gperf, Make, Sed, and Util-linux &testsuites; None &before; None &external; None Expat &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, and Sed &testsuites; None &before; Python and XML::Parser &external; None Expect &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, and Tcl &testsuites; None &before; None &external; None File &dependencies; Bash, Binutils, Bzip2, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, Xz, and Zlib &testsuites; None &before; None &external; None Findutils &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &testsuites; DejaGNU, Diffutils, and Expect &before; None &external; None Flex &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Patch, Sed, and Texinfo &testsuites; Bison and Gawk &before; None &external; None Gawk &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, MPFR, Patch, Readline, Sed, and Texinfo &testsuites; Diffutils &before; None &external; libsigsegv Gcc &dependencies; Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, and Texinfo &testsuites; DejaGNU, Expect, and Shadow &before; None &external; GNAT and ISL GDBM &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Grep, Make, and Sed &testsuites; None &before; None &external; None Gettext &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Sed, and Texinfo &testsuites; Diffutils, Perl, and Tcl &before; Automake and Bison &external; None Glibc &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Gzip, Linux API Headers, Make, Perl, Python, Sed, and Texinfo &testsuites; File &before; None &external; None GMP &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, M4, Make, Sed, and Texinfo &testsuites; None &before; MPFR and GCC &external; None Gperf &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, and Make &testsuites; Diffutils and Expect &before; None &external; None Grep &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed, and Texinfo &testsuites; Gawk &before; Man-DB &external; Pcre and libsigsegv Groff &dependencies; Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed, and Texinfo &testsuites; No test suite available &before; Man-DB and Perl &external; Ghostscript GRUB &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Texinfo, and Xz &testsuites; None &before; None &external; None Gzip &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Diffutils and Less &before; Man-DB &external; None Iana-Etc &dependencies; Coreutils, Gawk, and Make &testsuites; No test suite available &before; Perl &external; None Inetutils &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo, and Zlib &testsuites; No test suite available &before; Tar &external; None Intltool &dependencies; Bash, Gawk, Glibc, Make, Perl, Sed, and XML::Parser &testsuites; Perl &before; None &external; None IProute2 &dependencies; Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, and Linux API Headers &testsuites; No test suite available &before; None &external; None Kbd &dependencies; Bash, Binutils, Bison, Check, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Patch, and Sed &testsuites; No test suite available &before; None &external; None Kmod &dependencies; Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Pkg-config, Sed, Xz-Utils, and Zlib &testsuites; No test suite available &before; Eudev &external; None Less &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed &testsuites; No test suite available &before; Gzip &external; Pcre Libcap &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Glibc, Perl, Make, and Sed &testsuites; No test suite available &before; Shadow &external; Linux-PAM Libelf &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, and Make &testsuites; No test suite available &before; Linux Kernel &external; None Libffi &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, and Sed &testsuites; DejaGnu &before; Python &external; None Libpipeline &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Check &before; Man-DB &external; None Libtool &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Autoconf, Automake, and Findutils &before; None &external; None Linux Kernel &dependencies; Bash, Bc, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep, Gzip, Kmod, Libelf, Make, Ncurses, OpenSSL, Perl, and Sed &testsuites; No test suite available &before; None &external; None M4 &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Diffutils &before; Autoconf and Bison &external; libsigsegv Make &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Perl and Procps-ng &before; None &external; None Man-DB &dependencies; Bash, Binutils, Bzip2, Coreutils, Flex, GCC, GDBM, Gettext, Glibc, Grep, Groff, Gzip, Less, Libpipeline, Make, Sed, and Xz &testsuites; Util-linux &before; None &external; None Man-Pages &dependencies; Bash, Coreutils, and Make &testsuites; No test suite available &before; None &external; None Meson &dependencies; Ninja and Python &testsuites; No test suite available &before; Systemd &external; None MPC &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, MPFR, Sed, and Texinfo &testsuites; None &before; GCC &external; None MPFR &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, Sed, and Texinfo &testsuites; None &before; Gawk and GCC &external; None Ncurses &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Patch, and Sed &testsuites; No test suite available &before; Bash, GRUB, Inetutils, Less, Procps-ng, Psmisc, Readline, Texinfo, Util-linux, and Vim &external; None Ninja &dependencies; Binutils, Coreutils, Gcc, and Python &testsuites; None &before; Meson &external; Asciidoc, Doxygen, Emacs, and re2c Openssl &dependencies; Binutils, Coreutils, Gcc, Make, and Perl &testsuites; None &before; Linux &external; None Patch &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and Sed &testsuites; Diffutils &before; None &external; Ed Perl &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, GDBM, Glibc, Grep, Groff, Make, Sed, and Zlib &testsuites; Iana-Etc and Procps-ng &before; Autoconf &external; None Pkg-config &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Popt, and Sed &testsuites; None &before; Kmod &external; None Popt &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, and Make &testsuites; Diffutils and Sed &before; Pkg-config &external; None Procps-ng &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, and Ncurses &testsuites; DejaGNU &before; None &external; None Psmisc &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed &testsuites; No test suite available &before; None &external; None Python &dependencies; Bash, Binutils, Coreutils, Expat, GCC, Gdbm, Gettext, Glibc, Grep, Libffi, Make, Ncurses, Sed, and Util-linux &testsuites; GDB and Valgrind &before; Ninja &external; Berkeley DB, OpenSSL, SQLite, and Tk Readline &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, and Texinfo &testsuites; No test suite available &before; Bash and Gawk &external; None Sed &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, and Texinfo &testsuites; Diffutils and Gawk &before; E2fsprogs, File, Libtool, and Shadow &external; None Shadow &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Libcap, Make, and Sed &testsuites; No test suite available &before; Coreutils &external; Cracklib and PAM Sysklogd &dependencies; Binutils, Coreutils, GCC, Glibc, Make, and Patch &testsuites; No test suite available &before; None &external; None Systemd &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, Expat, Gawk, GCC, Glibc, Gperf, Grep, Intltool, Libcap, Meson, Sed, and Util-linux &testsuites; None &before; None &external; Many, see BLFS systemd page Sysvinit &dependencies; Binutils, Coreutils, GCC, Glibc, Make, and Sed &testsuites; No test suite available &before; None &external; None Tar &dependencies; Acl, Attr, Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, and Texinfo &testsuites; Autoconf, Diffutils, Findutils, Gawk, and Gzip &before; None &external; None Tcl &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, and Sed &testsuites; None &before; None &external; None Texinfo &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, and Sed &testsuites; None &before; None &external; None Util-linux &dependencies; Bash, Binutils, Coreutils, Diffutils, Eudev, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, and Zlib &testsuites; None &before; None &external; Libcap-ng Vim &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed &testsuites; None &before; None &external; Xorg, GTK+2, LessTif, Python, Tcl, Ruby, and GPM XML::Parser &dependencies; Bash, Binutils, Coreutils, Expat, GCC, Glibc, Make, and Perl &testsuites; Perl &before; Intltool &external; None Xz &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, and Make &testsuites; None &before; Eudev, File, GRUB, Kmod, and Man-DB &external; None Zlib &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, and Sed &testsuites; None &before; File, Kmod, Perl, and Util-linux &external; None Zstd &dependencies; Binutils, Coreutils, GCC, Glibc, Gzip, Make, and Xz &testsuites; None &before; None &external; None