diff mbox series

[meta-oe,30/42] php: upgrade 8.5.13 -> 8.6.0

Message ID 20261123052953.3658549-58-khem.raj@oss.qualcomm.com
State New
Headers show
Series exfatprogs upgrade, remove logfsprogs | expand

Commit Message

Khem Raj Nov. 23, 2026, 5:29 a.m. UTC
New feature release PHP 8.6:
- Partial function application, readonly property defaults,
  #[\Override] on class constants, __debugInfo() on enums
- New Time\Duration class, polling API and stream errors API
- OpenSSL streams: TLS session resumption, external PSK and TLS 1.3
  early data; new curl, GMP, Intl and SNMP features
- Backward incompatible changes in several extensions (more
  ValueError/TypeError checks); mbregex and others deprecated
- Security fixes: CVE-2026-129182, CVE-2026-129289, CVE-2026-129291,
  CVE-2026-129292, CVE-2026-129474, CVE-2026-129496, CVE-2026-129501,
  CVE-2026-129538

PHP 8.6 is relicensed from the PHP License 3.01 to BSD-3-Clause and
folds the Zend license into it. The bundled libtool is now split into
separate m4 files: drop all of them from configure.ac and install the
system copies individually for phpize. The libtool macros reject
--with-pic, use --enable-pic.

License-Update: PHP 8.6 is relicensed from PHP-3.01 to BSD-3-Clause
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...ure.ac-don-t-include-build-libtool.m4.patch | 15 +++++++++------
 .../php/{php_8.5.13.bb => php_8.6.0.bb}        | 18 ++++++++----------
 2 files changed, 17 insertions(+), 16 deletions(-)
 rename meta-oe/recipes-devtools/php/{php_8.5.13.bb => php_8.6.0.bb} (95%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch b/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch
index ae57c012ff..f6bf80ce49 100644
--- a/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch
+++ b/meta-oe/recipes-devtools/php/php/0001-configure.ac-don-t-include-build-libtool.m4.patch
@@ -13,18 +13,21 @@  Signed-off-by: Changqing Li <changqing.li@windriver.com>
 update patch to 8.0.12
 Signed-off-by: Claude Bing <cbing@cybernetics.com>
 ---
- configure.ac | 1 -
- 1 file changed, 1 deletion(-)
+ configure.ac | 6 ------
+ 1 file changed, 6 deletions(-)
 
-diff --git a/configure.ac b/configure.ac
-index b0ea82bf..31933cca 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -6,7 +6,6 @@ dnl ----------------------------------------------------------------------------
- m4_include([build/ax_check_compile_flag.m4])
+@@ -7,12 +7,6 @@
  m4_include([build/ax_func_which_gethostbyname_r.m4])
  m4_include([build/ax_gcc_func_attribute.m4])
+ 
 -m4_include([build/libtool.m4])
+-m4_include([build/ltoptions.m4])
+-m4_include([build/ltsugar.m4])
+-m4_include([build/ltversion.m4])
+-m4_include([build/lt~obsolete.m4])
+-
  m4_include([build/php_cxx_compile_stdcxx.m4])
  m4_include([build/php.m4])
  m4_include([build/pkg.m4])
diff --git a/meta-oe/recipes-devtools/php/php_8.5.13.bb b/meta-oe/recipes-devtools/php/php_8.6.0.bb
similarity index 95%
rename from meta-oe/recipes-devtools/php/php_8.5.13.bb
rename to meta-oe/recipes-devtools/php/php_8.6.0.bb
index 0fbcfd6ea2..b6cbf02a2f 100644
--- a/meta-oe/recipes-devtools/php/php_8.5.13.bb
+++ b/meta-oe/recipes-devtools/php/php_8.6.0.bb
@@ -2,8 +2,8 @@  SUMMARY = "A server-side, HTML-embedded scripting language"
 HOMEPAGE = "https://www.php.net"
 SECTION = "console/network"
 
-LICENSE = "PHP-3.01"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=fd469cce1a919f0cc95bab7afb28d19d"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=31121fc749dab3726adb6deb79a59616"
 
 BBCLASSEXTEND = "native"
 DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native"
@@ -32,7 +32,7 @@  UPSTREAM_CHECK_REGEX = "releases/tag/php-(?P<pver>\d+(\.\d+)+)"
 
 S = "${UNPACKDIR}/php-${PV}"
 
-SRC_URI[sha256sum] = "47d50c36016784a4a71f019cd7bfa29c31e4be0de22d3fa06095b280a6299e2f"
+SRC_URI[sha256sum] = "9e233e38999a89f351a33ae6a7276d1caf5addcba11e09e3bbe3a8d25f411ff1"
 
 CVE_PRODUCT = "php:php php_group:php"
 
@@ -62,7 +62,7 @@  COMMON_EXTRA_OECONF = "--enable-sockets \
                        --enable-pcntl \
                        --enable-shared \
                        --disable-rpath \
-                       --with-pic \
+                       --enable-pic \
                        --libdir=${PHP_LIBDIR} \
 "
 EXTRA_OECONF = "--enable-mbstring \
@@ -134,7 +134,7 @@  LDFLAGS:append:riscv64 = " -latomic"
 EXTRA_OEMAKE = "INSTALL_ROOT=${D}"
 
 do_configure:prepend () {
-    rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4
+    rm -f ${S}/build/libtool.m4 ${S}/build/lt*.m4 ${S}/ltmain.sh ${S}/aclocal.m4
     find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_SBINDIR_NATIVE}/httpd!'
 }
 
@@ -158,11 +158,9 @@  do_install:append:class-native() {
 }
 
 do_install:prepend() {
-    cat ${STAGING_DATADIR}/aclocal/libtool.m4 \
-    ${STAGING_DATADIR}/aclocal/lt~obsolete.m4 \
-    ${STAGING_DATADIR}/aclocal/ltoptions.m4 \
-    ${STAGING_DATADIR}/aclocal/ltsugar.m4 \
-    ${STAGING_DATADIR}/aclocal/ltversion.m4 > ${S}/build/libtool.m4
+    for m4 in libtool lt~obsolete ltoptions ltsugar ltversion; do
+        cp ${STAGING_DATADIR}/aclocal/$m4.m4 ${S}/build/
+    done
 }
 
 do_install:prepend:class-target() {