Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 577918

Summary: dev-php/pecl-pthreads ebuild request
Product: Gentoo Linux Reporter: Bartosz Krzeszewski <bartek>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: normal CC: alex, gentoo, h.mth, hydrapolic, mjo
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild with added threads use flag (dev-php/pecl-pthreads needs ZTS enabled)
pecl-pthreads-2.0.10.ebuild
pecl-pthreads-3.1.6.ebuild
pecl-pthreads-2.0.10.ebuild
pecl-pthreads-3.1.6.ebuild
pecl-pthreads-9999.ebuild
pecl-pthreads-2.0.10.ebuild
pecl-pthreads-3.1.6.ebuild
pecl-pthreads-3.1.9999.ebuild
pecl-pthreads-9999.ebuild

Description Bartosz Krzeszewski 2016-03-21 11:29:45 UTC
This is ebuild request for PECL pthreads - high level implementation of POSIX threads.

Sources:
 https://pecl.php.net/package/pthreads 

Installation instruction:
http://php.net/manual/en/pthreads.installation.php

Requirements:
http://php.net/manual/en/pthreads.requirements.php

Ebuild from geki overlay (doesn't work for me):
https://gpo.zugaina.org/dev-php/pecl-pthreads
Comment 1 Bartosz Krzeszewski 2016-03-21 17:37:12 UTC
Created attachment 428724 [details]
ebuild with added threads use flag (dev-php/pecl-pthreads needs ZTS enabled)
Comment 2 Tomáš Mózes 2016-04-01 07:17:29 UTC
Do you wish to proxy maintain this Bartosz?
Comment 3 Bartosz Krzeszewski 2016-04-03 23:44:41 UTC
No, I don't feel like I can handle this.
Comment 4 Tomáš Mózes 2016-04-04 05:42:42 UTC
Then I'm sorry to say, but this will probably not make it into gentoo. If someone needs this, he will add anyway, but adding ebuilds upon request is not so probable (maybe just in cases if it's very common request). If you change your mind, feel free to ping, the ebuild does not look that complicated, I'm sure we can help you with maintaining it.
Comment 5 Brian Evans (RETIRED) gentoo-dev 2017-07-07 16:34:32 UTC
Created attachment 481728 [details]
pecl-pthreads-2.0.10.ebuild

I'll add this to Gentoo if you can test the threads on 5.6, 7.0 and 7.1
Comment 6 Brian Evans (RETIRED) gentoo-dev 2017-07-07 16:35:10 UTC
Created attachment 481730 [details]
pecl-pthreads-3.1.6.ebuild
Comment 7 Alex Barker 2018-03-18 17:53:51 UTC
I am willing and able to proxy maintain this package.  I have tested 2.0.10, 3.1.6 and 9999 (HEAD) with 5.6, 7.0/.1 and 7.2 respectively.
Comment 8 Alex Barker 2018-03-21 20:45:54 UTC
Created attachment 524746 [details]
pecl-pthreads-2.0.10.ebuild

@grknight I have updated the ebuilds you gave me and tested.  The attachments should be good for 5.6, 7.0 and 7.2 from the trunk. The 3.1.x branch does not support 7.1 OR 7.2 yet.  I tried building the master branch against 7.1 but it fails spectacularly so I have opened the upstream bug https://github.com/krakjoe/pthreads/issues/850
Comment 9 Alex Barker 2018-03-21 20:46:18 UTC
Created attachment 524748 [details]
pecl-pthreads-3.1.6.ebuild
Comment 10 Alex Barker 2018-03-21 20:47:03 UTC
Created attachment 524750 [details]
pecl-pthreads-9999.ebuild

PHP 7.1 does not appear to be compatible.
Comment 11 Alex Barker 2018-03-21 21:39:10 UTC
So I have heard back from upstream, php 7.0 and 7.1 are not supported by pthreads...  So really, there is no PHP7+ stable release.  Just the master branch.
Comment 12 Alex Barker 2018-03-21 22:02:17 UTC
Created attachment 524752 [details]
pecl-pthreads-2.0.10.ebuild
Comment 13 Alex Barker 2018-03-21 22:04:48 UTC
Created attachment 524754 [details]
pecl-pthreads-3.1.6.ebuild

Big fat warning:  php 7.0 and 7.1 have a race condition in the engine that cause instability in pthreads for these versions of php.  Please mask accordingly.
Comment 14 Alex Barker 2018-03-21 22:05:54 UTC
Created attachment 524756 [details]
pecl-pthreads-3.1.9999.ebuild

This is the last 7.1 commit, no release will be made for 7.1 due to the aforementioned race condition.
Comment 15 Alex Barker 2018-03-21 22:06:24 UTC
Created attachment 524758 [details]
pecl-pthreads-9999.ebuild
Comment 16 Conrad Kostecki gentoo-dev 2018-10-01 18:28:43 UTC
Hey Alex.
Do you still want to proxy maintain?
Maybe you could fill then a Github PR?

Conrad
Comment 17 Alex Barker 2019-12-04 05:46:11 UTC
Hi Conrad,

The pthreads extension has been discontinued with PHP 7.4 in favor of the parallel extension by the same author.  When I have a few minutes, I will see if I can get this new extension working and test the compatibility.  If everything looks good, I can proxy maintain this new package.  I need to adjust my email filters.

https://github.com/krakjoe/pthreads/issues/929
Comment 18 Alex Barker 2019-12-05 04:52:50 UTC
I have created bug #702018 to supersede this ticket.  A pull request has been opened https://github.com/gentoo/gentoo/pull/13875.
Comment 19 Michael Orlitzky gentoo-dev 2024-01-27 12:30:19 UTC
The follow-up bug 702018 to add pecl-parallel was fixed.