Skip to content

Fix LAMP stack compilation on Raspberry Pi 4

Many cmmi components dependencies of LAMP stack fail to compile on Raspberry Pi 4, all for the same reason : configure fails with "error: cannot guess build type; you must specify one" because config.guess is too old (often 2002 or 2006).

To fix, we can either upgrade the component to a more recent version (which will likely include a more recent config.guess) or directly replace the config.guess with a more recent one on the fly (component/gnu-config serves to provide the more recent version, and a simple pre-configure-hook does the replacement).

Below is a list of changed components:

  • readline (for mariadb): Version up (the recent readline already existed, but mariadb still used old readline5)
  • libmcrypt (for php): Remove because no longer maintained. If we still need it, we can fix the config.guess instead
  • groff: Version up 1.22.4
  • texinfo 7.0 for groff 1.22.4: Add [texinfo7] instead of upgrading [texinfo] which uses [texinfo4] on purpose
  • openldap: Version up 2.6.3
  • xorg - xproto, xextproto & renderproto: Replace config.guess because they are already at the latest version
  • jasper: Replace config.guess because more recent version now use cmake, so this was easier
  • dropbear: Replace config.guess because we use an older version on purpose
  • sed: Version up 4.9

Working compilation on Raspberry Pi 4 is needed urgently for the upcoming tutorial article in Programmez!

Merge request reports