Skip to contentSkip to conversation

php: Provide cached value for sendmail program

PATCH New Khem Raj 1 participant 1 message Dec 8, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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.

---
 meta-oe/recipes-devtools/php/php_8.5.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/php/php_8.5.0.bb +1 -0
index 412ffd9f06..6db7ee7c82 100644
@@ -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} \
 "