Created attachment 897906 [details] emerge --info Emerging PHP 8.1 with intl support fails.
Created attachment 897907 [details] build log
Created attachment 897908 [details] emerge --info php
Created attachment 897910 [details, diff] php81-intl.patch Patch backported from 8.2 fix upstream
This only errors with GCC 14, ICU >=74 and PHP 8.1. GCC 13 will succeed likely with a warning. PHP >=8.2 does the right thing
I think it's time to axe php:8.1. I don't have the time to maintain three (or even two) active series, and upstream isn't supporting 8.1 any longer so whatever support we do give it requires patching.
8.1 will be getting security patches for another 17 months. https://www.php.net/supported-versions.php Unfortunately sometimes some code is versioned for 7.4 or 8.0 or 8.1 and you have to upgrade incrementally. As long as people can post patches in the comments it's fine.
I was hit by this bug today as well. I can try the proposed php81-intl.patch later if that will be helpful. Unfortunately, I'm not yet able to update to PHP-8.2, and as Henry Paradiz indicated, PHP-8.1 will be under 'Security Support' until the end of 2025.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4f0dc497fd14287fea99d345e5d815fb7fa4bb1 commit f4f0dc497fd14287fea99d345e5d815fb7fa4bb1 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-09-22 12:26:51 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-09-22 14:07:17 +0000 dev-lang/php: fix the 8.1.x build with gcc-14, icu-74, and USE=intl Thanks to Brian Evans for backporting the patch. We're still re-running autoconf for the 8.1.x series so this isn't too much work to add. Closes: https://bugs.gentoo.org/936235 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-lang/php/files/php-8.1.29-gcc14-intl.patch | 21 + dev-lang/php/php-8.1.29-r1.ebuild | 783 +++++++++++++++++++++++++ 2 files changed, 804 insertions(+)