Opened 9 years ago

Closed 4 years ago

#48553 closed request (fixed)

create new php70-ssh2 port

Reported by: alex@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: chris+macports@…
Port: php70-ssh2

Description

We're still missing the php70-ssh2 port (unfortunately the only thing holding me up, personally). I gather that there are some obstacles with php7 apcu and xdebug, but hopefully the same is not the case here... Thanks!

Change History (11)

comment:1 Changed 9 years ago by Ionic (Mihai Moldovan)

Keywords: php php70 removed
Type: defectrequest

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…

I was not planning on making any php70 subports for non-bundled PHP extensions until after PHP 7.0 has had a final release, just in case there are changes in PHP 7.0 that would necessitate rebuilding those extensions, which is a bit inconvenient to do. But if you'd like to try it, you can edit the php-ssh2 portfile, add "7.0" to the php.branches line, then run portindex in the dports directory. Then you should be able to install php70-ssh2, assuming it works.

comment:3 Changed 9 years ago by alex@…

Ah, okay. No problem -- I can wait. Thanks for maintaining all these!

comment:4 Changed 9 years ago by alex@…

Bumping this now, since PHP 7.0 was released on Dec. 3.

As of today, macports currently has RC8, so php70 could be updated to final, and then these non-bundled PHP extensions can be built and put in the repo as well.

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

I've updated php70 to version 7.0.0, however so far, no third-party module I've tried to build under PHP 7.0.0, including the ssh2 module, builds successfully. So I would say if you want a php70 version of a module, you should check that module's homepage for any mention of PHP 7 compatibility. If there is, file a MacPorts ticket asking for a php70 subport of that module. If there is no mention of PHP 7 compatibility (for example, the ssh2 module's homepage says the latest version 0.12 is compatible with PHP versions 4 through 6 inclusive), you should file a bug report with that project asking them to release a PHP 7-compatible version. Once they do, file a MacPorts ticket asking for the update and the php70 subport.

comment:6 Changed 9 years ago by alex@…

Actually apparently ssh2 is already compatible with PHP 7, but you have to get it from the official repo (https://github.com/php/pecl-networking-ssh2) rather than from PHP, which doesn't have the latest yet I gather.

References:

https://medium.com/php-7-tutorial/solution-how-to-compile-php7-with-ssh2-f23de4e9c319#.x9zmh55vv http://stackoverflow.com/questions/34207228/how-to-install-ssh2-lib-for-php7-on-linux-ubuntu-wheezy-raspbian

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

I don't doubt that developers are working on adding PHP 7 support, but we do not want to update MacPorts ports to nonstable versions. If the developers feel their code is ready to be used, they should release a new stable version of their project, at which point MacPorts can update the port to that version.

comment:8 Changed 9 years ago by chris+macports@…

Cc: chris+macports@… added

Cc Me!

comment:9 Changed 8 years ago by alex@…

The PHP 7 ssh2 port was added in June. I think this has become actionable now?

See: https://pecl.php.net/package-changelog.php?package=ssh2&release=1.0 for reference.

comment:10 Changed 4 years ago by iEFdev

I think this one was fixed here: [3b63d2c4/macports-ports]

comment:11 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.