Icingaweb2: dependencies problem php centos


#1

Hello together,

since Version 2.6.0 icingaweb2 support php 7.2.
Currently I would like to install icingaweb2 and icingacli on a CentOS 7.6. Unfortunately the dependencies are resolved with php 7.1. But php 7.2 is installed over centos scl.

Does anyone have a tip?

I found one old thread on github, that in old versions the version was hard coded into the files.

Data of the environment
CentOS Linux release 7.6.1810 (Core)
Repo: icinga-stable-release
Pre installed php packages: yum -install rh-php72-php-json rh-php72-php-pgsql rh-php72-php-xml rh-php72-php-intl rh-php72-php-common rh-php72-php-pdo rh-php72-php-mysqlnd rh-php72-php-cli rh-php72-php-mbstring rh-php72-php-fpm rh-php72-php-gd rh-php72-php-zip rh-php72-php-ldap rh-php72-php-imagick

Thanks for help!

Best regards
thetechcloudGK


(Chris) #2

actually it should not be a problem to aditionally install php 7.1 on oyur system.

if i look at the dependencys on my system it seems that php71 is hardcoded:

# yum deplist icingaweb2
Loaded plugins: fastestmirror, rhnplugin, versionlock
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
package: icingaweb2.noarch 2.6.2-1.el7.icinga
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-31.el7
  dependency: config(icingaweb2) = 2.6.2-1.el7.icinga
   provider: icingaweb2.noarch 2.6.2-1.el7.icinga
  dependency: icingacli = 2.6.2-1.el7.icinga
   provider: icingacli.noarch 2.6.2-1.el7.icinga
  dependency: icingaweb2-common = 2.6.2-1.el7.icinga
   provider: icingaweb2-common.noarch 2.6.2-1.el7.icinga
  dependency: icingaweb2-vendor-HTMLPurifier = 1:2.6.2-1.el7.icinga
   provider: icingaweb2-vendor-HTMLPurifier.noarch 1:2.6.2-1.el7.icinga
  dependency: icingaweb2-vendor-JShrink = 2.6.2-1.el7.icinga
   provider: icingaweb2-vendor-JShrink.noarch 2.6.2-1.el7.icinga
  dependency: icingaweb2-vendor-Parsedown = 2.6.2-1.el7.icinga
   provider: icingaweb2-vendor-Parsedown.noarch 2.6.2-1.el7.icinga
  dependency: icingaweb2-vendor-dompdf = 2.6.2-1.el7.icinga
   provider: icingaweb2-vendor-dompdf.noarch 2.6.2-1.el7.icinga
  dependency: icingaweb2-vendor-lessphp = 2.6.2-1.el7.icinga
   provider: icingaweb2-vendor-lessphp.noarch 2.6.2-1.el7.icinga
  dependency: php-Icinga = 2.6.2-1.el7.icinga
   provider: php-Icinga.noarch 2.6.2-1.el7.icinga
  dependency: rh-php71-php-common >= 5.6.0
   provider: rh-php71-php-common.x86_64 7.1.8-1.el7
  dependency: rh-php71-php-fpm >= 5.6.0
   provider: rh-php71-php-fpm.x86_64 7.1.8-1.el7
  dependency: rh-php71-php-ldap
   provider: rh-php71-php-ldap.x86_64 7.1.8-1.el7
  dependency: rh-php71-php-mysqlnd
   provider: rh-php71-php-mysqlnd.x86_64 7.1.8-1.el7
  dependency: rh-php71-php-pgsql
   provider: rh-php71-php-pgsql.x86_64 7.1.8-1.el7
  dependency: shadow-utils
   provider: shadow-utils.x86_64 2:4.1.5.1-25.el7

it seems it is defined in the spec file in a seperate git repo:


#3

Hi Chris,

thanks for reply. The problem is the support end from php 7.1 at the end of this year.
But I will go with php 7.1.i just want to have one php version installed on the system.

best regards
thetechcloudGK