Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936235 - dev-lang/php-8.1.29[intl]: Failed to emerge with dev-libs/icu-75: stringpiece.h:133:29: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
Summary: dev-lang/php-8.1.29[intl]: Failed to emerge with dev-libs/icu-75: stringpiece...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 931089
  Show dependency tree
 
Reported: 2024-07-18 00:35 UTC by Matt
Modified: 2024-09-22 14:08 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,17.53 KB, text/plain)
2024-07-18 00:35 UTC, Matt
Details
build log (build.log,395.29 KB, text/x-log)
2024-07-18 00:37 UTC, Matt
Details
emerge --info php (dev-lang-php,19.21 KB, text/plain)
2024-07-18 00:40 UTC, Matt
Details
php81-intl.patch (php81-intl.patch,809 bytes, patch)
2024-07-18 01:38 UTC, Brian Evans
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2024-07-18 00:35:19 UTC
Created attachment 897906 [details]
emerge --info

Emerging PHP 8.1 with intl support fails.
Comment 1 Matt 2024-07-18 00:37:50 UTC
Created attachment 897907 [details]
build log
Comment 2 Matt 2024-07-18 00:40:26 UTC
Created attachment 897908 [details]
emerge --info php
Comment 3 Brian Evans 2024-07-18 01:38:55 UTC
Created attachment 897910 [details, diff]
php81-intl.patch

Patch backported from 8.2 fix upstream
Comment 4 Brian Evans 2024-07-18 12:53:43 UTC
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
Comment 5 Michael Orlitzky gentoo-dev 2024-07-20 21:31:07 UTC
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.
Comment 6 Henry Paradiz 2024-07-23 21:52:34 UTC
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.
Comment 7 Nathan Zachary 2024-09-18 18:36:55 UTC
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.
Comment 8 Larry the Git Cow gentoo-dev 2024-09-22 14:08:07 UTC
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(+)