Icinga / icinga-packaging

Packaging documentation and issues for the official Icinga repository
https://packages.icinga.com
44 stars 15 forks source link

php-icinga and icingaweb2-vendor-zf1 have the same source: icingaweb2-….src.rpm #299

Closed thomas-merz closed 6 months ago

thomas-merz commented 6 months ago

Describe the bug

We are using Puppet to install packages on our RHEL VMs. So I was totally confused that Puppet tried to install icingaweb2-vendor-zf1 again and again. I found out that icingaweb2-vendor-zf1 and php-icinga from you are sharing the same source-rpms which is obviously faulty when I diff the files they provide. I'm not sure why or if this leads to my problem, but I think so…

To Reproduce

# rpm -qa | grep icingaweb2-vendor-zf1

# dnf info icingaweb2-vendor-zf1
…
Available Packages
Name         : icingaweb2-vendor-zf1
Version      : 2.11.4
Release      : 2.el8
Architecture : noarch
Size         : 677 k
Source       : icingaweb2-2.11.4-2.el8.src.rpm
Summary      : Icinga's fork of Zend Framework 1
URL          : https://icinga.com
License      : BSD
Description  : Icinga's fork of Zend Framework 1. 

# dnf install icingaweb2-vendor-zf1
…
Package php-icinga-2.12.1-1.el8.noarch is already installed.
…

# dnf info php-icinga
…
Installed Packages
Name         : php-icinga
Version      : 2.12.1
Release      : 1.el8
Architecture : noarch
Size         : 1.6 M
Source       : icingaweb2-2.12.1-1.el8.src.rpm
Summary      : Icinga Web PHP library
URL          : https://icinga.com
License      : GPLv2+
Description  : Icinga Web PHP and vendor libraries.

I downloaded both RPMs and diff'ed:

rpm -ql icingaweb2-vendor-zf1-2.11.4-2.el8.noarch.rpm
rpm -ql php-icinga-2.12.1-1.el8.noarch.rpm

Expected behavior

Source-RPMs should be correct so that dnf and Puppet see the correct infos and both RPMs can be installed the right way.

Your Environment

RHEL8, Puppet 7 plus Icinga-Packages:

icinga-php-thirdparty-0.12.1-1.el8.noarch
icinga2-bin-2.14.2-1.el8.x86_64
icinga-l10n-1.3.0-1.el8.noarch
icinga2-debuginfo-2.14.2-1.el8.x86_64
icingaweb2-2.12.1-1.el8.noarch
icinga-php-common-1.0.0-1.el8.icinga.noarch
opsgenie-icinga2-1.1.5-1.x86_64
icinga2-ido-mysql-2.14.2-1.el8.x86_64
icinga2-common-2.14.2-1.el8.x86_64
vim-icinga2-2.14.2-1.el8.x86_64
icingacli-2.12.1-1.el8.noarch
icingaweb2-selinux-2.12.1-1.el8.noarch
php-icinga-2.12.1-1.el8.noarch
icingaweb2-common-2.12.1-1.el8.noarch
icinga-php-library-0.13.1-1.el8.noarch
icinga2-doc-2.14.2-1.el8.x86_64
icinga2-2.14.2-1.el8.x86_64

Copyright (c) 2012-2024 Icinga GmbH (https://icinga.com/) License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

System information: Platform: Red Hat Enterprise Linux Platform version: 8.9 (Ootpa) Kernel: Linux Kernel version: 4.18.0-513.18.1.el8_9.x86_64 Architecture: x86_64

Build information: Compiler: GNU 8.5.0 Build host: unknown OpenSSL version: OpenSSL 1.1.1k FIPS 25 Mar 2021

Application information:

General paths: Config directory: /etc/icinga2 Data directory: /var/lib/icinga2 Log directory: /var/log/icinga2 Cache directory: /var/cache/icinga2 Spool directory: /var/spool/icinga2 Run directory: /run/icinga2

Old paths (deprecated): Installation root: /usr Sysconf directory: /etc Run directory (base): /run Local state directory: /var

Internal paths: Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /run/icinga2/icinga2.pid

yhabteab commented 6 months ago

Hi @thomas-merz, thanks for reporting!

Since Icinga Web 2 >= 2.12 and Icinga PHP Thirdparty >=0.11.0 we no longer provide the icingaweb2-vendor-* packages as they are already bundled within the icinga-php-thirdparty package. Thus, you no longer need to install any icingaweb2-vendor-* packages manually.