Go to file
YellowJacketLinux 74638547c6 oops
2024-10-16 18:51:58 -07:00
01-unzip.sh typo fix 2024-10-15 17:37:55 -07:00
02-sqlite3.sh Check for configure script failure 2024-10-15 20:09:49 -07:00
03-libgpg-error.sh Check for configure script failure 2024-10-15 20:09:49 -07:00
04-libgcrypt.sh Check for configure script failure 2024-10-15 20:09:49 -07:00
05-popt.sh popt 2024-10-15 21:42:51 -07:00
06-icu.sh typo fix 2024-10-16 00:32:31 -07:00
07-libxml2.sh libxml2 2024-10-15 22:31:16 -07:00
08-lzo.sh LZO 2024-10-15 22:42:22 -07:00
09-nettle.sh Nettle 2024-10-15 23:24:35 -07:00
10-pcre2.sh pcre2 2024-10-15 23:40:23 -07:00
11-libarchive.sh libarchive 2024-10-15 23:50:24 -07:00
12-lua.sh lua 2024-10-16 00:54:01 -07:00
13-libassuan.sh libassuan 2024-10-16 03:10:57 -07:00
14-libksba.sh libksba 2024-10-16 03:23:55 -07:00
15-npth.sh npth 2024-10-16 03:41:18 -07:00
16-libuv.sh libuv/nghttp2 2024-10-16 14:02:51 -07:00
17-nghttp2.sh libuv/nghttp2 2024-10-16 14:02:51 -07:00
18-cmake.sh CMake 2024-10-16 14:26:34 -07:00
19-brotli.sh brotli 2024-10-16 15:45:24 -07:00
20-which.sh which 2024-10-16 15:59:28 -07:00
21-libseccomp.sh libseccomp 2024-10-16 16:24:05 -07:00
22-gnutls.sh GnuTLS 2024-10-16 16:57:11 -07:00
23-lmdb.sh LMDB 2024-10-16 17:20:08 -07:00
24-cyrus-sasl.sh Cyrus SASL 2024-10-16 17:49:13 -07:00
25-openldap.sh OpenLDAP 2024-10-16 18:25:39 -07:00
27-gnupg.sh oops 2024-10-16 18:51:58 -07:00
99-rpm.sh typo fix 2024-10-15 21:42:44 -07:00
LICENSE Initial commit 2024-10-15 16:33:59 -07:00
README.md GnuPG 2024-10-16 18:51:27 -07:00
THE-PLAN.md initial documentation 2024-10-15 17:32:01 -07:00

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)

GnuPG itself has a lot of dependencies, one of which is OpenLDAP. Hopefully I can just build the shared libraries, those should be all that are needed.

While not a strict dependency, GnuTLS is a recommended dependency as is pinentry but pinentry seems to be runtime so I probably will not build that at least not until the RPM bootstrap is complete.

GnuTLS however will be used for many other things too, so I will consider it and its dependencies as needed in this phase.

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, and libksba. 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 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 Untested
  • 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 Untested
  • 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 Untested
  • 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 Untested
  • Note: Only installs client libraries, not the daemon

Dependency Twenty-Seven: GnuPG

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