php: Provide cached value for sendmail program

Left to its own volition, configure goes on a hunt in
usual paths in /usr which means it pokes at build system
for sendmail existence. This could also be under different
paths e.g. /usr/lib or /usr/sbin depending upong build distro

The paths where sendmail will be installed on target is
usual paths e.g. /bin or /usr/bin on OE, which are added
to program search paths anyway.

This fixes reproducibility issues, since this string gets
its way into the PHP binaries.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-12-08 15:18:53 -08:00
parent b98efe111c
commit aa758279f5
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -72,6 +72,7 @@ EXTRA_OECONF = "--enable-mbstring \
--with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \
--with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \
${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'ac_cv_c_bigendian_php=no', 'ac_cv_c_bigendian_php=yes', d)} \
ac_cv_path_PROG_SENDMAIL=sendmail \
${COMMON_EXTRA_OECONF} \
"