Skip to contentSkip to conversation

package/php: bump version to 8.4.13

PATCH In review Bernd Kuhls 2 participants 2 messages Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/php: bump version to 8.4.13

Release notes: https://www.php.net/releases/8.4/en.php

Changelog: https://www.php.net/ChangeLog-8.php#PHP_8_4

Removed patch 0006 which is included in this release, rebased remaining patches.

php commit https://github.com/php/php-src/commit/1f847a0bdfea3f754e5d46f9e016ce2530e5d9a4
added a check on the httpd binary which requires STAGING_DIR being part
of SBINDIR as reported by apxs, adjust apache.mk accordingly.

Upstream commit
https://github.com/php/php-src/commit/ea4e8d513cdd87c8ac28cd1ae06f7e814c83ae28
causes a build error with older uclibc-based toolchains when detecting copy_file_range, disable it by adding php_cv_func_copy_file_range=no to _CONF_ENV for uclibc-toolchains.

Upstream commit
https://github.com/php/php-src/commit/063213b1aebf3dcbaccd35a801d8c52775de24a2
changed the name of the cache variable ac_cv_have_pcre2_jit to php_cv_have_pcre2_jit.

---
v2: fixed build with older uclibc-based toolchains (Julien, Waldemar)
updated pcre2 cache variable in configure script

 package/apache/apache.mk                      |   1 +
 ...1-acinclude.m4-don-t-unset-variables.patch |   8 +-
 .../0002-iconv-tweak-iconv-detection.patch    |  10 +-
 ...0003-configure-disable-the-phar-tool.patch |   8 +-
 .../0004-Call-apxs-with-correct-prefix.patch  |  16 +-
 .../0005-allow-opcache-cross-compiling.patch  |  21 +-
 .../php/0006-Sync-headers-installation.patch  | 478 ------------------
 package/php/php.hash                          |   4 +-
 package/php/php.mk                            |  10 +-
 9 files changed, 44 insertions(+), 512 deletions(-)
 delete mode 100644 package/php/0006-Sync-headers-installation.patch
package/apache/apache.mk +1 -0
index 23332f3e85..500a45bbca 100644
@@ -104,6 +104,7 @@ define APACHE_FIX_STAGING_APACHE_CONFIG
 	$(SED) 's%"/usr/bin"%"$(STAGING_DIR)/usr/bin"%' $(STAGING_DIR)/usr/bin/apxs
 	$(SED) 's%/usr/build%$(STAGING_DIR)/usr/build%' $(STAGING_DIR)/usr/bin/apxs
 	$(SED) 's%^prefix =.*%prefix = $(STAGING_DIR)/usr%' $(STAGING_DIR)/usr/build/config_vars.mk
+	$(SED) 's%^sbindir =.*%sbindir = $(STAGING_DIR)/usr/bin%' $(STAGING_DIR)/usr/build/config_vars.mk
 endef
 APACHE_POST_INSTALL_STAGING_HOOKS += APACHE_FIX_STAGING_APACHE_CONFIG
 
package/php/0001-acinclude.m4-don-t-unset-variables.patch +4 -4
index 9badbd1cc2..fe92fb4f55 100644
@@ -9,8 +9,8 @@ Terminate them with extreme prejudice.
 Signed-off-by: Gustavo Zacarias <[email protected]>
 Signed-off-by: Adam Duskett <[email protected]>
 [[email protected]: Update for 7.3.0]
-Signed-off-by: Bernd Kuhls <[email protected]>
-[Bernd: rebased for 8.1.7]
+Signed-off-by: Bernd Kuhls <[email protected]>
+[Bernd: rebased for 8.4.13]
 ---
  build/php.m4 | 4 ----
  1 file changed, 4 deletions(-)
@@ -19,7 +19,7 @@ diff --git a/build/php.m4 b/build/php.m4
 index e91ef988..9586c490 100644
 --- a/build/php.m4
 +++ b/build/php.m4
-@@ -1580,8 +1580,6 @@ dnl PHP_CHECK_FUNC_LIB
+@@ -1462,8 +1462,6 @@ dnl PHP_CHECK_FUNC_LIB
  dnl
  AC_DEFUN([PHP_CHECK_FUNC_LIB],[
    ifelse($2,,:,[
@@ -28,7 +28,7 @@ index e91ef988..9586c490 100644
    unset found
    AC_CHECK_LIB($2, $1, [found=yes], [
      AC_CHECK_LIB($2, __$1, [found=yes], [found=no])
-@@ -1616,8 +1616,6 @@ dnl and as a fall back in the specified library. Defines HAVE_func and
+@@ -1496,8 +1496,6 @@ dnl and as a fall back in the specified library. Defines HAVE_func and
  dnl HAVE_library if found and adds the library to LIBS.
  dnl
  AC_DEFUN([PHP_CHECK_FUNC],[
package/php/0002-iconv-tweak-iconv-detection.patch +5 -5
index 758dd6133b..536a69fd18 100644
@@ -15,8 +15,8 @@ Signed-off-by: Gustavo Zacarias <[email protected]>
 [Gustavo: update for 5.6.10]
 Signed-off-by: Adam Duskett <[email protected]>
 [[email protected]: Update for 8.0.7]
-Signed-off-by: Bernd Kuhls <[email protected]>
-[Bernd: rebased for 7.4.10, 7.4.13 & 8.1.7]
+Signed-off-by: Bernd Kuhls <[email protected]>
+[Bernd: rebased for 8.4.13]
 ---
  build/php.m4 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
@@ -25,10 +25,10 @@ diff --git a/build/php.m4 b/build/php.m4
 index 9586c490..8b3d47ed 100644
 --- a/build/php.m4
 +++ b/build/php.m4
-@@ -1976,7 +1976,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
-   dnl Check external libs for iconv funcs.
-   if test "$found_iconv" = "no"; then
+@@ -1839,7 +1839,7 @@
  
+   dnl Check external libs for iconv funcs.
+   AS_VAR_IF([found_iconv], [no], [
 -    for i in $PHP_ICONV /usr/local /usr; do
 +    for i in $PHP_ICONV; do
        if test -r $i/include/gnu-libiconv/iconv.h; then
package/php/0003-configure-disable-the-phar-tool.patch +4 -4
index 6bfaf6640f..ebde912861 100644
@@ -12,8 +12,8 @@ Signed-off-by: Gustavo Zacarias <[email protected]>
 [Gustavo: update for autoreconf/configure.in]
 Signed-off-by: Adam Duskett <[email protected]>
 [Aduskett: update for 8.0.7]
-Signed-off-by: Bernd Kuhls <[email protected]>
-[Bernd: rebased for 7.4.10, 7.4.13 & 8.1.7]
+Signed-off-by: Bernd Kuhls <[email protected]>
+[Bernd: rebased for 8.4.13]
 ---
  configure.ac | 9 ++-------
  1 file changed, 2 insertions(+), 7 deletions(-)
@@ -22,7 +22,7 @@ diff --git a/configure.ac b/configure.ac
 index 0dfab302..6026fb66 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1638,13 +1638,8 @@ CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)"
+@@ -1585,13 +1585,8 @@ CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)"
  CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
  CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"
  
@@ -36,7 +36,7 @@ index 0dfab302..6026fb66 100644
 +pharcmd=
 +pharcmd_install=
  
- all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
+ all_targets="\$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
  install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
 -- 
 2.14.3
package/php/0004-Call-apxs-with-correct-prefix.patch +9 -7
index 3a1a580084..cf8fe2cbfd 100644
@@ -17,6 +17,8 @@ To fix this, add -S PREFIX='$(INSTALL_ROOT)/usr' to apxs call in configure
 Signed-off-by: Fabrice Fontaine <[email protected]>
 Signed-off-by: Adam Duskett <[email protected]>
 [[email protected]: Update for 8.0.7]
+Signed-off-by: Bernd Kuhls <[email protected]>
+[Bernd: rebased for 8.4.13]
 ---
  sapi/apache2handler/config.m4 | 3 +++
  1 file changed, 3 insertions(+)
@@ -25,20 +27,20 @@ diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4
 index 55c16179..68ce66c0 100644
 --- a/sapi/apache2handler/config.m4
 +++ b/sapi/apache2handler/config.m4
-@@ -63,10 +63,12 @@ if test "$PHP_APXS2" != "no"; then
-     AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required])
-   fi
+@@ -68,10 +68,12 @@
+   AS_VERSION_COMPARE([$APACHE_VERSION], [2.4.0],
+     [AC_MSG_ERROR([Please note that Apache version >= 2.4 is required])])
  
 +  APXS_PREFIX='$(INSTALL_ROOT)'/usr
-   APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
-   if test -z `$APXS -q SYSCONFDIR`; then
+   APXS_LIBEXECDIR='$(INSTALL_ROOT)'$($APXS -q LIBEXECDIR)
+   if test -z $($APXS -q SYSCONFDIR); then
      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
                         -i -n php"
    else
-     APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
-@@ -74,6 +76,7 @@ if test "$PHP_APXS2" != "no"; then
+     APXS_SYSCONFDIR='$(INSTALL_ROOT)'$($APXS -q SYSCONFDIR)
+@@ -79,6 +81,7 @@ if test "$PHP_APXS2" != "no"; then
                  \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                         -S SYSCONFDIR='$APXS_SYSCONFDIR' \
package/php/0005-allow-opcache-cross-compiling.patch +12 -9
index 468864b0a4..1031b45f19 100644
@@ -13,8 +13,8 @@ CFLAGS when opcache is enabled:
   -DHAVE_SHM_MMAP_FILE
 
 Signed-off-by: Adam Duskett <[email protected]>
-Signed-off-by: Bernd Kuhls <[email protected]>
-[Bernd: rebased for 8.1.7 & 8.3.3]
+Signed-off-by: Bernd Kuhls <[email protected]>
+[Bernd: rebased for 8.4.13]
 ---
  ext/opcache/config.m4 | 4 ----
  1 file changed, 4 deletions(-)
@@ -23,17 +23,20 @@ diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
 index 5492fd92..10c150ff 100644
 --- a/ext/opcache/config.m4
 +++ b/ext/opcache/config.m4
-@@ -315,10 +315,6 @@ int main() {
- 
+@@ -346,13 +346,6 @@
+   PHP_ADD_EXTENSION_DEP(opcache, date)
    PHP_ADD_EXTENSION_DEP(opcache, pcre)
  
--  if test "$have_shm_ipc" != "yes" && test "$have_shm_mmap_posix" != "yes" && test "$have_shm_mmap_anon" != "yes"; then
--    AC_MSG_ERROR([No supported shared memory caching support was found when configuring opcache. Check config.log for any errors or missing dependencies.])
+-  if test "$php_cv_shm_ipc" != "yes" && test "$php_cv_shm_mmap_posix" != "yes" && test "$php_cv_shm_mmap_anon" != "yes"; then
+-    AC_MSG_FAILURE(m4_text_wrap([
+-      No supported shared memory caching support was found when configuring
+-      opcache.
+-    ]))
 -  fi
 -
-   if test "$PHP_OPCACHE_JIT" = "yes"; then
-     PHP_ADD_BUILD_DIR([$ext_builddir/jit], 1)
-     PHP_ADD_MAKEFILE_FRAGMENT($ext_srcdir/jit/Makefile.frag)
+   AS_VAR_IF([PHP_OPCACHE_JIT], [yes], [
+     PHP_ADD_BUILD_DIR([
+       $ext_builddir/jit
 -- 
 2.31.1
 
package/php/0006-Sync-headers-installation.patch deleted +0 -478

478 lines not on this page · raw message

package/php/php.hash +2 -2
index dbb130f30b..6774ba1936 100644
@@ -1,5 +1,5 @@
-# From https://www.php.net/downloads.php
-sha256  388ee5fd111097e97bae439bff46aec4ea27f816d3f0c2cb5490a41410d44251  php-8.3.24.tar.xz
+# From https://www.php.net/downloads.php?source=Y
+sha256  b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df  php-8.4.13.tar.xz
 
 # License file
 sha256  b42e4df5e50e6ecda1047d503d6d91d71032d09ed1027ba1ef29eed26f890c5a  LICENSE
package/php/php.mk +7 -3
index 5460f440cb..db9308dd7f 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PHP_VERSION = 8.3.24
+PHP_VERSION = 8.4.13
 PHP_SITE = https://www.php.net/distributions
 PHP_SOURCE = php-$(PHP_VERSION).tar.xz
 PHP_INSTALL_STAGING = YES
@@ -43,6 +43,10 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 PHP_EXTRA_LIBS += -latomic
 endif
 
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+PHP_CONF_ENV += php_cv_func_copy_file_range=no
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUCONTEXT),y)
 PHP_DEPENDENCIES += libucontext
 PHP_EXTRA_LIBS += -lucontext
@@ -259,10 +263,10 @@ PHP_POST_CONFIGURE_HOOKS += PHP_DISABLE_VALGRIND
 
 ifeq ($(BR2_PACKAGE_PCRE2_JIT),y)
 PHP_CONF_OPTS += --with-pcre-jit=yes
-PHP_CONF_ENV += ac_cv_have_pcre2_jit=yes
+PHP_CONF_ENV += php_cv_have_pcre2_jit=yes
 else
 PHP_CONF_OPTS += --with-pcre-jit=no
-PHP_CONF_ENV += ac_cv_have_pcre2_jit=no
+PHP_CONF_ENV += php_cv_have_pcre2_jit=no
 endif
 
 ifeq ($(BR2_PACKAGE_PHP_EXT_CURL),y)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 17 lines · Bernd Kuhls

Release notes: https://www.php.net/releases/8.4/en.php

Changelog: https://www.php.net/ChangeLog-8.php#PHP_8_4

Removed patch 0006 which is included in this release, rebased remaining patches.

php commit https://github.com/php/php-src/commit/1f847a0bdfea3f754e5d46f9e016ce2530e5d9a4
added a check on the httpd binary which requires STAGING_DIR being part
of SBINDIR as reported by apxs, adjust apache.mk accordingly.

Upstream commit
https://github.com/php/php-src/commit/ea4e8d513cdd87c8ac28cd1ae06f7e814c83ae28
causes a build error with older uclibc-based toolchains when detecting copy_file_range, disable it by adding php_cv_func_copy_file_range=no to _CONF_ENV for uclibc-toolchains.

Quoted 6 lines

Upstream commit
https://github.com/php/php-src/commit/063213b1aebf3dcbaccd35a801d8c52775de24a2
changed the name of the cache variable ac_cv_have_pcre2_jit to php_cv_have_pcre2_jit.

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot