Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 525570

Summary: net-analyzer/icinga-web-1.10.1 should alternatively depend on net-analyzer/icinga2
Product: Gentoo Linux Reporter: Guido Jäkel <G.Jaekel>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: revised ebuild

Description Guido Jäkel 2014-10-16 13:57:44 UTC
Created attachment 386768 [details]
revised ebuild

The current ebuild DEPENDs on Icinga1 only, but is a usable frontend for Icinga2 is Icinga-Web (V1), too.

Without this patch, emerging of Icinga-Web in conjunction with Icinga2 will pull in Icinga1, too.

I don't had have a close look regarding the concrete minimal version of Icinga2 required; i just choose the current one and it might be lowered.



--- icinga-web-1.10.1.ebuild.20140219-191803    2014-02-19 19:18:03.000000000 +0100
+++ icinga-web-1.10.1-r1.ebuild 2014-10-15 14:32:56.972487000 +0200
@@ -13,9 +13,10 @@
 SLOT="0"
 KEYWORDS="~x86 ~amd64"
 IUSE="apache2 mysql pnp postgres"
+# 20141015/gj	added icinga2 as alternative dependency
 DEPEND="dev-php/phing
                dev-db/libdbi-drivers[mysql?,postgres?]
-               >=net-analyzer/icinga-1.10.0
+               || ( >=net-analyzer/icinga-1.10.0 >=net-analyzer/icinga2-2.1.1 )
                dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xslt,xml]
                pnp? ( net-analyzer/pnp4nagios )"
 RDEPEND="${DEPEND}"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-16 15:39:22 UTC
Comment on attachment 386768 [details]
revised ebuild

--- icinga-web-1.10.1.ebuild
+++ icinga-web-1.10.1.ebuild
@@ -13,9 +13,10 @@
 SLOT="0"
 KEYWORDS="~x86 ~amd64"
 IUSE="apache2 mysql pnp postgres"
+# 20141015/gj  added icinga2 as alternative dependency
 DEPEND="dev-php/phing
                dev-db/libdbi-drivers[mysql?,postgres?]
-               >=net-analyzer/icinga-1.10.0
+               || ( >=net-analyzer/icinga-1.10.0 >=net-analyzer/icinga2-2.1.1 )
                dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xslt,xml]
                pnp? ( net-analyzer/pnp4nagios )"
 RDEPEND="${DEPEND}"
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-10-16 23:34:30 UTC
fixed in 1.11.2