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

Bug 228141

Summary: app-admin/webalizer-2.01.10-r16: die, if both geoip and xtended are turned on
Product: Gentoo Linux Reporter: Sven <sven.koehler>
Component: New packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven 2008-06-18 20:02:08 UTC
Hi,

so as it seems, users can't have both the geolizer patch and the 404 extension.

So if geoip AND xtended use-flags are turned on, the ebuild should die.

A quick patch:

-        if use geoip && ! use xtended; then
-                epatch "${WORKDIR}"/geolizer_${MY_PV}-patch/geolizer.patch
-        else
+        if use geoip; then
+                use xtended && die "you can't have both"
+                epatch "${WORKDIR}"/geolizer_${MY_PV}-patch/geolizer.patch
+        else

Reproducible: Always
Comment 1 Sven 2008-06-18 21:32:36 UTC
Oh, just a quick note:

If both USE-flags (geoip and xtended) are enabled, the ebuild silently ignores the geoip use-flag. I don't think, that this is user/admin-friendly behaviour.
Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2008-08-01 20:40:07 UTC
Reassigning to primary maintainer.
Comment 3 Sebastian Pipping gentoo-dev 2010-01-03 21:37:44 UTC
By convention such conflicts do not throw errors:

"Occasionally, ebuilds will have conflicting optional features. Checking for these conflicts and returning an error is not a viable solution. Instead, you must favor one of the features over the others."
(http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1#doc_chap2_sect5)

So I'm closing as wontfix.  Please let us know if you have other ideas on how to improve the situation for you.  Thank you!
Comment 4 Sebastian Pipping gentoo-dev 2010-01-03 22:28:08 UTC
I just noticed that webalizer extended includes geoip.  So you can actually have USE="geoip xtended" and it will differ to the result from either alone.

Please let me know if you have any questions about this.