puppet-php icon indicating copy to clipboard operation
puppet-php copied to clipboard

Be able to install Beta pear and / or pecl package

Open brentclark opened this issue 10 years ago • 3 comments

Good day

I would like to put in a request for the management and installation of beta packages for pear and pecl. If you can add package version numbering support it would be appreciated.

Kind Regards Brent Clark

brentclark avatar Apr 15 '15 11:04 brentclark

Have you tried to set $package to something ala "amqp-beta" and "amqp-1.4.0"

Thats the format pecl CLI use to specify version

jippi avatar Apr 15 '15 11:04 jippi

Thanks for replying. It doesn't work

This is my code

  net_dime:
    package: 'Net_DIME-0.3'
    ensure: installed
    provider: pear
  soap:
    package: 'SOAP-0.12.0'
    ensure: installed
    provider: pear
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for REMOVED
Info: Applying configuration version '1429101658'
Error: Execution of '/usr/bin/pear upgrade -a SOAP-0.12.0' returned 1: pear/SOAP is already installed and is the same as the released version 0.12.0
upgrade failed
Error: /Stage[main]/Profile::Webserver/Php::Extension[soap]/Package[SOAP-0.12.0]/ensure: change from absent to present failed: Execution of '/usr/bin/pear upgrade -a SOAP-0.12.0' returned 1: pear/SOAP is already installed and is the same as the released version 0.12.0
upgrade failed
Notice: /Stage[main]/Profile::Webserver/Php::Extension[net_dime]/Package[Net_DIME-0.3]/ensure: created
Info: Php::Extension[net_dime]: Scheduling refresh of Service[httpd]
Notice: /Stage[main]/Packages/Package[libswitch-perl]/ensure: ensure changed 'purged' to 'latest'
Notice: /Stage[main]/Apache::Service/Service[httpd]: Dependency Package[SOAP-0.12.0] has failures: true
Warning: /Stage[main]/Apache::Service/Service[httpd]: Skipping because of failed dependencies
Notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 1 events

I even tried specifying the version for 'ensure'.

root@REMOVED ~ # pear list | egrep 'SOAP|Net_DIME'
Net_DIME          1.0.2   stable
SOAP              0.12.0  beta

brentclark avatar Apr 15 '15 13:04 brentclark

Setting a specific version for ensure works, even if the package is unstable. I guess the problem you're seeing is related to re-installing an existing extension with the same version as latest:

Error: Execution of '/usr/bin/pear upgrade -a SOAP-0.12.0' returned 1: pear/SOAP is already installed and is the same as the released version 0.12.0 upgrade failed

ebuzzz avatar Jul 29 '16 09:07 ebuzzz