Skip to content
This repository has been archived by the owner on Oct 11, 2018. It is now read-only.

Be able to install Beta pear and / or pecl package #146

Open
brentclark opened this issue Apr 15, 2015 · 3 comments
Open

Be able to install Beta pear and / or pecl package #146

brentclark opened this issue Apr 15, 2015 · 3 comments

Comments

@brentclark
Copy link

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

@jippi
Copy link
Owner

jippi commented Apr 15, 2015

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

@brentclark
Copy link
Author

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

@ebuzzz
Copy link

ebuzzz commented Jul 29, 2016

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

cegeka-jenkins pushed a commit to cegeka/puppet-php that referenced this issue Mar 21, 2018
Fixes non-overridable paths

Added validations and isolated fpm pool base dir

- Added validations for new path parameters
-
`$::php::fpm::pool::base_dir` is now mapped internally to another
variable, taking first the value of `$::php::fpm::pool::base_dir` when
provided, then inheriting from `$::php::fpm::config::pool_base_dir` when
the class `$::php::fpm::config` has been instantiated, and finally
inheriting from `$::php::params::fpm_pool_dir` if not provided and not
instantiated.

Change variable assignment logic

Replaces ternaries and fixes misbehaviour

Converts LFCR to LF and fixes test

Replacement of ternaries with pick_default
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants