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
(formariadb
): Version up (the recentreadline
already existed, butmariadb
still used oldreadline5
) -
libmcrypt
(forphp
): Remove because no longer maintained. If we still need it, we can fix theconfig.guess
instead -
groff
: Version up 1.22.4 -
texinfo 7.0
forgroff
1.22.4: Add[texinfo7]
instead of upgrading[texinfo]
which uses[texinfo4]
on purpose -
openldap
: Version up 2.6.3 -
xorg
-xproto
,xextproto
&renderproto
: Replaceconfig.guess
because they are already at the latest version -
jasper
: Replaceconfig.guess
because more recent version now usecmake
, so this was easier -
dropbear
: Replaceconfig.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!