lfs-rpmify/README.md
YellowJacketLinux 8e637a43a0 elfutils
2024-10-16 21:11:25 -07:00

7.0 KiB
Raw Blame History

Building RPM in LFS 12.2

This git is for the scripts needed to build the dependencies for the RPM Package Manager (RPM) within a LFS 12.2 system. This is Phase Three in THE-PLAN.md.

First I am attempting to build RPM 4.18.x as I successfully built that version of RPM on LFS 11.3. However that version of RPM is EOL so once I get it building I will not install it but instead look to see if I can the modern version of RPM to build. I believe they changed the build system to CMake so there will almost be some additional dependencies needed.

With dependencies through Lua built, RPM 4.18.2 builds in LFS 12.2 but there are still three needed components for a complete RPM environment:

  1. GnuPG (critical, needed to sign packages, important for package security)
  2. debugedit (critical, needed for debug packages)
  3. fakechroot (needed to run the test suite after building RPM)

Dependencies 13 through 27 build GnuPG.

Dependency One: UnZip

Justification: Needed to build SQLite 3 (to unpack the documentation). No build dependencies outside of LFS.

Dependency Two: SQLite3

Justification: Needed to build RPM itself and for Cyrus SASL. Depends upon UnZip for documentation.

Dependency Three: libgpg-error

Justification: Needed to build libgcrypt, libassuan, libksba, and pinentry. No build dependencies outside of LFS.

Dependency Four: libgcrypt

Justification: Needed to build RPM itself and GnuPG. Depends upon libgpg-error.

Dependency Five: popt

Justification: Needed to build RPM itself. No build dependencies outside of LFS.

Dependency Six: ICU

Justification: Needed to build libxml2. No build dependencies outside of LFS.

Dependency Seven: libxml2

Justification: Needed for libarchive and CMake. Depends on ICU.

Dependency Eight: LZO

Justification: Needed for libarchive. No build dependencies outside of LFS.

Dependency Nine: nettle

Justification: Needed for libarchive. No build dependencies outside of LFS.

Dependency Ten: pcre2

Justification: Needed for libarchive. No build dependencies outside of LFS.

Dependency Eleven: libarchive

Justification: Needed to build RPM and CMake. Depends upon libxml2, LZO, Nettle, and pcre2.

Dependency Twelve: Lua

Justification: Needed to build RPM. No build dependencies outside of LFS.

Dependency Thirteen: libassuan

Justification: Needed to build pinentry and GnuPG. Requires libgpg-error.

Dependency Fourteen: libksba

Justification: Needed to build GnuPG. Requires libgpg-error.

Dependency Fifteen: npth

Justification: Needed to build GnuPG. No dependencies outside of LFS.

Dependency Sixteen: libuv

Justification: Needed to build CMake. No dependencies outside of LFS.

Dependency Seventeen: nghttp2

Justification: Needed to build CMake. Depends upon libxml2 to build.

Dependency Eighteen: CMake

Justification: Needed by brotli and current RPM versions. Depends upon curl, libarchive, libuv, and nghttp2.

  • Script: 18-cmake.sh
  • Status: Script Works
  • Note: Rebuild once GCC Fortran available

Dependency Nineteen: brotli

Justification: Neded to build GnuTLS and beneficial to future rebuild of cURL. Requires CMake to build.

  • Script: 19-brotli.sh
  • Status: Script Works
  • Note: Python bindings NOT built

Dependency Twenty: which

Justification: Needed for libseccomp test suite, and by many test suites and scripts on a GNU/Linux system. No build dependencies outside of LFS.

Dependency Twenty-One: libseccomp

Justification: Needed for GnuTLS. Depends upon which.

Dependency Twenty-Two: GnuTLS

Justification: Needed for GnuPG. Also is the preferred TLS stack for YJL. Build requires nettle, libunistring, libtasn1, p11-kit, brotli, libidn2, libseccomp. Runtime requires make-ca.

  • Script: 22-gnutls.sh
  • Status: Script Works
  • Note: Note yet built with DANE support, or Trousers support.

Dependency Twenty-Three: LMDB

Justification: Needed for Cyrus SASL. No build dependencies outside of LFS.

Dependency Twenty-Four: Cyrus SASL

Justification: Needed for OpenLDAP. Requires LMDB and SQLite3

  • Script: 24-cyrus-sasl.sh
  • Status: Script Works
  • Note: Does not install files needed to start the auth daemon

Dependency Twenty-Five: OpenLDAP

Justification: Needed for GnuPG. Requires Cyrus SASL to build.

  • Script: 25-openldap.sh
  • Status: Script Works
  • Note: Only installs client libraries, not the daemon

Dependency Twenty-Six: pinentry

Justification: Runtime dependency of GnuPG. Requires libassuan and libgpg-error.

  • Script: 26-pinentry.sh
  • Status: Script Works
  • Note: GUI clients not built yet

Dependency Twenty-Seven: GnuPG

Justification: Needed for RPM signatures. Requires libassuan, libgcrypt, libksba, npth, OpenLDAP, GnuTLS, and pinentry.

Dependency Twenty-Eight: elfutils

Justification: LFS already installs libelf from elfutils, but debugedit needs libdw from elfutils as well.