php: sort PACKAGECONFIG options
PATCH 1/4 php: sort PACKAGECONFIG options
From: Jeroen Hofstee <[email protected]>
This backports commit bb896f6b6f92 ("php: sort PACKAGECONFIG options"), which was missing in 8.4.5 and helps in reducing unnecessary diffs in future upgrades.
--- meta-oe/recipes-devtools/php/php_8.4.6.bb | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-)
meta-oe/recipes-devtools/php/php_8.4.6.bb +10 -12
@@ -92,27 +92,25 @@ PACKAGECONFIG ??= "mysql sqlite3 opcache openssl \ " PACKAGECONFIG:class-native = "" -PACKAGECONFIG[zip] = "--with-zip --with-zlib-dir=${STAGING_EXECPREFIXDIR},,libzip" - +PACKAGECONFIG[apache2] = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs,,apache2-native apache2" +PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," +PACKAGECONFIG[mbregex] = "--enable-mbregex, --disable-mbregex, oniguruma" +PACKAGECONFIG[mbstring] = "--enable-mbstring,," PACKAGECONFIG[mysql] = "--with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ ,--without-mysqli --without-pdo-mysql \ ,mysql5" - +PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" +PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" +PACKAGECONFIG[pam] = ",,libpam" +PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,postgresql" +PACKAGECONFIG[soap] = "--enable-soap, --disable-soap, libxml2" PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ ,--without-sqlite3 --without-pdo-sqlite \ ,sqlite3" -PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,postgresql" -PACKAGECONFIG[soap] = "--enable-soap, --disable-soap, libxml2" -PACKAGECONFIG[apache2] = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs,,apache2-native apache2" -PACKAGECONFIG[pam] = ",,libpam" -PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," -PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" -PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" PACKAGECONFIG[valgrind] = "--with-valgrind=${STAGING_DIR_TARGET}/usr,--with-valgrind=no,valgrind" -PACKAGECONFIG[mbregex] = "--enable-mbregex, --disable-mbregex, oniguruma" -PACKAGECONFIG[mbstring] = "--enable-mbstring,," +PACKAGECONFIG[zip] = "--with-zip --with-zlib-dir=${STAGING_EXECPREFIXDIR},,libzip" export HOSTCC = "${BUILD_CC}" export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
Signature · 1 line
2.40.0
PATCH 2/4 php: upgrade 8.4.6 -> 8.4.8
From: Jason Schonberg <[email protected]>
Changelog: https://www.php.net/ChangeLog-8.php#8.4.8
Changelog: https://www.php.net/ChangeLog-8.php#8.4.7
---
meta-oe/recipes-devtools/php/{php_8.4.6.bb => php_8.4.8.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-devtools/php/{php_8.4.6.bb => php_8.4.8.bb} (99%)meta-oe/recipes-devtools/php/php_8.4.8.bb renamed from meta-oe/recipes-devtools/php/php_8.4.6.bb +2 -2
@@ -1,5 +1,5 @@ SUMMARY = "A server-side, HTML-embedded scripting language" -HOMEPAGE = "http://www.php.net" +HOMEPAGE = "https://www.php.net" SECTION = "console/network" LICENSE = "PHP-3.0"
@@ -29,7 +29,7 @@ SRC_URI:append:class-target = " \ S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "9cf2734509b603f6589617ab52a9712a03e0fe059951cddd2d4623df4bf7c6c6" +SRC_URI[sha256sum] = "36569c64dd1499e570c436603b641eee7cde4af576af786597d0ee711b3a3a8a" CVE_STATUS_GROUPS += "CVE_STATUS_PHP" CVE_STATUS_PHP[status] = "fixed-version: The name of this product is exactly the same as github.com/emlog/emlog. CVE can be safely ignored."
Signature · 1 line
2.40.0
PATCH 3/4 php: upgrade 8.4.8 -> 8.4.10
In reply to Praveen KumarFrom: Jason Schonberg <[email protected]>
This is a security update.
There are fixes for memory leaks, segfaults and CVEs.
CVE-2025-1735
CVE-2025-1220
CVE-2025-6491
Changelog: https://www.php.net/ChangeLog-8.php#8.4.10
---
meta-oe/recipes-devtools/php/{php_8.4.8.bb => php_8.4.10.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-devtools/php/{php_8.4.8.bb => php_8.4.10.bb} (99%)meta-oe/recipes-devtools/php/php_8.4.10.bb renamed from meta-oe/recipes-devtools/php/php_8.4.8.bb +1 -1
@@ -29,7 +29,7 @@ SRC_URI:append:class-target = " \ S = "${WORKDIR}/php-${PV}" -SRC_URI[sha256sum] = "36569c64dd1499e570c436603b641eee7cde4af576af786597d0ee711b3a3a8a" +SRC_URI[sha256sum] = "8815d10659cde5f03be4d169205d62b7b29ed0edc7cdd84b6384cda0310c3108" CVE_STATUS_GROUPS += "CVE_STATUS_PHP" CVE_STATUS_PHP[status] = "fixed-version: The name of this product is exactly the same as github.com/emlog/emlog. CVE can be safely ignored."
Signature · 1 line
2.40.0
PATCH 4/4 php: fix removal of --with-zlib-dir configure option
In reply to Praveen KumarFrom: Gijs Peskens <[email protected]>
PHP has removed the --with-zlib-dir configure option since that is now taken over by pkg-config, this breaks building PHP on Walnascar when zip is enabled via PACKAGECONFIG.
So remove it.
--- meta-oe/recipes-devtools/php/php_8.4.10.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/php/php_8.4.10.bb +1 -1
@@ -110,7 +110,7 @@ PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ ,--without-sqlite3 --without-pdo-sqlite \ ,sqlite3" PACKAGECONFIG[valgrind] = "--with-valgrind=${STAGING_DIR_TARGET}/usr,--with-valgrind=no,valgrind" -PACKAGECONFIG[zip] = "--with-zip --with-zlib-dir=${STAGING_EXECPREFIXDIR},,libzip" +PACKAGECONFIG[zip] = "--with-zip,,libzip" export HOSTCC = "${BUILD_CC}" export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
Signature · 1 line
2.40.0
Hi Praveen,
Quoted 7 lines · Praveen Kumar
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
From: Jeroen Hofstee <[email protected]>
This backports commit
bb896f6b6f92("php: sort PACKAGECONFIG options"), which was missing in 8.4.5 and helps in reducing unnecessary diffs in future upgrades.
This isn't missing anything. Cleanups like this are not supposed to be backported.
With kind regards,
Jeroen
Hi Jeroen,
Thanks for the feedback.
I understand this is a cleanup, but we are actively maintaining this branch, having the PACKAGECONFIG options sorted makes it easier to manage. It helps reduce unnecessary diff when we compare the same with the master branch or apply future updates.
Keeping this patch would help us avoid conflicts later and make upgrades easier. Will it be fine to keep this patch for easier upgradation and maintenance?
Please suggest your views on this, can we keep this patch for better alignment of future upgradation or do I need to resend the v2 of this upgrade without this patch.
Thanks,
Praveen
________________________________
From: Jeroen Hofstee <[email protected]>
Sent: Thursday, July 31, 2025 12:38 AM
To: Kumar, Praveen <[email protected]>; [email protected] <[email protected]>
Subject: Re: [oe][meta-oe][walnascar[PATCH 1/4] php: sort PACKAGECONFIG options
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi Praveen,
Quoted 7 lines · Praveen Kumar
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
From: Jeroen Hofstee <[email protected]>
This backports commit
bb896f6b6f92("php: sort PACKAGECONFIG options"), which was missing in 8.4.5 and helps in reducing unnecessary diffs in future upgrades.
This isn't missing anything. Cleanups like this are not supposed to be backported.
With kind regards,
Jeroen
Hi Praveen,
I have no strong feelings about this. I just purposely didn't sent it to older branches, since it doesn't fix a php issue or CVE, just readability and for future maintenance , so in that sense there isn't anything missing, nothing is broken without this patch.
If you are cherry-picking patches back, which I understand you are doing, I understand you want to include that patch, else you get in a lot of silly, unnecessary conflicts.
But for other meta changes, like lets say more PACKAGES, but without according recommends you can break things with meta-data alone.
I guess it is just up to the maintainers,
With kind regards,
Jeroen
Quoted 37 lines · Praveen
Thanks for the feedback.
I understand this is a cleanup, but we are actively maintaining this branch, having the PACKAGECONFIG options sorted makes it easier to manage. It helps reduce unnecessary diff when we compare the same with the master branch or apply future updates.
Keeping this patch would help us avoid conflicts later and make upgrades easier. Will it be fine to keep this patch for easier upgradation and maintenance?
Please suggest your views on this, can we keep this patch for better alignment of future upgradation or do I need to resend the v2 of this upgrade without this patch.
Thanks,
Praveen
------------------------------------------------------------------------
*From:* Jeroen Hofstee <[email protected]>
*Sent:* Thursday, July 31, 2025 12:38 AM
*To:* Kumar, Praveen <[email protected]>; [email protected] <[email protected]> *Subject:* Re: [oe][meta-oe][walnascar[PATCH 1/4] php: sort PACKAGECONFIG options
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Hi Praveen,
Quoted 1 line · Praveen Kumar
[You don't often get email from [email protected]. Learn
why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Quoted 6 lines
From: Jeroen Hofstee <[email protected]>
This backports commit
bb896f6b6f92("php: sort PACKAGECONFIG options"), which was missing in 8.4.5 and helps in reducing unnecessary diffs in future upgrades.This isn't missing anything. Cleanups like this are not supposed to be backported.
With kind regards,
Jeroen