[ZBX-17389] (RHEL|CentOS|OEL) 7 confusing dependencies Created: 2020 Feb 29  Updated: 2024 Apr 10  Resolved: 2021 Jun 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 4.4.6, 5.0.0alpha2
Fix Version/s: 6.0 (plan)

Type: Problem report Priority: Major
Reporter: Edgar Akhmetshin Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 2
Labels: Apache, NGINX, PHP-FPM, SCL, packages, packaging, php
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team I
Sprint: Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021)
Story Points: 1

 Description   

Steps to reproduce:

  1. Case 1: i want only frontend files, why web package requires php? For example CentOS 7 with SCL for PHP 7.3 used, my goal is to install nginx + php-fpm manually and skip-broken option is a bad solution:
    yum install zabbix-web
    repoquery --requires --resolve  zabbix-web
    bash-0:4.2.46-33.el7.x86_64
    chkconfig-0:1.7.4-1.el7.x86_64
    php-gd-0:5.4.16-46.el7.x86_64
    php-mbstring-0:5.4.16-46.1.el7_7.x86_64
    php-bcmath-0:5.4.16-46.el7.x86_64
    zabbix-web-pgsql-0:4.4.6-1.el7.noarch
    zabbix-web-mysql-0:4.4.6-1.el7.noarch
    httpd-0:2.4.6-90.el7.centos.x86_64
    php-0:5.4.16-46.1.el7_7.x86_64
    php-ldap-0:5.4.16-46.el7.x86_64
    php-xml-0:5.4.16-46.1.el7_7.x86_64
    dejavu-sans-fonts-0:2.33-6.el7.noarch
    ...
    Dependencies Resolved
    
    ================================================================================================================================================
     Package                                    Arch                      Version                                  Repository                  Size
    ================================================================================================================================================
    Installing:
     zabbix-web                                 noarch                    4.4.6-1.el7                              zabbix                     2.9 M
    Installing for dependencies:
     apr                                        x86_64                    1.4.8-5.el7                              base                       103 k
     apr-util                                   x86_64                    1.5.2-6.el7                              base                        92 k
     centos-logos                               noarch                    70.0.6-3.el7.centos                      base                        21 M
     dejavu-fonts-common                        noarch                    2.33-6.el7                               base                        64 k
     dejavu-sans-fonts                          noarch                    2.33-6.el7                               base                       1.4 M
     fontpackages-filesystem                    noarch                    1.44-8.el7                               base                       9.9 k
     httpd                                      x86_64                    2.4.6-90.el7.centos                      base                       2.7 M
     httpd-tools                                x86_64                    2.4.6-90.el7.centos                      base                        91 k
     libX11                                     x86_64                    1.6.7-2.el7                              base                       607 k
     libX11-common                              noarch                    1.6.7-2.el7                              base                       164 k
     libXau                                     x86_64                    1.0.8-2.1.el7                            base                        29 k
     libXpm                                     x86_64                    3.5.12-1.el7                             base                        55 k
     libjpeg-turbo                              x86_64                    1.2.90-8.el7                             base                       135 k
     libxcb                                     x86_64                    1.13-1.el7                               base                       214 k
     libxslt                                    x86_64                    1.1.28-5.el7                             base                       242 k
     libzip                                     x86_64                    0.10.1-8.el7                             base                        48 k
     mailcap                                    noarch                    2.1.41-2.el7                             base                        31 k
     php                                        x86_64                    5.4.16-46.1.el7_7                        updates                    1.4 M
     php-bcmath                                 x86_64                    5.4.16-46.1.el7_7                        updates                     58 k
     php-cli                                    x86_64                    5.4.16-46.1.el7_7                        updates                    2.7 M
     php-common                                 x86_64                    5.4.16-46.1.el7_7                        updates                    565 k
     php-gd                                     x86_64                    5.4.16-46.1.el7_7                        updates                    128 k
     php-ldap                                   x86_64                    5.4.16-46.1.el7_7                        updates                     53 k
     php-mbstring                               x86_64                    5.4.16-46.1.el7_7                        updates                    505 k
     php-pdo                                    x86_64                    5.4.16-46.1.el7_7                        updates                     99 k
     php-pgsql                                  x86_64                    5.4.16-46.1.el7_7                        updates                     86 k
     php-xml                                    x86_64                    5.4.16-46.1.el7_7                        updates                    126 k
     postgresql-libs                            x86_64                    9.2.24-2.el7_7                           updates                    234 k
     t1lib                                      x86_64                    5.1.2-14.el7                             base                       166 k
     zabbix-web-pgsql                           noarch                    4.4.6-1.el7                              zabbix                      11 k
    
    
     
    *Result:*
    See screenshot...
    See log file...
    See memory dump...
    *Expected:*
    See screenshot....
    See attached patch file...
    
    
  2. Case 2: i want to install nginx configuration files without PHP5.4 version:
    yum install zabbix-nginx-conf
    
    ================================================================================================================================================
     Package                                       Arch                     Version                                 Repository                 Size
    ================================================================================================================================================
    Installing:
     zabbix-nginx-conf                             noarch                   4.4.6-1.el7                             zabbix                    228 k
    Installing for dependencies:
     apr                                           x86_64                   1.4.8-5.el7                             base                      103 k
     apr-util                                      x86_64                   1.5.2-6.el7                             base                       92 k
     centos-indexhtml                              noarch                   7-9.el7.centos                          base                       92 k
     centos-logos                                  noarch                   70.0.6-3.el7.centos                     base                       21 M
     dejavu-fonts-common                           noarch                   2.33-6.el7                              base                       64 k
     dejavu-sans-fonts                             noarch                   2.33-6.el7                              base                      1.4 M
     fontconfig                                    x86_64                   2.13.0-4.3.el7                          base                      254 k
     fontpackages-filesystem                       noarch                   1.44-8.el7                              base                      9.9 k
     gd                                            x86_64                   2.0.35-26.el7                           base                      146 k
     gperftools-libs                               x86_64                   2.6.1-1.el7                             base                      272 k
     httpd                                         x86_64                   2.4.6-90.el7.centos                     base                      2.7 M
     httpd-tools                                   x86_64                   2.4.6-90.el7.centos                     base                       91 k
     libX11                                        x86_64                   1.6.7-2.el7                             base                      607 k
     libX11-common                                 noarch                   1.6.7-2.el7                             base                      164 k
     libXau                                        x86_64                   1.0.8-2.1.el7                           base                       29 k
     libXpm                                        x86_64                   3.5.12-1.el7                            base                       55 k
     libjpeg-turbo                                 x86_64                   1.2.90-8.el7                            base                      135 k
     libxcb                                        x86_64                   1.13-1.el7                              base                      214 k
     libxslt                                       x86_64                   1.1.28-5.el7                            base                      242 k
     libzip                                        x86_64                   0.10.1-8.el7                            base                       48 k
     mailcap                                       noarch                   2.1.41-2.el7                            base                       31 k
     make                                          x86_64                   1:3.82-24.el7                           base                      421 k
     nginx                                         x86_64                   1:1.16.1-1.el7                          epel                      562 k
     nginx-all-modules                             noarch                   1:1.16.1-1.el7                          epel                       19 k
     nginx-filesystem                              noarch                   1:1.16.1-1.el7                          epel                       21 k
     nginx-mod-http-image-filter                   x86_64                   1:1.16.1-1.el7                          epel                       30 k
     nginx-mod-http-perl                           x86_64                   1:1.16.1-1.el7                          epel                       39 k
     nginx-mod-http-xslt-filter                    x86_64                   1:1.16.1-1.el7                          epel                       29 k
     nginx-mod-mail                                x86_64                   1:1.16.1-1.el7                          epel                       57 k
     nginx-mod-stream                              x86_64                   1:1.16.1-1.el7                          epel                       84 k
     openssl                                       x86_64                   1:1.0.2k-19.el7                         base                      493 k
     perl                                          x86_64                   4:5.16.3-294.el7_6                      base                      8.0 M
     perl-Carp                                     noarch                   1.26-244.el7                            base                       19 k
     perl-Encode                                   x86_64                   2.51-7.el7                              base                      1.5 M
     perl-Exporter                                 noarch                   5.68-3.el7                              base                       28 k
     perl-File-Path                                noarch                   2.09-2.el7                              base                       26 k
     perl-File-Temp                                noarch                   0.23.01-3.el7                           base                       56 k
     perl-Filter                                   x86_64                   1.49-3.el7                              base                       76 k
     perl-Getopt-Long                              noarch                   2.40-3.el7                              base                       56 k
     perl-HTTP-Tiny                                noarch                   0.033-3.el7                             base                       38 k
     perl-PathTools                                x86_64                   3.40-5.el7                              base                       82 k
     perl-Pod-Escapes                              noarch                   1:1.04-294.el7_6                        base                       51 k
     perl-Pod-Perldoc                              noarch                   3.20-4.el7                              base                       87 k
     perl-Pod-Simple                               noarch                   1:3.28-4.el7                            base                      216 k
     perl-Pod-Usage                                noarch                   1.63-3.el7                              base                       27 k
     perl-Scalar-List-Utils                        x86_64                   1.27-248.el7                            base                       36 k
     perl-Socket                                   x86_64                   2.010-4.el7                             base                       49 k
     perl-Storable                                 x86_64                   2.45-3.el7                              base                       77 k
     perl-Text-ParseWords                          noarch                   3.29-4.el7                              base                       14 k
     perl-Time-HiRes                               x86_64                   4:1.9725-3.el7                          base                       45 k
     perl-Time-Local                               noarch                   1.2300-2.el7                            base                       24 k
     perl-constant                                 noarch                   1.27-2.el7                              base                       19 k
     perl-libs                                     x86_64                   4:5.16.3-294.el7_6                      base                      688 k
     perl-macros                                   x86_64                   4:5.16.3-294.el7_6                      base                       44 k
     perl-parent                                   noarch                   1:0.225-244.el7                         base                       12 k
     perl-podlators                                noarch                   2.5.1-3.el7                             base                      112 k
     perl-threads                                  x86_64                   1.87-4.el7                              base                       49 k
     perl-threads-shared                           x86_64                   1.43-6.el7                              base                       39 k
     php                                           x86_64                   5.4.16-46.1.el7_7                       updates                   1.4 M
     php-bcmath                                    x86_64                   5.4.16-46.1.el7_7                       updates                    58 k
     php-cli                                       x86_64                   5.4.16-46.1.el7_7                       updates                   2.7 M
     php-common                                    x86_64                   5.4.16-46.1.el7_7                       updates                   565 k
     php-fpm                                       x86_64                   5.4.16-46.1.el7_7                       updates                   1.4 M
     php-gd                                        x86_64                   5.4.16-46.1.el7_7                       updates                   128 k
     php-ldap                                      x86_64                   5.4.16-46.1.el7_7                       updates                    53 k
     php-mbstring                                  x86_64                   5.4.16-46.1.el7_7                       updates                   505 k
     php-pdo                                       x86_64                   5.4.16-46.1.el7_7                       updates                    99 k
     php-pgsql                                     x86_64                   5.4.16-46.1.el7_7                       updates                    86 k
     php-xml                                       x86_64                   5.4.16-46.1.el7_7                       updates                   126 k
     postgresql-libs                               x86_64                   9.2.24-2.el7_7                          updates                   234 k
     t1lib                                         x86_64                   5.1.2-14.el7                            base                      166 k
     zabbix-web                                    noarch                   4.4.6-1.el7                             zabbix                    2.9 M
     zabbix-web-pgsql                              noarch                   4.4.6-1.el7                             zabbix                     11 k
    
    Transaction Summary
    ================================================================================================================================================
    Install  1 Package (+73 Dependent packages)
    
    repoquery --requires --resolve  nginx
    pcre-0:8.32-17.el7.x86_64
    openssl-1:1.0.2k-19.el7.x86_64
    bash-0:4.2.46-33.el7.x86_64
    centos-logos-0:70.0.6-3.el7.centos.noarch
    pcre-0:8.32-17.el7.i686
    gperftools-libs-0:2.6.1-1.el7.x86_64
    systemd-0:219-67.el7_7.2.x86_64
    glibc-0:2.17-292.el7.i686
    nginx-filesystem-1:1.16.1-1.el7.noarch
    zlib-0:1.2.7-18.el7.x86_64
    glibc-0:2.17-292.el7.x86_64
    nginx-all-modules-1:1.16.1-1.el7.noarch
    centos-indexhtml-0:7-9.el7.centos.noarch
    openssl-libs-1:1.0.2k-19.el7.x86_64
    

Since RHEL users able to use PHP7 from SCL and NGINGX and NGINX Unit files provided officially this is incorrect behaviour of a package dependencies.

Please review and provide frontend files without any dependencies for apache/nginx/php.



 Comments   
Comment by Aleksandrs Petrovs-Gavrilovs [ 2020 May 14 ]

The same goes for zabbix-apache-conf:

Installing:
 zabbix-apache-conf                                 noarch                            5.0.0-1.el8                                                          zabbix                               
Installing dependencies:
 apr
 apr-util
 centos-logos-httpd
 gd
 httpd
 httpd-filesystem
 httpd-tools
 jbigkit-libs
 libX11
 libX11-common
 libXau
 libXpm
 libjpeg-turbo 
 libtiff
 libwebp 
 libxcb mod_http2
 nginx-filesystem               

Why does the nginx-filesystem is still being included?

Best Regards,
Aleksandrs

 

Comment by Jurijs Klopovskis [ 2021 Jun 02 ]

Fixed as of 5.0.12

Case 1: i want only frontend files...

Package zabbix-web package has no more dependencies on php or web server.

[root@centos7 ~]# rpm -qR zabbix-web
/bin/sh
/bin/sh
/usr/sbin/update-alternatives
/usr/sbin/update-alternatives
config(zabbix-web) = 5.0.12-1.el7
dejavu-sans-fonts
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
[root@centos7 ~]#

Case 2: i want to install nginx configuration files without PHP5.4 version

Zabbix web server conf packages do pull php dependencies via zabbix-web-deps (php72) or zabbix-web-deps-scl-php73 package.

[root@centos7 ~]# rpm -qR zabbix-apache-conf-scl
config(zabbix-apache-conf-scl) = 5.0.12-1.el7
httpd
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
zabbix-web-deps-scl = 5.0.12-1.el7
rpmlib(PayloadIsXz) <= 5.2-1

[root@centos7 ~]# rpm -qR zabbix-nginx-conf-scl
config(zabbix-nginx-conf-scl) = 5.0.12-1.el7
rh-nginx116-nginx
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
zabbix-web-deps-scl = 5.0.12-1.el7
rpmlib(PayloadIsXz) <= 5.2-1
[root@centos7 ~]# rpm -ql zabbix-apache-conf-scl
/etc/httpd/conf.d/zabbix.conf

[root@centos7 ~]# rpm -qR zabbix-web-deps-scl
/bin/sh
config(zabbix-web-deps-scl) = 5.0.12-1.el7
rh-php72
rh-php72-php-bcmath
rh-php72-php-fpm
rh-php72-php-gd
rh-php72-php-ldap
rh-php72-php-mbstring
rh-php72-php-xml
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
zabbix-web-database-scl = 5.0.12-1.el7
rpmlib(PayloadIsXz) <= 5.2-1

There is no dependency on php 5.4 in zabbix 5.0 and zabbix 4.4 is dead.

At any rate it is pretty easy to extract web-server configuration from our packages manually or create your own.

Generated at Fri Jul 04 07:40:38 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.